Curated sets

First steps

Loops, arithmetic, and input and output. Start here.

All problems
Total results1,239 problems
TopicsJudge
Triple JumpFind the first step in [30.0, 30.2], then report 30.0 minus the smallest position among steps at least 3 later, or 0 if none exists.Easy2ImplementationArrayNo attempts yet2s512 MBJudgeable
Hissing MicrophoneGiven a lowercase string, check whether it contains two consecutive s characters and print hiss or no hiss.Easy2StringImplementationNo attempts yet1s512 MBJudgeable
Sum Squared Digits FunctionFor each of P datasets, convert the given integer n to base b, square each digit, and report the total with the dataset number.Easy2MathImplementation+1No attempts yet2s512 MBJudgeable
Santa's GiftsCompute the total straight-line distance from Santa's house through four given points in 3D and check it does not exceed the time limit X.Easy2MathGeometry+2No attempts yet5s512 MBJudgeable
Life ScoreFor each name, sum the letter values (A=1 to Z=26, spaces worth 0) and print the total, or PERFECT LIFE when the total is exactly 100.Easy2StringImplementationNo attempts yet2s512 MBJudgeable
Big number A+BRead two integers with up to 10000 digits and print their sum without leading zeros.Easy2StringMath+2No attempts yet1s256 MBJudgeable
A Simple ProblemGiven N, print the smallest positive multiple of N squared, which is just N squared itself.Easy2MathImplementation+1No attempts yet3s512 MBJudgeable
Check the CheckRead dish names and price-quantity pairs until the line TOTAL, then print PAY if the waiter's total is at most the sum of price times quantity, else PROTEST.Easy2ImplementationString+1No attempts yet2s512 MBJudgeable
Shattered CakeGiven the cake's width and the dimensions of all shattered rectangular pieces, sum the piece areas and divide by the width to get the length.Easy2MathImplementation+2No attempts yet10s512 MBJudgeable
Triangles from Five SticksGiven five distinct stick lengths, count how many 3-stick subsets can form a triangle with positive area.Easy2Brute forceGeometry+1No attempts yet2s512 MBJudgeable
Jaccard Similarity ThresholdGiven two small sets of digits, decide whether their Jaccard similarity is greater than 0.5.Easy2ImplementationMathNo attempts yet1s512 MBJudgeable
PencilsChoose either set X or set Y, buy any number of copies of that one set, and pay the least to reach at least N pencils.Easy2MathImplementationNo attempts yet2s512 MBJudgeable
Array Manipulation at Moloco (Easy)For each element, count how many earlier elements in the array are smaller, and print those counts one per line.Easy2ArrayBrute forceNo attempts yet2s512 MBJudgeable
Lorem ipsumSplit a fixed Latin placeholder paragraph into words and print the words at indices L through R separated by spaces.Easy2StringImplementation+1No attempts yet0.1s512 MBJudgeable
Hash collision stringsPrint two length-N strings that differ but have equal Java String hashCode values, using the classic Aa/BB collision with a shared prefix.Easy2StringHash map+2No attempts yet2s512 MBJudgeable
Abbey CourtyardGiven the area of a square courtyard, compute the perimeter as 4 times the square root of the area, rounded to six decimal places.Easy2MathImplementation+1No attempts yet1s512 MBJudgeable
Cube BitsConvert each of n decimal integers (up to 3^20) to its base-3 representation without leading zeros.Easy2MathImplementationNo attempts yet4s512 MBJudgeable
Binary GamePrint the binary representations of 0 through n, concatenated with no separators.Easy2StringImplementationNo attempts yet1s256 MBJudgeable
Sum of DivisorsGiven a natural number n up to 10000, print the sum of all its positive divisors, with 1 and n included.Easy2MathBrute forceNo attempts yet1s256 MBJudgeable
Lotto number frequencyGiven a number n from 1 to 45, print how often n appears among the six main winning numbers of 700 fixed Nanum Lotto rounds. The counts are precomputed constants.Easy2ImplementationArrayNo attempts yet1s256 MBJudgeable
Is N primeGiven an integer N, decide whether N is prime and print Yes or No. The trailing line of N integers is unused.Easy2MathNumber theory+1No attempts yet1s256 MBJudgeable
RickRead one line and print NO if it exactly matches one of six given phrases, otherwise print YES.Easy2StringImplementationNo attempts yet1s256 MBJudgeable
Midterm Exam GradingGiven point values for N problems and each examinee's O/X results, find the highest scorer, breaking ties by the smallest exam number.Easy2ImplementationArray+1No attempts yet1s512 MBJudgeable
Exceed or notGiven a, b, and r, print overflow if a*b exceeds r, otherwise print the product a*b.Easy2MathImplementation+1No attempts yet0.5s128 MBJudgeable
Derivative of a polynomial functionParse a linear polynomial written like 3x+5 or -x+2 and print the constant that is its derivative.Easy2StringImplementation+1No attempts yet1s512 MBJudgeable
Master Manager Nam JeonghunGiven L left-footed, R right-footed, and A two-footed players, find the largest even team size with equal left and right counts.Easy2MathGreedyNo attempts yet1s128 MBJudgeable
Magic SquareGiven an N by N matrix, decide whether its entries form a magic square with equal row, column, and diagonal sums.Easy2ImplementationMatrix+1No attempts yet1s512 MBJudgeable
TeleportationGiven start a, end b, and a bidirectional teleporter linking x and y, find the minimum tractor distance to move from a to b, with the option to skip the teleporter.Easy2MathImplementation+2No attempts yet2s512 MBJudgeable
Jealous JinseoCheck whether any person in Jinseo's row or column has higher charm than him, printing ANGRY if so and HAPPY otherwise.Easy2ImplementationArrayNo attempts yet1s512 MBJudgeable
PLAYERJINAH’S BOTTLEGROUNDSGiven the coordinates of three distinct points, decide whether they lie on a single straight line.Easy2GeometryMath+1No attempts yet1s512 MBJudgeable
Master of the Shell GameGiven a string, perform T swaps of characters at the given 0-indexed positions in order and print the final string.Easy2StringSimulation+1No attempts yet1s128 MBJudgeable
Overflow and ModuloMultiply N integers and print the product modulo M, reducing after each multiplication to avoid overflow.Easy2MathImplementation+2No attempts yet1s512 MBJudgeable
What Is Your HandleSort N distinct handles by ASCII dictionary order and print the I-th one.Easy2SortingString+1No attempts yet1s512 MBJudgeable
It Worked, So Why Is It Wrong?Compare the expected answer with Manyoung's output for each sample and system test case, then print Accepted, Wrong Answer, or Why Wrong!!! according to which group fails.Easy2ImplementationSimulation+2No attempts yet1s512 MBJudgeable
HashingCompute the polynomial rolling hash of a lowercase string using base 31 modulo 1234567891.Easy2ImplementationMathNo attempts yet1s512 MBJudgeable
Matrix Multiplication CalculatorRead pairs of matrices with dimension lines, multiply them when the inner dimensions match, and print each result row wrapped in vertical bars, or print undefined.Easy2ImplementationMatrix+2No attempts yet2s512 MBJudgeable
Wak Sani SatayGiven daily satay and nasi impit sales, compute weekly net profit from fixed per-stick prices, meat and spice costs, and rounding to two decimals.Easy2ImplementationMathNo attempts yet2s512 MBJudgeable
Caesar CipherShift every letter of a string by k positions in the alphabet, wrapping around, and leave spaces, periods, and commas unchanged.Easy2StringImplementation+1No attempts yet1s64 MBJudgeable
What Does UCPC Stand For?Given one string, decide whether deleting some characters can leave exactly the subsequence UCPC, case sensitive.Easy2StringGreedy+1No attempts yet1s512 MBJudgeable