Залізниця#10663

Залізниця (Розбір)

Subtask 1

Loop all triples (train from Zurich, train from Lugano, Tunnel ) and check if the two trains crash in the tunnel. We can do this check in time as shown below, so this takes time in total