From dea6a59f8c01315e7e911cb3b5d1f83862083bed Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Mon, 27 Jan 2025 22:38:27 -0500 Subject: [PATCH] chore: new conf version --- conf.json | 330 +++++++++++++++++++++++++++--------------------------- 1 file changed, 168 insertions(+), 162 deletions(-) diff --git a/conf.json b/conf.json index 01b9381..a8d174e 100644 --- a/conf.json +++ b/conf.json @@ -1,168 +1,174 @@ { + "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", - "with": { - "score": 0, - "comment": "compile done" - } + { + "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" - } - }, - { - "stdin": { - "src": "./cases/3.in" - } - }, - { - "stdin": { - "src": "./cases/4.in" - } - }, - { - "stdin": { - "src": "./cases/5.in" - } - } - ] - } - }, - "parser": { - "name": "diff", - "with": { - "cases": [ - { - "outputs": [ - { - "score": 100, - "fileName": "stdout", - "answerPath": "./cases/1.out", - "compareSpace": true - } - ] - }, - { - "outputs": [ - { - "score": 100, - "fileName": "stdout", - "answerPath": "./cases/2.out", - "compareSpace": true - } - ] - }, - { - "outputs": [ - { - "score": 100, - "fileName": "stdout", - "answerPath": "./cases/3.out" - } - ] - }, - { - "outputs": [ - { - "score": 100, - "fileName": "stdout", - "answerPath": "./cases/4.out" - } - ] - }, - { - "outputs": [ - { - "score": 100, - "fileName": "stdout", - "answerPath": "./cases/5.out", - "compareSpace": false - } - ] - } - ] - } + "parsers": [ + { + "name": "result-status", + "with": { + "score": 0, + "comment": "compile done" } - } + } + ] + }, + { + "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" + } + }, + { + "stdin": { + "src": "./cases/3.in" + } + }, + { + "stdin": { + "src": "./cases/4.in" + } + }, + { + "stdin": { + "src": "./cases/5.in" + } + } + ] + } + }, + "parsers": [ + { + "name": "diff", + "with": { + "cases": [ + { + "outputs": [ + { + "score": 100, + "fileName": "stdout", + "answerPath": "./cases/1.out", + "compareSpace": true + } + ] + }, + { + "outputs": [ + { + "score": 100, + "fileName": "stdout", + "answerPath": "./cases/2.out", + "compareSpace": true + } + ] + }, + { + "outputs": [ + { + "score": 100, + "fileName": "stdout", + "answerPath": "./cases/3.out" + } + ] + }, + { + "outputs": [ + { + "score": 100, + "fileName": "stdout", + "answerPath": "./cases/4.out" + } + ] + }, + { + "outputs": [ + { + "score": 100, + "fileName": "stdout", + "answerPath": "./cases/5.out", + "compareSpace": false + } + ] + } + ] + } + } + ] + } ] -} + } +} \ No newline at end of file