Here is my solution. I could not understand the editorial code but tried to follow a simple method.Don't know where its going wrong... https://codeforces.com/contest/1157/submission/88502505
Here is my solution. I could not understand the editorial code but tried to follow a simple method.Don't know where its going wrong... https://codeforces.com/contest/1157/submission/88502505