Help--IOI 2017 Toy Train subtask solutions??
In IOI 2017 toy train, does anyone know what are the intended solutions for the subtasks, particularly subtasks 3-5? The editorial goes straight to the full solution.