Comments (3)
校验器可以是任意可执行程序,只需满足以下协议:
-
传入标准输入、标准输出、选手输出、结果输出文件名作为参数:
./spj <IN> <ANS> <OUT> <LOG>
-
程序返回值为 0 表示校验器检查成功,非 0 表示校验器崩溃。
-
结果输出文件需满足以下格式:
- 第一行一个
[0, 1]
的实数,表示得分比例。 - 第二行一个字符串,表示要显示在评测界面上的的信息。
- 第一行一个
可以参考全文比较的实现:https://github.com/sxyzccr/CCR-Plus/blob/master/src/tools/checker/fulltext_utf8.cpp
如要使用 testlib,保证生成的可执行程序满足该协议即可。
from ccr-plus.
in、ans、out、log的顺序可以换么,testlib.h的是in、out、ans。
结束ccr用的是End(string, state),testlib.h用的是类似quitf(_ok, "1")
如果我要把用testlib.h写的check改为支持ccr的check要如何改
from ccr-plus.
需要改 testlib.h,比如改这里调整参数顺序:
from ccr-plus.
Related Issues (16)
- 超时判定bug HOT 4
- CCR-Plus is stopping working... CCR-Plus已停止工作 HOT 4
- CCR在ubuntu下不支持中文化目录如何破? HOT 2
- 希望支持Mac HOT 1
- linux下, 编辑器默认是vim的情况下, 会在打开ccr的终端里打开vim
- ccrplus 已经加入 Arch User Repository HOT 1
- win7环境变量配置后测试216怎么破 HOT 1
- Build Failed HOT 2
- Is this project still in maintain? HOT 2
- 请问,CCR无效的编译器如何解决 HOT 3
- 每次都显示“进程被阻塞” HOT 6
- 新下载的 zip 里没有CCR-PLUS.exe文件啊 HOT 1
- error: use of undeclared identifier 'qSort' HOT 4
- error: library not found for -lcrt0.o HOT 1
- debian 构建后, 提示无法运行进程监视器
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccr-plus.