judge: handle line count diff

This commit is contained in:
undefined committed 2021-07-07 20:26:26 +08:00
1 parent bf0b2b50c1
commit 8c83a79bee
2 files changed
+2 -1

No files matched your search

@@ -10,6 +10,7 @@ export async function judge({
let totalStatus = 0;
for (const i in config.outputs) {
const c = config.outputs[i];
outputs[i] = outputs[i] || '';
let status = STATUS.STATUS_WRONG_ANSWER;
let score = 0;
if (outputs[i].trim() === (c.output || c[0]).trim()) {