Ming-Tian Yang's submission of Subway Ride | CodeChef