chore: new conf version

This commit is contained in:
张泊明518370910136 2025-06-04 06:38:53 -04:00
parent 26a14ea1da
commit 6c0b1197c0
GPG Key ID: CA088E6D9284F870

232
conf.json
View File

@ -1,121 +1,127 @@
{
"stage": {
"stages": [
{
"name": "compile",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"clang++",
"a.cc",
"-o",
"a"
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 209715200,
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout",
"stderr"
],
"copyOutCached": [
"a"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
}
}
}
},
"parser": {
"name": "result-status"
{
"name": "compile",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"clang++",
"a.cc",
"-o",
"a"
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 209715200,
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout",
"stderr"
],
"copyOutCached": [
"a"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
}
}
}
},
{
"name": "run",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"./a"
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 1000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyOut": [
"stdout",
"stderr"
],
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
},
"copyInCached": {
"a": "a"
}
},
"cases": [
{
"stdin": {
"src": "./cases/1.in"
}
},
{
"stdin": {
"src": "./cases/2.in"
}
}
]
}
"parsers": [
{
"name": "result-status"
}
]
},
{
"name": "run",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"./a"
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 1000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyOut": [
"stdout",
"stderr"
],
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
},
"copyInCached": {
"a": "a"
}
},
"parser": {
"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
}
]
}
]
"cases": [
{
"stdin": {
"src": "./cases/1.in"
}
},
{
"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
}
]
}
]
}
}
}
]
}
]
}
}
}