A doubt in CENS20D

I know that. If i is n-1, j will be n but it should be less than n it won’t work.

My Solution : https://www.codechef.com/viewsolution/36972673
Ps: just optimising :slight_smile:

1 Like