Curated sets
Dynamic programming ladder
Every judgeable DP problem, easiest first.
Total results3,128 problems
| Topics | Judge | |||||
|---|---|---|---|---|---|---|
| Strongly MatchableDecide whether an even-order graph admits a perfect bipartite matching for every balanced partition of its vertices. | Hard9 | GraphMath+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Arranging tilesGiven up to 14 convex tiles of equal height with cut corners, find the ordering and horizontal placement that minimizes the total frame width when packed side by side. | Hard9 | Dynamic programmingGeometry+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| CratersFind the shortest single closed fence that surrounds all circles at distance 10 or more, given each crater's center and radius. | Hard9 | GeometryDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Enlarging EnthusiasmCount the distinct final rankings achievable when positive point bonuses summing to x are announced in increasing order, with the lead changing hands each time. | Hard9 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Treasure MapOn a weighted undirected graph, gold decays each day at every mine; starting at mine 1 with forced moves, maximize total gold collected before stopping. | Hard9 | GraphDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| IntuidiffFind the minimum number of blocks, each a substring of the first string or a single new character, whose concatenation equals the second string. | Hard9 | String matchingGreedy+2 | No attempts yet | 7s | 512 MB | Judgeable |
| Workbook AlgorithmsCount the number of undirected graphs X on N vertices whose number of permutations P satisfying G(P)=X lies between l and r, modulo 1e9+7. | Hard9 | CombinatoricsGraph+2 | No attempts yet | 1s | 512 MB | Judgeable |
| GarageMaintain a sequence under point updates, and for each range query count subarrays whose elements share a common divisor greater than 1. | Hard9 | Segment treeNumber theory+2 | No attempts yet | 4s | 256 MB | Judgeable |
| LeadersAnimals in a circle alternately raise a running number by 1 to K; whoever is forced to say M loses, and we find the winner of every start position. | Hard9 | Game theoryDynamic programming+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Imelda's Shopping SpreeMaintain a sequence of prices under range-add and range-reverse, and after each update output the number of contiguous segments whose values are strictly increasing. | Hard9 | Segment treeArray+2 | No attempts yet | 5s | 512 MB | Judgeable |
| KabobsCount length-K strings over the given alphabet that satisfy all substring-implication rules of the form b>e, modulo 10^7. | Hard9 | Dynamic programmingString+2 | No attempts yet | 5s | 512 MB | Judgeable |
| DramaCount the number of valid pyramid colourings of an H by N grid with exactly N black cells, modulo 10^9+7. | Hard9 | CombinatoricsDynamic programming+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Revenge of the Endless BFSDecide whether a buggy BFS that forgets visited vertices ever terminates on a given directed graph, and if so output the loop count modulo 1e9+7. | Hard9 | GraphBFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Conveyor BeltAfter each of Q delivery requests (a, b, p) is added, report the minimum time to finish all tasks, given plates arrive one per second and each plate carries one product. | Hard9 | MathGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Pipe Fitter and the Fierce DogsIn a grid where every odd row and column holds a house, cover all houses with downhill chains, minimizing the cost of pipes through dog blocks, using at most K chains. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Blocks 2Count the ways to tile an N x M rectangle with rotated k x N blocks (k=1..N), modulo 1999, where M can be as large as 10^10. | Hard9 | CombinatoricsDynamic programming+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Stamp PaintingCount the distinct colorings of an N-unit canvas obtainable by stamping K-wide colored stamps so every unit ends up painted, modulo 1e9+7. | Hard9 | Dynamic programmingCombinatorics+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Maximal polygon brightnessGiven a convex polygon and a sequence of vertex deletions, compute after each deletion the largest total length of edges that a single external light point can illuminate. | Hard9 | GeometryDynamic programming+2 | No attempts yet | 3s | 1024 MB | Judgeable |
| Street TreesMaintain a minimum-cost coloring of N vertices with two colors under incremental equality/inequality constraints and point cost updates, reporting the optimum after each operation. | Hard9 | Union-findGraph+2 | No attempts yet | 2s | 256 MB | Judgeable |
| The Number of SequencesFor a given N and C, find the lexicographically smallest triple (X, Y, Z) such that exactly C ordered N-tuples of 31-bit integers have OR X, AND Y, XOR Z, or report none exists. | Hard9 | Bit manipulationCombinatorics+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Uncrossed Knight's TourGiven an m by n board (m at most 8, n up to 1e15), find the maximum number of squares a closed knight tour can visit without crossing itself. | Hard9 | GreedyDynamic programming+2 | No attempts yet | 2s | 1024 MB | Judgeable |
| Maximum Weight Matching in a General GraphGiven a weighted undirected graph, find a matching with maximum total edge weight. | Hard9 | GraphGreedy+1 | No attempts yet | 2s | 512 MB | Judgeable |
| United States of EurasiaSplit N points sorted by x into at most K contiguous groups, minimizing the largest squared diameter within any group. | Hard9 | Binary searchDynamic programming+2 | No attempts yet | 20s | 1024 MB | Judgeable |
| Xtreme NP-hard Problem?!Find the minimum-weight simple path from vertex 1 to vertex n that uses exactly k edges, or report -1; with n, m, k up to 10^6 this is explicitly NP-hard. | Hard9 | GraphShortest path+2 | No attempts yet | 5s | 1024 MB | Judgeable |
| Travelling MerchantGiven a directed weighted graph and per-market buy/sell prices for K items, find the maximum profit-to-duration ratio of a closed walk trading at most one item at a time, floor it. | Hard9 | GraphShortest path+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Tree EscapeOn a rooted tree where each leaf starts with one piece, players alternately move a piece to its parent and remove it at the root; decide if the first player wins. | Hard9 | Game theoryTree+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Fibonacci Digit CountCount occurrences of the substring "11" within the first N characters of the infinite string formed by writing 1, 2, 3, ... in Fibonacci (Zeckendorf) representation. | Hard9 | MathDynamic programming+2 | No attempts yet | 2s | 1024 MB | Judgeable |
| LogoGiven up to five polyomino patch shapes (each a subset of a 3x3 grid, flippable and rotatable) and up to three grid designs up to 55x5, decide if each design can be tiled exactly by non-overlapping patches and find the minimum patch count, or report NIE. | Hard10 | Dynamic programmingBit manipulation+2 | No attempts yet | 1s | 128 MB | Judgeable |