Skip to content

shehap0/icpc-codeforces-problemswithsolve-cpp

Repository files navigation

ICPC Problem Solutions

A personal archive of solutions to competitive programming problems from Codeforces, originally created for the ICPC Assiut University (Egypt) training contests. Most solutions are written in C++, with a few early problems also solved in Python.

This is an old learning repo. Some solutions are clean, some are messy, and some are straight up wrong — I kept them all on purpose to track how I learned. I'm no genius, just someone who kept showing up.


Repository Structure

Problems are grouped by topic, roughly in the order I learned them:

# Topic C++
1 Data Types 43
2 Loops 23
3 Arrays 27
4 Strings 27
5 Functions 18
6 Math / Number Theory 6
7 Recursion 25
8 General — Easy 21
9 General — Medium 6

Folder 6 also includes a Number Theory.pdf reference, and folder 7 includes a Recursion Level #0.pdf from the training sessions.


File Naming Conventions

The filenames are a little chaotic on purpose — they were my own way of tagging things while practicing:

  • A_ProblemName.cpp — the letter prefix matches the problem letter on the Codeforces contest page (A, B, C, ...).
  • ..._WRONG.cpp — submission that failed; kept as a reminder.
  • ..._TIMEEXCEEDED.cpp — correct logic but too slow.
  • ..._GPT.cpp / {CHATGPT}.cpp — a version written or fixed with ChatGPT for comparison.
  • ..._easyway.cpp / ..._hardway.cpp — two different approaches to the same problem.

Getting Started

Clone the repository:

git clone https://github.com/shehap0/c--.git

Source

All problems come from Codeforces, from contests and problem sets prepared by the ICPC community at Assiut University, Egypt.


License

Free to use for learning. Don't copy-paste into your own contests — solve them yourself, it's way more fun (and you'll actually learn).

About

here the webiste to read the problems ,and try by yourself before checking the answer by c++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages