QOJ.ac
QOJ
Time Limit: 1 s
Memory Limit: 512 MB
Total points: 100
#31. Railway
Statistics
The problem was used in the following contest: Baltic Olympiad in Informatics 2017 Day 1, National Olympiad in Informatics in Provinces 2018 Junior (NOIP 2018 Junior)