jmaster,codeforces的竞赛解析器和测试程序
JMaster的Python项目详细描述
解析codeforces竞赛和自动测试样本。
安装
使用pip
$ pip3 install JMaster
手动
$ git clone https://github.com/palayutm/JMaster.git
$ cd JMaster
$ python3 setup.py install
用法
查看比赛信息
$ JMaster contest
分析竞赛
分析正常比赛
$ JMaster parse CONTEST_ID
分析健身房竞赛
$ JMaster parse --gym CONTEST_ID
试样
$ JMaster test CPP_FILE [SAMPLE_FILE]
示例代码(a.cc)
#include<bits/stdc++.h>usingnamespacestd;intmain(intargc,char*argv[]){inta,b;cin>>a>>b;assert(a>b);// test runtime error cout<<a+b<<endl;return0;}
测试用例(a.样本)
-- normal test 2 1 -- 3 -- runtime error test 1 1 -- 2 -- wrong answer test 2 1 -- 4
进一步使用
$ JMaster --help