Rosetta Problems

Beginner Free Contest 3 - LINETRIP

https://oj.vnoi.info/problem/fcb003_linetrip