i was trying to solve this problem:- https://codeforces.net/contest/2064/problem/D
My solution :- https://codeforces.net/contest/2064/submission/307112876
I am getting wrong ans verdict in my solution even tho i think my logic is correct. Can anyone please find and explain what did i do wrong?
plzz help :,(