WA in ISM1

hello,i was doing this question and i submitted my code in many ways but none of them get accepted.please have a look and tell me where i am going wrong so that i can improve Thanks
solution 1 solution 2 solution 3

I am also confused regarding my solutions. But see this one, if i’ll comment line 11 and put line 10 instead it gives WA otherwise gives AC.

1 Like