mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
judge: handle line count diff
This commit is contained in:
1 parent
bf0b2b50c1
commit
8c83a79bee
2 files changed
+2
-1
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user