A collection of C++ solutions to competitive programming problems, solved on Codeforces and VJudge.
Solutions are organized by platform, and within Codeforces, by division and round:
codeforces/
div_2/
round_<id>/
problem_a.cpp
problem_b.cpp
...
div_3/
div_4/
global/
round_<id>/
...
vjudge/
<contest_name>/
problem_a.cpp
...
Each file corresponds to a single problem, named after its letter in the contest (problem_a.cpp, problem_b.cpp, ...). Multi-part problems use a numeric suffix (e.g. problem_c_1.cpp, problem_c_2.cpp).
Each solution is a standalone, single-file program. Compile with g++:
g++ -o solution path/to/problem_a.cpp
./solution < input.txtMIT License — see LICENSE.