Skip to content

Repository files navigation

Algorithm Problem Solutions

CompileTest

Problem solutions of some algorithm problems from online judge platforms.

platformproblems solved
UVa568
Codeforces419
LeetCode20
Hacker Rank20(SQL)
languagelines of code
Java70851
C++3214
Python1193
SQL101

This repository contains solutions to various algorithm problems from platforms such as Codeforces, HackerRank, LeetCode, Lintcode, Nowcoder, and UVa. Each solution is organized by problem number and includes the source code, input files, and occasionally, additional documentation.

Repository Structure

  • README.md: This file.
  • codeforces/: Contains solutions to Codeforces problems.
  • hacker_rank/: Contains solutions to HackerRank SQL problems.
  • leetcode/: Contains solutions to LeetCode problems.
  • lintcode/: Contains solutions to Lintcode problems.
  • nowcoder/: Contains solutions to Nowcoder problems.
  • uva/: Contains solutions to UVa problems.

Codeforces

Each subdirectory within the codeforces directory is named after a problem number and includes the following:

  • 1.in: Input file for the problem.
  • src/Main.java: Java source code file containing the solution to the problem.

HackerRank

The hacker_rank directory contains SQL files for various problems. Each file is named after the problem it solves.

LeetCode

The leetcode directory contains Python scripts for different problems. The files are named after the problems they solve, such as two_sum.py or valid_parentheses.py.

Lintcode

Each subdirectory within the lintcode directory is named after a problem number and includes the following:

  • src/com/lintcode/Main.java: Main class file for the solution.
  • src/com/lintcode/Solution.java: Solution class file for the problem.
  • src/com/lintcode/: Additional class files as required by the problem.

Nowcoder

Each subdirectory within the nowcoder directory is named after a problem and includes the following:

  • Solution.java: Solution class file for the problem.
  • Test.java: Test class file for the problem.
  • TreeNode.java: (If applicable) TreeNode class file for problems involving tree structures.

Run Scripts

mvn exec:exec -Dproblem=p138 -X
python scripts/generate_run_xml.py 138

UVa

Solved: 568, Submissions: 1776

