hi everyone :)
i'm trying to solve 629D - Бабай и пирог на день рождения 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 - Граф сортировки пузырьком