Greeting!
Codeforces Round #259 (Div. 1 and Div. 2) will take place on August 1st, 19:30 MSK.
Setters are: sevenkplus, xlk and me.
Testers are: vfleaking, GuyUpLion, ztxz16 , CMHJT and Trinitrophenol.
Many thanks to Gerald for his help in giving advise about the problems. And we gratefully acknowledge MikeMirzayanov and his team, who bring us the world best competitive programming platform!
Tonight, you will come to Equestria and help our Friendship Princess — Twilight Sparkle to solve those intractable challenges one after another.
Twilight Sparkle is a main protagonist of the series — My Little Pony: Friendship Is Magic.
She is a female unicorn pony who transforms into an alicorn and becomes a princess in the third season of the series. She has a cutie mark of a 6-pointed magenta star with a white one behind it and 5 more smaller ones at each end of the magneta star.
Of course, I guarantee not knowing the storyline and setting won't hold you back from solving these problems~
UPD
In Div. 1, scores for each problem will be 500-1000-1500-2500-2500.
In Div. 2, scores for each problem will be 500-1000-1500-2000-2500.
UPD
Contest is over! Congratulations to the winners! Here are the top 6 in Div.1 division:
And here are the top 6 in Div.2 division:
Editorial is here.