The solution is very perfect and passing all possible test cases but still WA on submission for the next 70pts.
Hey have you really gone through question? It will take some time to look properly to question and not your answer. I can tell without watching your answer your mistake. Just read the question carefully.
You made a very simple yet big mistake. Give a thought to what you wrote above. You will understand.
A very simple yet big? Is it about printing the output?
Leave it this time so you will have experience. It’s necessary to go through this stage so next time you won’t make this mistake. You can stop now asking.
If it was for TLE that means you need to try some other approach to solve the problem. But since it gives you WA you should understand that there is some constraint in Subtask 1 which your code is able to satisfy but it can’t do the same for Subtask 2 . See the substasks and think about it ,you will come to know.
Please don’t discuss here about the problems of ongoing contests. Don’t give ANY hint whatsoever about the problems. You might be plagiarized for the same.