hkerym
hkerym
感谢解答,但是改了之后会超时😂,是我哪里的操作姿势不对嘛,能麻烦解答一下🙏 ```json { "pipeMapping": [ { "in": { "index": 1, "fd": 1 }, "out": { "index": 0, "fd": 0 }, "proxy": true, "name": "stdout", "max": 34359738368 }, { "in": {...
我刚刚尝试了一下,保留其中一个pipe,用户程序或交互程序都能读入成功,但是两个都保留沙箱就会返回超时。😭😭😭 沙箱我用的是Docker1.8.2版本的。 ```json [ { "status": "Time Limit Exceeded", "exitStatus": 9, "time": 4905000, "memory": 6504448, "runTime": 20001645513, "files": { "stderr": "", "stdout": "" } }, { "status": "Time Limit Exceeded",...
是的,如果files里不修改确实会有错误返回,我是去掉一个pipe同时也修改了files的标准输入输出的。 1. 两个pipe的debug请求日志 ```logs 2024-03-08T23:46:12.855+0800 DEBUG rest_executor/cmd_handler.go:67 request: &{RequestID: Cmd:[{Args:[/bin/bash -c ./main] Env:[PATH=/usr/bin:/bin] Files:[ collector:(name:stderr,max:8388608,pipe:false)] CPULimit:1s ClockLimit:2s MemoryLimit:256.0 MiB StackLimit:256.0 MiB OutputLimit:0 B ProcLimit:128 OpenFileLimit:0 CPURateLimit:1000 CPUSetLimit: CopyIn:map[main:cached:(fileId:BN76KSRS)] Symlinks:map[] CopyOut:[]...
1. 用户代码编译body参数 ```json { "cmd": [ { "args": [ "bash", "-c", "/usr/bin/g++ -DONLINE_JUDGE -fno-tree-ch -O2 -Wall -std=c++17 -pipe main.cpp -lm -o main" ], "env": [ "PATH=/usr/bin:/bin" ], "files": [ {...
😂你好,找到原因了,更新了`testlib.h`问题就解决了。感谢耐心解答🙏
感谢,麻烦了
那OJ是不是对于答案后多换行多空格是不是忽略不判PE的
注释了 #define IGNORE_ESOL 但 printf("%d", a + b) , printf("空格%d", a + b) , printf("%d空格", a + b),这三种情况还是无法判为PE, 是否修改 judge_client.cc 中 的代码才可行,例如: 
抱歉,我忘记重新编译 judge_client.cc了, 麻烦了,感谢回答