Skip to content

For Competitive Programming, parse and run sample tests from AtCoder and CodeForces.

Notifications You must be signed in to change notification settings

sawamotokai/sample-test-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Sample Test Runner?

Sample Test Runner:

  • scrapes sample inputs and outputs of coding contests on AtCoder and CodeForces - two of the major competitive programming platforms.
  • runs sample tests against your solution and shows stats (only C++ is supported).

Demo

  • Parse contest Parsing contest
  • Run Sample Tests Run Sample Tests

Installation

Run the following commands in terminal.

sudo chmod +x install.sh
sudo ./install.sh

If you want to use this program during contests, you have to set the following environment variables for the program to be authenticated by the contest website.

export ATCODER_USERNAME=<your username>
export ATCODER_PASSWORD=<your password>
export CODEFORCES_USERNAME=<your username>
export CODEFORCES_PASSWORD=<your password>

How to use the program

Fetching test cases

Run below command and follow the command line instructions.

cpget

Testing your solution

  • run the following in the workspace created (NOT inside a specific problem directory).
cprun <test case alphabet>

Example: cprun c

Releases

No releases published

Packages

No packages published