Skip to content
Discussion options

You must be logged in to vote

The sandbox enforces additional safety rules beyond execution time:

  • Memory limits (often < 256–512 MB)
  • Process output limits
  • Hidden per-operation timeout for CPU-bound loops
  • Protection against runaway NumPy broadcasting

Large NumPy operations can trigger a “soft timeout,” even within total time limits.

Workarounds:

  • Break large ops into smaller batches
  • Avoid giant temporary arrays
  • Prefer vectorized operations over Python loops
  • Disable debug prints (stdout flood triggers soft-kill)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by O1Legend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants