Runtime Errors with Java



I have submitted two exactly similar solutions for Java, the following:

If you see the submission status of each of the solutions, the first got AC whereas the second got RE with NZEC error.

On copy pasting the files and seeing diff, there aren’t any. The only difference is that one of the solution was submitted earlier.

I’m no expert in this, but I believe it has something to do with the custoimzed input class I’m using which fails to create an object on the first compilation.

The ACM ICPC regionals are just around the corner, so I just want the admin to look into it as there will be a 20 min penalty for getting an RE even when there was no error of the participant.


I have tried both solutions … both are working now … And the fast I/O class code you have used looks correct …

And Reason for NZEC error in java is because of some exception during run time