Skip to content

Latest commit

 

History

History

Codeforces

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Codeforces

Solutions to some of the questions on the Codeforces website.

Solutions

Problem Solution Problem Statement Difficulty
1A.cpp Theatre Square 1000
4A.cpp Watermelon 800
4C.cpp Registration system 1300
25A.cpp IQ test 1300
32B.cpp Borze 800
34B.cpp Sale 900
41A.cpp Translation 800
50A.cpp Domino piling 800
58A.cpp Chat room 1000
59A.cpp Word 800
61A.cpp Ultra-Fast Mathematician 800
69A.cpp Young Physicist 1000
71A.cpp Way Too Long Words 800
96A.cpp Football 900
110A.cpp Nearly Lucky Number 800
112A.cpp Petya and Strings 800
116A.cpp Tram 800
118A.cpp String Task 1000
122A.cpp Lucky Division 1000
131A.cpp cAPS lOCK 1000
133A.cpp HQ9+ 900
136A.cpp Presents 800
141A.cpp Amusing Joke 800
144A.cpp Arrival of the General 800
148A.cpp Insomnia cure 800
158A.cpp Next Round 800
158B.cpp Taxi 1100
160A.cpp Twins 900
200B.cpp Drinks 800
208A.cpp Dubstep 900
228A.cpp Is your horseshoe on the other hoof? 800
230A.cpp Dragons 1000
230B.cpp T-primes 1300
231A.cpp Team 800
236A.cpp Boy or Girl 800
263A.cpp Beautiful Matrix 800
266A.cpp Stones on the Table 800
266B.cpp Queue at the School 800
268A.cpp Games 800
271A.cpp Beautiful Year 800
279B.cpp Books 1400
281A.cpp Word Capitalization 800
282A.cpp Bit++ 800
318A.cpp Even Odds 900
337A.cpp Puzzles 900
339A.cpp Helpful Maths 800
339B.cpp Xenia and Ringroad 1000
344A.cpp Magnets 800
363B.cpp Fence 1100
368B.cpp Sereja and Suffixes 1100
405A.cpp Gravity Flip 900
443A.cpp Anton and Letters 800
451A.cpp Game With Sticks 900
451B.cpp Sort the Array 1300
459B.cpp Pashmak and Flowers 1300
466A.cpp Cheap Travel 1200
466C.cpp Number of Ways 1700
467A.cpp George and Accommodation 800
469A.cpp I Wanna Be the Guy 800
479A.cpp Expression 1000
486A.cpp Calculating Function 800
489B.cpp BerSU Ball 1200
489C.cpp Given Length and Sum of Digits... 1400
492B.cpp Vanya and Lanterns 1200
514A.cpp Chewbaсca and Number 1200
514B.cpp Han Solo and Lazer Gun 1400
519B.cpp A and B and Compilation Errors 1100
520A.cpp Pangram 800
520B.cpp Two Buttons 1400
546A.cpp Soldier and Bananas 800
580A.cpp Kefa and First Steps 900
580C.cpp Kefa and Park 1500
617A.cpp Elephant 800
656F.cpp Ace It! 1900
677A.cpp Vanya and Fence 800
705A.cpp Hulk 800
734A.cpp Anton and Danik 800
785A.cpp Anton and Polyhedrons 800
791A.cpp Bear and Big Brother 800
977A.cpp Wrong Subtraction 800
996A.cpp Hit the Lottery 800
996B.cpp World Cup 1300
1030A.cpp In Search of an Easy Problem 800
1056A.cpp Determine Line 800
1056B.cpp Divide Candies 1600
1061A.cpp Coins 800
1061B.cpp Views Matter 1400
1080A.cpp Petya and Origami 800
1080B.cpp Margarite and the best present 900
1080C.cpp Masha and two friends 1500
1082A.cpp Vasya and Book 1200
1082B.cpp Vova and Trophies 1600
1104A.cpp Splitting into digits 800
1104B.cpp Game with string 1200
1106A.cpp Lunar New Year and Cross Counting 800
1106B.cpp Lunar New Year and Food Ordering 1500
1106C.cpp Lunar New Year and Number Division 900
1106D.cpp Lunar New Year and a Wander 1500
1108A.cpp Two distinct points 800
1108B.cpp Divisors of Two Integers 1100
1108C.cpp Nice Garland 1300
1108D.cpp Diverse Garland 1400
1114A.cpp Got Any Grapes? 800
1114B.cpp Yet Another Array Partitioning Task 1500
1201B.cpp Zero Array 1500
1234A.cpp Equalize Prices Again 800
1234B1.cpp Social Network (easy version) 1000
1234B2.cpp Social Network (hard version) 1300
1234C.cpp Pipes 1500
1234D.cpp Distinct Characters Queries 1600
1265A.cpp Beautiful String 1000
1265B.cpp Beautiful Numbers 1300
1265C.cpp Beautiful Regional Contest 1500
1265D.cpp Beautiful Sequence 1900
1269A.cpp Equation 800
1269B.cpp Modulo Equality 1500
1269C.cpp Long Beautiful Integer 1700
1269D.cpp Domino for Young 2000
1270A.cpp Card Game 800
1270B.cpp Interesting Subarray 1200
1270C.cpp Make Good 1400
1271A.cpp Suits 800
1271B.cpp Blocks 1300
1271C.cpp Shawarma Tent 1300
1271D.cpp Portals 2100
1271E.cpp Common Number 2100
1272A.cpp Three Friends 900
1272B.cpp Snow Walking Robot 1200
1272C.cpp Yet Another Broken Keyboard 1200
1272D.cpp Remove One Element 1500
1277A.cpp Happy Birthday, Polycarp! 1000
1277B.cpp Make Them Odd 1200
1277C.cpp As Simple as One and Two 1400
1278A.cpp Shuffle Hashing 1000
1278B.cpp A and B 1500
1278C.cpp Berry Jam 1700
1278D.cpp Segment Tree 2100
1281A.cpp Suffix Three 800
1281B.cpp Azamon Web Services 1600
1281C.cpp Cut and Paste 1700
1281D.cpp Beingawesomeism 1800
1282A.cpp Temporarily unavailable 900
1282B1.cpp K for the Price of One (Easy Version) 1400
1282B2.cpp K for the Price of One (Hard Version) 1600
1282C.cpp Petya and Exam 1800
1283A.cpp Minutes Before the New Year 800
1283B.cpp Candies Division 900
1283C.cpp Friends and Gifts 1500
1283D.cpp Christmas Trees 1800
1283E.cpp New Year Parties 1800
1284A.cpp New Year and Naming 800
1284B.cpp New Year and Ascent Sequence 1400
1284C.cpp New Year and Permutation 1600
1285A.cpp Mezo Playing Zoma 800
1285B.cpp Just Eat It! 1300
1285C.cpp Fadi and LCM 1400
1285D.cpp Dr. Evil Underscores 1900
1287A.cpp Angry Students 800
1287B.cpp Hyperset 1500
1287C.cpp Garland 1800
1287D.cpp Numbers on Tree 1800
1296A.cpp Array with Odd Sum 800
1296B.cpp Food Buying 900
1296C.cpp Yet Another Walking Robot 1500
1296D.cpp Fight with Monsters 1500
1296E1.cpp String Coloring (easy version) 1800
1296E2.cpp String Coloring (hard version) 2000
1328A.cpp Divisibility Problem 800
1328B.cpp K-th Beautiful String 1300
1328C.cpp Ternary XOR 1200
1328D.cpp Carousel 1800
1328E.cpp Tree Queries 1900
1330A.cpp Dreamoon and Ranking Collection 900
1330B.cpp Dreamoon Likes Permutations 1400
1330C.cpp Dreamoon Likes Coloring 1800
1330D.cpp Dreamoon Likes Sequences 1700
1331A.cpp Is it rated?
1331B.cpp Limericks
1331C.cpp ...And after happily lived ever they
1331D.cpp Again?
1333A.cpp Little Artem 1000
1333B.cpp Kind Anton 1100
1333C.cpp Eugene and an array 1700
1333D.cpp Challenges in school №41 2100
1333E.cpp Road to 1600 2400
1333F.cpp Kate and imperfection 2200
1334A.cpp Level Statistics 1200
1334B.cpp Middle Class 1100
1334C.cpp Circle of Monsters 1600
1335A.cpp Candies and Two Sisters 800
1335B.cpp Construct the String 900
1335C.cpp Two Teams Composing 1100
1335D.cpp Anti-Sudoku 1300
1335E1.cpp Three Blocks Palindrome (easy version) 1700
1335E2.cpp Three Blocks Palindrome (hard version) 1800
1335F.cpp Robots on a Grid 2200
1339A.cpp Filling Diamonds 900
1339B.cpp Sorted Adjacent Differences 1200
1339C.cpp Powered Addition 1500
1339D.cpp Edge Weight Assignment 1800
1343C.cpp Alternating Subsequence 1200
1352C.cpp K-th Not Divisible by n 1200
1353C.cpp Board Moves 1000
1360B.cpp Honest Coach 800
1365B.cpp Trouble Sort 1300
1368A.cpp C+= 800
1370D.cpp Odd-Even Subsequence 2000
1373A.cpp Donut Shops 1000
1373B.cpp 01 Game 900
1373C.cpp Pluses and Minuses 1300
1373D.cpp Maximum Sum on Even Positions 1600
1373E.cpp Sum of Digits 2200
1374A.cpp Required Remainder 800
1374B.cpp Multiply by 2, divide by 6 900
1374B.cpp Multiply by 2, divide by 6 900
1374C.cpp Move Brackets 1000
1374D.cpp Zero Remainder Array 1400
1374E1.cpp Reading Books (easy version) 1600
1385B.cpp Restore the Permutation by Merger 800
1397A.cpp Juggling Letters 800
1397B.cpp Power Sequence 1500
1397C.cpp Multiples of Length 1600
1397D.cpp Stoned Game 1800
1398C.cpp Good Subarrays 1600
1399A.cpp Remove Smallest 800
1399B.cpp Gifts Fixing 800
1399C.cpp Boats Competition
1399D.cpp Binary String To Subsequences
1399E1.cpp Weights Division (easy version)
1399E2.cpp Weights Division (hard version)
1472B.cpp Fair Division 800
1475B.cpp New Year's Number 900
1509A.cpp Average Height 800
1509B.cpp TMT Document 1100
1512A.cpp Spy Detected! 800
1512B.cpp Almost Rectangle 800
1512C.cpp A-B Palindrome 1200
1512D.cpp Corrupted Array 1200
1512E.cpp Permutation by Sum 1600
1512F.cpp Education 1900
1512G.cpp Short Task 1700
1520B.cpp Ordinary Numbers 800
1527A.cpp And Then There Were K 800
1527B1.cpp Palindrome Game (easy version) 1200
1527B2.cpp Palindrome Game (hard version) 1900
1527C.cpp Sequence Pair Weight 1600
1538B.cpp Friends and Candies 800