Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rohitcode26
codeforces-solutions
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
codeforces-solutions
Public
Notifications
You must be signed in to change notification settings
Fork
4
(
4
)
Star
1
(
1
)
You must be signed in to star a repository
About
source code for codeforces problems
Topics
algortihms
codeforces
codeforces-com
codeforces-problems
codeforces-solutions
competitve-programming
cpp
cpp11
cpp14
cpp17
data-structures
solutions
Activity
Stars
1
star
Watchers
1
watching
Forks
4
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
47 Commits
47 Commits
Folders and files
Name
Name
Last commit message
Last commit date
A and B and Compilation Errors.cpp
A and B and Compilation Errors.cpp
A and B and chess.cpp
A and B and chess.cpp
Adding Powers.cpp
Adding Powers.cpp
Alex and a Rhombus.cpp
Alex and a Rhombus.cpp
Alice, Bob and Candies.cpp
Alice, Bob and Candies.cpp
Alternating Subsequence.cpp
Alternating Subsequence.cpp
Amr and Pins.cpp
Amr and Pins.cpp
Andryusha and Colored Balloons.cpp
Andryusha and Colored Balloons.cpp
Andryusha and Socks.cpp
Andryusha and Socks.cpp
Anti-Sudoku.cpp
Anti-Sudoku.cpp
Anton and Digits.cpp
Anton and Digits.cpp
Anton and Making Potions.cpp
Anton and Making Potions.cpp
Array Sharpening.cpp
Array Sharpening.cpp
Array Splitting.cpp
Array Splitting.cpp
Bachgold Problem.cpp
Bachgold Problem.cpp
Bad Ugly Numbers.cpp
Bad Ugly Numbers.cpp
Balanced Array.cpp
Balanced Array.cpp
Balanced Team.cpp
Balanced Team.cpp
Basketball Exercise.cpp
Basketball Exercise.cpp
Bear and Friendship Condition.cpp
Bear and Friendship Condition.cpp
Bear and Poker.cpp
Bear and Poker.cpp
Bear and Three Musketeers.cpp
Bear and Three Musketeers.cpp
BerSU Ball.cpp
BerSU Ball.cpp
Binary Period.cpp
Binary Period.cpp
Biridian Forest.cpp
Biridian Forest.cpp
Board Moves.cpp
Board Moves.cpp
Bogosort.cpp
Bogosort.cpp
Books Exchange (easy version).cpp
Books Exchange (easy version).cpp
Books.cpp
Books.cpp
Boredom.cpp
Boredom.cpp
Boxes Packing.cpp
Boxes Packing.cpp
Buying Shovels.cpp
Buying Shovels.cpp
Candies and Two Sisters.cpp
Candies and Two Sisters.cpp
Candies.cpp
Candies.cpp
Candy Box (easy version).cpp
Candy Box (easy version).cpp
Card Constructions.cpp
Card Constructions.cpp
Cloning Toys.cpp
Cloning Toys.cpp
Co-prime Array.cpp
Co-prime Array.cpp
Coach.cpp
Coach.cpp
Complete the Word.cpp
Complete the Word.cpp
Composite Coloring.cpp
Composite Coloring.cpp
Computer Game.cpp
Computer Game.cpp
Constant Palindrome Sum.cpp
Constant Palindrome Sum.cpp
Constanze's Machine.cpp
Constanze's Machine.cpp
Construct the String.cpp
Construct the String.cpp
Constructing Tests.cpp
Constructing Tests.cpp
Constructing the Array.cpp
Constructing the Array.cpp
CopyCopyCopyCopyCopy.cpp
CopyCopyCopyCopyCopy.cpp
Cormen — The Best Friend Of a Man.cpp
Cormen — The Best Friend Of a Man.cpp
Cow and Friend.cpp
Cow and Friend.cpp
Cow and Haybales.cpp
Cow and Haybales.cpp
Cut 'em all!.cpp
Cut 'em all!.cpp
Cyclic Components.cpp
Cyclic Components.cpp
DZY Loves Chemistry ( DSU code ).cpp
DZY Loves Chemistry ( DSU code ).cpp
DZY Loves Chemistry.cpp
DZY Loves Chemistry.cpp
DZY loves chessboard.cpp
DZY loves chessboard.cpp
Deadline.cpp
Deadline.cpp
Decreasing Heights.cpp
Decreasing Heights.cpp
Devu and his Brother.cpp
Devu and his Brother.cpp
Dice Tower.cpp
Dice Tower.cpp
Dima and Bacteria.cpp
Dima and Bacteria.cpp
Diverse Garland.cpp
Diverse Garland.cpp
Divide by three, multiply by two.cpp
Divide by three, multiply by two.cpp
Divisibility Problem.cpp
Divisibility Problem.cpp
Divisibility by Eight.cpp
Divisibility by Eight.cpp
Dominated Subarray.cpp
Dominated Subarray.cpp
Drazil and Factorial.cpp
Drazil and Factorial.cpp
Dreamoon Likes Permutations.cpp
Dreamoon Likes Permutations.cpp
Dreamoon and Ranking Collection.cpp
Dreamoon and Ranking Collection.cpp
Dreamoon and WiFi.cpp
Dreamoon and WiFi.cpp
Duff in Love.cpp
Duff in Love.cpp
Dungeons and Candies.cpp
Dungeons and Candies.cpp
Edgy Trees.cpp
Edgy Trees.cpp
EhAb AnD gCd.cpp
EhAb AnD gCd.cpp
Ehab and Path-etic MEXs.cpp
Ehab and Path-etic MEXs.cpp
Equalize Prices.cpp
Equalize Prices.cpp
Even But Not Even.cpp
Even But Not Even.cpp
Even Subset Sum Problem.cpp
Even Subset Sum Problem.cpp
Exams.cpp
Exams.cpp
Exercising Walk.cpp
Exercising Walk.cpp
Fadi and LCM.cpp
Fadi and LCM.cpp
Fafa and his Company.cpp
Fafa and his Company.cpp
Fedor and New Game.cpp
Fedor and New Game.cpp
Fedya and Maths.cpp
Fedya and Maths.cpp
Filling Diamonds.cpp
Filling Diamonds.cpp
Fix a Tree.cpp
Fix a Tree.cpp
Fixing Typos.cpp
Fixing Typos.cpp
Fox And Two Dots.cpp
Fox And Two Dots.cpp
Fox and Box Accumulation.cpp
Fox and Box Accumulation.cpp
Fridge Lockers.cpp
Fridge Lockers.cpp
Game With Array.cpp
Game With Array.cpp
Given Length and Sum of Digits.cpp
Given Length and Sum of Digits.cpp
Good Array.cpp
Good Array.cpp
HQ9+.cpp
HQ9+.cpp
Hamster Farm.cpp
Hamster Farm.cpp
Han Solo and Lazer Gun.cpp
Han Solo and Lazer Gun.cpp
Hard Process.cpp
Hard Process.cpp
Hilbert's Hotel.cpp
Hilbert's Hotel.cpp
Hit the Lottery.cpp
Hit the Lottery.cpp
Honest coach.cpp
Honest coach.cpp
View all files
About
source code for codeforces problems
Topics
algortihms
codeforces
codeforces-com
codeforces-problems
codeforces-solutions
competitve-programming
cpp
cpp11
cpp14
cpp17
data-structures
solutions
Activity
Stars
1
star
Watchers
1
watching
Forks
4
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.