task
stringlengths
0
154k
__index_level_0__
int64
0
39.2k
Golf Description: The members of the Competitive Programming Association of Iceland decided to partake in a Code Golf contest. They thought this would be a contest of who can code the shortest solution to competitive programming problems, but unfortunately this was not the case! This was a golfing cont...
27,900
Golf Bot Description: Do you like golf? I hate it. I hate golf so much that I decided to build the ultimate golf robot, a robot that will never miss a shot. I simply place it over the ball, choose the right direction and distance and, flawlessly, it will strike the ball across the air and into the hole...
27,901
Golomb Rulers Description: A ‘Golomb ruler’ is a set of unique positive integers (called ‘marks’) which can be used to measure distances by using the difference between pairs of marks. Golomb rulers are useful in designing radio antennae and in cryptography. It’s helpful to think of the marks as being ...
27,902
Gondolas Description: The most adventurous part of skiing is the journey onto the mountain-top, between trees and through clouds, and past all sorts of enchanting views. Naturally, the skiers at the foot of the lift can hardly wait to take their turns (although they are a little disappointed that the ...
27,903
Good Coalition Description: The Dutch political system is in turmoil. There have been six coalition governments in the past fourteen years, all of which have fallen before completing their term in office. Recently there have been elections (again), the outcome of which has been described as “impossible...
27,904
Good Messages Description: Boris works at a secret communication station for the government training new employees on how to encode messages. Messages at this station are encoded with a rotation (“Caesar”) cipher that replaces each letter with one at a set offset in the alphabet, e.g., for offset $2$ a...
27,905
Good Morning! Description: Good morning! This is your 5am wake-up call! A partly cloudy day is expected with light rain coming afternoon… You have just woken up. You desperately need coffee… and… more coffee… and some cereal. And your clothes. And coffee. To prepare warm cereal, you put some milk into a ...
27,906
Goofy Geometry Description: Latkas Coolacek doesn’t really like doing his mathematics homework, he prefers partying with his algorithm buddies and finding shortest paths in the city. Unfortunately, his teachers aren’t as happy with Latkas ignoring school. Thus, they have given him the worst assignment ...
27,907
Goomba Stacks Description: While exploring a cave, Mario finds that the entrance behind has been closed, leaving him no escape except going forward. Luckily, he has Cappy to help him escape. In front of Mario are a series of $N$ rooms, which he must traverse in order. In the $i$-th room, Mario will fin...
27,908
Gopher II Description: The gopher family, having averted the canine threat, must face a new predator. The are $n$ gophers and $m$ gopher holes, each at distinct $(x, y)$ coordinates. A hawk arrives and if a gopher does not reach a hole in $s$ seconds it is vulnerable to being eaten. A hole can...
27,909
Gopher Residence Description: The Edmonton gopher population has expanded rapidly over the past few years. To accommodate this increased number of gophers, the city has built a vast gopher residence under the legislature building. The residence consists of $N$ rooms, the $i$th either has a unique room ...
27,910
Gorillas Description: Do you remember playing the video game Gorillas? It was originally released in 1991 by IBM corporation as demonstration of what you can do with the QBasic programming language. The game caught like wildfire among programmers who owned an MS-DOS computer of those days, and as they ...
27,911
Gotta Catch Em All! Description: The Kanto region has $N$ junctions and $N - 1$ bidirectional roads. Junctions are numbered from $1$ to $N$, inclusive. All roads have the same length and each of them connects two different junctions. At any moment, a Pokenom can appear in any of these junctions. ...
27,912
Gotta Nudge 'Em All Description: Nudgémon GO is a game in which players should earn as much experience points (XP) as possible, by catching and evolving Nudgémon. You gain 100 XP for catching a Nudgémon and 500 XP for evolving a Nudgémon. Your friend has been playing this game a lot recently, but you b...
27,913
Government Help Description: Two major banks in our country are knee-deep in troubles. We will call them “Bank A” and “Bank B” – hopefully you understand we absolutely cannot tell you their real names. It might ruin them. As a logical consequence of their troubles, government comes to rescue them, pre...
27,914
Grab a Graph Description: Bash and Chikapu are strongly addicted to…graphs. They enjoy playing with graphs so much that they skip meals quite often. Today, they are going to a supermarket. But instead of grabbing some snack, they grab some graphs. Bash only likes weighted undirected graph with small numbe...
27,915
Grade Curving Description: For example, if the curving function is applied $k = 3$ times to $x = 80$, it changes the score to So the curved score is $y = \lceil 97.2492 \rceil = 98$. John wants to curve a student’s score $x$ using this method so that the curved score $y$ is between $y_{low}$ and ...
27,916
Grading Description: Per works at the KTH Royal Institute of Technology, and thus grades a lot of exams each day. The grading process is rather simple. First, you define five grading limits $a$, $b$, $c$, $d$ and $e$. At least $a \% $ of the exam score is required to get an A grade, at least $b \% ...
27,917
Grading on a Curve Description: Professor Peggert is famous for his exams with low average / median scores and no extra credit. Despite this, his students’ final grades (usually) turn out okay, as he boosts everyone’s score by grading on a curve. Professor Peggert determines final grades by choosing a ...
27,918
Graduation Description: The school administration has encountered a problem with the upcoming school graduation, a problem which they hope you can help them resolve. During the graduation ceremony, students will stand in $N$ rows with $M$ students in each row. The administration wants the graduatio...
27,919
Graduation Guarantee Description: Gustav is studying to become an interpreter. In this line of work, knowing several languages is a must, and Gustav is already fluent in French, Mandarin, Nahuatl and even Finnish. But there is one language that Gustav struggles with: Norwegian. Before Gustav can gradua...
27,920
Graduation Table Description: You have been asked to organize the computing science graduation banquet. There are $n$ people attending the banquet, and they must all be seated around a large circular table. As it turns out, some pairs of attendees are friends and wish to sit next to each other. Thankfu...
27,921
Grand Opening Description: You are the proud owner of the new Multispecies Animal Protection Sanctuary (MAPS). As you arrive on the morning of the grand opening, you realize with horror that some of the animals are in the wrong enclosures. You will deal with the overnight zookeeper later, but right now...
27,922
Grandpa Bernie Description: Over the years, Grandpa Bernie has traveled all over the world. He doesn’t travel that much anymore, but he loves to tell his grandchildren stories from all these trips. He’ll tell them the story from when he went to Israel for the first time, or when he went to Greece for t...
27,923
Granica Description: Luka started driving international routes with his truck. His biggest problem is the border with Slovenia. The border is a point of entrance into the European Union, so every truck is thoroughly examined. Because of this, Luka always has to wait several hours there. To kill the tim...
27,924
Graphic Madness Description: In Byteland, there are two leading video card manufacturers: Bitotronics and 3D-Bytes. Their top-of-the-line cards are quite similar. Each of them consists of many nodes, connected with wires transferring the signal that is being processed. The products contain two kinds of...
27,925
Grass Seed Inc. Description: Many years ago after another unfruitful day in Cubicle Land, banging her head against yet another cutting edge, marketing buzzword-filled JavaScript framework, Janice the engineer looked out of the window and decided that time was ripe for a change. So swapping her keyboar...
27,926
Gravamen Description: “Next to the confrontation between two highly honed batteries of lawyers, jungle warfare is a stately minuet.” ­–Bill Veeck. Frivolous lawsuit or legitimate litigation? That is the question the judge Kattis faces today as she presides over lawsuits between individuals and corpora...
27,927
Gravity Description: Gravity pulls all things down. If you want to keep an apple from falling, you have to set it on something else or stick it to something else. Of course, it helps if the thing you stick your apple to isn’t falling itself. For this problem, you are going to simulate the effects of g...
27,928
Gravity Grid Description: Alice and Bob are playing a generalized version of Connect Four. In their game, the board consists of $w$ columns of height $h$ and the goal is to be the first player to complete a row of $k$ tiles of equal colour, either vertically, horizontally or diagonally. The two pla...
27,929
Grazed Grains Description: This year, there have been unusually many UFO sightings reported. Nobody knows if they are caused by optical illusions, weather phenomena, or secret technology being tested by foreign powers (terrestrial or not). UFO enthusiasts across the world rejoice, and speculations run ...
27,930
Great Circle Description: Airplanes fly close to the Great Circle Route between two cities. The Great Circle Route is the shortest arc concentric with the earth that joins the two cities; that is, the shortest distance between the two cities following the surface of the earth. Given the latitude and l...
27,931
Great Expectations Description: A speedrun is a playthrough of a game with the intention to complete it as quickly as possible. When speedrunning, you usually follow a pre-planned path through the game. Along this path, there may be some places where you have to pull off a difficult technique, or trick...
27,932
Great Fireball Description: In a land far away, lost to time, a lone village fights to defend itself against hordes of invading orcs. There are $N$ orcs scattered throughout the land. The $i$-th orc is at position $(x_ i, y_ i)$ on the Cartesian plane. The heroic village is at position $(0, 0)$. Fortu...
27,933
Great GDP Description: In your beloved homeland Treetopia, there is exactly one way of travelling between any pair of cites. In the loathful Cyclostan, on the other hand, there are exactly two ways of travelling between every pair of cities. A delegation from Cyclostan is coming to visit Treetopia, an...
27,934
Great Geek Game-show 3000! Description: The rules of the game are the following: There is a stage with $N$ boxes, each containing the name of one of the $N$ contestants, and such that each contestant has their name in exactly one box. The contestants enter the stage one at a time, and each one is allow...
27,935
Greatest Pair Description: You are given a tree with $n$ vertices. Each edge has a weight, and each vertex has a label. We denote the label of vertex $i$ as $label(i)$. A simple path from vertex $s$ to vertex $t$ is defined as an ordered sequence of vertices $v_0 \rightarrow v_1 \rightarrow v_2 \right...
27,936
Greatest Permutation Description: A permutation with $n$ elements is a rearrangement of the first $n$ positive integers. For example, if $n = 3$, there are $6$ permutations: $(1, 2, 3)$, $(1, 3, 2)$, $(2, 1, 3)$, $(2, 3, 1)$, $(3, 1, 2)$ and $(3, 2, 1)$. A great permutation is a permutation with $n...
27,937
Greedily Increasing Subsequence Description: Given a permutation $A = (a_1, a_2, \dots , a_ N)$ of the integers $1, 2, \dots , N$, we define the greedily increasing subsequence (GIS) in the following way. Let $g_1 = a_1$. For every $i > 1$, let $g_ i$ be the leftmost integer in $A$ that is ...
27,938
Greedy Cows Description: To split the pasture, he will select a number of points on the surrounding fence, and set up yet more fences between all pairs of selected points, except the points that lie on the same side of the surrounding fence. These new fences may cross. Now, this will create a number of...
27,939
Greedy Increasing Subsequences Description: Jimmy’s homework is to find a long increasing subsequence of a given sequence $a_1, a_2, \ldots , a_ n$. But the sequence is really long! Jimmy doesn’t know how to do this effectively. So Jimmy takes a greedy approach. He begins by picking the first number i...
27,940
Greedy Polygons Description: People are rarely content with what they have — they always seem to want more. Sometimes this is just healthy ambition, but at other times it is clearly motivated by shallow materialism, or worse. Perhaps we could accept this as an unavoidable aspect of human nature, but th...
27,941
Greedy Polygons Revisited Description: MAPS 2020 included a problem named “Greedy Polygons” that described a dystopian world in which the greed that often characterizes human nature had spread to regular polygons, causing these normally well-behaved shapes to exhibit expansionistic tendencies. Now, as ...
27,942
Green Eggs and Ham Description: From the top of his tower of turtles, King Yertle sees the moon rising. As everyone knows, the moon is made of green cheese and the best cheese in the world is produced in France. France has also produced many great mathematicians including Descartes, Laplace and Fermat....
27,943
Green Light Description: Sarah is cycling to work. On her way there, she encounters the same traffic light every day. Before she reaches the lights, she alternates between using social media on her mobile device and glancing at the traffic lights, observing if they are green, yellow or red at that time...
27,944
Greener Tuborg Description: To secure future investment capital, your brewery has decided to improve their Environmental, Social, and Governance (ESG) score by signalling allegiance to the UN Global Goals for Sustainable Development. You have been made Sustainability Commissar. The first thing you wil...
27,945
Greeting Card Description: Quido plans to send a New Year greeting to his friend Hugo. He has recently acquired access to an advanced high-precision plotter and he is planning to print the greeting card on the plotter. Here’s how the plotter operates. In step one, the plotter plots an intricate patter...
27,946
Greetings! Description: Your greeting card company makes unique greeting cards. The sizes of these greeting cards vary widely because of the whims of card designers. There are a lot of different types of cards, and each has a specific quantity that you need to manufacture. Your job is to determine wha...
27,947
Greetings! Description: Now that Snapchat and Slingshot are soooo 2018, the teenagers of the world have all switched to the new hot app called BAPC (Bidirectional and Private Communication). This app has some stricter social rules than previous iterations. For example, if someone says goodbye using Lat...
27,948
Gregory the Grasshopper Description: Gregory is a grasshopper. His favourite food are clover leafs—he can simply never have enough of them. Whenever he spots such a leaf, he wants to eat it as quickly as possible. Gregory is also lazy, so he wants to move to the leaf with minimal effort. Your task is t...
27,949
Grid Description: You are on an $n \times m$ grid where each square on the grid has a digit on it. From a given square that has digit $k$ on it, a Move consists of jumping exactly $k$ squares in one of the four cardinal directions. A move cannot go beyond the edges of the grid; it does not wrap. Wh...
27,950
Grid Game Description: Given a $N \times N$ grid of integers, we can choose a combination of $N$ numbers where no two in the same row and no two in the same column. We aim to find a combination of $N$ numbers whose minimum is maximized. ## Input The first line of input consists of an integer $N$, whe...
27,951
Grid Guardian Description: Alice has an $n\! \times \! m$ grid and a $2\! \times \! 2$ block. She would like to place her block in the grid. She must place it so that the block is axis-aligned and covers exactly $4$ grid cells. Bob wants to prevent Alice from doing that. To do this, he places ...
27,952
Grid MST Description: This is a very simple problem. You are given $N$ points. Some points may be repeated. The weight (distance) between two points is given by the Manhattan distance between the two points. Find the weight of a Minimum Spanning Tree that spans these $N$ points. ## Input The input consis...
27,953
Grid Magic Description: Brandon Greg Jr. the number theorist and combinatorist is working on prime numbers in grids. An $n$ by $m$ grid of digits ($0$ to $9$) is called a superprime grid if every non-empty prefix of every row and column (including the full rows and columns) are primes when concatenated...
27,954
Grid Speed Description: Consider a grid in which north-south streets, separated by gaps of $10$ miles each (the grid unit size), are elevated above east-west streets laid out in a similar fashion (see illustration for the case of a $6$ by $6$ grid). All streets are two-way. Entrance and exit ramps ...
27,955
Grid Volleyball Description: Grid Volleyball is played with two players in each team (like beach volleyball) but the players can only hit the ball when standing on a grid point. When a player is to hit the ball, they must be “close enough” to where the ball is supposed to land, move there, and then hit...
27,956
Groups of Strangers Description: A software company resulting from several recent mergers consists of a handful of offices in different cities. At each office there is a HR manager who knows everyone working at that office. Additionally, there are of course a lot of persons in the workforce that know e...
27,957
Groupthink Description: One of the most fundamental structures in abstract algebra is called a magma. A magma is a pair $(M,\bullet )$, where $M$ is a nonempty set and $\bullet $ is a binary operation on $M$. This means that $\bullet $ maps each ordered pair of elements $(x,y)$ in $M$ to an element in ...
27,958
Growing Rectangular Spiral Description: A growing rectangular spiral is a connected sequence of straight-line segments starting at the origin. The first segment goes right (positive $x$ direction). The next segment goes up (positive $y$ direction). The next segment goes left (negative $x$ direction). T...
27,959
Growing Some Oobleck Description: Oobleck is a fascinating magical substance — leave it in sunlight and it grows in an ever-expanding circle. If two circles ever manage to touch each other, both circles magically merge into one combined circle with area equal to the total of the combined areas of both ...
27,960
Growing Up is Hard to Do Description: Apple Bloom, Sweetie Belle and Scootaloo were magically transformed into adults, and while they’re a little concerned, they’re also really excited. They’ll finally be able to do all the fun grown-up things they’ve always wanted to do: stay up late, eat all the snac...
27,961
Growling Gears Description: The Best Acceleration Production Company specializes in multi-gear engines. The performance of an engine in a certain gear, measured in the amount of torque produced, is not constant: the amount of torque depends on the RPM of the engine. This relationship can be described u...
27,962
Gruesome Cave Description: The archaeologist Joanina Iones has been hard at work deciphering the arcane glyphs in front of a secret cave entrance. The glyphs tell the story of the cave: It has existed long before the beginning of time, and with it, a single grue was brought to life. It has, of course, ...
27,963
Guaranteed Victory Description: Curtis is challenging Porco Rosso to a duel again. Curtis has a new plan: this time, he is going to make the perfect airplane. He has devised a list of $R$ blueprints. Blueprints indicate the resources required to create a unique resultant airplane part. These airplane p...
27,964
Guard Evaders Description: More formally: Given a row of $g$ guards labeled $1$ through $g$ from left to right, each player chooses to run through the gap between guards $i$ and $i+1$ (for some $1 \leq i \leq g-1$). A player cannot run to the left of the first guard or to the right of the last. If either g...
27,965
Guardian of Decency Description: Frank N. Stein is a very conservative high-school teacher. He wants to take some of his students on an excursion, but he is afraid that some of them might become couples. While you can never exclude this possibility, he has made some rules that he thinks indicates a low...
27,966
Guardians of the Gallery Description: Your local art gallery is about to host an exciting new exhibition of sculptures by world-renowned artists, and the gallery expects to attract thousands of visitors. Unfortunately, the exhibition might also attract the wrong kind of visitors, namely burglars who in...
27,967
Guess Who Description: Guess Who is a two-player board game in which a number of characters are uniquely identified by a set of attributes (e.g. wearing glasses), and each player attempts to guess the other player’s hidden character by asking a number of yes/no questions such as “does the person wear g...
27,968
Guess the Digits Description: Filip came across an interesting math problem: He was supposed to find a five-digit number with the following property. If you cross out its first two digits, then place the digit $8$ after the remaining three digits to form a four-digit number and multiply the resulti...
27,969
Guess the Number Description: I am thinking of a number between $1$ and $1000$, can you guess what number it is? Given a guess, I will tell you whether the guess is too low, too high, or correct. But I will only give you $10$ guesses, so use them wisely! ## Interaction Your program should output gues...
27,970
Guess the Numbers Description: John has never been very good at maths. Due to his bad grades, his parents have sent him to the Academic Coalition of Mathematics (ACM). Despite the large amount of money his parents are spending on the ACM, John does not pay much attention during classes. However, today ...
27,971
Guessing Camels Description: One of the most interesting bets involves guessing the complete order in which the camels will finish the race. This bet offers the biggest return on your money, since it is also the one that is the hardest to get right. Jaap, Jan, and Thijs have already placed their bets, but...
27,972
Guessing Circle Description: Alf and Beata were two young adults living together a long, long time ago, before you could spend all your afternoons competing in programming. Their lives were thus much more boring than those of today’s young adults. How could you even survive back then, you might ask you...
27,973
Guessing Game Description: Stan and Ollie are playing a guessing game. Stan thinks of a number between $1$ and $10$ (inclusive) and Ollie guesses what the number might be. After each guess, Stan indicates whether Ollie’s guess is too high, too low, or right on. After playing several rounds, Ollie ...
27,974
Guessing Game Description: In the old town of Lund, there is a street with $N$ houses in a row, indexed $0$ to $N-1$. Emma lives in one of these houses and her friends Anna and Bertil want to figure out which one. Instead of just telling her friends where she lives, Emma decides to play a game with the...
27,975
Guessing Passwords Description: Ingfríður is testing her new pet project website, Passwordle. The rules should be rather familiar for those who have played plenty of wordle, but let us review them here. The website picks a secret password that the user then has to guess. The password will be $N$ charac...
27,976
Guilds Description: The queen is becoming concerned at the increasing complexity of guilds in her land. In particular, many small guilds are part of larger guilds which are part of still larger guilds. These chains of membership have gotten in the way of her subjects’ duties, so she has decided to keep...
27,977
Guillaume Description: Guillaume has a unique ability to forget events before a certain point in time, only to look better in his memory. Guillaume and Arnar play pool quite often and you have a log of results from their matches. Guillaume only counts the last $k$ matches such that his win percenta...
27,978
Gullpeningastaflar Description: In front of you there are $n$ stacks, each containing $n$ gold coins. Only one of these stacks contains real gold coins, the other stacks contain counterfeit coins. The counterfeit coins are very well made and are nearly indistinguishable from the real ones. The only...
27,979
Guma Description: A factory called Gumi-Gumi is dedicated to making tires. Their carving machine is responsible for carving fillisters into the tire. The tire has $N$ vertical fillisters which divide the rubber into $N + 1$ vertical parts. Horizontal cuts are made on each vertical part so that all ...
27,980
Gux's sequence Description: Gux really likes to play with sequences. He has a big sequence of length $n$, indexed from $1$ to $n$. Initially, all elements in the big sequence are zero. Gux also has $m$ mini-sequences that may have different lengths. These mini sequences are numbered from $1...
27,981
Gwen's Gift Description: Gwen loves most numbers. In fact, she loves every number that is not a multiple of $n$ (she really hates the number $n$). For her friends’ birthdays this year, Gwen has decided to draw each of them a sequence of $n-1$ flowers. Each of the flowers will contain between $1$ an...
27,982
Gym Aesthetics Description: The polar bear Sven is competing in the yearly international strongbear competition held in Svalbard. The competition is divided into different events. In the current event, the participants will perform barbell squats with varying weights for each squat. The order of the r...
27,983
Gym Leader's Territory Description: You are a gym leader, and you’d like to conquer the territory of a certain rival gym leader. However, gym leaders sometimes make mutual alliances with each other to become stronger! When you challenge a gym leader, your Pokemon are only strong enough to defeat them i...
27,984
Gyrating Glyphs Description: You are rocking the latest breakthrough in Computer Science: animated fonts. Suddenly, all of your colleagues’ code looks amazing, and you are finally motivated to review it. Unfortunately, due to the constant rotations, it is hard to distinguish between the $+$ (plus) and ...
27,985
H to O Description: Professor Cesium has created a new process to transform some chemical product into another type of chemical with some residues. The process is simple: he just needs to input a given number of molecules of type A, enter the output type B he desires and start the machine. It creates a...
27,986
H-Index Description: In research, it is tough to determine how good of a researcher you are. One way that people determine how good you are is by looking at your $H$-Index. Each paper has a certain number of citations. Your $H$-Index is the largest number $H$ such that you have $H$ papers with at ...
27,987
HARDFLOR Description: HARDFLOR, Inc. is in the business of laying terrazzo floors. They charge by the square foot of flooring laid. They are very good at laying floors, but they have some difficulty in calculating the areas because floors come in many shapes and sizes, e.g., One rule that John Hardflo...
27,988
Habeas Corpus Description: “The power to arrest­–to deprive a citizen of liberty­–must be used fairly, responsibly, and without bias.” ­–Loretta Lynch. Due to desperation caused by the global financial crisis, you, left with no other options, decided to rob a bank to survive. Unfortunately, while you ...
27,989
Hack Around the Lock Description: For your travel to the ACM-ICPC World Finals in Egypt, you have bought a brand new luggage. The luggage has a numeric lock composed of $K$ wheels with digits $0\dots 9$ on each of them. Each combination of the values on the wheels can be represented as a $K$-digit ...
27,990
Hacking the Screen Description: The ZOO management had been wondering for a long time how to increase the number of children visitors to the ZOO. The solution was surprising and unexpected in many ways. They installed a huge screen past the entrance and started to display short quizzes on it. The child...
27,991
Haiku Description: A haiku is a Japanese form of poetry. It consists of three phrases of $5$, $7$ and $5$ syllables each. Once a year, HiQ has a haiku contest, where employees submit their best poems. The poems are then judged based on a wide range of aspects, such as * creativity * simplicity * be...
27,992
Haiku Formatting Description: An example of a haiku is: Write a program to examine a line of English text and and attempt to render it as a haiku. This will require counting the syllables in the words of the text, which should be done according to the following rules: * A word consists of a non-empty, ma...
27,993
Hailstone Sequences Description: Given an integer $n$, its hailstone sequence is constructed in the following way. First, the integer $n$ is itself added as the first number of the sequence. The following procedure is then repeated. If the last integer $a$ added to the sequence is even, we add $\fr...
27,994
Hair of the Dog Description: Among the many detrimental consequences of alcohol are the unpleasant physiological effects known as a hangover. Typical symptoms of a hangover may include headache, drowsiness, concentration problems, dry mouth, dizziness, fatigue, gastrointestinal distress (e.g., vomiting...
27,995
Hakkari Description: Bergur the hacker has just returned from Holland in his new fine Adidas suit and is ready to work. He opens his email and sees a message from hackers.com. The message asks for a program that hacks Minesweeper and finds all the mines in the game. The message also specifies that this...
27,996
Half a Cookie Description: You and your sister have to share a large, circular cookie. The cookie is quite stale, so you must break it by striking it with a hammer. When struck at point $p$, the cookie will break along the shortest chord containing $p$. You follow the usual strategy of one person break...
27,997
Hall O' Wee Mirrors Description: For the autumn harvest festival coming up, you and your friend are designing a house that has a lot of fun rooms. In one, you are going to set up a whole lot of double-sided mirrors so that as a person walks through, they see reflections of themselves. You realize that ...
27,998
Halloween Loot Description: Alf and Beata were two kids who lived long ago, during the time before you could spend Halloween participating in programming competitions. As such, their lives were much more boring than the lives of kids today. How can you survive without programming competitions, you may ...
27,999