Skip to main content

Codeforces API wrapper for python

Project description

python-codeforces

Documentation Status

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

cf-run [contestId] [index] [program]

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

python-codeforces-0.2.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

python_codeforces-0.2.2-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

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