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


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 details)

Uploaded Source

File details

Details for the file JMaster-1.0.3.tar.gz.

File metadata

  • Download URL: JMaster-1.0.3.tar.gz
  • Upload date:
  • Size: 739.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for JMaster-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3c60956808290d286d67fe35a7ebae8f217dfdd9659caa0d8f54cd267fe8d3cc
MD5 2e13b4e4777d098be9e8ca73a709f295
BLAKE2b-256 c4239dba8f87608c9bef85576afd27b89967a53b4918fe6bba3c79d3c2a8adf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page