Help Required In LENTMO

This answer wont work In LENTMO in neither of the test cases. Could not think of any flaw in this solution please help me to point out the flaw related to this solution

Lang: Py 3.6 Contest : June Long

Please tell somebody

Check this:- …LENTMO - EDITORIAL

I did check it but still dont get why my solution should return a WA? My approach is almost similar and seems right.

Try this input.
0 0 0 0
The answer should be 4 but your code is giving 3.

1 Like