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

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.8.16",
"version": "2.8.17",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
@@ -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()) {