LTM40AB - WA

Question link

My Solution

I dont know in what condition my answer will give WA???

Try this as the input to your code:

1

4 6 1 2

1 Like

https://www.codechef.com/viewsolution/15946749 fixed it but still it shows WA

1

2 5 1 5

for the new code.