chore: new conf version

This commit is contained in:
张泊明518370910136 2025-01-27 22:38:28 -05:00
parent d7ce5492c4
commit 5a4cc2e189
GPG Key ID: CA088E6D9284F870

232
conf.json
View File

@ -1,121 +1,127 @@
{ {
"stage": {
"stages": [ "stages": [
{ {
"name": "compile", "name": "compile",
"executor": { "executor": {
"name": "sandbox", "name": "sandbox",
"with": { "with": {
"default": { "default": {
"args": [ "args": [
"clang++", "clang++",
"b.cc", "b.cc",
"-o", "-o",
"a" "a"
], ],
"env": [ "env": [
"PATH=/usr/bin:/bin" "PATH=/usr/bin:/bin"
], ],
"cpuLimit": 10000000000, "cpuLimit": 10000000000,
"memoryLimit": 209715200, "memoryLimit": 209715200,
"procLimit": 50, "procLimit": 50,
"copyInDir": ".", "copyInDir": ".",
"copyOut": [ "copyOut": [
"stdout", "stdout",
"stderr" "stderr"
], ],
"copyOutCached": [ "copyOutCached": [
"a" "a"
], ],
"stdin": { "stdin": {
"content": "" "content": ""
}, },
"stdout": { "stdout": {
"name": "stdout", "name": "stdout",
"max": 4096 "max": 4096
}, },
"stderr": { "stderr": {
"name": "stderr", "name": "stderr",
"max": 4096 "max": 4096
} }
}
}
},
"parser": {
"name": "result-status"
} }
}
}, },
{ "parsers": [
"name": "run", {
"executor": { "name": "result-status"
"name": "sandbox", }
"with": { ]
"default": { },
"args": [ {
"./a" "name": "run",
], "executor": {
"env": [ "name": "sandbox",
"PATH=/usr/bin:/bin" "with": {
], "default": {
"cpuLimit": 1000000000, "args": [
"memoryLimit": 104857600, "./a"
"procLimit": 50, ],
"copyOut": [ "env": [
"stdout", "PATH=/usr/bin:/bin"
"stderr" ],
], "cpuLimit": 1000000000,
"stdout": { "memoryLimit": 104857600,
"name": "stdout", "procLimit": 50,
"max": 4096 "copyOut": [
}, "stdout",
"stderr": { "stderr"
"name": "stderr", ],
"max": 4096 "stdout": {
}, "name": "stdout",
"copyInCached": { "max": 4096
"a": "a" },
} "stderr": {
}, "name": "stderr",
"cases": [ "max": 4096
{ },
"stdin": { "copyInCached": {
"src": "./cases/1.in" "a": "a"
} }
},
{
"stdin": {
"src": "./cases/2.in"
}
}
]
}
}, },
"parser": { "cases": [
"name": "diff", {
"with": { "stdin": {
"cases": [ "src": "./cases/1.in"
{
"outputs": [
{
"score": 100,
"fileName": "stdout",
"answerPath": "./cases/1.out",
"ignoreWhitespace": true
}
]
},
{
"outputs": [
{
"score": 100,
"fileName": "stdout",
"answerPath": "./cases/2.out",
"ignoreWhitespace": true
}
]
}
]
} }
},
{
"stdin": {
"src": "./cases/2.in"
}
}
]
}
},
"parsers": [
{
"name": "diff",
"with": {
"cases": [
{
"outputs": [
{
"score": 100,
"fileName": "stdout",
"answerPath": "./cases/1.out",
"ignoreWhitespace": true
}
]
},
{
"outputs": [
{
"score": 100,
"fileName": "stdout",
"answerPath": "./cases/2.out",
"ignoreWhitespace": true
}
]
}
]
} }
} }
]
}
] ]
} }
}