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 results1,178 problems
| Title | Level | Topics | Solved | Time limit | Memory limit | Judge |
|---|---|---|---|---|---|---|
| MarblecoinMarbles sit in stacks; only top marbles can be taken, one per day, and each marble's tax is value times 365 raised to days owned. Minimize the total tax modulo 1e9+7. | Medium7 | GreedySorting+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| HopscotchCount lattice paths from (0,0) to (N,N) where each hop increases x by at least X and y by at least Y, modulo 1e9+7. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Robot RaceFor each of up to a million queries on an n by m grid of obstacles, decide whether a monotone path moving only right or down connects the two given empty cells. | Medium7 | Dynamic programmingPrefix sum+2 | No attempts yet | 2s | 1024 MB | Judgeable |
| Palindromic PartitionsSplit a string into chunks so the chunk sequence is a palindrome, and report the maximum number of chunks possible. | Medium7 | StringGreedy+2 | No attempts yet | 10s | 128 MB | Judgeable |
| Skill TreeFor each triangular region of a weighted infinite triangle grid, compute the total cost of all cells in the region modulo 1e9+7. | Medium7 | CombinatoricsMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| A New SequenceGiven a circular sequence A, compute each b_i as the sum of a_{i+k mod N} weighted by (-1)^k times (k+1) over all k from 0 to N-1. | Medium7 | MathPrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| TableGiven a rectangle with non-overlapping rectangular obstacles, count integer placements of each query rectangle that overlap none of them. | Medium7 | Prefix sumMatrix+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Diagonal slices of a rectangle unionSum the total length of the union of axis-aligned rectangles cut by each diagonal line y = s - x for integer s in [L, R], and print the result divided by sqrt(2). | Medium7 | GeometryIntervals+2 | No attempts yet | 2s | 512 MB | Judgeable |
| MizuyokanGiven a bar divided by N-1 score lines into segments of given lengths, cut along some lines so the longest and shortest resulting pieces differ as little as possible. | Medium7 | Dynamic programmingBinary search+2 | No attempts yet | 2s | 512 MB | Judgeable |
| MateFor each query, count subsequences of S of length D whose last two characters are the given pair XY, modulo 1e9+7. | Medium7 | CombinatoricsDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Snake EscapingGiven a toxicity value for each of 2^L bitmasks, answer Q queries: each query fixes some bits and leaves others free, and asks the sum of values over all matching masks. | Medium7 | Bit manipulationPrefix sum+2 | No attempts yet | 2s | 64 MB | Judgeable |
| Paul the barista picks coffee beansPick the longest subsequence of the given row so that consecutive picked values are congruent mod k or differ by at most d in absolute value. | Medium7 | Dynamic programmingSegment tree+2 | No attempts yet | 1.5s | 64 MB | Judgeable |
| A Particle on the TreeFor each query edge (U,V) and final color C, count pairs (start, end) whose shortest path uses that edge in that direction and whose arrival color matches C. | Medium7 | TreeDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Road ConstructionGiven a permutation, for each query [l,r] reverse that segment and report the number of maximal increasing runs in the resulting array. | Medium7 | ArrayMath+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Heaven's Kitchen 2Given an array of integers, choose two non-overlapping nonempty contiguous subarrays and maximize the product of their sums. | Medium7 | ArrayDynamic programming+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Open SesameGiven pebble and groove heights per column, choose subarray moves adding or subtracting 1 each second to align all pebbles with grooves in minimum time. | Medium7 | ArrayPrefix sum+2 | No attempts yet | 1s | 256 MB | Judgeable |
| GiftCount sequences of length N that split into blocks where each block is 0,1,...,L-1 with L at most K, modulo 1e9+7. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| GameFor each starting size P, two players alternately take a number from a buffer that refills with later sequence elements, and we report Alice's score minus Bob's. | Medium7 | GreedySorting+2 | No attempts yet | 2s | 512 MB | Judgeable |
| File RecoveryDelete elements from a sequence so the remainder parses as length-prefixed blocks that end exactly at the last position, minimizing the largest likelihood among deleted elements. | Medium7 | Dynamic programmingBinary search+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Thor's JourneyIn a perfect binary tree of up to 2^17-1 nodes with node weights, count for each query (start node A, target sum D) how many nodes B lie on a path from A with sum D. | Medium7 | TreePrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Avoiding the HeatCount the lattice paths from a start point to a home point using at most T unit steps in the four cardinal directions, avoiding N blocked points. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Andrew's Amazing ArchitectureGiven required block lengths for n columns, choose actual heights forming a unimodal sequence that respects each requirement and minimizes total volume. | Medium7 | ArrayGreedy+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Points and RectanglesProcess point insertions and rectangle insertions online, after each query reporting how many (point, rectangle) pairs have the point inside or on the rectangle. | Medium7 | Segment treePrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Coprime IntegersCount ordered pairs (x, y) with x in [a, b] and y in [c, d] that share no common factor greater than 1. | Medium7 | Number theoryMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Largest ValueChoose M disjoint contiguous groups in an array of up to 20 numbers so the total sum of their elements is as large as possible. | Medium7 | Dynamic programmingPrefix sum+1 | No attempts yet | 2s | 512 MB | Judgeable |
| New SalariesSalaries are drawn from nested closed intervals. Compute the expected total pairwise salary gaps and output it divided by N squared. | Medium7 | Prefix sumMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Expected Value of a PermutationFind the expected total of sums of arrays that zero all indices divisible by each next permutation value, and output that expectation mod 1000000007. | Medium7 | MathNumber theory+2 | No attempts yet | 1s | 512 MB | Judgeable |
| NLOEach day a circular UFO zeroes the grass in cells it covers, remaining grass grows by 1 per day; sum all grass after K days. | Medium7 | GeometryPrefix sum+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Buying Cards 3Sum, over all contiguous subarrays, of (maximum minus minimum) in the subarray. | Medium7 | StackArray+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Sequence and Queries 23Given a sequence and range queries, count for each query the number of pairs inside the range where an earlier element exceeds a later one. | Medium7 | Divide and conquerSorting+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Grid QueryProcess N rectangle-add updates and Q rectangle-sum queries on a sparse 200000 by 200000 grid, then XOR all query answers. | Medium7 | Prefix sumMatrix+2 | No attempts yet | 4s | 1024 MB | Judgeable |
| Goldbach TripleFor each odd N up to one million, count the unordered ways to write N as a sum of three primes. | Medium7 | Number theoryMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| King of Pie, Kim PieChoose one box length x in [L,R] to minimize x times the number of boxes needed to pack pies of given lengths into consecutive groups, where a length-0 pie must sit alone. | Medium7 | Dynamic programmingBinary search+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Why the Rabbit Came to Information IslandA rabbit moves right, up-right, or down-right through a grid with walls, carrots, and side gates; maximize carrots collected before exiting a side gate. | Medium7 | Dynamic programmingImplementation+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Energy HarvestingSum over all lattice points (x,y) with 1<=x<=n, 1<=y<=m of 2*gcd(x,y)-1, the energy lost reaching that point from the origin. | Medium7 | Number theoryMath+2 | No attempts yet | 1s | 512 MB | Judgeable |
| NyehuingGiven a sequence of N values, count for each ordered pair whether one value appears after another, then answer queries for the K-th smallest valid pair. | Medium7 | CombinatoricsPrefix sum+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| Flag DanceMaintain an array under point updates and answer range queries for the absolute difference between sums of charismas at even and odd positions within the range. | Medium7 | Segment treePrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Hay WeightAfter each mowing that cuts every blade above height b, report the total hay cut, given growth rates and chronological mowing days. | Medium7 | SortingBinary search+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Fortune TellingGiven M by N cards and K rectangle flip operations, count how many cards end face up after all operations. | Medium7 | SortingPrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Gluttonous GoopGiven an r by c grid of fungus cells and k steps, each step expands the fungus to all 8 neighbors, and the fungus grows past the grid; count occupied cells at the end. | Medium7 | GeometryMath+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Beer MugsGiven a string of N characters over 20 brands, find the longest substring that is a palindrome after permuting it freely. | Medium7 | Bit manipulationHash map+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Mixing DrinksCount the ways to split the sequence 1..N into consecutive nonempty blocks so that no block contains both endpoints of any listed bad pair, modulo 1e9+7. | Medium7 | Dynamic programmingTwo pointers+2 | No attempts yet | 1s | 512 MB | Judgeable |
| High Load DatabaseSplit a fixed array of transaction sizes into the fewest consecutive batches, each with total at most t, answering many t values; report Impossible when some transaction exceeds t. | Medium7 | Binary searchPrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| WinteringMaintain acorn counts on a circular walkway split into contiguous regions, supporting range additions and range sum queries over possibly wrapping cell intervals. | Medium7 | Segment treePrefix sum+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Radio PrizeIn a weighted tree, for every city u output the sum of (t[u] + t[v]) * dist(u, v) over all other cities v. | Medium7 | TreeDFS+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Sum and ProductCount the subarrays of length at least 2 in which the sum of the elements equals their product, where each element is a positive integer up to 1e9. | Medium7 | Two pointersMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Milk VisitsGiven a tree with a cow type at each node, answer for each of M queries whether a node on the path from A to B has type C. | Medium7 | TreeDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Moortal CowmbatRewrite a length-N string into streaks of at least K identical letters, where changing any single position from letter i to j costs a shortest-path distance over an M-letter graph; minimize total cost. | Medium7 | Dynamic programmingShortest path+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Trous de LoupGiven n weighted positions, a sandbag budget p, and a plank covering d consecutive positions, find the longest contiguous segment that can be fully disarmed. | Medium7 | Sliding windowTwo pointers+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Stacking horizontal blocksDrop N horizontal blocks one by one at fixed positions, each landing on the tallest surface below it, and report the final stack height. | Medium7 | Segment treeBinary search+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Christmas TreeMaintain a dynamic set of colored nodes in a rooted tree under insertions and deletions, and after each update report the lowest common ancestor of all colored nodes. | Medium7 | TreeDFS+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Flipping El-fetieraEach of K operations picks a uniformly random rectangular submatrix and flips every cell in it; compute the expected number of cells holding 1 at the end. | Medium7 | ProbabilityDynamic programming+2 | No attempts yet | 10s | 512 MB | Judgeable |
| Equal DigitsCount the ways to delete disjoint substrings of length over 1 whose first and last digits match, so the remaining non-empty string has all distinct digits. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 3s | 256 MB | Judgeable |
| Cube SummationFor each N, sum k^3 over all partitions of N with k parts, modulo 998244353, with up to 1e5 queries. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 4s | 512 MB | Judgeable |
| Matrix SumCount the submatrices of an N by M matrix whose element sum is at most x. | Medium7 | Prefix sumTwo pointers+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Random GeneratorSimulate repeatedly picking the p-th remaining copy from a multiset where value i appears w_i times, and output the order in which values are exhausted. | Medium7 | Segment treeBinary search+2 | No attempts yet | 1s | 1024 MB | Judgeable |
| PilotFor each of Q altitude limits, count subarrays of heights whose maximum is at most that limit. | Medium7 | StackSorting+2 | No attempts yet | 1s | 512 MB | Judgeable |
| LasersEach row holds sliding walls of fixed widths; count laser positions blocked in every possible configuration across all rows. | Medium7 | IntervalsGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Downloading EpisodesChoose one fixed sequence of byte requests so that all n episodes download with minimum total packet size, where each packet adds a fixed header k. | Medium7 | Dynamic programmingGreedy+2 | No attempts yet | 1s | 512 MB | Judgeable |
| School OlympiadAssign n students at given coordinates to three locations with capacity limits so the total walking distance is minimized. | Medium7 | GreedySorting+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Nemmo Nemmo 2020The board holds rows of nemmo forming a nonincreasing staircase; for each query (x, y), count the nemmo removed by a laser firing up column x and right along row y. | Medium7 | Binary searchPrefix sum+2 | No attempts yet | 3s | 1024 MB | Judgeable |
| Fighting RoutineFor every window length d from 1 to n, sum the number of distinct task types over all length-d windows of the given array. | Medium7 | ArrayPrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| School DemocracyPartition the classes into consecutive groups of size between l and r, and maximize the total difference between elected boys and girls, where each group elects the side with more votes or both on a tie. | Medium7 | Dynamic programmingPrefix sum+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Interval TrainingCount sequences of positive integers starting at k, summing to n, whose adjacent comparisons strictly alternate up and down, modulo 1e9+7. | Medium7 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 512 MB | Judgeable |
| UnicornCount the number of paths on an N by M letter grid where a chess unicorn piece spells out a given word, modulo 1e9+7. | Hard8 | Dynamic programmingPrefix sum+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Floor DecorationGiven a rectangular window into an infinite 1x5 plank tiling pattern, find the minimum number of 1x5 boards needed to supply all the pieces inside it. | Hard8 | MathImplementation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Misheard BinaryCount distinct binary strings obtainable by shifting each bit of an N-bit number at most D positions, then output the K-th smallest such string. | Hard8 | Dynamic programmingCombinatorics+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Returning to FarmingCount unordered pairs of non-empty axis-aligned rectangles on an N x N grid that touch at exactly one corner and have equal total cell profit. | Hard8 | Prefix sumHash map+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Weather ForecastingChoose r horizontal and s vertical cut lines on an N x M grid to minimize the maximum sum of cell values inside any resulting rectangular section. | Hard8 | Binary searchDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Jinuk's FarmGiven up to 50 axis-aligned square paint operations over an N up to 1000 grid, find the largest square subregion containing no fruit type 0 and at most two distinct fruit types. | Hard8 | Binary searchPrefix sum+1 | No attempts yet | 2s | 128 MB | Judgeable |
| SquaresGiven up to 50 axis-aligned rectangles whose overlapping edges may form extra squares, count every square whose sides lie entirely on drawn line segments. | Hard8 | GeometryPrefix sum+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Rook AttacksPlace two rooks on an N x N grid so the total value of all cells attacked by either rook (excluding the rook cells) is maximized. | Hard8 | MathPrefix sum+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Freight TrainGiven two trains as unions of intervals of occupied cars, find the smallest forward shift of one train that maximizes the count of aligned occupied cars. | Hard8 | IntervalsMath+2 | No attempts yet | 2s | 128 MB | Judgeable |
| PyramidFind placement of an a×b pyramid and interior c×d room on a height grid maximizing the average height of pyramid cells excluding the room, requiring 2D prefix sums and sliding min-window optimization. | Hard8 | Prefix sumSliding window+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Two SequencesPartition two sequences from the back into matched groups to minimize the total sum of products of adjusted group sums, requiring an optimized DP over prefix sums. | Hard8 | Dynamic programmingPrefix sum+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Student GroupsPartition an ordered list of students into contiguous groups minimizing mismatches between grouping and a given friendship graph, using DP over prefix structure with an efficient cost computation. | Hard8 | Dynamic programmingGraph+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Tug of WarSplit two weighted sequences each into three ordered nonempty contiguous parts so paired-part weight differences stay under 50 and the maximum difference is minimized. | Hard8 | Binary searchPrefix sum+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Easy Group MatchingGiven a text sequence and two patterns, count group-matching positions for each pattern, then find the smallest integer n that maximizes group matches for the concatenated pattern P1·n·P2 and report that count. | Hard8 | Dynamic programmingPrefix sum+1 | No attempts yet | 30s | 1536 MB | Judgeable |
| Monoliteral PolygonsCount integer translations of a given rectilinear polygon so it stays inside a lettered grid and covers cells of only one letter. | Hard8 | Prefix sumGeometry+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Black RectanglesCount unordered pairs of disjoint all-black axis-aligned rectangles (each containing at least two cells) in an up to 1000x1000 grid, modulo 10007. | Hard8 | Prefix sumCombinatorics+1 | No attempts yet | 1s | 128 MB | Judgeable |
| FishermenGiven fish production along towns on a line with transport losses proportional to distance, find the maximum equal number of children every town can feed via binary search on feasibility. | Hard8 | Binary searchGreedy+1 | No attempts yet | 1s | 128 MB | Judgeable |
| DistanceGiven a walk on a grid, find a contiguous segment of moves to delete so the remaining path stays within a bounding rectangle and ends as close as possible to the target point. | Hard8 | Prefix sumTwo pointers+2 | No attempts yet | 1s | 128 MB | Judgeable |
| DominanceGiven up to 3000 colored squares each with a Manhattan-distance attack range on a huge grid, count how many grid cells are dominated by white versus black using a diamond-shaped coverage counting technique. | Hard8 | GeometryPrefix sum+1 | No attempts yet | 2s | 128 MB | Judgeable |
| AntsGiven a forest of towns formed by persistent range-add copies of parent towns, answer range-sum queries on each newly created version using online, XOR-derived parameters that depend on previous answers. | Hard8 | Segment treePrefix sum+2 | No attempts yet | 3s | 128 MB | Judgeable |
| Gadgets FactoryGiven m sorted factories each producing one of n part types, find all coordinates t minimizing the sum over parts of squared distance to the nearest factory of that part, expressed as exact fractions. | Hard8 | MathBinary search+2 | No attempts yet | 3s | 256 MB | Judgeable |
| CommandoPartition soldiers into consecutive blocks, each block's score is a concave quadratic of its sum, and maximize the total score. | Hard8 | Dynamic programmingDivide and conquer+2 | No attempts yet | 1s | 64 MB | Judgeable |
| Digging for OilPlace three non-overlapping K by K squares on an M by N grid of oil estimates to maximize the total sum covered, with the grid up to 1500 by 1500. | Hard8 | Prefix sumDynamic programming+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Square CountCount all axis-aligned squares whose unit tiles lie in the union of rectangular rooms, where adjacent rooms connect through centered doors. | Hard8 | GeometryImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Coffee ShopsFor each query radius m, find the grid intersection reached by the most coffee shops within Manhattan distance m, breaking ties by smallest y then smallest x. | Hard8 | Prefix sumGeometry+2 | No attempts yet | 5s | 128 MB | Judgeable |
| Magic SticksSplit a chain of segments into disjoint runs of consecutive segments, close each run into a cyclic polygon, and maximize the total area, where each polygon's best area is the cyclic one. | Hard8 | Dynamic programmingGeometry+2 | No attempts yet | 8s | 128 MB | Judgeable |
| Brownie Points IIGiven points in the plane, Stan picks a vertical line and Ollie a horizontal line through it; find Stan's guaranteed score and the distinct best Ollie scores. | Hard8 | SortingPrefix sum+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Spare the Ewoks!Given an m by n grid with blocked cells, choose up to three non-overlapping axis-aligned rectangles to maximize the total covered area. | Hard8 | Dynamic programmingPrefix sum+1 | No attempts yet | 3s | 128 MB | Judgeable |
| StatisticiansGiven a grid of counts, take the median of the mean densities over all axis-aligned subrectangles whose area lies in [a,b]. | Hard8 | Prefix sumBinary search+1 | No attempts yet | 1s | 128 MB | Judgeable |
| HeritageDivide a region under a polygonal line into parcels whose areas match given ratios, choosing vertical cuts that minimize the total fence length. | Hard8 | Dynamic programmingGeometry+2 | No attempts yet | 0.3s | 64 MB | Judgeable |
| Pyramid BaseGiven up to 1000 weighted rectangles on a grid up to 10^6 by 10^6, find the largest axis-aligned square whose total cost of intersected rectangles is at most B. | Hard8 | Binary searchGeometry+2 | No attempts yet | 5s | 128 MB | Judgeable |
| GardenPlace two non-overlapping rectangles, each holding exactly k roses, and minimize the sum of their perimeters over an l by w grid with n roses. | Hard8 | ArrayPrefix sum+2 | No attempts yet | 1s | 128 MB | Judgeable |
| MountainsMaintain a piecewise-constant sequence of elevation changes under range assignments, and after each update find the first prefix-sum position whose elevation exceeds a query height h. | Hard8 | Segment treeBinary search+2 | No attempts yet | 3s | 256 MB | Judgeable |
| ArtemisGiven N points with distinct x and y, find the axis-parallel rectangle with two opposite corners on points that contains at least T points and the fewest total points. | Hard8 | Prefix sumBinary search+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Bubble SortSwap exactly one pair of elements in the array, then find the minimum number of swaps the given bubble sort performs on the result. | Hard8 | SortingPrefix sum+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Habitat Range of FishGiven up to 50 axis-aligned boxes in 3D, compute the total volume covered by at least K of them. | Hard8 | SortingDivide and conquer+1 | No attempts yet | 1s | 128 MB | Judgeable |