Skip to content

andy-landy/cf

Repository files navigation

cf

Codeforces competitions automation.

example

$ 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
...

Features

  • 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.

Conventions

  • 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 are out$i with i in 0 1 2 ... . You can manually add new ones.

Requirements

  • 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.

About

codeforces competitions automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published