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,917 problems
| Title | Level | Topics | Solved | Time limit | Memory limit | Judge |
|---|---|---|---|---|---|---|
| Space MinerTravel in straight segments through ordered 3D waypoints; for each planet, check whether any segment passes within distance ri+D of its center, then sum the resources of all planets you can reach at least once. | Medium6 | GeometryImplementation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Invasion of the BoxesSimulate a laser ray from the origin that destroys axis-aligned boxes and reflects off them, printing the order of destruction. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| CowsGiven up to 10000 tree coordinates, find the largest convex polygon using any subset as corners, then output its area divided by 50 rounded down. | Medium6 | GeometrySorting+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Tin Can TelephoneCount how many polygon buildings touch or cross the straight segment between two windows, where touching a corner or edge blocks the view. | Medium6 | GeometryImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| R & JGiven two ships and n spheres in 3D, count how many spheres the segment between the ships intersects. | Medium6 | GeometryMath+2 | No attempts yet | 1s | 128 MB | Judgeable |
| FractalsDraw a level-`level` block fractal of given width from (0,1) to (width,1) and list, in order, every integer y where the vertical line x meets a segment. | Medium6 | RecursionImplementation+2 | No attempts yet | 1s | 128 MB | Judgeable |
| DuathlonGiven each competitor's running and cycling speeds and a fixed total distance, choose the run and cycle legs so the last competitor wins by the largest margin, or report that no such split exists. | Medium6 | GeometryMath+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Connect the CampusGiven N points in the plane and some already-built zero-cost edges, add edges connecting all points at minimum total Euclidean length. | Medium6 | Minimum spanning treeUnion-find+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Sheep and CoyotesGiven sheep points in a square, find which sheep is nearest to some entry point on the south edge, possibly selected when there is a tie. | Medium6 | GeometrySorting | No attempts yet | 1s | 128 MB | Judgeable |
| Extension CordsDecide whether the extension cords can be split into two groups, each long enough to reach a different-circuit outlet from one work location. | Medium6 | GreedySorting+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Maple RoundupGiven up to 99 points, find the convex hull by repeatedly turning right through the smallest angle, and output its perimeter rounded to two decimals. | Medium6 | GeometrySorting+2 | No attempts yet | 1s | 128 MB | Judgeable |
| DiamondsFor each count Pmin, find the smallest radius whose worst-case center covers at least Pmin points, then the best coverage at that radius. | Medium6 | GeometryPrefix sum+2 | No attempts yet | 1s | 128 MB | Judgeable |
| BilliardsA ball starts 13 from side R and 29 from side D and moves straight from a cue point on R, reflecting off the sides; find its distances from R and D after n centimeters. | Medium6 | MathGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Folded SheetA rectangle is folded along a segment connecting points on two adjacent edges; find the area of the union of the folded part and the remaining sheet. | Medium6 | GeometryMath+2 | No attempts yet | 1s | 128 MB | Judgeable |
| FireworksA firework splits into two 45-degree branches after each vertical stage; count the distinct grid squares colored across all stages. | Medium6 | SimulationDFS+2 | No attempts yet | 2s | 1024 MB | Judgeable |
| UnfoldungFor each cube-built surface, decide whether its graph splits along cut edges, and if not, whether the surface can be unfolded flat. | Medium6 | GraphDFS+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Dolphin PoolGiven up to 20 circles with disjoint centers, count the bounded regions outside all circles that the circles enclose. | Medium6 | GeometryGraph+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Counting RectanglesCount rectangles whose four corners are all intersection points of horizontal and vertical segments in a figure. | Medium6 | GeometryHash map+2 | No attempts yet | 1s | 128 MB | Judgeable |
| WatchdogFind an integer roof point where a leash can be tied so the dog reaches every hatch but the leash never crosses the roof edge. | Medium6 | GeometryBrute force+2 | No attempts yet | 1s | 128 MB | Judgeable |
| BricksGiven a rectangular brick and a rectangular hole, decide whether the brick can pass through the hole in any orientation. | Medium6 | GeometryMath+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Cricket FieldGiven up to 100 tree points in a W by H rectangle, find the largest axis-aligned square inside the park with no tree strictly inside it. | Medium6 | GeometryBrute force+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Toxic BarrierFind the convex hull of N points and add a buffer of distance L around it, giving the minimum closed barrier length rounded to the nearest integer. | Medium6 | GeometrySorting+2 | No attempts yet | 1s | 128 MB | Judgeable |
| The Dog TaskBob walks a polygonal path through N points; Ralph may leave each segment to visit at most one interesting place and never reuse a place. Maximize places visited. | Medium6 | GeometryGraph+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Fool's DayFor each test case, decide whether a parallelogram postcard fits inside a parallelogram envelope, allowing rotation, translation, and flipping. | Medium6 | GeometryImplementation+1 | No attempts yet | 2s | 64 MB | Judgeable |
| Honey and Milk LandGiven spacings between parallel north-south rivers and between parallel east-west rivers, find the shortest helicopter route crossing every river at least once, rounded up. | Medium6 | GeometryGreedy+2 | No attempts yet | 1s | 128 MB | Judgeable |
| CrankshaftGiven polygons listed clockwise, compute the area-weighted centroid of all plates and print each coordinate as a reduced fraction. | Medium6 | GeometryMath+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Angry LarvaEach snake is a vertical segment at some x-coordinate and height range. Find the launch angle whose parabola passes through the most segments. | Medium6 | GeometryIntervals+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Forest FiresGiven a grid with plant cells, fire cells, and empty cells, compute when every burnable cell catches fire under Euclidean squared spark costs. | Medium6 | GraphShortest path+2 | No attempts yet | 1s | 128 MB | Judgeable |
| StarsGiven a star map of points with brightness and several constellation point sets, count how many rotated or scaled copies of each occur and report the brightest such occurrence. | Medium6 | GeometryHash map+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Counting Lit PixelsFor each integer circle center and radius, count the unit grid squares the disk covers, ignoring squares touched only along an edge or corner. | Medium6 | MathGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Earthquake EmendationsMatch each scattered polygon piece to its rotated location in the shattered window schematic. | Medium6 | GeometryHash map+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Honed HopsGiven two sets of sampled points on a nonnegative quadratic jump arc, decide whether they necessarily come from the same parabola, cannot, or it is undecidable. | Medium6 | MathGeometry+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Shortest Computer Reboot TourGiven up to 12 points, find the shortest closed tour that visits every point exactly once and returns to the start. | Medium6 | Dynamic programmingBit manipulation+1 | No attempts yet | 0.1s | 128 MB | Judgeable |
| Parabolic TeleportsGiven up to 100 parabolic arcs you can ride for free, find the minimum walking time from point V to point W. | Medium6 | GeometryGraph+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Count SquaresGiven up to 2000 distinct integer points, count how many squares have all four vertices among them, including tilted squares. | Medium6 | GeometryHash map+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Radio CoverageChoose a non-overlapping subset of at most 10 candidate disks inside a base disk to maximize the union area of the base and chosen disks. | Medium6 | GeometryBrute force+1 | No attempts yet | 3s | 128 MB | Judgeable |
| Falling CardsSimulate a row of non-intersecting standing cards: when a card falls it sweeps a rectangle of height H, knocking over any card it touches, and each touched card topples away from the pusher. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| TriangulationGiven a convex polygon, find the triangulation whose total diagonal length is minimum and report it rounded to two decimals. | Medium6 | Dynamic programmingGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| Random WalkGiven a recorded sequence of moves on a square grid, decide whether he can walk back to the start without crossing his previous trail. | Medium6 | GeometryImplementation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| RectanglesGiven up to 7000 axis-aligned integer rectangles, count connected components where rectangles merge if their overlap contains a segment of positive length. | Medium6 | Union-findGeometry+2 | No attempts yet | 1s | 128 MB | Judgeable |
| ExamGiven n equal-size axis-aligned rectangles dropped in order, report the indices of sheets whose interior no later sheet covers. | Medium6 | GeometryIntervals+2 | No attempts yet | 5s | 128 MB | Judgeable |
| ChessboardGiven up to 200,000 pieces on an m by m board, count for each piece how many empty squares it can capture in one move. | Medium6 | SortingHash map+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Contour LinesGiven sets of axis-parallel polygons, decide whether each set can be ordered so every polygon lies inside the next. | Medium6 | GeometrySorting+1 | No attempts yet | 1s | 128 MB | Judgeable |
| EarthquakeCount the integer points (x,y) with x≥0, y≥0 and Ax+By≤C for given positive A, B, C. | Medium6 | MathNumber theory+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Why Do They Sing?Decide whether a path from the bottom edge to the top edge of a rectangle avoids every given singing circle. | Medium6 | Union-findGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| Stained GlassGiven N lines with fixed directions that may be shifted freely, arrange them to maximize the number of regions and output that maximum. | Medium6 | Hash mapCombinatorics+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Hubble Space TelescopeFind the earliest time t between 0 and 100000 that minimizes the largest distance from the star alpha to the other moving stars. | Medium6 | Binary searchGeometry+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Turtle GraphicsSimulate the direction-digit moves, erasing each loop or overlap as it forms, then report the remaining segment count and total length. | Medium6 | SimulationStack+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Largest SquareGiven N points on a plane, find the area of the largest square with all four vertices among the points, or 0 when no square exists. | Medium6 | GeometryHash map+1 | No attempts yet | 10s | 256 MB | Judgeable |
| Shoe-printDecide whether two clockwise point sequences describe the same shape up to rotation and translation, without reflection. | Medium6 | Geometry | No attempts yet | 1s | 128 MB | Judgeable |
| Robert HoodGiven C points on a plane, compute the squared distance between the farthest pair of points. | Medium6 | GeometrySorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Canyon CrossingDecide whether a path from the left edge to the right edge of a rectangle avoids up to 1000 circular craters. | Medium6 | Union-findGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| Satellite PhotosCompute the union area of up to 1000 axis-aligned rectangles in each of up to 100 test cases. | Medium6 | GeometrySegment tree+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Solar EclipsePlace a point as close to the origin as possible while staying at least 2R away from n given disk centers. | Medium6 | GeometryBrute force | No attempts yet | 1s | 128 MB | Judgeable |
| MultikillChoose any blast point on the plane to cover as many given points as possible within radius R and print the best count for each group. | Medium6 | GeometryBrute force | No attempts yet | 2s | 128 MB | Judgeable |
| Regions Cut by RectanglesCount the regions into which up to 50 axis-aligned rectangle borders divide the plane, including the outer unbounded region. | Medium6 | GeometryGraph+1 | No attempts yet | 5s | 128 MB | Judgeable |
| Swyper KeyboardExpand a swipe path over a four-row letter grid into every key each segment crosses, then print the first dictionary word that is a subsequence of it. | Medium6 | GeometryString matching+1 | No attempts yet | 1s | 128 MB | Judgeable |
| RectanglesCompute the total area covered by up to 1000 axis-aligned rectangles, counting overlaps once. | Medium6 | SortingIntervals+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Get Out 'Da Way!Simulate up to ten bullets fired at a moving flat target and mark each hit block with an asterisk. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| MazeDecide whether a string of left and right turns can appear on a single walk around an axis-aligned polygon with right angles. | Medium6 | GeometryMath | No attempts yet | 3s | 512 MB | Judgeable |
| FirefliesChoose a shutter time that minimizes the side length of an axis-aligned square holding all fireflies moving at constant velocities. | Medium6 | Binary searchGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| Cow OpticsCount empty integer points where one added 45-degree mirror steers the northbound laser from the origin to the barn through the existing mirrors. | Medium6 | SimulationSorting+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Crane BalancingFind the range of extra weight at the first vertex that keeps the polygon balanced on the x-axis. | Medium6 | GeometryMath | No attempts yet | 1s | 128 MB | Judgeable |
| Big CircleGiven up to 100000 points on a single circle, find the smallest Euclidean distance between any two of them. | Medium6 | GeometrySorting | No attempts yet | 1s | 16 MB | Judgeable |
| Tinted Glass WindowN overlapping rectangles each add an integer tint to the area they cover, and you must find the total area whose summed tint is at least T. | Medium6 | Prefix sumSorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Lazy FoxStarting from the origin, visit neighbors so each hop is strictly shorter than the last and collect the maximum number of treats. | Medium6 | Dynamic programmingSorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Spectator SeatsPrint the number of seats on circles D1 to D2 with no other seat on the same ray from the center. | Medium6 | Number theoryMath+1 | No attempts yet | 1s | 64 MB | Judgeable |
| VampireA circular sun of radius r rises from the horizon behind rectangular buildings, and each dataset asks for the last time the whole disk stays hidden. | Medium6 | GeometryIntervals+1 | No attempts yet | 3s | 256 MB | Judgeable |
| Don't Cross the Circles!Decide whether two points can be joined by a curve that crosses none of up to 100 given circle circumferences. | Medium6 | GraphGeometry+1 | No attempts yet | 1s | 256 MB | Judgeable |
| How many squares?Count quadruples of the given infinite lines that form the four sides of a square. | Medium6 | GeometryHash map | No attempts yet | 1s | 256 MB | Judgeable |
| Fortress ConstructionChoose up to four of the given points as corners of a convex polygon with maximum area. | Medium6 | GeometryBrute force | No attempts yet | 7s | 256 MB | Judgeable |
| Aquarium TankA convex polygon tank of depth D holds L litres of water, and the task asks for the height of the water surface. | Medium6 | GeometryBinary search | No attempts yet | 1s | 256 MB | Judgeable |
| Mosquito, You Are MineCover as many of up to 32 points as possible with one circle of the given diameter and report the maximum count. | Medium6 | GeometryBrute force | No attempts yet | 2s | 256 MB | Judgeable |
| Multi-touch gesture classificationFrom two side-by-side touch images, extract finger blobs and centers, pair the touches, and report pan, zoom, or rotation with its direction. | Medium6 | SimulationGeometry+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Finding a LineDecide whether any single line passes through at least p percent of N given points. | Medium6 | ProbabilityGeometry+1 | No attempts yet | 4s | 256 MB | Judgeable |
| Holstein FenceEnclose the most Holsteins in an axis-aligned rectangle with no Guernsey inside, breaking ties by smallest area. | Medium6 | Brute forceSorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Picky EaterCut the convex polygon along one diagonal between nonadjacent vertices and eat the largest piece that contains no olive. | Medium6 | GeometryBrute force+1 | No attempts yet | 1s | 512 MB | Judgeable |
| Cutting CheeseCut a 100 mm cube with spherical holes into s slices of equal cheese volume perpendicular to the z axis and print each thickness. | Medium6 | Binary searchGeometry+1 | No attempts yet | 3s | 256 MB | Judgeable |
| Window ManagerSimulate a phone window manager that opens, closes, resizes, and moves non-overlapping rectangles with cascading pushes and reports errors. | Medium6 | SimulationGeometry | No attempts yet | 2s | 256 MB | Judgeable |
| SnakeA snake that never shrinks grows one cell per second on a square board and turns on schedule; report when it leaves the board or bites its own body. | Medium6 | GeometrySimulation | No attempts yet | 1s | 256 MB | Judgeable |
| Contest Pizza CuttingFind the largest number of equal radial slices of a circle that each contain the same number of given points with no cut passing through a point. | Medium6 | GeometryBrute force+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Undetected RouteFind how many leading sensors can stay active before their overlapping circles join the left and right walls and block travel from the bottom edge to the top. | Medium6 | Union-findBinary search+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Forest HighwayCompute the area of the part of a simple polygon lying at distance at least d from a given infinite line. | Medium6 | Geometry | No attempts yet | 1s | 256 MB | Judgeable |
| TomosynthesisGiven N disjoint disks, find the widest angle range over which their parallel projections stay pairwise disjoint. | Medium6 | GeometryIntervals+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Above or Below the Koch CurveGiven a level L Koch curve from (0,0) to (1,0), decide whether each query point lies above or below the curve. | Medium6 | RecursionGeometry+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Colby's Costly CollectiblesCount the unit triangles inside a simple polygon traced by axis moves on a triangular grid. | Medium6 | GeometryMath | No attempts yet | 1s | 256 MB | Judgeable |
| The AgglomeratorSimulate moving circular droplets that merge on contact with area-weighted position and velocity, and report the final count and last merge time. | Medium6 | SimulationMath+1 | No attempts yet | 3s | 256 MB | Judgeable |
| Vegetables left outside the fenceSum the indices of up to 100000 points that lie outside a given axis-aligned simple polygon with up to 100000 vertices. | Medium6 | GeometrySorting | No attempts yet | 3s | 256 MB | Judgeable |
| Probability ExperimentCount the triples of given points on a circle that form an acute triangle. | Medium6 | Two pointersCombinatorics+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Hilbert SortSort up to 200,000 labeled grid points by the order in which the Hilbert curve visits them. | Medium6 | RecursionSorting+1 | No attempts yet | 5s | 256 MB | Judgeable |
| Hovering HornetExpected number of spots on a die visible from a random point in its box, counting a spot only when the segment to the viewer misses the die. | Medium6 | GeometryProbability+1 | No attempts yet | 1s | 512 MB | Judgeable |
| MuseumCount triples of wall pillars that form a triangle none of whose sides crosses the square pedestal. | Medium6 | GeometryCombinatorics+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Pipe cleaningDecide whether a subset of pipes covers every pipe crossing with exactly one of the two crossing pipes chosen. | Medium6 | GraphBFS+1 | No attempts yet | 7s | 256 MB | Judgeable |
| Saint John FestivalCount how many small lantern points fall inside or on the boundary of the convex hull of the large lantern points. | Medium6 | GeometrySorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Squeeze the CylindersGiven up to 500 ground-resting cylinders with fixed order, compute the minimum wall-to-wall width when squeezed together. | Medium6 | Dynamic programmingGeometry | No attempts yet | 1s | 256 MB | Judgeable |
| Wall ClocksEach member sees a section of the office walls inside a 90 degree cone, and the task asks for the fewest clock points so every member sees at least one. | Medium6 | GreedyIntervals+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Field ReductionRemove up to three of N points so the axis-aligned bounding rectangle of the rest has the smallest possible area. | Medium6 | Brute forceGeometry | No attempts yet | 2s | 512 MB | Judgeable |
| Splitting the FieldCompute how much fenced area is saved by covering all points with two disjoint axis-aligned rectangles instead of one. | Medium6 | SortingPrefix sum+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Filling a Board with N-OminoesFor each case with piece size X and board R by C, decide whether Richard has an X-omino that blocks every tiling or Gabriel tiles the board anyway. | Medium6 | Game theoryGeometry+1 | No attempts yet | 5s | 512 MB | Judgeable |
| X Marks the SpotFind the shortest integer direction so two movable perpendicular lines split the 4N points into four groups of N each. | Medium6 | GeometrySorting+1 | No attempts yet | 5s | 512 MB | Judgeable |