Classroom-下发判题任务:请求示例

时间:2025-01-14 15:38:06

请求示例

  • {  "notify_url" : "https://117.12.143.1/taskBack",  "code_type" : "inline",  "source_code" : "I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSB7CiAgICBzdGQ6OmNvdXQgPDwgIkhlbGxvIHdvcmxkISIgPDwgc3RkOjplbmRsOwogICAgcmV0dXJuIDA7Cn0=",  "description" : "cpp code",  "runtime_type" : "cpp",  "timeout" : 60,  "output_type" : "sysout"}
  • {  "notify_url" : "https://117.12.143.1/taskBack",  "code_type" : "inline",  "source_code" : "bnVtID0gaW5wdXQoKQpudW1zID0gbnVtLnNwbGl0KCkKcHJpbnQoaW50KG51bXNbMF0pK2ludChudW1zWzFdKSk=",  "description" : "python code",  "runtime_type" : "python",  "timeout" : 10,  "output_type" : "judgeout",  "testcases" : [ {    "input" : "10 20",    "output" : "30"  } ]}
support.huaweicloud.com/api-classroom/ApplyJudgement.html