Rosetta Problems

Beginner Free Contest 42 - MAXDIFF

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