Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 844 Bytes

File metadata and controls

47 lines (40 loc) · 844 Bytes

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