Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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


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 AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page