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
@@ -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