pages:
  • 1
Mr. Kentuss SAYS

What does this error mean? what should I do to correct my code?

AMiR SAYS

This error means that your program generated too much output that the judge core decided to terminate your program.

In this problem, what I'm guessing is you read the input as integers or so. The thing is in the problem sepcs, it is not mentioned that the input fits into integers or longs or any other primitive types. So you should read them as strings as the input numbers could be very large.

Mr. Kentuss SAYS

Thanks!