Problems
Pick a problem and write your solution in the built-in editor. The judge runs it against real test cases while you watch, and the wider archive is open to read whenever you like.
Total results575 problems
| Title | Level | Topics | Solved | Time limit | Memory limit | Judge |
|---|---|---|---|---|---|---|
| Treasure Chests (Small)Open all N chests in the lexicographically smallest valid order using keys found inside chests, or report IMPOSSIBLE. | Medium6 | BacktrackingDFS+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Street Tree Props (Small)Each of up to 10 trees needs one stick of strength B or two sticks summing to B, using the smallest total strength. | Medium6 | BacktrackingSorting | No attempts yet | 5s | 512 MB | Judgeable |
| Closet Room (Small)Place the maximum number of 2-cell closets with fixed door orientations on a grid with pillars so every door tile stays free and reachable from the entrance. | Medium6 | BacktrackingBrute force+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Polygraph (Small)With at most 10 people, decide for each whether every satisfying assignment of truth-teller and liar types forces Truthtown, Liarville, or leaves it undecided. | Medium6 | Brute forceSimulation+2 | No attempts yet | 5s | 512 MB | Judgeable |
| EZ-SokobanOn a board of at most 12 by 12 with up to 5 boxes that must stay edge-connected, find the fewest box pushes to reach the goal arrangement. | Medium6 | BFSSimulation+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Mine Layer (Small)Given a small Minesweeper-style clue grid (R is 3 or 5, C is 3 to 5), find the maximum number of mines the middle row can hold over all layouts that match the clues. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Digital AdditionGiven a black and white picture formed by stacking three seven-segment digit rows, find the lexicographically smallest digit addition that could have produced it. | Medium6 | ImplementationBrute force+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Word Puzzle 2Given a 5x5 letter grid and up to 20000 dictionary words, count how many words can be traced through adjacent cells without reusing a cell. | Medium6 | DFSBacktracking+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Cash BookGiven N amounts and a signed total F, decide for each amount whether it is forced to be added, forced to be subtracted, or free, over all sign choices summing to F. | Medium6 | Dynamic programmingBacktracking+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Construction ToyGiven up to nine distinct segment lengths, find the largest possible distance from a wall reachable by gluing triangles onto an initial base segment. | Medium6 | GeometryBacktracking+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Tiling PolygonsTile a rectilinear polygon with 1x3 and 3x1 tiles, choosing at each step the lexicographically smallest covering grid. | Medium6 | BacktrackingRecursion+2 | No attempts yet | 8s | 512 MB | Judgeable |
| CoggleGiven a 5x5 letter grid and a dictionary, count how many dictionary words can be traced through adjacent cells without reusing a cell. | Medium6 | BacktrackingTrie+1 | No attempts yet | 1s | 512 MB | Judgeable |
| Two OperationsStarting from X = Y = 1, repeatedly add one variable to the other, and find the shortest (then lexicographically smallest) operation string that makes N appear. | Medium6 | BFSGraph+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Trapezoid puzzleTile a triangular-grid hexagon of shaded cells with 3-triangle trapezoids, backtracking in a fixed canonical order and colouring pieces greedily so no two equal colours share an edge. | Medium6 | BacktrackingGreedy+2 | No attempts yet | 0.5s | 1024 MB | Judgeable |
| The Triangle GameGiven six numbered triangles, arrange all of them into a legal hexagon where touching edges match, and maximize the sum of the six outer edge numbers. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 2s | 512 MB | Judgeable |
| KUBC League (Small)Given a tournament on N players, find the longest simple path starting at player 1 and output the lexicographically smallest such path. | Medium6 | GraphDFS+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Tae and Dotori split a chocolate barCount assignments of U cells to T or D so each person's region is connected, the sizes differ by at most K, and neither region contains a 2x2 block. | Medium6 | BacktrackingDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Inserting operatorsGiven up to 11 numbers and counts of the four arithmetic operators, place the operators between adjacent numbers, evaluate left to right without precedence, and report the maximum and minimum results. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Start and LinkSplit N people into two equal teams to minimize the difference between the teams' total pairwise ability sums. | Medium6 | Brute forceBacktracking+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Go around the LabyrinthDecide whether a walk from the top-left corner can visit the other three corners and come back, where each non-entrance room collapses after one visit. | Medium6 | GraphDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Flow FreeGiven a 4x4 Flow Free board with 3 or 4 color pairs, decide whether all cells can be covered by non-crossing paths joining matching endpoints. | Medium6 | BacktrackingDFS+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Shredding CompanySplit a digit string into contiguous pieces so their sum is as large as possible without exceeding a target, reporting rejection on ties and error when even the smallest sum is too big. | Medium6 | BacktrackingBrute force+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Frog 3Assign each frog to a preferred pad so that every pair of pads joined by a log holds frogs with equal interest for that log's topic. | Medium6 | GraphBacktracking+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Inserting Operators (2)Insert one of +, -, x, / between each adjacent pair from a limited supply, evaluating left to right with C++14 integer division, and report the largest and smallest results. | Medium6 | BacktrackingBrute force+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Inserting Operators (3)Place the given +, -, *, / operators between N numbers to form an expression, then report the largest and smallest values it can take. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Room NumberFind natural numbers A and B with A + B = N, no leading zeros, and no digit repeated across both numbers, minimizing A. | Medium6 | Brute forceMath+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Pia Atelier: Alchemist of the Mystery CompetitionChoose and order 3 of up to 10 candidate 4x4 materials, placing each rotated onto a 5x5 furnace, to maximize a weighted color-sum quality. | Medium6 | Brute forceSimulation+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Mosaic Logic PuzzleGiven clue numbers on a border-extended grid saying how many of the 3x3 neighbors are black, color cells black or report impossibility. | Medium6 | BacktrackingDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Digit RearrangementGiven A and B, rearrange the digits of A (no leading zero) to build the largest permutation that is still strictly less than B, or print -1. | Medium6 | BacktrackingGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Insiders' Rock-Paper-ScissorsWith a fixed gesture matchup table and each player's throw sequence, decide whether Jiwoo can win while never repeating a gesture, given match order Jiwoo, Kyunghee, Minho and ties favoring the later player. | Medium6 | SimulationImplementation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Rotate Array 4Try every order of up to 6 rotation operations on the grid and report the largest possible minimum row sum after all rotations. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Two-Pan BalanceGiven up to 13 distinct weights, count how many integers from 1 to their sum cannot be formed when each weight goes on the bowl side, the other pan, or unused. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Integral PyramidGiven n and x, decide whether positive integers can fill the bottom row of Pascal-style sums so the single top cell equals x, and print a valid pyramid. | Medium6 | CombinatoricsMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Bus PlanningSplit n kids (n up to 17) into the fewest groups so no two enemies share a group and each group has at most c kids, then output one valid grouping. | Medium6 | Bit manipulationDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Rubber Duck Lovers ClubPick exactly P of N members and assign each a value in [xi, yi] so the P values sum to E, or report that this is impossible. | Medium6 | GreedyBacktracking+2 | No attempts yet | 1s | 512 MB | Judgeable |
| PasswordCount the Android-style 3x3 patterns whose segment directions match a given string, allowing any segment lengths, with no self-intersection allowed. | Medium6 | DFSBacktracking+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Avoiding SurveillancePlace exactly 3 obstacles on empty cells of an N x N grid so that no teacher can see any student along its row or column. | Medium6 | Brute forceBacktracking+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Weapon EngineeringOn a grid of at most 5 by 5 cells, place L-shaped triominoes (with the corner counted twice) so the covered cells' score is maximized. | Medium6 | BacktrackingBrute force+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Mini BattleshipCount the ways to place k distinct ships of given sizes on an n by n grid so that hits, misses, and empty squares all match the observed board. | Medium6 | BacktrackingBrute force+2 | No attempts yet | 6s | 512 MB | Judgeable |
| Smallest Integer with K Distinct DigitsGiven N up to 10^18 and K up to 10, construct the smallest integer at least N that contains exactly K distinct decimal digits. | Medium7 | Dynamic programmingGreedy+2 | No attempts yet | 2s | 128 MB | Judgeable |
| MafiaGiven guilt scores and a reaction matrix, the mafia Eunjin picks one night victim at a time and must survive as long as possible, returning the maximum number of nights. | Medium7 | Bit manipulationDFS+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Paper CuttingDecide whether five fixed-shape pieces can be translated without rotation to exactly tile an L x L grid, then print the lexicographically smallest piece-number layout or gg if impossible. | Medium7 | BacktrackingBit manipulation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Bead NecklaceCount distinct linear arrangements of beads with given color counts (3 to 5 colors, up to 35 beads total) so that every three consecutive beads have different colors. | Medium7 | CombinatoricsMath+2 | No attempts yet | 2s | 128 MB | Judgeable |
| New Magic SquareFill a 5x5 grid with numbers 1 to 25 so each row strictly increases, respecting up to one prefilled cell per row, and output the lexicographically smallest valid grid or -1. | Medium7 | BacktrackingGreedy+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Finding Domino TilingsCount the ways to tile a fixed 8x7 numeric grid with all 28 distinct dominoes so that each domino's pair matches the covered cell values. | Medium7 | BacktrackingBit manipulation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| GraduationMatch already-taken and newly taken courses to graduation requirements via bipartite matching, minimizing extra courses and finding the lexicographically smallest such set. | Medium7 | GraphGreedy+2 | No attempts yet | 2s | 128 MB | Judgeable |
| ASCII LabyrinthGiven a grid of blank, straight, and corner tiles that can be rotated in place, find the shortest path connecting the top-left to the bottom-right corner and count all valid distinct routes. | Medium7 | BFSBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| BishopsGiven an N by N board with some cells forbidden, find the maximum number of bishops that can be placed so no two attack each other along diagonals. | Medium7 | GraphDFS+2 | No attempts yet | 10s | 128 MB | Judgeable |
| First Sudoku MistakeGiven 81 sequential Sudoku moves, find the first move after which no digit assignment can complete a valid Sudoku board. | Medium7 | BacktrackingSimulation+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Network MonitoringGiven several graphs, decide for each whether a vertex cover of size at most 10 exists. | Medium7 | GraphBacktracking+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Unit Fraction DecompositionCount ways to write p/q as a sum of at most n unit fractions (order ignored) whose denominators multiply to at most a. | Medium7 | BacktrackingNumber theory+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Restore the SequenceReconstruct a permutation of 1..N that satisfies M range max/min constraints, or report impossibility. | Medium7 | GreedyBacktracking+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Formula SubstitutionGiven two formula strings with variables 0 and 1, find basic-formula substitutions for both variables that make the two formulas syntactically identical, similar to unification. | Medium7 | RecursionString matching+2 | No attempts yet | 1s | 128 MB | Judgeable |
| MutexesGiven up to 5 threads each executing LOCK/UNLOCK instructions on mutexes, determine if a deadlock state is reachable via some interleaving and if so output the lexicographically smallest deadlock state description. | Medium7 | BFSSimulation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| AmbiguousSplit a scrambled, space-free string into a unique sequence of dictionary words matching letter multisets, first and last letters, reporting ambiguity or impossibility. | Medium7 | Dynamic programmingString+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Villages on a HighwayGiven all pairwise distances between N villages on a line, reconstruct every possible set of consecutive gaps that reproduces exactly that multiset of distances. | Medium7 | BacktrackingCombinatorics+1 | No attempts yet | 1s | 128 MB | Judgeable |
| ZigzagGiven up to 10 points on a small grid, find a polyline of collinear-point segments covering all points with the fewest bends, then minimal total length among such solutions. | Medium7 | CombinatoricsGeometry+2 | No attempts yet | 3s | 128 MB | Judgeable |
| Dice PuzzleGiven partial top and front faces of a 3x3x3 cube of standard dice with fixed chirality and opposite-face contact constraints, enumerate all valid orientations and report every possible sum of the right-side faces. | Medium7 | BacktrackingSimulation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Magic StarFill the twelve cells of a hexagram with distinct numbers 1 to 12 so each of the six lines sums to 26, choosing the lexicographically smallest completion of a partially given star. | Medium7 | BacktrackingBrute force+2 | No attempts yet | 1s | 256 MB | Judgeable |
| To Score or Not to ScoreGiven the coordinates of two soccer robot teams, decide whether the team in possession can score a goal that survives the removal of any single teammate. | Medium7 | ImplementationBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Parencedence!Two players alternately parenthesize one operator of an expression, maximizing and minimizing the value, and two rounds with swapped first movers decide the winner. | Medium7 | Game theoryDynamic programming+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Worm TurnsFind a start cell and first direction that maximize how many food pieces a self-avoiding worm eats, turning only when blocked. | Medium7 | DFSBrute force+2 | No attempts yet | 3s | 128 MB | Judgeable |
| How Big Is It?Given up to 8 circles, arrange them all touching the bottom of a box to minimize the box's total width. | Medium7 | BacktrackingGeometry+1 | No attempts yet | 1s | 128 MB | Judgeable |
| The Thirty-One GameGiven a prefix of draws in the card game Thirty-One with cards 1 to 6, decide who wins from that position under perfect play with the remaining deck. | Medium7 | Game theoryDynamic programming+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Prime-Free SequenceFind the lexicographically smallest permutation of n..m where sums of any 2 to d consecutive numbers are all non-prime, or report none. | Medium7 | BacktrackingDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| CrabblesGiven a dictionary and hands of at most 10 lettered tiles with values, find the maximum-scoring dictionary word formable from each hand's tiles. | Medium7 | TrieBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Rings and RunesValidate the runes for several gates, report the highest-priority error, then decide if the resulting 3-CNF formula is satisfiable. | Medium7 | SimulationImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Building Zombie FencesOn an n x n grid with n at most 6, find the longest single closed fence loop using lattice-point walls so every numbered plot has exactly that many of its four sides walled. | Medium7 | BacktrackingBrute force+2 | No attempts yet | 1s | 128 MB | Judgeable |
| YO!Count paint-over patterns of a short string whose remaining letters, read left to right, form one or more dictionary words without overlap. | Medium7 | Dynamic programmingString+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Rank and FileGiven a pawnless chess position and the side to move, decide whether that side's king is safe, in check, or checkmated. | Medium7 | SimulationBrute force+2 | No attempts yet | 1s | 128 MB | Judgeable |
| PegsGiven a 5x5 peg solitaire board with empty, peg, and blocked cells, find the minimum number of pegs reachable by any sequence of horizontal or vertical jumps. | Medium7 | DFSBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Shut the BoxGiven N pieces labeled 1 to N and up to T turn values, mark disjoint sets of unmarked pieces summing exactly to each turn value in order, and find the largest total number of pieces markable. | Medium7 | Dynamic programmingBit manipulation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Hex Tile EquationsFind the unique Hamiltonian path through a small hex grid of digit and operator tiles that spells a valid left-to-right equation with both sides equal. | Medium7 | BacktrackingDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Triangle GameGiven six triangles with numbered edges, rotate and arrange them into a hexagon where touching edges match, maximizing the sum of the six outer edges. | Medium7 | BacktrackingBrute force+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Find the Winning MoveGiven a 4x4 tic-tac-toe position with x to move, find the earliest cell in row-major order where x has a forced win, or report none. | Medium7 | Game theoryBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Chambers Ceramic ConundrumGiven nine tetromino-like tiles with fixed shapes and a strict placement order, decide whether the forced backtracking rule can cover a 6x6 grid and print the layout. | Medium7 | BacktrackingSimulation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Team WorkSplit the given pieces into three groups of equal total length, using each piece at most once, and report the largest such length or 0. | Medium7 | BacktrackingBrute force+1 | No attempts yet | 5s | 128 MB | Judgeable |
| Smallest DifferenceSplit the given distinct digits into two non-empty groups, order each into a number with no leading zero, and minimize the absolute difference. | Medium7 | Brute forceBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Hop — Don't Walk!Sliding-tile puzzle with walk and hop moves where hops flip the passed tile; find the fewest moves (depth under 10) to make all black tiles contiguous. | Medium7 | BFSBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Jonny Hates MathSplit a digit string into positive addends of at most 5 digits with no leading zeros that sum to a given total, minimizing the number of plus signs and breaking ties lexicographically. | Medium7 | DFSBacktracking+2 | No attempts yet | 5s | 128 MB | Judgeable |
| Word AdditionCount letter-to-digit assignments that make a cryptarithmetic addition of up to 12 words valid, with no leading zeros and distinct digits per letter. | Medium7 | BacktrackingBrute force+2 | No attempts yet | 40s | 128 MB | Judgeable |
| Gokigen NanameFill an n by n grid with one diagonal per cell so each numbered lattice point has exactly that many diagonal endpoints and no diagonal cycle forms. | Medium7 | BacktrackingDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Buddy, Can You Spare a Tronk?Count and list all multisets of n distinct unit fractions summing to exactly 1, with a repetition limit and forbidden denominators. | Medium7 | BacktrackingNumber theory+2 | No attempts yet | 5s | 128 MB | Judgeable |
| Utopia DividedAssign 2N distinct numbers into N signed x/y pairs so the teleporter visits the given regions in order, choosing the lexicographically smallest guiding. | Medium7 | GreedyBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Santa Claus and RudolphCount the closed tours that start and end at the single church, visiting every house once, where each move is a straight horizontal or vertical glide that may not pass over an already visited house. | Medium7 | BacktrackingDFS+2 | No attempts yet | 12s | 128 MB | Judgeable |
| The Longest ChainGiven n strings, each with labeled rings a and b at its ends, find the number of vertices in the longest trail in the resulting multigraph. | Medium7 | GraphDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Joyful ColoringGiven subsets of size at most 3, decide whether every subset can be made non-monochromatic under a 2-coloring. | Medium7 | BacktrackingGame theory+2 | No attempts yet | 3s | 128 MB | Judgeable |
| Traveling ShoemakerCities each belong to one or two color confederations; moving between cities consumes and produces tickets. Decide if a start city exists to visit every city exactly once. | Medium7 | GraphDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| HaywireGiven a 3-regular graph on N cows (N at most 12), find the ordering of cows in a row minimizing the sum of pairwise distances between friends. | Medium7 | BacktrackingBrute force+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Dreisam EquationsInsert +, -, and * into a number-and-parenthesis equation so it holds under strict left-to-right evaluation, choosing the lexicographically smallest valid string. | Medium7 | BacktrackingImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| PuzzleGiven up to 36 fixed-orientation pieces, each with flat, jut, or cavity edges, decide whether they can tile an n by m rectangle with matching jut-cavity adjacencies. | Medium7 | BacktrackingImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Picture PuzzleCount the number of ways to place and rotate nine square pieces into a 3x3 grid so every touching edge pair matches (same letter, one L half and one R half). | Medium7 | BacktrackingBrute force+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Number GameGiven the available numbers from 2 to 20 in a Number Game position, list every move that leaves the opponent in a losing position. | Medium7 | Game theoryBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Roman NumeralsEach line gives a Roman sum A+B=C. Decide whether it holds as a Roman numeral equation, then classify its cryptarithm as impossible, ambiguous, or valid. | Medium7 | Brute forceBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Graph ColoringFor each graph, find a maximum independent set and output one optimal coloring whose sorted black node list is lexicographically smallest. | Medium7 | GraphBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Channel AllocationGiven a planar graph of up to 26 repeaters, find the chromatic number, the fewest colors needed so adjacent repeaters differ. | Medium7 | GraphBacktracking+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Balanced FoodGiven a pizza of n slices and a sector-shaped table, find the lexicographically smallest order of eating slices so the remaining slices' center of gravity always stays over the table. | Medium7 | Brute forceGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Settlers of CatanGiven an undirected graph where nodes have degree at most three, find the longest path that uses no edge more than once. | Medium7 | GraphDFS+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Mhocskian LanguagesGiven a context-free grammar in Chomsky normal form and a list of words, decide for each word whether the start variable can derive it. | Medium7 | Dynamic programmingString+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Paint by NumbersGiven the run lengths of stars in every row and column of an n x m grid, reconstruct the lexicographically smallest grid of dots and stars. | Medium7 | BacktrackingImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |