mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: provide score & subtaskId
This commit is contained in:
1 parent
60aa0e1611
commit
a585c13a72
19 files changed
+118
-186
No files matched your search
@@ -200,9 +200,13 @@ const tasks = {
|
||||
},
|
||||
record: async (doc) => {
|
||||
if (doc.hidden) return null;
|
||||
const testCases: TestCase[] = [];
|
||||
const testCases: Required<TestCase>[] = [];
|
||||
let i = 1;
|
||||
for (const c of doc.cases || []) {
|
||||
testCases.push({
|
||||
id: i++,
|
||||
subtaskId: 0,
|
||||
score: 0,
|
||||
status: c.status,
|
||||
time: c.time_ms || c.time,
|
||||
memory: c.memory_kb || c.memory,
|
||||
|
||||
Reference in new issue
Block a user