Skip to main content

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

This version
History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
JMaster-1.0.3.tar.gz (739.1 kB) Copy SHA256 hash SHA256 Source None Jan 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page