hi everyone :)
i'm trying to solve 629D - Babaei and Birthday Cake in the last contest Codeforces Round 343 (Div. 2) ...
my idea got WA6 .. but i can't find why !! i followed the editorial can anyone help me :( here is my code 16335124
i already solved this problem 340D - Bubble Sort Graph