So it fails on pretest 7 and I don't know why my idea isn't good, the editorial has other solution. (submission : https://mirror.codeforces.com/contest/1691/submission/159075882)
I need help with problem D round 795
So it fails on pretest 7 and I don't know why my idea isn't good, the editorial has other solution. (submission : https://mirror.codeforces.com/contest/1691/submission/159075882)