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 |
|---|---|---|---|---|---|---|
| SpaceCount, for each test case, the pairs of up to 100000 points whose Euclidean distance is strictly less than d. | Medium5 | Hash mapGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| FishnetThreads join opposite sides of a unit square, and the program reports the largest cell area in the net they form. | Medium5 | GeometryMath | No attempts yet | 1s | 128 MB | Judgeable |
| BeehivesThe program decides whether two move records describe the same hexagonal layout under rotation and reversed reading, with mirror images treated as different. | Medium5 | GeometryString matching+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Flower VasesGiven two pairs of pentominoes, decide whether each pair can be joined edge to edge into the same ten-square outline. | Medium5 | Brute forceGeometry | No attempts yet | 6s | 128 MB | Judgeable |
| Property LinesGiven up to 100 claimed rectangles inside a W by H city, compute the area claimed twice or more, at least once, and never. | Medium5 | GeometryBrute force+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Cut the CakeCount into how many regions the given infinite lines divide a circle. | Medium5 | GeometryCombinatorics | No attempts yet | 20s | 128 MB | Judgeable |
| ArcheryA ray from the origin fires in a uniform random direction, and the task asks the expected number of segments it pierces. | Medium5 | GeometryProbability | No attempts yet | 1s | 128 MB | Judgeable |
| Find the MarblesGiven up to 99 distinct integer points per test case, report the largest number of points that lie on one straight line. | Medium5 | GeometryHash map | No attempts yet | 1s | 128 MB | Judgeable |
| Incomparable rectangle pairsCount the pairs of rectangles where neither fits inside the other after translation or a 90-degree rotation. | Medium5 | SortingGeometry+1 | No attempts yet | 2s | 512 MB | Judgeable |
| KansasTrack the clock-bearing driving segments and rest breaks to count breaks before the path first crosses the start, or report -1. | Medium5 | GeometrySimulation+1 | No attempts yet | 2s | 1024 MB | Judgeable |
| All SquaresGiven starting size k, count the nested corner squares whose border or interior holds the query point. | Medium5 | RecursionGeometry | No attempts yet | 1s | 128 MB | Judgeable |
| Heracles and the Stables of AugeasPick rivers whose water totals at least W so the sum of straight-line digging distances from the stable is smallest. | Medium5 | Dynamic programmingGeometry | No attempts yet | 1s | 256 MB | Judgeable |
| Hexagonal colonyChoose hexagonal cell blocks so the exposed wall windows house at least P people with the fewest blocks. | Medium5 | GreedyGeometry+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Fence the vegetablesGiven up to 100000 plant points, compute the perimeter and area of the smallest axis-aligned integer-corner fence that keeps each side 1 mm from every plant. | Medium5 | GeometryMath | No attempts yet | 3s | 256 MB | Judgeable |
| Ring RingDecide if a dog crossing a road on a timed start collides with any of ten moving bicycle segments and report the gap used or the first hit. | Medium5 | GeometryMath+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Texas SummersFind the route from the dormitory to class through shady spots that minimizes the sum of squared leg lengths, with ties broken by lexicographic index order. | Medium5 | Shortest pathGraph+1 | No attempts yet | 2s | 256 MB | Judgeable |
| Cake Corner TrimmingChoose the largest corner-trim parameter s so the convex polygon keeps at most fraction a of its area. | Medium5 | GeometryMath+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Museum wall constructionFind the shortest closed curve enclosing N disjoint equal circles of radius R. | Medium5 | GeometrySorting | No attempts yet | 1s | 256 MB | Judgeable |
| The HunterFind the shortest rope between two points outside a circle that never enters it, straight when clear and two tangents joined by an arc otherwise. | Medium5 | GeometryMath | No attempts yet | 1s | 128 MB | Judgeable |
| Mobile GamingTwo rectangles move at constant speed from time 0 to 1; report the first moment they touch or overlap, or report no collision. | Medium5 | GeometryIntervals+1 | No attempts yet | 1s | 256 MB | Judgeable |
| Goblin Garden GuardsCount how many of up to 100000 points remain uncovered by 20000 sprinkler circles of radius at most 100. | Medium5 | GeometryHash map | No attempts yet | 3s | 256 MB | Judgeable |
| Delicious CookieSplit every piece of a right triangle with legs a and b N times along the altitude to the hypotenuse and print the natural log of the K-th largest piece area. | Medium5 | CombinatoricsGeometry+1 | No attempts yet | 1s | 512 MB | Judgeable |
| Cheating KnightA knight whose jumps of fixed length may land on any point of the plane must reach a target square in the fewest jumps. | Medium5 | GeometryMath | No attempts yet | 1s | 256 MB | Judgeable |
| From Sinchon to AnamFind the shortest single segment that connects the Sinchon road network to the Anam road network. | Medium5 | GeometryBrute force | No attempts yet | 7s | 256 MB | Judgeable |
| The Ant RobotGiven the side lengths of a rectangular box, compute the squared length of the shortest surface path between opposite corners. | Medium5 | GeometryMath | No attempts yet | 1s | 256 MB | Judgeable |
| Field ReductionYou remove one of N points to minimize the axis-aligned bounding box area of the rest. | Medium5 | Brute forceGeometry | No attempts yet | 2s | 512 MB | Judgeable |
| Filling a board with N-ominoes (Small)Given polyomino size X and board size R by C, decide whether the first player can choose a shape that makes the board impossible to tile. | Medium5 | GeometryGame theory+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Rural Planning (Small)Order all given points into a simple polygon whose area exceeds half the largest achievable area and print the lexicographically smallest such order. | Medium5 | Brute forceGeometry | No attempts yet | 5s | 512 MB | Judgeable |
| Rural PlanningArrange every post into a simple polygon larger than half the convex hull area by building the two specified hull-chain orders and keeping the larger one. | Medium5 | GeometrySorting+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Zombie Smash (Small)Plan a route from (0, 0) that smashes the most zombies, each catchable for 1000 ms after it appears, with 8-direction moves and a 750 ms smasher recharge. | Medium5 | Brute forceIntervals+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Irregular Cakes (Small)Split the region between two polylines into G equal areas with vertical cuts and print each cut position. | Medium5 | Binary searchGeometry | No attempts yet | 5s | 512 MB | Judgeable |
| Irregular Cakes (Large Input)Find the vertical cut positions that split the region between two polylines into G slices of equal area. | Medium5 | GeometryBinary search+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Lights (Small Input)For one pillar at most, compute the areas lit by red only, green only, both, and neither within a 100 by 100 square. | Medium5 | GeometryImplementation | No attempts yet | 5s | 512 MB | Judgeable |
| Juice (Small Input)Given up to 10 guests with minimum fractions of three juices summing to 1, find the largest subset satisfiable by one mix. | Medium5 | Brute forceGeometry+1 | No attempts yet | 5s | 512 MB | Judgeable |
| Scaled Triangle (Small)Given a triangle and its rotated, translated, and shrunk copy with matching corners, find the unique fixed point of the similarity transformation. | Medium5 | GeometryMath+1 | No attempts yet | 5s | 512 MB | Judgeable |
| BeehiveGiven two cell indices in an infinite hexagonal beehive numbered by distance from cell 1, find the grid distance between those cells. | Medium5 | MathGeometry+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Torres del PaineFor each test case, compute the area inside a rectangle from which three given points are seen in a fixed clockwise order. | Medium5 | GeometryMath | No attempts yet | 1s | 256 MB | Judgeable |
| Manta RayFor each data set, count the plankton points that fall inside the rectangle swept by a mouth of width w moving distance t in direction alpha. | Medium5 | GeometryMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Make One SquareGiven three rectangles that can each be rotated 90 degrees, decide whether they can tile one square exactly with no overlaps or gaps. | Medium5 | GeometryImplementation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Two-Wheel BuggySimulate a two-wheeled buggy through N timed wheel-speed instructions and print the final axle position to five decimals. | Medium5 | GeometrySimulation+1 | No attempts yet | 8s | 512 MB | Judgeable |
| Autocorrelation FunctionA piecewise linear function is given by its endpoints; compute the integral of f(x)f(x+r) over the whole line for a given shift r. | Medium5 | MathGeometry+2 | No attempts yet | 8s | 512 MB | Judgeable |
| Smoothed GardensGiven a triangle and a rope loop longer than its perimeter, find the area traced by a stake held tight in the loop. | Medium5 | GeometryMath | No attempts yet | 2s | 512 MB | Judgeable |
| Within Arm's ReachGiven segment lengths of a planar robotic arm and a target point, find where the tip lands when bent as close to the target as possible. | Medium5 | GeometryMath+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Base StationsAmong points with different frequency labels, find the farthest pair and print the squared distance. | Medium5 | GeometryBrute force+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Convenience Store 2Given n customer points, place one store anywhere to minimize the total Manhattan distance to all customers and print that minimum sum. | Medium5 | MathSorting+2 | No attempts yet | 2s | 512 MB | Judgeable |
| SprinklersPlace two fixed sprinklers and choose radii so every flower is covered, minimizing the sum of squared radii; print that minimum as an integer. | Medium5 | SortingGreedy+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Flight PlanFor each pair of latitude/longitude points on a sphere, compute the great-circle distance and the distance of the two-leg path that keeps latitude then longitude constant. | Medium5 | GeometryMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Line Friends (Small)Given N line segments, build a graph where segments are adjacent when they overlap, then answer shortest-path queries between pairs of segments. | Medium5 | GraphBFS+2 | No attempts yet | 2s | 256 MB | Judgeable |
| Amsterdam DistanceIn a half-disc street grid with M radial streets and N circular canals of radius R*y/N, find the shortest path length between two corners using only those streets and canals. | Medium5 | GeometryGraph+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Birthday CakeGiven up to 50 candle points and up to 15 cuts, decide whether the cuts carve the cake so that every resulting piece holds exactly one candle. | Medium5 | GeometryBit manipulation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Imperfect GPSGiven a running path and a recording interval t, compute the percentage of the real distance the GPS receiver loses by sampling positions at fixed times and joining them with straight lines. | Medium5 | GeometrySimulation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Signal 1Choose a subset of points with distinct x-coordinates; maximize the total Euclidean length of the polyline joining them in increasing x order. | Medium5 | Dynamic programmingSorting+2 | No attempts yet | 1.5s | 128 MB | Judgeable |
| Glyph RecognitionFor each k from 3 to 8, fit the largest origin-centered regular k-gon with a vertex on the +x axis avoiding all points and the smallest one containing all points, then report the k with the best area ratio. | Medium5 | GeometryBinary search+2 | No attempts yet | 2s | 512 MB | Judgeable |
| *Light*Young*Woo*Given N lights that each illuminate a 90-degree upward sector, count for each query point how many sectors contain it. | Medium5 | GeometryPrefix sum+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Gahui the Grappler!!Given a piecewise linear function through points (i, y_i) with y_0=0, decide whether the ray y=kx meets it anywhere besides the origin. | Medium5 | GeometryMath+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Meet at One Point!Given triangle side lengths and two cevian foot offsets along two sides, find the third offset using Ceva's theorem for the concurrent cevians. | Medium5 | GeometryMath | No attempts yet | 1s | 512 MB | Judgeable |
| Lipschitz ConstantGiven N points (x, f(x)), the Lipschitz constant is the maximum slope between adjacent points after sorting by x. | Medium5 | GeometrySorting+1 | No attempts yet | 2s | 512 MB | Judgeable |
| Building a FieldGiven N points on a circle with arc lengths between consecutive points, decide whether four trees are the vertices of some rectangle. | Medium5 | Hash mapGeometry+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Surface Area of CubesGiven an A x B x C block of unit cubes with N cubes removed (including interior ones), compute the total surface area including surfaces of interior cavities. | Medium5 | Hash mapMath+2 | No attempts yet | 5s | 512 MB | Judgeable |
| Two StickersGiven an H by W grid and N rectangles that may rotate, place two non-overlapping rectangles inside and maximize their total area. | Medium5 | ImplementationBrute force+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Mountain ViewCount how many mountain peaks are not covered by any other 45-degree right-triangle mountain with its base on the x-axis. | Medium5 | GeometrySorting+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Fence PlanningConnect cows into groups given moo pairs, then find the axis-aligned rectangle of smallest perimeter that fully contains one group. | Medium5 | Union-findGraph+2 | No attempts yet | 2s | 512 MB | Judgeable |
| HeightsGiven the three heights of a triangle, compute its area within an absolute error of 1e-5. | Medium5 | MathGeometry+2 | No attempts yet | 1s | 256 MB | Judgeable |
| Segment Intersection 1Given the integer endpoints of two segments, decide whether the segments intersect, using orientation tests with no three input points collinear. | Medium5 | GeometryMath+2 | No attempts yet | 0.25s | 512 MB | Judgeable |
| Retribution!Assign tar repositories and feather storehouses to judges one at a time by repeatedly taking the closest remaining pair, breaking ties by lowest index, and report the total distance. | Medium5 | GreedyImplementation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| The Biggest TriangleGiven up to 100 lines, find the maximum perimeter of a triangle formed by any three of them, or report that no triangle exists. | Medium5 | GeometryBrute force+2 | No attempts yet | 3s | 512 MB | Judgeable |
| Move & MeetTwo pieces start at given grid cells and each must make exactly d orthogonal steps; decide whether some cell can be the common endpoint, and print one. | Medium5 | MathImplementation+2 | No attempts yet | 2s | 512 MB | Judgeable |
| Everything Has ChangedGiven a disc and several non-overlapping circles that cut holes in it, compute the perimeter of what remains, counting only arcs on the disc's boundary. | Medium5 | GeometryMath+2 | No attempts yet | 1s | 512 MB | Judgeable |
| EuclidGiven three points in 3D space, find a point minimizing the sum of Euclidean distances to all three. | Medium5 | GeometryMath+2 | No attempts yet | 1s | 512 MB | Judgeable |
| Catching MiceGiven moving mice with initial positions and velocities, find the largest square cage side length for which no drop time can enclose all mice simultaneously. | Medium6 | GeometryBinary search+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Painting 1Compute the unpainted area of a paper after one vertical fold and c horizontal accordion folds, then painting a rectangle and unfolding. | Medium6 | GeometryMath+2 | No attempts yet | 2s | 128 MB | Judgeable |
| FencesPartition up to 16 given fence lengths into disjoint triples, keep only triples that form a valid triangle, and maximize the total area. | Medium6 | Dynamic programmingBit manipulation+2 | No attempts yet | 2s | 128 MB | Judgeable |
| PizzaCount lines through the origin that reflect a set of pizza toppings onto themselves, printing -1 if infinitely many such lines exist. | Medium6 | GeometryBrute force+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Installing Power Plant CablesFind the minimum total length of new cables needed to connect plant 1 to plant N, using free existing cables and new links capped at length M, via shortest path. | Medium6 | Shortest pathGraph+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Cutting a Cake with a HoleGiven a square cake with a smaller square hole in its center, count how many pieces result from horizontal and vertical full-line cuts that only affect actual cake material. | Medium6 | GeometryUnion-find+2 | No attempts yet | 1s | 128 MB | Judgeable |
| Smallest RectangleFind the minimum area axis-aligned rectangle with integer coordinates whose strict interior contains at least half of N given points. | Medium6 | GeometryBrute force+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Covering Points with a SquareGiven up to 50 points, decide whether an axis-aligned square's four sides can cover every point and output its side length, or -1 if no such square exists. | Medium6 | GeometryMath+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Planning the InfiltrationConvert offset hex coordinates to axial form and compute the spiral ring index used by a monkey's numbering scheme. | Medium6 | MathGeometry+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Circle on TilesGiven an even N, count how many unit tiles of an N by N grid are crossed by the circle inscribed tangent to all four sides. | Medium6 | GeometryMath+1 | No attempts yet | 5s | 128 MB | Judgeable |
| Border-Crossing SalesmanGiven a convex polyhedron whose faces are countries, build the face-adjacency graph from shared edges and answer BFS shortest-path queries between faces. | Medium6 | GeometryGraph+2 | No attempts yet | 2s | 128 MB | Judgeable |
| RectanglesFind a line through the origin that intersects the maximum number of given axis-aligned rectangles, using each rectangle's angular interval from the origin. | Medium6 | IntervalsSorting+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Map LabelsGiven city points, find the maximum label height so that fixed-ratio (3:1) rectangles anchored at each point never overlap, using binary search on the height with an efficient feasibility check. | Medium6 | Binary searchSorting+1 | No attempts yet | 2s | 128 MB | Judgeable |
| RaceGiven n checkpoints with scores that must be visited in increasing index order from and back to the origin, find the maximum score achievable within a runner's distance budget, for multiple runners. | Medium6 | Dynamic programmingGeometry+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Line DrawingGiven up to 10,000 line segments, count connected groups formed by segments that touch, overlap, or intersect, using geometric intersection tests combined with union-find. | Medium6 | Union-findGeometry | No attempts yet | 2s | 128 MB | Judgeable |
| Crossed LaddersGiven two crossed ladder lengths and the crossing height above ground, compute the width of the alley between the buildings using binary search or numeric root finding. | Medium6 | Binary searchMath+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Farthest Pair of PointsGiven up to 100,000 planar points, find the maximum squared Euclidean distance between any two points, typically via convex hull and rotating calipers. | Medium6 | GeometryDivide and conquer+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Restore an Orthogonal PolygonGiven the unordered vertices of an orthogonal (axis-aligned) polygon, reconstruct the boundary order and output its perimeter length. | Medium6 | GeometrySorting+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Line Segment GroupsGiven N line segments, group them by connectivity (segments that touch or cross belong together) and output the number of groups and the size of the largest group. | Medium6 | Union-findGeometry+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Walking the DogCompute total signed angle swept around the origin as a sequence of points connects via shortest arcs, then floor the number of full rotations. | Medium6 | GeometryMath+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Minkowski SumGiven two convex polygons up to 1000 vertices, compute their Minkowski sum polygon printed in counterclockwise order starting from a canonical vertex. | Medium6 | GeometrySorting+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Mole CatchingGiven N moles with positions and appearance times, find the maximum number Jeongeun can catch by moving at speed at most S from origin at time 0. | Medium6 | Dynamic programmingSorting+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Closest Pair of PointsGiven up to 100,000 points, compute the minimum squared distance between any two points efficiently. | Medium6 | Divide and conquerSorting+1 | No attempts yet | 1s | 256 MB | Judgeable |
| HoneycombGiven a hexagonal spiral numbering of honeycomb cells centered at 1, compute the minimum number of rooms on a shortest path from room 1 to room N. | Medium6 | MathBinary search+1 | No attempts yet | 2s | 128 MB | Judgeable |
| Base StationsGiven points off a line, place axis-aligned squares centered on the x-axis to cover all points while minimizing the total side length sum. | Medium6 | Dynamic programmingSorting+2 | No attempts yet | 2s | 128 MB | Judgeable |
| Wire CuttingGiven a closed wire path on a grid described by bend points, find the longest resulting segment after cutting it with a vertical line at a given position. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Diamond ExcavationFind the center (with integer coordinates on the map) of an axis-aligned diamond shape of fixed diagonal length K that covers the maximum number of given points, using a rotated-coordinate transform and brute force over candidate centers. | Medium6 | MathBrute force+1 | No attempts yet | 1s | 128 MB | Judgeable |
| HelipadFind the point minimizing the maximum distance to a set of up to 1000 given points (minimum enclosing circle), and output its coordinates and radius. | Medium6 | GeometryMath+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Simple RectangleGiven a robot's rectilinear path on a grid up to 100x100, find the smallest-area empty rectangle bounded purely by the drawn segments. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Finding a Right Isosceles TriangleGiven a 10x10 binary grid, decide whether the filled cells exactly form one axis-aligned right isosceles triangle and output its three vertices or 0. | Medium6 | GeometrySimulation+1 | No attempts yet | 1s | 128 MB | Judgeable |
| Total Area of Several RectanglesGiven up to 30 axis-aligned rectangles, compute the total area of their union. | Medium6 | GeometrySorting+1 | No attempts yet | 1s | 128 MB | Judgeable |