mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17: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',
|
||||
|
||||
Reference in new issue
Block a user