Codeforces API wrapper for python
Project description
python-codeforces
Codeforces API wrapper for python
Installation
Using pip
pip install python-codeforces
From source
git clone https://github.com/Mukundan314/python-codeforces.git
cd python-codeforces
pip install .
For Development
git clone https://github.com/Mukundan314/python-codeforces.git
cd python-codeforces
pip install -e .
Using cf-run
usage: cf-run [-h] [-t TIMEOUT] [-g] contestId index program
positional arguments:
contestId Id of the contest. It is not the round number. It can
be seen in contest URL.
index A letter or a letter followed by a digit, that
represent a problem index in a contest.
program Path to executable that needs to be tested
optional arguments:
-h, --help show this help message and exit
-t TIMEOUT, --timeout TIMEOUT
Timeout for program in seconds, -1 for no time limit
(default: 10)
-g, --gym If true open gym contest instead of regular contest.
(default: false)
Example:
$ gcc a.c -o ./out
$ cf-run 1100 A ./out
A. Roman and Browser
time limit per test: 1 second
memory limit per test: 256 megabytes
--------------------------------------------------------------------------------
Time: 16 ms
Input
4 2
1 1 -1 1
Participant's output
2
Jury's answer
2
--------------------------------------------------------------------------------
Time: 19 ms
Input
14 3
-1 1 -1 -1 1 -1 -1 1 -1 -1 1 -1 -1 1
Participant's output
9
Jury's answer
9
Documentation
Documentation can be found at https://python-codeforces.readthedocs.io/en/latest/
License
See LICENSE.
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
Built Distribution
Close
Hashes for python_codeforces-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc85497b0369ae6cad7b35c9eecf371aedf4aac3d56719fb5153e6e8b4bd047 |
|
MD5 | e590ba6bff1599e24c4b92576c26ac0b |
|
BLAKE2b-256 | 8536063bc081db62a3a580a9650067859b8c8812d1ed7235d0fcde0ced5df94d |