https://github.com/swapnilsachan03/codeforces
Solutions to all the problems that I solve on Codeforces.
https://github.com/swapnilsachan03/codeforces
algorithms codeforces data-structures
Last synced: 12 months ago
JSON representation
Solutions to all the problems that I solve on Codeforces.
- Host: GitHub
- URL: https://github.com/swapnilsachan03/codeforces
- Owner: swapnilsachan03
- Created: 2024-01-26T05:09:25.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T04:05:17.000Z (about 1 year ago)
- Last Synced: 2025-02-21T05:18:52.648Z (about 1 year ago)
- Topics: algorithms, codeforces, data-structures
- Language: C++
- Homepage: https://codeforces.com/profile/swapnilsachan03
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swapnil's Codeforces Solutions
This repository contains my solutions to various Codeforces problems that I have solved. The solutions are mostly implemented in C++.
## 📂 Repository Structure
- `/` - Contains all my solutions categorized by problem ID.
- `cph/` - Includes input-output test cases for cph.
- `.gitignore` - Specifies intentionally untracked files to ignore.
- `README.md` - This file.
## 🚀 How to Use
1. **Clone the repository**
```sh
git clone https://github.com/swapnilsachan03/codeforces.git
cd codeforces
```
2. **Read a problem solution**
```sh
A_Buttons # Example: Problem - 1858A - Buttons
```
3. **Compile and Run (C++ Example)**
```sh
g++ -std=c++17 -O2 -Wall A_Buttons.cpp -o A_Buttons.out
./A_Buttons.out < testcases/A_Buttons_input.txt > output.txt
```
*__or__* you can install *__cph extension in VS Code__*, the repository contains all the testcase files for every problem which cph needs to run the code.
## 📝 Must-Try Codeforces Problems
Here is a list of problems that I believe everyone should try to improve their problem-solving skills:
### **Rated A/B (Beginner Level)**
- 4A - Watermelon
- 71A - Way Too Long Words
- 231A - Team
- 282A - Bit++
- 112A - Petya and Strings
### **Rated C/D (Intermediate Level)**
- 327A - Flipping Game
- 514C - Watto and Mechanism
- 580C - Kefa and Park (Graph)
- 1102C - Doors Breaking and Repairing
- 118D - Caesar's Legions (DP)
### **Rated D+ (Advanced Level)**
- 466C - Number of Ways (Prefix Sum)
- 519D - A and B and Interesting Substrings
- 580D - Kefa and Dishes (Bitmask DP)
- 609E - Minimum spanning tree for each edge
- 1140G - Two Different (Graph Theory)
## ⭐ Contributions
This is a personal repository, but if you find a bug or a better approach to a problem, feel free to open an issue or submit a pull request!
## 📜 License
This repository is for educational purposes. Feel free to use the solutions for learning, but do not use them for cheating in contests.
Happy Coding! 🚀