You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readint() function in the interactive grader does not limit the number of digits in the integer.
When parsing an integer with int(), a very large (>10^7 digits) integer can cause the judge to hang. See this submission. This only affects interactive problems with longer time limits because 2 seconds is not currently enough to output all the digits of such an integer in an unbuffered problem.
Just to note that this also affects all custom checkers that use int() without limiting the number of digits, including those with time limits as low as 1 second.
The
readint()
function in the interactive grader does not limit the number of digits in the integer.When parsing an integer with
int()
, a very large (>10^7 digits) integer can cause the judge to hang. See this submission. This only affects interactive problems with longer time limits because 2 seconds is not currently enough to output all the digits of such an integer in an unbuffered problem.Just to note that this also affects all custom checkers that use
int()
without limiting the number of digits, including those with time limits as low as 1 second.A reasonable limit could be 10^5 digits, which is more then reasonable for all problems and does not cause the judge to hang.
Another possible solution is to move to sandboxed interactors with the bridged grader.
The text was updated successfully, but these errors were encountered: