mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: 为使用文件IO的题目添加标记
This commit is contained in:
1 parent
a340902203
commit
336cff75f2
6 files changed
+9
-3
No files matched your search
@@ -36,6 +36,10 @@ export async function parseConfig(config: string | ProblemConfigFile = {}) {
|
||||
result.timeMax = result.timeMin = 1000;
|
||||
}
|
||||
if (cfg.langs) result.langs = cfg.langs;
|
||||
if (cfg.filename && result.type === 'default') {
|
||||
result.type = 'fileio';
|
||||
result.subType = cfg.filename;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user