Hello everyone! Codeforces Round #254 is coming soon.
In this round, there will be a really cute boy named DZY. He loves many things, we can even say everything. He has a great passion for the gorgeous world, but he can't deal with everything he's interested in. So he needs your help, and he will present rating in return.
My thanks go to Gerald, who gave me much advice and helped about the problems. And I also would like to thank MikeMirzayanov, who created such a wonderful platform.
The problem setters are FancyCoder and me, and thank vfleaking, jqdai0815 and lsmll for testing.
Come and join us in helping DZY.
Good luck and have fun.
UPD
In Div. 1, scores for each problem will be 500-1000-2000-2000-2500.
In Div. 2, scores for each problem will be 500-1000-1500-2000-3000.
UPD
For technical reasons, the round will be delayed by 5 minutes.
UPD
The contest is over. Thanks for participating.
Congrats the winners.
Division 1:
Division 2:
You can find editorial here