Initialise your variables, then ask again if you’re still getting WA
I tried initializing all variables in the following code:
https://www.codechef.com/viewsolution/49400257
It is still showing WA in two subcases.
I feel that I have initialized all variables in the previous code also, some at the beginning, while some in between.
Maybe I could not understand what you meant, if so, please do tell…
Thanks! Consider the test input:
2
1 2
1 Like
I got it with your help now, Thanks to you!!
1 Like