NZEC for ANKTRAIN

Hi,

My code gives NZEC for subtask 2 of ANKTRAIN. Not sure why. Any help would be appreciated.

link to code

Thanks in advance.

Consider the testcase:

1
16
1 Like

Thanks a lot.

1 Like