The program runs to give the exact same output case as given in the question but it also gives NZEC error when i try to submit it.

hey! So i wrote the code for this program And it’s giving me the exact same output as given in the question . Take a look:

So it shows me the NZEC error when i am trying to submit. Any idea on how to solve this absurd problem?

There might be other errors, but one problem is that your program doesn’t seem to be able to read in N if N=10^{10}.

Okay. I will see to it. Thanks!

1 Like