draft: 从fps文件导入题目

This commit is contained in:
undefined committed 2020-09-01 13:35:06 +08:00
1 parent 59f95734b8
commit ce69235207
7 files changed
+149 -9

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "hydrooj",
"version": "2.12.22",
"version": "2.12.23",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",
"author": "masnn",
"license": "GPL-3.0-only",
"license": "AGPL-3.0-only",
"engines": {
"node": ">=10.10"
},
+2 -2
View File
@@ -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);
+6 -4
View File
@@ -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,
}