Skip to content

SZUOJ/JudgeServer

 
 

Repository files navigation

JudgeServer

Document

API示例

  • Request POST
{
    "language": "py",
    "src": "import re\nprint(\"666\")",
    "max_cpu_time": 3000,
    "max_memory": 33554432,
    "test_case_id": "test",
    "output": false
}
  • Response

result为Judger的判题结果。

{
    "err": null,
    "data": [
        {
            "cpu_time": 30,
            "real_time": 30,
            "memory": 9691136,
            "signal": 0,
            "exit_code": 0,
            "error": 0,
            "result": -1,
            "test_case": "1",
            "output_md5": "fae0b27c451c728867a567e8c1bb4e53",
            "output": null
        }
    ]
}

判题机参数

MAX_READ_BYTES = 64 * 1024 * 1024  # 最大读取输出大小 64M
MAX_TRANSFER_BYTES = 1024  # 最大传输输出大小 1K

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 59.7%
  • Go 21.3%
  • PHP 13.0%
  • Dockerfile 5.2%
  • Other 0.8%