JMaster, contest parser and tester for CodeForces
Project description
Parse CodeForces contests and auto test sample.
Install
Using pip
$ pip3 install JMaster
Manual
$ git clone https://github.com/palayutm/JMaster.git
$ cd JMaster
$ python3 setup.py install
Usage
View contest info
$ JMaster contest
Parse contest
Parse normal contests
$ JMaster parse CONTEST_ID
Parse gym contests
$ JMaster parse --gym CONTEST_ID
Test sample
$ JMaster test CPP_FILE [SAMPLE_FILE]
sample code (a.cc)
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
int a, b;
cin >> a >> b;
assert(a > b); // test runtime error
cout << a + b << endl;
return 0;
}
test case (a.sample)
-- normal test 2 1 -- 3 -- runtime error test 1 1 -- 2 -- wrong answer test 2 1 -- 4
Further Usage
$ JMaster --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
JMaster-1.0.3.tar.gz
(739.1 kB
view hashes)