Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.62 KB

File metadata and controls

56 lines (39 loc) · 1.62 KB

Competitive Marathon

Programming marathon problems and solutions — Beecrowd, Codeforces, Atcoder and friends.

Language License


Repository structure

Everything is organized in the same way for every online judge:

Online Judge
└── Contest (number, name or date — *if* any)
    └── Problem (letter, number or name)

Example

OBI/
└── 2015-F1/                       # contest = year & phase
    └── Metro/                     # problem = Metro
        ├── metro.cpp              # solution
        ├── metro.in               # sample input
        └── metro.in2              # extra test input

The judges currently covered:

Judge Folder Contest folder Problem folder
OBI (Olímpíada Brasileira de Informática) OBI/ year & phase (e.g. 2015-F1) problem name (e.g. Metro)
Beecrowd Beecrowd/ problem number (e.g. 1001)
Codeforces Codeforces/ contest id (e.g. 271) letter & name (e.g. D-Good-Substrings)
SPOJ SPOJ/ problem code (e.g. NHAY)

Running the solutions

g++ -O2 -std=c++17 OBI/2015-F1/Metro/metro.cpp -o metro
./metro < OBI/2015-F1/Metro/metro.in

Conventions

  • Solutions are written in C++ (anything from C++11 to C++23).
  • Each problem folder may include test inputs (*.in) and, if needed, a short note on the approach.

Problem statements belong to their respective judges/olympids.