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 results3,683 problems
| Title | Level | Topics | Solved | Time limit | Memory limit | Judge |
|---|---|---|---|---|---|---|
| LCS 6Given two uppercase strings of up to 50000 characters, print the length of their longest common subsequence. | Hard8 | StringDynamic programming+1 | No attempts yet | 1s | 8 MB | Judgeable |
| LCS 7Given two strings of length up to 50000, find the length of their longest common subsequence and print one such subsequence. | Hard8 | StringDynamic programming+2 | No attempts yet | 2s | 8 MB | Judgeable |
| Post Office 1Place P post offices among V villages on a circular road of circumference L to minimize the total distance from every village to its nearest office, and output both the cost and chosen positions. | Hard8 | Dynamic programmingBinary search+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| Ignore SubmasksFor each k-bit mask x, find the first array element that does not contain x as a submask, and sum these indices modulo 998244353. | Hard8 | Bit manipulationDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Expected ValueRepeatedly pick a random adjacent pair, replace the left value by its difference with the right, drop the right. Find the expected final value modulo 1e9+7. | Hard8 | Dynamic programmingProbability+2 | No attempts yet | 3s | 16 MB | Judgeable |
| Nonsense TimeElements of a random permutation are unfrozen one at a time; after each unfreeze report the longest increasing subsequence length among the currently available elements. | Hard8 | Dynamic programmingBinary search+2 | No attempts yet | 12s | 512 MB | Judgeable |
| Snowy SmileGiven up to 2000 weighted points, find an axis-aligned rectangle maximizing the sum of weights of points inside or on its border, allowing an empty rectangle for zero. | Hard8 | Dynamic programmingSorting+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Game PredictionFor each subarray query, compute both players' final scores when they alternately take the leftmost or rightmost element, playing optimally. | Hard8 | Dynamic programmingGame theory+2 | No attempts yet | 1s | 512 MB | Judgeable |
| AlakazamGiven an array and range shuffle operations that permute a segment uniformly at random, answer point queries for the expected value at a position. | Hard8 | MathProbability+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Road NetworkGiven a tree, add one edge so that the number of bridges in the resulting graph is minimized, and report that minimum count. | Hard8 | TreeDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| KhoshafCount arrays of length N with entries in [L, R] that have exactly K contiguous subarrays whose sum is divisible by 3, modulo 1e9+7. | Hard8 | Dynamic programmingCombinatorics+2 | No attempts yet | 12s | 512 MB | Judgeable |
| ExpEach of n independent monsters grants i experience (0 to k) with probability p_i, totals are capped at x, and the expected capped total must be computed modulo 998244353. | Hard8 | ProbabilityDynamic programming+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Bridge ConstructionCount unlabeled connected graphs on N vertices with maximum degree at most 4, modulo a prime X. | Hard8 | CombinatoricsDynamic programming+2 | No attempts yet | 2s | 256 MB | Judgeable |
| The Moo ParticleGiven N points with distinct coordinates, one of two points may vanish when one dominates the other; find the minimum number of points that can remain. | Hard8 | SortingGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Longest Increasing Subsequence ksGiven a permutation-like sequence, find the K-th longest increasing subsequence when all LISs are sorted lexicographically by index, or -1 if fewer than K exist. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 0.25s | 512 MB | Judgeable |
| Encryption FunctionGiven the output of a digit-subset-sum encryption, find any positive integer that encrypts to it or report that none exists. | Hard8 | MathDynamic programming+2 | No attempts yet | 1s | 64 MB | Judgeable |
| Printer's HeadGiven a permutation of heights 1..n to print in order, find the minimum number of left-to-right or right-to-left sweeps, where each sweep prints positions in order with heights dropping by 1. | Hard8 | GreedyDynamic programming+1 | No attempts yet | 1.5s | 64 MB | Judgeable |
| Alice and BobCount placements of at most one token per vertex on a colored DAG where Alice (white moves) beats Bob (black moves) under optimal play. | Hard8 | Game theoryDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Banned WordsCount length-L strings over 26 letters avoiding a given set of banned substrings, modulo 998244353, with L up to 1e9. | Hard8 | String matchingTrie+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Non-Decreasing Subarray GameFor each query range, Yuto picks an integer to minimize and Platina then picks one to maximize the count of non-decreasing subarrays inside the interval they bound; output the resulting score. | Hard8 | Game theoryDynamic programming+2 | No attempts yet | 2s | 256 MB | Judgeable |
| KnapsackCount subsets of weights where each of n types has 2 copies and masses grow at least by a factor of 2, so the total equals W. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Partition into TeamsFor n people each choosing red, blue, or spectator uniformly, compute 3^n times the probability that red wins, modulo a prime p. | Hard8 | CombinatoricsMath+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Counting DivisorsFor each query with l, r, k, compute the sum of d(i^k) for i from l to r, modulo 998244353, where d counts divisors. | Hard8 | Number theoryMath+2 | No attempts yet | 7s | 512 MB | Judgeable |
| Lazy RunningStarting and ending at checkpoint p2 on a 4-cycle, find the shortest closed walk whose swipe-recorded total distance is at least K, given the four edge lengths. | Hard8 | Shortest pathDynamic programming+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Rikka with LinkerGiven a directed dependency graph on n libraries, find the shortest sequence of library names in which every edge (a,b) has some occurrence of a before some occurrence of b. | Hard8 | Bit manipulationDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Remove the TreeGiven a tree, repeatedly delete the vertices of any chosen path (and incident edges); find the minimum number of path-deletions needed to remove every edge. | Hard8 | TreeGreedy+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Hokusai ArtworksOn a directed graph, each city has a museum open only on even days; find the maximum total weight of distinct museums visitable starting at city 0 on an even day. | Hard8 | GraphDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Wavel SequenceCount pairs of increasing index sequences from two arrays whose selected values are equal and form a strictly alternating up-down wave, modulo 998244353. | Hard8 | Dynamic programmingCombinatorics+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Nutella's LifeChoose a subsequence of contests with nondecreasing values, where skipping x contests in a row costs x+1 each, to maximize total fun. | Hard8 | Dynamic programmingSegment tree+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Anna and Lucky TicketsCount n-digit palindromes that are lucky under neither the alternating-position sum test nor the first-half-versus-second-half sum test, modulo 1e9+7. | Hard8 | CombinatoricsDynamic programming+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Subsequence SumsGiven the multiset of all subsequence sums of a hidden positive-integer sequence, reconstruct the sequence, choosing the lexicographically smallest one. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Leave Out All The RestGiven two arrays with distinct values, interleave them into one sequence so that its longest increasing subsequence is as long as possible, and output that maximum length. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| OnesFor each k up to 1e9, output a 1-expression using only ones, +, *, and parentheses that evaluates to k with at most 100 ones, or NO. | Hard8 | Dynamic programmingMath+2 | No attempts yet | 1s | 512 MB | Judgeable |
| MonkeysChoose K vertices of a tree and delete edges so every chosen monkey can reach another, minimizing the number of surviving edges. | Hard8 | TreeDynamic programming+2 | No attempts yet | 4s | 512 MB | Judgeable |
| Master Zhu and Math ProblemCount quadruples (a,b,c,d) within given bounds that satisfy two linear inequalities, modulo 1e9+7, with bounds up to 1e18. | Hard8 | MathCombinatorics+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Bipartite Graph ColoringSum, over all 2^n black/white colorings of a bipartite graph, the product of per-edge weights that depend on the colors of each edge's endpoints, modulo 1e9+7. | Hard8 | MathDynamic programming+2 | No attempts yet | 12s | 512 MB | Judgeable |
| Independent SetCount vectors of n nonnegative integers summing to m where positions flagged by a and parent-child pairs in the implicit binary heap cannot both be positive, modulo 1e9+7. | Hard8 | Dynamic programmingTree+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Saddle PointCount the n by m matrices with entries in 1..k that contain at least one position that is a strict maximum of both its row and its column, modulo 1e9+7. | Hard8 | CombinatoricsDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| KolmogorovIn a connected undirected graph where each minute one random edge lights up, find the minimum expected time for an optimal walker to travel from node 1 to node N. | Hard8 | GraphDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Cleaning RobotsCount the ways to partition all vertices of a tree into vertex-disjoint paths such that no two paths can be merged into a longer path. | Hard8 | TreeDynamic programming+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Fibonacci's NightmareFor a random sequence built by summing two earlier terms, find the variance of the n-th term modulo 10^9+7. | Hard8 | ProbabilityDynamic programming+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Infinite Binary EmbeddingCount the ways to embed a finite binary tree into the infinite binary tree so that each leaf lands at a prescribed height, modulo 1e9+7. | Hard8 | TreeDynamic programming+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Key StorageFor each key, count how many other positive integers produce the same multiset of remainders when repeatedly divided by 2, 3, 4, and so on. | Hard8 | CombinatoricsMath+2 | No attempts yet | 3s | 512 MB | Judgeable |
| TrenerCount ways to pick one surname from each length bucket so every shorter surname is a substring of every longer one, modulo 1e9+7. | Hard8 | StringDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| min-xorMaintain a dynamic set under insertions and deletions, and after each min-xor query report the smallest XOR of any two elements currently in the set. | Hard8 | TrieBit manipulation+2 | No attempts yet | 0.4s | 8 MB | Judgeable |
| Related LanguagesGiven strings A and B and an integer k, find the longest pair of equal-length substrings, one from each string, that differ in at most k positions. | Hard8 | Binary searchDynamic programming+2 | No attempts yet | 10s | 512 MB | Judgeable |
| Dynamic Input ToolFind the minimum number of append-character and append-subsequence-of-current-string operations needed to build a given string from empty. | Hard8 | Dynamic programmingString+2 | No attempts yet | 2s | 512 MB | Judgeable |
| BelieverFor each n up to 1e18, find the maximum over all positive-integer sequences summing to n of the total popcount of the multiplicities of the distinct values. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Kids Aren't AlrightGiven m up to 1e18, count the non-empty sets of positive integers whose gcd is 1 and lcm is m, modulo 998244353. | Hard8 | Number theoryCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Median on Binary TreeGiven a heap-shaped binary tree with distinct weights, for every a find the largest a-median, defined as the element at position floor((k-a+1)/2) of a subtree sorted by weight. | Hard8 | TreeDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Expected LCPCompute the expected length of the longest common prefix among n independent uniform random infinite binary strings, output as a fraction mod 1e9+7. | Hard8 | ProbabilityCombinatorics+2 | No attempts yet | 1.5s | 256 MB | Judgeable |
| WeltallFind the d-th lexicographic permutation of 1..n that has exactly k fixed points. | Hard8 | CombinatoricsDynamic programming+2 | No attempts yet | 4s | 256 MB | Judgeable |
| Best DivisionGiven a pseudorandom array, find the largest K such that A can be split into K nonempty intervals of length at most L, each with XOR sum at most X. | Hard8 | Dynamic programmingPrefix sum+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Intersection is Not Allowed!Count the ways to route K non-crossing monotone paths from fixed top squares to fixed bottom squares on an N by N board, modulo 1e9+7. | Hard8 | Dynamic programmingCombinatorics+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Eel and GridAn eel on a toroidal H by W grid walks right or down, painting cells, until it returns to a painted cell; count Hamiltonian-style walks that cover every cell and end at (0,0). | Hard8 | CombinatoricsMath+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Cups and BeansBeans sit in cups 1 through N-1, each with a move limit C_i; players alternate sliding one bean to a lower cup and whoever cannot move loses. Decide the winner. | Hard8 | Game theoryDynamic programming+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Delivering FlyersOn a unit-weight tree, find the shortest closed walk from S that covers every node, given the rider can cover all nodes within distance D from any single stop. | Hard8 | TreeGreedy+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| TriangulationCount, over all triangulations of a regular N-gon with a proper red/blue coloring, the total number of red triangles, modulo 998244353. | Hard8 | CombinatoricsDynamic programming+2 | No attempts yet | 2.5s | 256 MB | Judgeable |
| Drought (Large)Maximize the sum of a_i minus the sum of b_j over nonnegative reals a and b subject to a_i - b_j <= c_ij, then round the answer to the nearest integer. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| Taking ItemsEach item may require others first, cycles mean all-or-nothing; pick a feasible set of items maximizing total mood change. | Hard8 | GraphDynamic programming+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| Second Diameter of a TreeGiven a weighted tree with up to 100,000 vertices, find the distance of the second farthest pair of vertices, allowing a tie with the diameter. | Hard8 | TreeDFS+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| How Many Burgers?Split N burgers with given utilities among three people so that the youngest gets the most he can while not exceeding either senior's total. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| FeastChoose at most K disjoint non-empty subarrays of A so that the total sum of their elements is as large as possible. | Hard8 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| QuadtreeGiven a 2^n by 2^n binary matrix and a budget k, flip at most k entries so the resulting matrix has a quadtree with the fewest possible cells. | Hard8 | TreeDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Team SelectionSplit N players into two equal teams so the difference between the captains' total scores is minimized, choosing the lexicographically smallest assignment. | Hard9 | Divide and conquerDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| DominoesCount how many ways a given set of dominoes can be partitioned into one or more edge-disjoint cycles using every piece exactly once. | Hard9 | GraphCombinatorics+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Diameter of a CactusGiven a cactus graph (each edge in at most one cycle), compute the maximum shortest-path distance between any two vertices. | Hard9 | GraphDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Coloring RectanglesGiven N rectangles, choose exactly K of them to maximize the total visible union area under a max-index-wins overlap rule, picking the lexicographically smallest tie-break. | Hard9 | GeometryDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Maximum Matching in an Almost Bipartite GraphCompute the maximum matching size in a graph formed by two paths (A and B) joined by up to 50 extra cross edges. | Hard9 | GraphDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Small SquaresDetermine the winner of an optimal-play coloring game on a grid where players color 1x1 or restricted 2x2 squares, using Sprague-Grundy analysis. | Hard9 | Game theoryDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Pro Gamer YoungsikGiven time and resource budgets, compute the maximum number of top-tier units obtainable from a chain of unit upgrades where each unit can repeatedly spawn the next type. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 2s | 128 MB | Judgeable |
| CowboysGiven N cowboys shooting in turns with hit probabilities and optimal target choice under strategic play, compute each cowboy's probability of being the sole survivor. | Hard9 | Game theoryDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Hangul-Missing NumbersGiven which Hangul letters are forbidden, find the N-th positive integer up to 10^52-1 whose Korean numeral representation avoids all forbidden jamo, using digit DP over decomposed syllables. | Hard9 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Roller CoasterFind a self-avoiding path from top-left to bottom-right on a grid up to 1000x1000 that maximizes the sum of visited cells' joy values. | Hard9 | Dynamic programmingGraph+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Beautiful ArchipelagoFor each queried sea level, count unordered pairs of islands (connected land regions after flooding) that are translation-equivalent in shape, over up to 1000x1000 grid and 100000 queries. | Hard9 | Union-findHash map+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Chip RoutingAssign each marked point on a square chip a direction toward a side so that drawn segments never cross or pass through other points, minimizing the total segment length. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Once You Shoot, You Cannot StopGiven board dimensions and bead counts per color, arrange beads and clear groups to maximize the sum of squared group sizes. | Hard9 | CombinatoricsDynamic programming+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Protein IdentificationGiven peaks from an imperfect MS2 experiment, find the minimum number of noise peaks over all P/Q proteins whose total mass equals the largest peak. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| DNA SequencesGiven a DNA pattern with wildcards and a rank R, find the R-th lexicographic matching string that decomposes into at most K non-decreasing runs. | Hard9 | Dynamic programmingCombinatorics+2 | No attempts yet | 1s | 128 MB | Judgeable |
| ZooChoose cages to empty on a circle so that the most children watching 5-cage arcs become happy, where each child needs one feared animal removed or one liked animal kept. | Hard9 | Dynamic programmingBit manipulation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Nice PrefixesCount length-L strings over a K-letter alphabet where every prefix keeps all symbol counts within 2 of each other, modulo 1e9+7, with L up to 1e18. | Hard9 | Dynamic programmingCombinatorics+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Planning Rolling BlackoutsPartition an h by w grid by recursive guillotine cuts so that the heaviest set of groups left powered stays within capacity, maximizing the group count and then the reserve. | Hard9 | Dynamic programmingPrefix sum+2 | No attempts yet | 3s | 512 MB | Judgeable |
| A Broken DoorGiven a grid maze with card-locked doors on some walls, find the fewest cards that always suffice to reach the exit whichever single door is broken, or -1 if some broken door cuts off the exit. | Hard9 | GraphShortest path+2 | No attempts yet | 3s | 128 MB | Judgeable |
| Old MemoriesGiven pieces of an original text and an altered copy with at most d edits, list all original strings whose edit distance to the copy is at most d and where every position lies inside some piece occurrence. | Hard9 | String matchingDynamic programming+2 | No attempts yet | 10s | 128 MB | Judgeable |
| Around the TrackFind the Eulerian circuit of a planar-ish graph whose total turning cost is minimized, where each degree-4 node requires choosing how to pair its incident edges. | Hard9 | GraphDynamic programming+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Floor BricksCover a column-height profile of a bare floor with rotated 3x3 polyomino bricks of given prices, minimizing total cost. | Hard9 | Dynamic programmingImplementation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Navi NavigationGiven a weighted undirected graph with fruit types on nodes and multiple queries, find for each pair a shortest path that visits exactly one node of every fruit type. | Hard9 | GraphShortest path+2 | No attempts yet | 1s | 128 MB | Judgeable |
| TablesCount the tilings of a polyiamond on a triangular grid by isosceles trapezoids made of three unit triangles, given the shape's boundary as a sequence of grid nodes. | Hard9 | Dynamic programmingGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Synnerg LifeformGiven rewriting rules that merge adjacent synnergs with multiplicative lifetimes, find all maximum-lifetime synnergs obtainable by fully unifying some contiguous block of each input sequence. | Hard9 | Dynamic programmingIntervals+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Not Too Convex HullPartition the nails into B convex polygonal groups, all sharing the origin nail, minimizing the total covered area, with the origin strictly inside the global hull. | Hard9 | Dynamic programmingGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Island TravelsGiven a grid with N islands and shallow water, find the minimum total swim distance to visit every island, starting anywhere. | Hard9 | GraphBFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Taking TurnsTwo players alternately take bales from a line, skipping any number of earlier bales; each plays optimally and takes the leftmost optimal bale. Find each player's total. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Cow HopscotchChoose an outbound path of jumps (each at most K squares) and a return path that only lands on squares one less than an outbound square, maximizing collected values. | Hard9 | Dynamic programmingSegment tree+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Largest FenceGiven N grid points with no three collinear, find the size of the largest subset whose points form the vertices of a convex polygon. | Hard9 | GeometryDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Winmine (Minesweeper)Count the ways to place the remaining mines on the unrevealed squares so that every revealed number matches its adjacent mine count, modulo 1000003. | Hard9 | Dynamic programmingGraph+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Mine the GradientGiven a grayscale grid, find the largest square subgrid whose values follow a vertical, horizontal, or diagonal uniform gradient, and report its area. | Hard9 | Dynamic programmingImplementation+2 | No attempts yet | 10s | 128 MB | Judgeable |
| Alea iacta estGiven a linear congruential generator, compute the maximum Yahtzee score over eleven rounds by choosing which dice to keep and which combination to score each round. | Hard9 | Dynamic programmingSimulation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| DownpaymentGiven future monthly interest rates for m mortgage plans, binding periods, and switch penalties, find the schedule of plan choices that minimizes the total money paid, with debt rounded down each month. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 256 MB | Judgeable |
| A Romantic Movie OutingMaintain a dynamic set of occupied seats across a huge theatre, answer queries for the combined field-of-vision inconvenience of two seats, and at the end find the minimum over far unoccupied seat pairs. | Hard9 | Segment treeDynamic programming+2 | No attempts yet | 2s | 512 MB | Judgeable |
| TelecorpPlace one of M module types on any subset of N teleporters, each jump skipping ahead and multiplying speed, to minimize total travel time from 0 to L. | Hard9 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 1024 MB | Judgeable |