Request problem list

GET /problem

Response

{
	"updated_at": 1626080668224,  // timestamp (ms)
	"problem_sets": [
		{
			"name": "Verilog基础",
			"created_at": 1626080668224,
			"updated_at": 1626080668224,
			"problems": [
				{
					"title": "点灯",
					"created_at": 1626080668224,
					"updated_at": 1626080668224,
					"tid": 1001,  // or id?
					"state": "finished", // [accepted, unaccepted, compiled error, ...?]
					"accuracy": {
						"all": 0.99,
						"user": 0.50
					},
					"can_evaluate": true
				}
			]
		}
	]
}

Request problem details

GET /problem/{tid}

Response

{
	"title": "点灯",
	"created_at": 1626080668224,
	"updated_at": 1626080668224,
	"tid": 1001,  // or id?
	"state": "finished", // [accepted, unaccepted, compiled error, ...?]
	"last_submit_at": 1626080668224,
	"accuracy": {
		"all": 0.99,
		"user": 0.50
	},
	"can_evaluate": true,
	"contant": "{Markdown}",
	"examples": [(example object)]
}