Q1Q2Q3
100: The 3n + 1 Problem101: The Blocks Problem102: Ecological Bin Packing
103: Stacking Boxes104: Arbitrage105: The Skyline Problem
106: Fermat's Last Theorem107: The Cat in the Hat108: Maximum Sum
110: Meta-Loopless Sorts111: History Grading112: Tree Summing
113: Power of Cryptography116: Unidirectional TSP118: Mutant Flatworld Explorers
119: Greedy Gift Givers120: Stacks of Flapjacks122: Trees on the Level
123: Searching Quickly124: Following Orders127: "Accordian" Patience
128: Software CRC129: Krypton Factor131: The Domino Effect
133: The Dole Queue136: Ugly Numbers138: Street Numbers
140: Bandwidth146: ID Codes147: Dollars
151: Power Crisis152: Tree's a Crowd156: Ananagrams
160: Factors and Factorials167: The Sultan's Successors185: Roman Numerals
190: Circle Through Three Points193: Graph Coloring195: Anagram
196: Spreadsheet197: Orbiting Satellites200: Rare Order
201: Squares202: Repeating Decimals208: Firetruck
210: Determining Periods211: The Domino Effect213: Message Decoding
216: Getting in Line221: Partitioning Polygon225: Golomb Rulers
227: Puzzle230: Borrowers231: Testing the CATCHER
247: Calling Circles253: Cube painting256: Quirksome Squares
260: Il Gioco dell'X264: Count on Cantor272: TEX Quotes
278: Chess280: Vertex291: The House Of Santa Claus
294: Divisors297: Quadtrees299: Train Swapping
301: Transportation305: Joseph307: Sticks
315: Network317: Power Transmission324: Factorial Frequencies
327: Evaluating Simple C Expressions331: Mapping the Swaps336: A Node Too Far
340: Master-Mind Hints343: What Base Is This?344: Roman Digititis
348: Optimal Array Multiplication Sequence350: Pseudo-Random Numbers352: The Seasonal War
353: Pesky Palindromes357: Let Me Count The Ways369: Combinations
371: Ackermann Functions374: Big Mod375: Inscribed Circles and Isosceles Triangles
378: Intersecting Lines382: Perfection386: Perfect Cubes
387: Repeated Substitution with Sed389: Basically Speaking392: Polynomial Showdown
400: Unix ls401: Palindromes406: Prime Cuts
408: Uniform Generator409: Excuses, Excuses!412: Pi
414: Machined Surfaces417: Word Index424: Integer Inquiry
429: Word Transformation437: The Tower of Babylon438: The Circumference of the Circle
439: Knight Moves440: Eeny Meeny Moo441: Lotto
442: Matrix Chain Multiplication443: Humble Numbers444: Encoder and Decoder
445: Marvelous Mazes446: Kibbles n' Bits n' Bits `n' Bits455: Periodic Strings
457: Linear Cellular Automata458: The Decoder459: Graph Connectivity
465: Overflow469: Wetlands of Florida476: Points in Figures: Rectangles
477: Points in Figures: Rectangles and Circles478: Points in Figures: Rectangles, Circles, Triangles481: What Goes Up
482: Permutation Arrays483: Word Scramble484: The Department of Redundancy Department
488: Triangle Wave489: Hangman Judge490: Rotating Sentences
492: Pig-Latin494: Kindergarten Counting Game495: Fibonacci Freeze
496: Simply Subsets497: Strategic Defense Initiative499: What's The Frequency, Kenneth?
507: Jill Rides Again509: Just the Facts512: Taiwan Railway
514: Rails524: Prime Ring Problem530: Binomial Showdown
531: Compromise532: Dungeon Master534: Frogger
536: Tree Recovery537: Railroads539: The Settlers of Catan
540: Team Queue541: Error Correction543: Goldbach's Conjecture
544: Heavy Cargo548: Tree550: Multiplying by Rotation
558: Wormholes562: Dividing coins567: Risk
568: Just the Facts572: Oil Deposits573: The Snail
574: Sum It Up575: Skew Binary576: Haiku Review
579: Clock Hands583: Prime Factors591: Box of Bricks
594: One Little, Two Little, Three Little Endians612: DNA Sorting621: Secret Research
623: 500!624: CD637: Booklet Printing
639: Don't Get Rooked640: Self Numbers644: Immediate Decodability
657: The die is cast661: Blowing Fuses673: Parentheses Balance
674: Coin Change679: Dropping Balls686: Goldbach's Conjecture (II)
694: The Collatz Sequence696: How Many Knights699: The Falling Leaves
705: Slash Maze706: LC-Display712: S-Trees
713: Adding Reversed Numbers714: Copying Books725: Division
727: Equation729: The Hamming Distance Problem748: Exponentiation
750: 8 Queens Chess Problem755: 487--3279784: Maze Exploration
793: Network Connections796: Critical Links815: Flooded!
818: Job Matching820: Internet Bandwidth821: Page Hopping
834: Continued Fractions836: Largest Submatrix839: Not so Mobile
846: Steps847: A Multiplication Game900: Brick Wall Patterns
913: Joana and the Odd Numbers924: Spreading The News929: Number Maze
948: Fibonaccimal Base993: Product of digits1124: Celebrity jeopardy
1149: Dangerous Dive1152: 4 Values whose Sum is 01203: Argus
1225: Digit Counting1230: MODEX1237: Expert Enough?
1260: Sales1339: Ancient Cipher1368: DNA Consensus String
1374: Power Transmission1451: Ghostbusters 21471: Dangerous Dive
1583: Digital Roots1584: Mathematics1585: Score
1586: Molar Mass1587: Box1588: War
1589: Partitioning1590: Elevator1592: Transmission
1593: Pipes1594: Diamond1595: One Liner
1604: Jumping Champion1605: Fibonacci Sum1606: Candy
1607: Kaprekar Numbers1608: Random Walk1609: Look-and-say sequence
10000: Longest Paths10003: Cutting Sticks10004: Bicoloring
10006: Carmichael Numbers10008: What's Cryptanalysis?10010: Where's Waldorf?
10012: How Big Is It?10013: Super long sums10014: Simple Base Conversion
10018: Reverse and Add10019: Funny Encryption Method10025: The Game of MasterMind
10026: Shoemaker's Problem10033: Billiard10034: Freckles
10035: Primary Arithmetic10036: Divisibility10038: Jolly Jumpers
10041: Vito's Family10042: Smith Numbers10047: The Monocycle
10048: Audiophobia10050: Hartals10054: The Necklace
10055: Hashmat the Brave Warrior10056: What is the Probability?10061: How to solve the cryptarithm?
10062: Tell me the frequencies!10066: The Twin Towers10067: Playing with Wheels
10070: Leap Year or Not Leap Year and ...10071: Back to High School Physics10074: Take the Land
10077: The Stern-Brocot Number System10079: Pizza Cutting10082: WERTYU
10098: Generating Fast10099: The Tourist Guide10101: Bangla Numbers
10102: The path in the colored field10104: Euclid Problem10105: Polynomial Coefficients
10106: Product10107: What is the Median?10110: Light, more light
10112: Myacron Lifetime Achievement Award10114: Loansome Car Buyer10115: Automatic Editing
10116: Robot Motion10123: Snowball Fight!10125: Sumsets
10127: On a Diet10129: Play on Words10130: SuperSale
10131: Is Bigger Smarter?10137: The Trip10139: Factovisors
10140: Prime Distance10141: Request for Proposal10152: ShellSort
10160: Servicing Stations10161: Ant on a Chessboard10167: Birthday Cake
10168: Summation of Four Primes10170: The Hotel with Infinite Rooms10177: Magic Square Palindromes
10179: Irreducible Basic Fractions10183: How many Fibs?10189: Minesweeper
10190: Divide, But Not Quite Conquer!10191: Longest Nap10192: Vacation
10193: All You Need Is Love10194: Football (aka Soccer)10195: The Knights Of The Round Table
10198: Counting10199: Tourist Guide10205: Stack 'em Up
10209: Is This Integration?10219: Find the ways!10220: I Love Big Numbers!
10221: Two-Three Move10222: Decode the Message10226: Hardwood Species
10229: Modular Fibonacci10235: Simply Emirp10242: Fourth Point !!
10245: The Closest Pair Problem10250: The Other Two Trees10252: Common Permutation
10258: Contest Scoreboard10260: Soundex10267: Graphical Editor
10276: Hanoi Tower Troubles Again!10281: Average Speed10282: Babelfish
10285: Longest Run on a Snowboard10286: Trouble with a Pentagon10295: Hay Points
10298: Power Strings10299: Relatives10300: Ecological Premium
10302: Summation of Polynomials10305: Ordering Tasks10310: Dog and Gopher
10323: Factorial! You Must be Kidding!!!10324: Zeros and Ones10327: Flip Sort
10334: Ray Through Glasses10336: Rank the Languages10338: Mischievous Children
10340: All in All10341: Solve It10344: 23 out of 5
10346: Peter's Smokes10347: Medians10361: Automatic Poetry
10369: Arctic Network10370: Above Average10387: Billiard Balls
10391: Compound Words10392: Factoring Large Numbers10394: Twin Primes
10397: Connect the Campus10405: Longest Common Subsequence10409: Die Game
10420: List of Conquests10424: Love Calculator10432: Warehouse
10450: World Cup Noise10452: Marcus10465: Homer Simpson
10469: To Carry or not to Carry10473: Climbing Trees10474: The Candyman Can
10487: Closest Sums10494: If We Were a Child Again10496: Collecting Beepers
10499: Big Big Real Numbers10515: Power Sum10523: Very Easy !!!
10530: Guessing Game10533: Digit Primes10534: Wavio Sequence
10550: Combination Lock10557: XYZZY10562: Undraw the Trees
10579: Fibonacci Numbers10583: Ubiquitous Religions10591: Happy Numbers
10596: Deep Down Below10600: ACM Contest and Blackout10603: The Experimental Library
10608: Friends10611: The Playboy Chimp10616: Divisible Group Sums
10653: Bombs! NO they are Mines!!10656: Maximum Sum (II)10664: Luggage
10673: Play with Floor and Ceil10679: I Love Strings!!10684: The jackpot
10696: f9110699: Count the factors10703: Free spots
10719: Quirky Quantifiers10763: Foreign Exchange10773: Back to Intermediate Math
10783: Odd Sum10784: Diagonal10785: Speed limit
10789: Primo Words10790: How many points of intersection?10810: Ultra-QuickSort
10812: Beat the Spread!10815: Andy's First Dictionary10878: Decode the tape
10879: Maximum Sum (II)10905: Children's Game10911: Forming Quiz Teams
10916: Factstone Benchmark10921: Find the Telephone10922: 2520
10924: Simple Minded Hashing10929: You can say 1110931: Parity
10935: Throwing cards away I10940: Throwing cards away II10943: How do you add?
10945: Mother bear10948: The primary problem10954: Add All
10963: The Swallowing Ground10970: Big Chocolate10976: Fractions Again?!
10986: Sending email11000: Bee11044: Searching for Nessy
11054: Wine trading in Gergovia11057: Exact Sum11059: Maximum Product
11060: Beverages11085: Back to the 8-Queens11093: Just Finish it up
11094: Continents11111: Generalized Matrioshkas11134: Fabled Rooks
11137: Triple Fat Ladies11150: Cola11151: Longest Palindrome
11152: Colourful Flowers11172: Relational Operator11185: Ternary
11192: No Problem!11205: The broken pedometer11212: Editing a Book
11214: Aladdin and the Flying Carpet11219: How Old Are You?11231: Black and white painting
11234: Expressions11235: Frequent Values11244: Counting Stars
11286: Conformity11292: Dragon of Loowater11332: Summing Digits
11340: Newspaper11349: Symmetric Matrix11362: Phone List
11364: Parking11369: Shopaholic11388: GCD LCM
11389: The Bus Driver Problem11417: GCD11428: Cubes
11450: Wedding Shopping11455: Behold my quadrangle11461: Square Numbers
11462: Age Sort11479: Is this the easiest problem?11494: Queen
11498: Division of Nlogonia11503: Virtual Friends11504: Dominos
11530: SMS Typing11541: Decoding11547: Automatic Answer
11559: Event Planning11565: Simple Equations11572: Unique Snowflakes
11577: Letter Frequency11586: Train Tracks11608: No Problem!
11614: Etruscan Warriors Never Play Chess11624: Fire!11631: Dark roads
11636: Hello World!11650: Mirror Clock11661: Airport
11677: Alarm Clock11679: Sub-prime11689: Soda Surpler
11713: Abstract Names11715: Car11716: Digital Fortress
11723: Numbering Roads11727: Cost Cutting11729: Commando War
11734: Big Number of Teams will Solve This11743: Credit Check11764: Jumping Mario
11777: Automate the Grades11799: Horror Dash11805: Bafana Bafana
11809: Floating Point Numbers11827: Maximum GCD11831: Sticker Collector Robot
11849: CD11854: Egypt11875: Brick Game
11877: The Coco-Cola Store11879: Multiple of 1711900: Boiled Eggs
11933: Splitting Numbers11934: Magic Formula11936: The Lazy Lumberjacks
11942: Lumberjack Sequencing11953: Battleships11984: A Change in Thermal Unit
11988: Broken Keyboard (a.k.a. Beiju Text)11991: Easy Problem from Rujia Liu?11995: I Can Guess the Data Structure!
12015: Google is Feeling Lucky12032: The Monkey and the Oiled Bamboo12096: The SetStack Computer
12100: Printer Queue12107: One-Two-Three12108: Extraordinarily Tired Students
12113: Sum of Different Primes12149: Feynman12157: Tariff Plan
12174: Assemble12219: Searching Quickly12250: Language Detection
12279: Emoogle Balance12289: One-Two-Three12325: Exact Change
12333: Where is the Marble?12372: Packing for Holiday12403: Save Setu
12405: Scarecrow12412: A Problem of Miscommunication12455: Bars
12468: Zapping12478: Hardest Problem Ever (easy)12502: Three Families
12503: Robot Instructions12504: Updating a Dictionary12545: Bits and Pieces
12554: A Child’s Play12558: Cycle Finding12569: Sale
12577: Hajj-e-Akbar12578: 10:6:212627: Error Correction
12646: Majority Decision12657: Boxes in a Line

Codeforces

Q1Q2Q3
1003A: Polycarp's Pockets1030A: In Search of an Easy Problem1077A: Frog Jumping
1092B: Teams Forming1095A: Repeating Cipher1097A: Gennady and a Card Game
110A: Nearly Lucky Number112A: Petya and Strings1154A: Restoring Three Numbers
115A: Party116A: Tram1183A: Nearest Interesting Number
1186A: Vus the Cossack and a Contest118A: String Task1196A: Three Piles of Candies
119A: Epic Game1206B: Make Product Equal One1220A: Cards
122A: Lucky Division1234A: Equalize Prices Again124A: The Number of Positions
1256A: Payment Without Change1283A: Minutes Before the New Year1285A: Mezo Playing Zoma
1294A: Collecting Coins1294C: Product of Three Numbers1296A: Array with Odd Sum
1296B: Food Buying1303A: Erasing Zeroes1304A: Two Rabbits
1311A: Add Odd or Subtract Even1312A: Two Regular Polygons131A: cAPS lOCK
1324A: Yet Another Tetris Problem1324B: Yet Another Palindrome Problem1324C: Frog Jumps
1325A: EhAb AnD gCd1325B: CopyCopyCopyCopyCopy1326A: Bad Ugly Numbers
1326B: Maximums1327A: Sum of Odd Integers1328A: Divisibility Problem
1328B: K-th Beautiful String1328C: Ternary XOR1333A: Little Artem
1334B: Middle Class1335A: Candies and Two Sisters1335B: Fair Division
1335C: Hidden Word1335D: Anti-Sudoku1337A: Ichihime and Triangle
1337B: Kana and Dragon Quest game1339A: Filling Diamonds1339B: Sorted Adjacent Differences
133A: HQ9+1341A: Nastya and Rice1342A: Road To Zero
1342B: Binary Period1343A: Candies1343B: Balanced Array
1343C: Alternating Subsequence1345A: Hilbert's Hotel1345B: Card Constructions
1348A: Phoenix and Balance1350A: Orac and Factors1352A: Sum of Round Numbers
1352B: Same Parity Summands1352C: K-th Not Divisible by n1353A: Most Unstable Array
1353B: Number of Apartments1353C: Board Moves1354A: Alarm Clock
1354B: Ternary String1355A: Sequence with Digits1355B: Young Explorers
1358A: Park Lighting1358B: Maria Breaks the Self-isolation1359A: Berland Poker
1359B: New Theatre Square1360A: Minimal Square1360B: Honest Coach
1360C: Similar Pairs1360D: Buying Shovels1363A: Odd Selection
1365A: Matrix Game1365B: Trouble Sort1366A: Shovels and Swords
1367A: Short Substrings1367B: Even Array1368A: C+=
1369A: FashionabLee1369B: AccurateLee136A: Presents
1370A: Maximum GCD1371A: Magical Sticks1372A: Omkar and Password
1372B: Omkar and Last Class of Math1373A: Donut Shops1373B: Balanced Tunnel
1374A: Required Remainder1374B: Multiply by 2, divide by 61374C: Move Brackets
1382A: Common Subsequence1382B: Sequential Nim1385A: Three Pairwise Maximums
1385B: Restore the Permutation by Merger1385C: Make It Good1388A: Captain Flint and Crew Recruitment
1389A: LCM Problem1391A: Suborray1391B: Fix You
1397A: Juggling Letters1398A: Bad Triangle1398B: Substrings Sort
1399A: Remove Smallest1399B: Gifts Fixing1399C: Boats Competition
1400A: String Similarity1401A: Distance and Axis1409A: Yet Another Two Integers Problem
1409B: Minimum Product141A: Amusing Joke1426A: Floor Number
1433A: Boring Apartments1433B: Yet Another Bookshelf1433C: Dominant Piranha
1436A: Reorder144A: Arrival of the General1451A: Subtract or Divide
1454A: Special Permutation1454B: Unique Bid Auction1455A: Strange Functions
1462A: Favorite Sequence1462B: Last Year's Substring1462C: Unique Number
1466A: Bovine Dilemma1467A: Wizard of Orz1469A: Regular Bracket Sequence
1472A: Cards for Friends1472B: Fair Division1472C: Long Jumps
1473A: Replacing Elements1473B: String LCM1474A: Puzzle From the Future
1475A: Odd Divisor1475B: New Year's Number1476A: K-divisible Sum
1478A: Nezzar and Colorful Balls1480A: Yet Another String Game1481A: Space Navigation
1486A: Shifting Stacks1487A: Arena148A: Insomnia cure
1490A: Dense Array1490B: Balanced Remainders1490C: Sum of Cubes
1497A: Meximization149A: Business trip1506A: Strange Table
1509A: Average Height1512A: Spy Detected!1512B: Almost Rectangle
1514A: Perfectly Imperfect Array1516A: Tit for Tat1517A: Sum of 2050
1519A: Red and Blue Beans1519B: The Cake Is a Lie151A: Soft Drinking
1520A: Do Not Be Distracted!1520B: Ordinary Numbers1520C: Not Adjacent Matrix
1520D: Same Differences1521A: Spy Syndrome 21525A: Potion-making
1526A: Mean Inequality1527A: And Then There Were K1529A: In Game Theory
1535A: Fair Playoff1535B: Array Reodering1537A: Arithmetic Array
1537B: Bad Boy1538A: Stone Game1538B: Friends and Gifts
1541A: Pretty Permutations1542A: Odd Set1547A: Shortest Path with Obstacle
1547B: Alphabetical Strings1549A: Gregor and the Pawn Game1550A: Find The Array
1551A: Polycarp and Coins1551B1: Wonderful Coloring - 11552A: Subsequence Addition
1553A: Digits Sum1554A: Cherry1555A: PizzaForces
1557A: Ezzat and Two Subsequences155A: I_love_%username%1560A: Dislike of Threes
1560B: Who's Opposite?1560C: Infinity Table1562A: The Great Hero
1567A: Domino Disaster1569A: The Raising Sand1579A: Casimir's String Solitaire
1582A: Luntik and Concerts1582B: Luntik and Subsequences1582C: Luntik and Subsequences
1585A: Pretty Permutations1585B: Find The Array1585C: Wonderful Coloring - 1
158A: Next Round158B: Taxi1593A: Casimir's String Solitaire
1607A: Dislike of Threes1608A: Luntik and Concerts1608B: Luntik and Subsequences
1609A: Domino Disaster1609B: Infinity Table1609C: The Great Hero
160A: Luntik and Subsequences1610A: Pretty Permutations1610B: Find The Array
1610C: Wonderful Coloring - 11611A: Next Round1612A: Taxi
1612B: Casimir's String Solitaire1612C: Dislike of Threes1613A: Luntik and Concerts
1613B: Luntik and Subsequences1613C: Domino Disaster1614A: Infinity Table
1614B: The Great Hero1614C: Luntik and Subsequences1615A: Pretty Permutations
1615B: Find The Array1615C: Wonderful Coloring - 11616A: Next Round
1616B: Taxi1616C: Casimir's String Solitaire1617A: Dislike of Threes
1617B: Luntik and Concerts1617C: Luntik and Subsequences1618A: Domino Disaster
1618B: Infinity Table1618C: The Great Hero1618D: Luntik and Subsequences
1619A: Pretty Permutations1619B: Find The Array1619C: Wonderful Coloring - 1
1620A: Next Round1620B: Taxi1620C: Casimir's String Solitaire
1621A: Dislike of Threes1621B: Luntik and Concerts1622A: Luntik and Subsequences
1622B: Domino Disaster1622C: Infinity Table1623A: The Great Hero
1623B: Luntik and Subsequences1623C: Pretty Permutations1624A: Find The Array
1627A: Wonderful Coloring - 11627B: Next Round1669A: Taxi
1676A: Casimir's String Solitaire1692A: Dislike of Threes1703A: Luntik and Concerts
1742A: Luntik and Subsequences1763A: Domino Disaster189A: Infinity Table
1902A: The Great Hero1902B: Luntik and Subsequences1902C: Pretty Permutations
1902D: Find The Array1902E: Wonderful Coloring - 11902F: Next Round
1907A: Taxi1907B: Casimir's String Solitaire1907C: Dislike of Threes
1915A: Luntik and Concerts1915B: Luntik and Subsequences1915C: Domino Disaster
1915D: Infinity Table1915E: The Great Hero1915F: Luntik and Subsequences
1916A: Pretty Permutations1916B: Find The Array1916C: Wonderful Coloring - 1
1917A: Next Round1917B: Taxi1917C: Casimir's String Solitaire
1917D: Dislike of Threes1A: Theatre Square200B: Drinks
208A: Dubstep214A: System of Equations228A: Is your horseshoe on the other hoof?
230A: Dragons230B: T-primes231A: Team
233A: Perfect Permutation236A: Boy or Girl255A: Greg's Workout
25A: IQ test263A: Beautiful Matrix265A: Colorful Stones (Simplified Edition)
266A: Stones on the Table266B: Queue at the School268A: Games
268B: Buttons270A: Fancy Fence271A: Beautiful Year
279B: Books281A: Word Capitalization282A: Bit++
313A: Ilya and Bank Account313B: Ilya and Queries318A: Even Odds
320A: Magic Numbers327A: Flipping Game32B: Borze
330A: Cakeminator337A: Puzzles339A: Helpful Maths
339B: Xenia and Ringroad344A: Magnets349A: Cinema Line
34B: Sale358A: Dima and Continuous Line358B: Dima and a Bad X
361A: Levko and Table363A: Soroban363B: Fence
363C: Pashmak and Garden368B: Sereja and Suffixes369A: Valera and Plates
369B: Valera and Contest379A: New Year Candles381A: Sereja and Dima
405A: Gravity Flip41A: Translation427A: Police Recruits
431A: Black Square432A: Choosing Teams433B: Kuriyama Mirai's Stones
439A: Devu, the Singer and Churu, the Joker43A: Football443A: Anton and Letters
448A: Rewards451A: Game With Sticks451B: Sort the Array
455A: Boredom456A: Laptops459A: Pashmak and Garden
459B: Pashmak and Flowers460A: Vasya and Socks466A: Cheap Travel
466C: Number of Ways467A: George and Accommodation467B: Fedor and New Game
469A: I Wanna Be the Guy472A: Design Tutorial: Learn from Math474A: Keyboard
474B: Worms476A: Dreamoon and Stairs476B: Dreamoon and WiFi
478A: Initial Bet478B: Random Teams479A: Expression
479C: Exams486A: Calculating Function489B: BerSU Ball
489C: Given Length and Sum of Digits...490A: Team Olympiad492A: Vanya and Cubes
492B: Vanya and Lanterns499B: Lecture4A: Watermelon
4C: Registration System500A: New Year Transportation509A: Maximum in Table
50A: Domino piling510A: Fox And Snake514A: Chewbaсca and Number
519B: A and B and Compilation Errors520A: Pangram520B: Two Buttons
540A: Combination Lock546A: Soldier and Bananas550A: Two Substrings
556A: Case of the Zeros and Ones567A: Lineland Mail577A: Multiplication Table
579A: Raising Bacteria580A: Kefa and First Steps580C: Kefa and Park
581A: Vasya the Hipster584A: Olesya and Rodion58A: Chat room
599A: Patrick and Shopping59A: Word617A: Elephant
61A: Ultra-Fast Mathematician630A: Again Twenty Five!677A: Vanya and Fence
686A: Free Ice Cream688B: Lovely Palindromes69A: Young Physicist
702A: Maximum Increase703A: Mishka and Game705A: Hulk
706B: Interesting drink707A: Brain's Photos711A: Bus to Udayland
71A: Way Too Long Words723A: The New Year: Meeting Friends731A: Night at the Museum
732A: Buy a Shovel732B: Cormen — The Best Friend Of a Man734A: Anton and Danik
734B: Anton and Digits742A: Arpa’s hard exam and Mehrdad’s naive cheat749A: Bachgold Problem
750A: New Year and Hurry758A: Holiday Of Equality766B: Mahmoud and a Triangle
785A: Anton and Polyhedrons791A: Bear and Big Brother80A: Panoramix's Prediction
822A: I'm bored with life82A: Double Cola894A: QAQ
935A: Fafa and his Company959A: Mahmoud and Ehab and the even-odd game96A: Football
977A: Wrong Subtraction977B: Two-gram978B: File Name
996A: Hit the Lottery9A: Die RollCF1511A: Odd Divisor

End

"If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is." – John von Neumann

About

Problem solutions of some algorithm problems from online judge platforms.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages