I am getting wa on test1 in my submission of this problem https://mirror.codeforces.com/problemset/problem/1990/E1.
This is my submission: https://mirror.codeforces.com/contest/1990/submission/318085732.
When i run my code manualy on my computer and answer the queries manualy I get correct solution for test1. But when i submit I get wa. Can someone tell me where is the problem in my code? It is possible that my algorithm is wrong for the overall solution of a problem so please dont tell me what solution of problem is.







