UOJ 如何仅支持 freopen #90
SunnyORcold
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
uoj_judge.h 文件
run_submission_program() 函数
这个函数会根据执行比对每个测试数据,例如测试数据n个,就会执行n次。
这是一种比较取巧的办法。按我的理解,应该在校验代码的时候,直接校验 freopen文件名称是否和 problem 中的名称是否一致,并排除对 freopen 中的文件名的检查即可。
Beta Was this translation helpful? Give feedback.
All reactions