mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.8.16",
|
"version": "2.8.17",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export async function judge({
|
|||||||
let totalStatus = 0;
|
let totalStatus = 0;
|
||||||
for (const i in config.outputs) {
|
for (const i in config.outputs) {
|
||||||
const c = config.outputs[i];
|
const c = config.outputs[i];
|
||||||
|
outputs[i] = outputs[i] || '';
|
||||||
let status = STATUS.STATUS_WRONG_ANSWER;
|
let status = STATUS.STATUS_WRONG_ANSWER;
|
||||||
let score = 0;
|
let score = 0;
|
||||||
if (outputs[i].trim() === (c.output || c[0]).trim()) {
|
if (outputs[i].trim() === (c.output || c[0]).trim()) {
|
||||||
|
|||||||
Reference in new issue
Block a user