A curated mini-collection of Codeforces 800-rated problems implemented in C++.
Every solution lives in 800/ and aligns with the original statement that you
can revisit through the included screenshots and the consolidated
questionsANDstepBYstepGuides.md file.
competitive_programming-codeforce/
βββ 800/
β βββ 1_Watermelon.cpp
β βββ 2_Way_Too_Long_Words.cpp
β βββ 3_Team.cpp
β βββ 4_Bitpp.cpp
β βββ 4_BitppRealLife.cpp # Analogy describing ++/-- intuitively
β βββ 4_incrementDecrementInDetailes.cpp
β βββ 5_Next_Round.cpp
β βββ questionsANDstepBYstepGuides.md # All screenshots + an extended note
β βββ Problem Questions Photos/ # PNG statements pulled from Codeforces
βββ README.md
CHECK THE 800 FOLDER FOR MORE!
| # | Problem | Core skill | Code & references |
|---|---|---|---|
| 1 | Watermelon | Basic parity & constructive proofs | 1_Watermelon.cpp Β· screenshot inside Problem Questions Photos/1)_Watermelon.png |
| 2 | Way Too Long Words | String compression logic | 2_Way_Too_Long_Words.cpp |
| 3 | Team | Aggregating teammate votes | 3_Team.cpp |
| 4 | Bit++ | Pre/post increment reasoning | 4_Bitpp.cpp Β· extra intuition files (4)_BitppRealLife.cpp, 4)_incrementDecrementInDetailes.cpp) |
| 5 | Next Round | Threshold filtering on sorted scores | 5_Next_Round.cpp Β· walkthrough in questionsANDstepBYstepGuides.md |
Tip: open
questionsANDstepBYstepGuides.mdif you want every screenshot in one place along with a plain-language breakdown of Next Round.
-
Install any C++17-capable compiler (MinGW-w64 g++, clang, MSVC, etc.).
-
Compile the file you care about. Example using PowerShell for Bit++:
cd E:\CP-GitHub_Clone\competitive_programming-codeforce g++ -std=c++17 -O2 .\800\4_Bitpp.cpp -o bitpp.exe .\bitpp.exe
-
Supply input exactly as Codeforces describes (copy/paste sample tests or use redirection:
Get-Content sample.txt | .\bitpp.exe).
- Skim the screenshot in
Problem Questions Photos/or the guide file, then attempt the implementation yourself before peeking at the provided.cpp. - Compare your approach with the repositoryβs version and record any takeaways
inside your own notes or by extending
questionsANDstepBYstepGuides.md. - When youβre ready for tougher sets, clone this layout for
900/,1000/, etc., to keep a consistent archive.
- Keep filenames in the
<index>)_<ProblemName>.cpppattern so the problem order stays consistent. - Add new screenshots to
Problem Questions Photos/and reference them from the guide file to maintain a single source of truth. - Future ideas:
- Automate compilation/testing via a small script or task file.
- Add commentary blocks inside each solution explaining key lines.
- Grow the catalog with more 800-level warmups or step up to 900+.
Happy grinding, and may every submission be Accepted! π