mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: better scoring method
This commit is contained in:
1 parent
b0e7512d7a
commit
2393f105dc
9 files changed
+32
-32
No files matched your search
@@ -60,7 +60,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
|
||||
});
|
||||
}
|
||||
config.subtasks.push({
|
||||
score: parseInt(subtask.score, 10) || 100,
|
||||
score: Number.isSafeInteger(+subtask.score) ? +subtask.score : 100,
|
||||
if: subtask.if || [],
|
||||
cases,
|
||||
type: subtask.type || 'min',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "hydrooj utils",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^9.0.12",
|
||||
"@types/node": "^15.14.3",
|
||||
"@types/node": "^15.14.5",
|
||||
"moment-timezone": "^0.5.33"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user