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
Events
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 }}
codezoned
Code
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Code
/
competitive programming
/
codeforces
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Code
/
competitive programming
/
codeforces
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1055A - Metro.cpp
1055A - Metro.cpp
1056A - Determine Line.cpp
1056A - Determine Line.cpp
1075A - The King's Race.cpp
1075A - The King's Race.cpp
10A - Power Consumption Calculation.cpp
10A - Power Consumption Calculation.cpp
110A - Nearly Lucky Number.cpp
110A - Nearly Lucky Number.cpp
1113A - Sasha and His Trip.cpp
1113A - Sasha and His Trip.cpp
112A - Petya and Strings.cpp
112A - Petya and Strings.cpp
1141B - Maximal Continuous Rest.cpp
1141B - Maximal Continuous Rest.cpp
1146A - Love A.cpp
1146A - Love A.cpp
115A - Party.cpp
115A - Party.cpp
1162A - Zoning Restrictions Again.cpp
1162A - Zoning Restrictions Again.cpp
116A - Tram.cpp
116A - Tram.cpp
1180A - Alex and a Rhombus.cpp
1180A - Alex and a Rhombus.cpp
1182A - Filling Shapes.cpp
1182A - Filling Shapes.cpp
1186A - Vus the Cossack and a Contest.cpp
1186A - Vus the Cossack and a Contest.cpp
1220A - Cards.cpp
1220A - Cards.cpp
1223A - CME.cpp
1223A - CME.cpp
122A - Lucky Division.cpp
122A - Lucky Division.cpp
1238A - Prime Subtraction.cpp
1238A - Prime Subtraction.cpp
1250F - Data Center.cpp
1250F - Data Center.cpp
1260B - Make Product Equal One.cpp
1260B - Make Product Equal One.cpp
1272A - Three Friends.cpp
1272A - Three Friends.cpp
1281A - Suffix Three.cpp
1281A - Suffix Three.cpp
1283B - Candies Division.cpp
1283B - Candies Division.cpp
1284A - New Year and Naming.cpp
1284A - New Year and Naming.cpp
1295A - Display The Number.cpp
1295A - Display The Number.cpp
1296B - Food Buying.cpp
1296B - Food Buying.cpp
12A - Super Agent.cpp
12A - Super Agent.cpp
131A - cAPS lOCK.cpp
131A - cAPS lOCK.cpp
1323A - Even Subset Sum Problem.cpp
1323A - Even Subset Sum Problem.cpp
1324A - Yet Another Tetris Problem.cpp
1324A - Yet Another Tetris Problem.cpp
1326B - Maximums.cpp
1326B - Maximums.cpp
1328A - Divisibility Problem.cpp
1328A - Divisibility Problem.cpp
1330A - Dreamoon and Ranking Collection.cpp
1330A - Dreamoon and Ranking Collection.cpp
1335A - Candies and Two Sisters.cpp
1335A - Candies and Two Sisters.cpp
1335B - Construct the String.cpp
1335B - Construct the String.cpp
1337B - Kana and Dragon Quest game.cpp
1337B - Kana and Dragon Quest game.cpp
1339A - Filling Diamonds.cpp
1339A - Filling Diamonds.cpp
133A - HQ9+.cpp
133A - HQ9+.cpp
1341A - Nastya and Rice.cpp
1341A - Nastya and Rice.cpp
1343A - Candies.cpp
1343A - Candies.cpp
1343B - Balanced Array.cpp
1343B - Balanced Array.cpp
1348A - Phoenix and Balance.cpp
1348A - Phoenix and Balance.cpp
1350A - Orac and Factors.cpp
1350A - Orac and Factors.cpp
1350C - Orac and LCM.cpp
1350C - Orac and LCM.cpp
1352A - Sum of Round Numbers.cpp
1352A - Sum of Round Numbers.cpp
1353A - Most Unstable Array.cpp
1353A - Most Unstable Array.cpp
1353B - Two Arrays And Swaps.cpp
1353B - Two Arrays And Swaps.cpp
1354A - Alarm Clock.cpp
1354A - Alarm Clock.cpp
1359B - New Theatre Square.cpp
1359B - New Theatre Square.cpp
1360A - Minimal Square.cpp
1360A - Minimal Square.cpp
1360B - Honest Coach.cpp
1360B - Honest Coach.cpp
1367A - Short Substrings.cpp
1367A - Short Substrings.cpp
1367B - Even Array.cpp
1367B - Even Array.cpp
136A - Presents.cpp
136A - Presents.cpp
1370A - Maximum GCD.cpp
1370A - Maximum GCD.cpp
1371A - Magical Sticks.cpp
1371A - Magical Sticks.cpp
1373B - 01 Game.cpp
1373B - 01 Game.cpp
1374A - Required Remainder.cpp
1374A - Required Remainder.cpp
1374B - Multiply by 2, divide by 6.cpp
1374B - Multiply by 2, divide by 6.cpp
1380A - Three Indices.cpp
1380A - Three Indices.cpp
1385B - Restore the Permutation by Merger.cpp
1385B - Restore the Permutation by Merger.cpp
1399B - Gifts Fixing.cpp
1399B - Gifts Fixing.cpp
1406A - Subset Mex.cpp
1406A - Subset Mex.cpp
1409A - Yet Another Two Integers Problem.cpp
1409A - Yet Another Two Integers Problem.cpp
1419A - Digit Game.cpp
1419A - Digit Game.cpp
141A - Amusing Joke.cpp
141A - Amusing Joke.cpp
1420A - Cubes Sorting.cpp
1420A - Cubes Sorting.cpp
1426B - Symmetric Matrix.cpp
1426B - Symmetric Matrix.cpp
1430A - Number of Apartments.cpp
1430A - Number of Apartments.cpp
1433C - Dominant Piranha.cpp
1433C - Dominant Piranha.cpp
1436B - Prime Square.cpp
1436B - Prime Square.cpp
1436B - Prime Square.exe
1436B - Prime Square.exe
1440A -Buy the String.cpp
1440A -Buy the String.cpp
1440B - Sum of Medians.cpp
1440B - Sum of Medians.cpp
144A - Arrival of the General.cpp
144A - Arrival of the General.cpp
1450A - Avoid Trygub.cpp
1450A - Avoid Trygub.cpp
1451B - Non-Substring Subsequence.cpp
1451B - Non-Substring Subsequence.cpp
1452A - Robot Program.cpp
1452A - Robot Program.cpp
1452C - Two Brackets.cpp
1452C - Two Brackets.cpp
1461A - String Generation.cpp
1461A - String Generation.cpp
1462B - Last Year's Substring.cpp
1462B - Last Year's Substring.cpp
1462C - Unique Number.cpp
1462C - Unique Number.cpp
1465A - In-game Chat.cpp
1465A - In-game Chat.cpp
1465B - Fair Numbers.cpp
1465B - Fair Numbers.cpp
1466A - Bovine Dilemma.cpp
1466A - Bovine Dilemma.cpp
1466B - Last minute enhancements.cpp
1466B - Last minute enhancements.cpp
1467A - Wizard of Orz.cpp
1467A - Wizard of Orz.cpp
1467B - Hills And Valleys.cpp
1467B - Hills And Valleys.cpp
1469B - Red and Blue.cpp
1469B - Red and Blue.cpp
1472B - Fair Division.cpp
1472B - Fair Division.cpp
1473A - Replacing Elements.cpp
1473A - Replacing Elements.cpp
1473B - String LCM.cpp
1473B - String LCM.cpp
1474A - Puzzle From the Future.cpp
1474A - Puzzle From the Future.cpp
1475A - Odd Divisor.cpp
1475A - Odd Divisor.cpp
1475B - New Year's Number.cpp
1475B - New Year's Number.cpp
1486A - Shifting Stacks.cpp
1486A - Shifting Stacks.cpp
148A - Insomnia cure.cpp
148A - Insomnia cure.cpp
1490A - Dense Array.cpp
1490A - Dense Array.cpp
1490B - Balanced Remainders.cpp
1490B - Balanced Remainders.cpp
View all files
README.MD
Codeforces problem solutions
Link to profile:
Codeforces
You can’t perform that action at this time.