judge: objective

This commit is contained in:
undefined committed 2022-08-13 20:13:49 +08:00
1 parent ac289ae955
commit ca22feb62a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ export async function judge({
for (const key in config.answers) {
const [subtaskId, caseId] = key.split('-').map(Number);
const ansInfo = config.answers[key] as [string | string[], number];
const score = ansInfo[1];
const score = (+ansInfo[1]) || 0;
const baseInfo = {
subtaskId,
id: caseId,