8000 测试包含多组测试数据,在提交代码判题时,c++和py都正常,java超时 · Issue #1085 · zhblue/hustoj · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

测试包含多组测试数据,在提交代码判题时,c++和py都正常,java超时 #1085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
The-Thethe opened this issue Mar 22, 2025 · 5 comments

Comments

@The-Thethe
Copy link

Image
如图,出现了以上信息,需要添加callid 33

我向okcalls64.h 中对应位置添加后

Image
按照知乎帖子在core目录下执行sudo bash make.sh 指令后如图

Image

再次提交java代码执行,还是存在这个问题

Image

尝试知乎帖子第二种方法,如下图,也未能成功解决

Image

Image

请问张老师,这个问题要如何解决?

@zhblue
Copy link
Owner
zhblue commented Mar 22, 2025

保留原有的数组数据,将debug产生的,原数组中没有的新数据加进去,然后编译judge_client
修改judge.conf
设置OJ_INTERNAL_CLIENT=0
重启judged

@The-The
8000
the
Copy link
Author

OJ_INTERNAL_CLIENT

张老师,执行 sudo judge_client 2501 0 /home/judge debug J 并没有产生数据

Image

根据显示信息来看

Image
有这个文件夹的,

请问张老师,我该怎么操作来处理?

@The-Thethe
Copy link
Author

张老师,反复试验之后,多行测试用例的题目,发现是java代码最后的scanner.close();语句引起的这个问题,没有scanner.close()最后的这个语句,代码便能正确AC。但是这个语句的作用不就是关闭input流嘛?

@zhblue
Copy link
Owner
zhblue commented Mar 22, 2025

发现你调试中的一个错误,2501 应修改为你自己提交的编号。
输入流是由判题机打开的,选手自己无需关闭

@The-Thethe
Copy link
Author

发现你调试中的一个错误,2501 应修改为你自己提交的编号。 输入流是由判题机打开的,选手自己无需关闭

感谢张老师耐心答疑!! 已成功解决问题,但是debug模式生成的数字中少了一个运行超时详细内容中提示的call:33,加上之后问题完美解决。
谢谢张老师!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0