mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
draft: 从fps文件导入题目
This commit is contained in:
1 parent
59f95734b8
commit
ce69235207
7 files changed
+149
-9
No files matched your search
@@ -270,8 +270,8 @@ class ProblemPretestHandler extends ProblemDetailHandler {
|
||||
lang, code, true,
|
||||
{
|
||||
input,
|
||||
time: 1000,
|
||||
memory: 256,
|
||||
time: '1s',
|
||||
memory: '256m',
|
||||
},
|
||||
);
|
||||
const rdoc = await record.get(domainId, rid);
|
||||
|
||||
@@ -101,8 +101,10 @@ export interface SubtaskConfig {
|
||||
export interface LocalProblemConfig {
|
||||
type?: LocalProblemType,
|
||||
score?: number,
|
||||
time?: number,
|
||||
memory?: number,
|
||||
/** ms */
|
||||
time?: string,
|
||||
/** Megabytes */
|
||||
memory?: string,
|
||||
checker_type?: string,
|
||||
checker?: string,
|
||||
interactor?: string,
|
||||
@@ -167,8 +169,8 @@ export interface TestCase {
|
||||
}
|
||||
|
||||
export interface PretestConfig {
|
||||
time?: number,
|
||||
memory?: number,
|
||||
time?: string,
|
||||
memory?: string,
|
||||
input: string,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user