Difference in IDLE and IDE

I am new to this platform I proceeded with the Div 2 of july lunch time now my code is running properly in my IDLE(python 3.7) and showing NZEC error in IDE.

This is the link of my solution

You can’t ask problems related to ongoing contest and nobody else can access you solutions while the contest is running. Ask them after the contest.


Can anyone answer now

You probably missed the updated announcement for CHEFSTEP. The array elements must be in one line, thus, resulting in RE. Your AC code