http://codeforces.me/contest/721/problem/E
Couldn't understand the solution even after reading the editorial. Someone please help.
UPD: In hope that somebody might explain the solution :)
Please help: Road To Home
http://codeforces.me/contest/721/problem/E
Couldn't understand the solution even after reading the editorial. Someone please help.
UPD: In hope that somebody might explain the solution :)