NZEC error in python

my code http://ideone.com/kjyPlP

plz point out the error

Use i+m < t instead of i+m <= t because the number of elements is t and the last index is (t-1).

1 Like

still WA hehe

Yes, it will be WA because your solution is not correct, but you won’t get NZEC anymore :slight_smile: