Project_LemonLime icon indicating copy to clipboard operation
Project_LemonLime copied to clipboard

[BUG] 开启文件读写时,如果选手在标准输出输出数字,将被除以1000后视为用时

Open Pulsar33550336 opened this issue 1 year ago • 2 comments

描述一下这个 Bug 天晓得怎么回事有个文件测评时显示 TLE 用时114.514秒

Image

然后我们看到了它的代码

#include<bits/stdc++.h>
using namespace std;
int main(){
	cout<<"114514"<<endl;
	return 0;
}

…… ……

如何复现 拿上面那份代码跑

期望获得的结果 啥都不做,文件错误

有截图吗? 在上面

环境: 版本代号:0.3.5

  • 系统:Arch Linux ~~显然没有版本~~,kernel 6.17.9-zen1-1-zen

其他信息 ~~好臭啊~~

Pulsar33550336 avatar Dec 01 '25 12:12 Pulsar33550336

I think it should be caused by https://github.com/Project-LemonLime/Project_LemonLime/pull/250 switch unix-watcher to stdout communication, but forget to set CLOEXEC for fd.

CoelacanthusHex avatar Dec 01 '25 20:12 CoelacanthusHex

Strange... It seems close it right

CoelacanthusHex avatar Dec 01 '25 20:12 CoelacanthusHex