2361: Minimum Costs Using the Train Line

Problem Statement