mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: auto update editor height
This commit is contained in:
1 parent
58dca1d7bf
commit
2794a866c2
3 files changed
+6
-5
No files matched your search
@@ -32,9 +32,9 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
|
||||
}
|
||||
if (cfg.outputs) {
|
||||
config.type = 'submit_answer';
|
||||
} else if (cfg.cases) {
|
||||
} else if (cfg.cases?.length) {
|
||||
config.subtasks = [{
|
||||
score: parseInt(cfg.score, 10) || Math.floor(100 / cfg.cases.length),
|
||||
score: +cfg.score || Math.floor(100 / cfg.cases.length),
|
||||
time: parseTimeMS(cfg.time || '1s'),
|
||||
memory: parseMemoryMB(cfg.memory || '256m'),
|
||||
cases: [],
|
||||
|
||||
Reference in new issue
Block a user