A comprehensive collection of my solutions to Codeforces competitive programming problems. This repository contains solutions across various difficulty levels and algorithmic concepts.
- Total Problems Solved: 50+
- Contests Covered: 30+ different contests
- Language: C++
- Difficulty Range: From beginner to advanced
Codeforces-problems/
├── {contest_number}/
│ └── {problem_id}/
│ └── main.cpp
Each problem is organized by contest number and problem identifier (e.g., 1520/1520D/ for contest 1520, problem D).
- Dijkstra's Algorithm: 20C (Shortest Path)
- Graph Traversal: Various connectivity and pathfinding problems
- Arrays and Vectors: Multiple array manipulation problems
- Priority Queues: Used in graph algorithms
- Number Theory: GCD, modular arithmetic
- Combinatorics: Counting and arrangement problems
- Geometry: Basic geometric calculations
- String Manipulation: Character operations and transformations
- Pattern Matching: String analysis problems
- Optimization Problems: Making locally optimal choices
- Sorting and Selection: Various sorting-based solutions
- 1520D: Array analysis and mathematical insights
- 20C: Dijkstra's shortest path algorithm implementation
- 707B: Graph connectivity and minimum distance problems
- 1A: Basic mathematical calculations
- 4A: Simple conditional logic
- 71A: String manipulation
-
Clone the repository:
git clone https://github.com/yourusername/Codeforces-problems.git cd Codeforces-problems -
Compile and run:
g++ -o main.exe main.cpp ./main.exe
-
Browse by contest: Navigate to any contest folder to find specific problems
- 2132A: Homework
- 2132B: The Secret Number
- 2132C1: The Cunning Seller (easy version)
- 2132C2: The Cunning Seller (hard version)
- 1760C: Advantage
- 1703B: ICPC Balloons
- 1520D: Same Differences
- 1208C: Magic Grid
- 1208D: Restore Permutation
- 1203C: Common Divisors
- 1196D2: RGB Substring (hard version)
- 1093A: Dice Rolling
- 1093C: Mishka and the Last Exam
- 1061A: Coins
- 1016A: Death Note
- 998B: Cutting
- 992A: Nastya and an Array
- 977A: Wrong Subtraction
- 977D: Divide by three, multiply by two
- 940B: Our Tanya is Crying Out Loud
- 935A: Fafa and his Company
- 847G: University Classes
- 842B: Gleb And Pizza
- 755C: PolandBall and Forest
- 707B: Bakery
- 630A: Again Twenty Five!
- 523A: Rotate, Flip and Zoom
- 433B: Kuriyama Mirai's Stones
- 368B: Sereja and Suffixes
- 356A: Knight Tournament
- 282A: Bit++
- 263A: Beautiful Matrix
- 231A: Team
- 213B: Numbers
- 189A: Cut Ribbon
- 158A: Next Round
- 112A: Petya and Strings
- 71A: Way Too Long Words
- 50A: Domino piling
- 35D: Animals
- 20C: Dijkstra?
- 6B: President's Office
- 4A: Watermelon
- 4C: Registration System
- 1A: Theatre Square
- 1B: Spreadsheet
- 1C: Ancient Berland Circus
- 705A: Hulk
This repository serves as a personal progress tracker for competitive programming skills development. Each solution represents a step forward in algorithmic thinking and problem-solving abilities.
While this is primarily a personal repository, suggestions and improvements are welcome! Feel free to:
- Report bugs in existing solutions
- Suggest optimizations
- Share alternative approaches
- Codeforces - The original platform
- Competitive Programming Guide - Algorithm reference
- AtCoder - Additional practice platform