Rosetta Problems

Beginner Free Contest 37 - MINDIST

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