中文 | English
一个用于算法竞赛的在线评测系统。
本项目继承自 @louchenyao 的 SYZOJ,目前由 LibreOJ 维护。
见本项目 Wiki 中的 部署指南。
加入 QQ 群 565280992 或 Telegram 群 @lojdev 以取得帮助。
见本项目 Wiki 中的 更新指南。
一个为 OI 题目设计的方便的命令行工具,实现造题、验题、评测等整个评测流程
Home Page: https://pypi.org/project/syzoj-tools/
License: MIT License
评测的结果感觉十分冗长不可读啊。
测完后不仔细读一遍就不能知道结果。
原本没有问题,但是在克隆源码安装之后,评测 AC会得到这样的结果(报错没有 wcmp 这样的文件):
VERBOSE:compiled-language:Compiling source code source/CSYZ14/treasure.cpp
VERBOSE:compiled-language:Compilation success
VERBOSE:problem:Judging subtask 0
VERBOSE:problem-traditional:Running testcase 1
Traceback (most recent call last):
File "/home/kewth/.local/bin/syzoj", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/kewth/Kewth_/syzoj-tools/bin/syzoj", line 4, in <module>
syzoj_tools.main()
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/__init__.py", line 60, in main
args.func(args)
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/__init__.py", line 83, in cmd_judge
result = problem.judge(prog, lazy=args.lazy)
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/problem.py", line 199, in judge
case_result[j] = session.do_judge(case)
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/types/traditional.py", line 89, in do_judge
checker_result = self.parent.checker.check(case, run_result.outfile)
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/builtin.py", line 19, in check
return run_testlib_checker(checker_file, case.input_data, outfile, case.answer_data)
File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/__init__.py", line 45, in run_testlib_checker
subprocess.run([checker, input, output, answer, result_file.name], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
File "/usr/lib/python3.6/subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/wcmp': '/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/wcmp'
不知道是否是操作不当?
input-data: data{name}.in
answer-data: data{name}.out
请问这个地方要怎么写才会从编号0开始?
目前内置的 checker 均以源代码形式发布,使用时编译,但编译后的文件放置在和源代码同一个文件夹内,这导致两个问题:
解决方案:
yaml 里似乎没有配置 data (数据文件所在目录)的选项?
比赛数据文件一般放在 data 的几个子目录里的,这种情况 judge 似乎要将数据文件移出来?
如果有关于 data 的配置,可能帮助文档里并没有指出;
如果没有,希望可以加上这个配置选项,因为至少对我来说这样真的很麻烦。
能不能添加一些WA或者TLE的程序,通过对拍造更强的数据?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.