Welcome to the Competitive Programming Repository! This repository contains solutions to various Codeforces contests, organized contest-wise under the codeforces
folder. Each contest folder contains solutions to problems from that particular contest, coded in different programming languages.
The repository is structured as follows:
.
├── codeforces
│ ├── 1234 (Div X)
│ │ ├── A.cpp
│ │ ├── B.cpp
│ │ ├── C.cpp
│ │ └── D.cpp
│ ├── 5678 (Div Y)
│ │ ├── A.cpp
│ │ ├── B.cpp
│ │ ├── C.cpp
│ │ └── D.cpp
│ └── ...
├── LICENSE
└── README.md
codeforces/<contest_number>_(<contest_type>)
: Each contest is represented by a folder named<contest_number>_(<contest_type>)
.- Each contest folder contains solutions to the problems, named according to the problem letter (e.g.,
A.cpp
,B.py
).
To get started with using the solutions in this repository:
- Clone the repository:
git clone https://github.com/yourusername/competitive-programming.git cd competitive-programming
- Navigate to the desired contest folder:
cd codeforces/contest_<contest_number>
- Run the solutions:
- For C++ solutions:
g++ -o A A.cpp ./A
- For Python solutions:
python3 A.py
- For C++ solutions:
We welcome contributions from the community! To contribute:
-
Fork the repository:
Click on the "Fork" button at the top right corner of this page to fork this repository.
-
Clone your forked repository:
git clone https://github.com/yourusername/competitive-programming.git cd competitive-programming
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Add description of your changes"
-
Push your changes to your forked repository:
git push origin feature/your-feature-name
-
Create a pull request:
Go to the original repository on GitHub and create a pull request from your fork.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, feel free to open an issue.
Happy coding!