acejudge 教程
A simple terminal OI/ACM answer checker on Linux/UNIX
acejudge 是一个命令行的 judger
因为没有文档,所以写了一个指南
安装
1 | git clone [email protected]:laekov/acejudge.git && cd acejudge |
使用
¶ 配置文件
假定配置文件名为 w.cfg
1 | 一个 printf 式的格式化字符串作为输入文件 |
acejudge -fast w.cfg
来运行
¶ 例子
acejudge 也提供交互实现配置
╭─chaigidel@chaigidel-pc /tmp/rec ╰─$ ls 10.in 10.out 1.in 1.out 2.in 2.out 3.in 3.out 4.in 4.out 5.in 5.out 6.in 6.out 7.in 7.out 8.in 8.out 9.in 9.out a.cpp ╭─chaigidel@chaigidel-pc /tmp/rec ╰─$ acejudge Ace Judge V3.0 Beta3 (Released 01/04 2015) by CDQZ_laekov C - Configure R - Run Q - Quit c C - Config problem L - Show cfg now E - Load existing cfg file W - Save cfg file c IO data format %d Input data sufix .in Output data sufix .out Begin - End 1 10 Time limit(ms) 2000 Memory limit(MB) 512 Ace Judge V3.0 Beta3 (Released 01/04 2015) by CDQZ_laekov C - Configure R - Run Q - Quit c C - Config problem L - Show cfg now E - Load existing cfg file W - Save cfg file w Cfg file name: w.cfg Ace Judge V3.0 Beta3 (Released 01/04 2015) by CDQZ_laekov C - Configure R - Run Q - Quit r Program name a.cpp Testing program: a.cpp Compile ok Test case 1 Accepted time: 1213 MS memory: 65116 KB Test case 2 Accepted time: 206 MS memory: 9488 KB Test case 3 Accepted time: 325 MS memory: 9492 KB Test case 4 Accepted time: 15 MS memory: 9280 KB Test case 5 Accepted time: 1428 MS memory: 60760 KB Test case 6 Accepted time: 1832 MS memory: 60308 KB Test case 7 Accepted time: 19 MS memory: 9224 KB Test case 8 Accepted time: 1918 MS memory: 60328 KB Test case 9 Accepted time: 1352 MS memory: 60348 KB Test case 10 Accepted time: 1337 MS memory: 60132 KB Score ratio: 100.00% Valid time used: 9645 ms Max memory used: 65116 KB Press any key to continue Ace Judge V3.0 Beta3 (Released 01/04 2015) by CDQZ_laekov C - Configure R - Run Q - Quit q ╭─chaigidel@chaigidel-pc /tmp/rec ╰─$ cat w.cfg %d.in %d.out 1 10 2000 512 a.cpp ╭─chaigidel@chaigidel-pc /tmp/rec ╰─$ acejudge -fast w.cfg Testing program: a.cpp Compile ok Test case 1 Accepted time: 1230 MS memory: 65120 KB Test case 2 Accepted time: 266 MS memory: 9524 KB Test case 3 Accepted time: 313 MS memory: 9392 KB Test case 4 Accepted time: 17 MS memory: 9312 KB Test case 5 Accepted time: 1450 MS memory: 60720 KB Test case 6 Accepted time: 1924 MS memory: 60372 KB Test case 7 Accepted time: 24 MS memory: 9248 KB Test case 8 Time limit exceeded Test case 9 Accepted time: 1487 MS memory: 60320 KB Test case 10 Accepted time: 1507 MS memory: 60164 KB Score ratio: 90.00% Valid time used: 8218 ms Max memory used: 65120 KB Press any key to continue
acejudge 教程