Codeforces competitions automation.
$ ln -s /path/to/cf ~/cf
$ mkdir todays_competition
$ cd todays_competition
$ ~/cf/prepare_problem_dirs --contest 1379 --names A B C D E F1 F2
$ cd A
$ vim solve.cpp # repeat
$ ~/cf/test_cpp # until tests are OK
# now submit main.cpp via website
$ cd ../B
$ vim main.py # repeat
$ ~/cf/test_py # utill tests are OK
# now submit main.py via website
$ cd ../C
...
- Makes a dir tree with code stubs.
- Downloads sample inputs and outputs.
- Allows local cpp includes, making a pretty single
main.cpp
. - Tests the code against downloaded inputs and outputs.
- C++ code to edit is
solve.cpp
. - C++ code to submit is
main.cpp
. - Python code to edit and submit is
main.py
. - Inputs are
in$i
, outputs areout$i
withi
in0 1 2 ...
. You can manually add new ones.
- Python 3.6+.
- Install extra libs with
pip install -r requirements.txt
. - For C++ you need
g++
with-std=c++2a
and-fconcepts
, version 9 is fine.