Can anyone tell me why i am getting wrong answer on test 6,i am not being able to wrap my head around what's really happening in test 6 This is the problem:https://mirror.codeforces.com/contest/454/problem/B This is my code:https://mirror.codeforces.com/contest/454/submission/273727396
This test case has a pretty obvious pattern. Figure out how to compress it into human-inputtable, then re-debug.