id
stringlengths
11
14
content
stringlengths
424
1.17M
apps_data_3300
A National Geographic film crew is visiting the ZOO this week. They are creating a documentary about animal speed and they would like to film one or more cheetahs running at full pace. A solitary running cheetah has been filmed successfully many times. Therefore, the crew is also after a much more spectacular feat: As ...
apps_data_3301
Sonia is the CEO of the South Western Economic Research Consortium (SWERC). The main asset of SWERC is a group of banks spread out in several countries, which specialize in wire transfers between these countries. Money is transferred between banks which have transfer agreements. Such agreements settle a fixed fee when...
apps_data_3302
Gray codes are a classic topic in information theory with a number of practical applications, none of which we are concerned with in this problem. An $n$-bit Gray code is an ordering $(x_1, x_2, \ldots , x_{2^n})$ of all $n$-bit binary strings, with the property that any consecutive pair of strings differ in exactly $1...
apps_data_3303
Petra is learning how to add two positive integers in school, but thinks it is a bit too difficult. They are currently working with the standard algorithm for addition, where you first compute the sum of the two units digits, then the sum of the two tens digits, and so on. Whenever the sum of the digits at the same pos...
apps_data_3304
Young ruler Mirko has declared himself king of dwarves. Upon hearing this, Slavko felt threatened and soon declared himself king of elves! As there cannot be more than one king in the land, they have decided to resolve the issue of power once and for all. Slavko will, along with the $N$ strongest elves of the kingdom,...
apps_data_3305
“Never attribute to malice that which is adequately explained by stupidity.” ­–Robert Hanlon. A well-known trendsetter from a faraway land once needed strings with certain palindromic properties for inspiration. Unable to produce them all herself, she decided to outsource the work. To jog your memory, a palindrome is ...
apps_data_3306
Mirkos village has only one long street stretching from east to west with M houses. Each house has a unique house number, starting with $1$ and ending with $M$. Recent storm took out most phone lines so the mayor financed construction of a new one. Mirko is interested in the popularity of this new phone network, so he...
apps_data_3307
Alob and Bice inherited from their parents a piece of land represented by a simple polygon. There is a canal represented by a straight line. Each brother inherited the lands on one side of the canal. It is possible that the land of each person consists of several disconnected pieces of land. It is also possible that on...
apps_data_3308
Brandon Greg Jr. is an art enthusiast who covered the entirety of the walls of his room with works of art. Brandon’s room is in the shape of a simple polygon (simple means that the polygon does not intersect itself). If Brandon is at point $X$, then he can see all points $Y$ such that the line segment $XY$ (excluding p...
apps_data_3309
The great Equestria Games are coming! As you know, the Equestria Games is the biggest sports event in Equestria, where ponies from all around the land come and compete. Of course, such a huge event requires months of planning, lots of money, and, most importantly, kingdom-wide media coverage. The stadium can be consi...
apps_data_3310
After finding a suitable residence in the Swiss Alps, Robin thought he finally had what it takes to be happy. But every day he woke up feeling that something was missing. Maybe it was the lack of English food in these parts? Spotting a market opportunity and solving his problem at the same time, he teamed up with the f...
apps_data_3311
Everybody loves big numbers (if you do not, you might want to stop reading at this point). There are many ways of constructing really big numbers known to humankind, for instance: - Exponentiation: $42^{2016} = \underbrace{42 \cdot 42 \cdot \ldots \cdot 42}_{2016\text { times}}$. - Factorials: $2016! = 2016 \cdot 20...
apps_data_3312
In the hit video game “Johnny5 and the Exploding Oil Cans”, you control the robot “Johnny5”. The robot can be moved one cell at a time in one of the directions up, down, left, or right on an $N \times N$ grid. One move takes one second and costs one unit of energy. It is allowed to stand still, you don’t have to move e...
apps_data_3313
You are playing a racing game. Your character starts at the X-axis line ($y=0$) and proceeds up the racetrack, which has a boundary at the lines $x=0$ and $x=w$. The finish is at $y=h$, and the game ends when you reach that line. You proceed at a fixed vertical velocity $v$, but you can control your horizontal velocity...
apps_data_3314
There are three horizontal wheels of letters stacked one on top of the other, all with the same number of columns. All wheels have one letter, either ‘A’, ‘B’ or ‘C’, in each of its columns on the edge of the wheel. You may rotate the wheels to adjust the positions of the letters. In a single rotation, you can rotate a...
apps_data_3315
There are eight planets and one planetoid in the Solar system. It is not a well known fact that there is a secret planet S4 inhabited by small creatures similar to bears, their codename being Lodas. Although this fact is well hidden from the public, the association Savez sent a team lead by general Henrik to study the ...
apps_data_3316
You and your friends are in New York and are planning to go see a broadway musical. Unfortunately, New York being New York, the tickets are just a tiny bit expensive. But one of the shows has a ticket lottery each night where impecunious people such as yourself have a chance to win the right to buy slightly less expens...
apps_data_3317
A brokerage firm is interested in detecting automatic trading. They believe that a particular algorithm repeats itself; that is, it makes the same sequence of trades at a later time. The firm has identified a set of 26 key stocks that they believe are likely to be traded in concert, and they’ve encoded a series of trad...
apps_data_3318
A cat lives in a tree that has $N$ nodes. She will demarcate her territory by “marking” some of the tree nodes. Marked nodes may not be closer to each other than distance $D$, or the smell will be too overwhelming. Find the maximum number of nodes that the cat can mark. -----Input----- First line has two integers, $N$...
apps_data_3319
Professor Braino Mars is one of the top researchers in the field of solar system creation. He runs various simulations to test out his theories on planet formation, but he’s old school and all of these simulations are done by hand. It’s time for Braino to enter the $21^{\textrm{st}}$ century, and he’s asked you to help...
apps_data_3320
There are $n$ cities in the Magical Island, numbered from $1$ to $n$. These cities are connected by $m$ bi-directional roads such that there exists a path between every pair of cities. There may be multiple roads between two cities. Each road has a positive length. Magical crystals are the most important resources tra...
apps_data_3321
The Frog Regent has arranged his $N$ frog servants in a circle, with each frog facing the back of the next one. Each frog is assigned a unique integer identifier (ID) from the set of $1$ to $N$. The frog arrangement is specified as a sequence of IDs. The sequence always starts with the frog with the ID $1$. It is follo...
apps_data_3322
You are hosting a fancy party for fancy friends. And, like any fancy party, you need to buy some fancy antiques to put up around the venue (your house). There is a set of $n$ fancy antiques that you need to buy. And there is a set of $m$ fancy antique shops in the city. Because these antiques are extremely rare, each ...
apps_data_3323
You are holding a party. In preparation, you are making a drink by mixing together three different types of fruit juice: Apple, Banana, and Carrot. Let’s name the juices A, B and C. You want to decide what fraction of the drink should be made from each type of juice, in such a way that the maximum possible number of p...
apps_data_3324
You have landed a lucrative contract with Amalgamated Chemical Manufacturing (ACM), to help their chemists with stoichiometry. Stoichiometry is the calculation of reactants and products in chemical reactions, based on the law of conservation of mass, which states that the total mass of the reactants equals the total ma...
apps_data_3325
You just bought an “artistic” aquarium tank that has an interesting shape, and you poured $L$ litres of water into the tank. How high is the water in the tank? When you look at this tank from one side, it has the shape of a convex polygon. This polygon has exactly two vertices on the table ($y$-coordinates are 0), and...
apps_data_3326
You are given an $r\! \times \! c$ grid. Each cell of this grid is filled with a number between $1$ and $r{\cdot }c$ inclusive, and each cell’s number is distinct. Define a grid of numbers to be monotonic if each row and column is either increasing or decreasing (this can be different for each row or column). Define ...
apps_data_3327
The Imitation Game is a 2014 film based in 1939 during World War II. It follows the newly created British intelligence agency MI6 as they employ Cambridge mathematics alumnus Alan Turing to crack the German Enigma machine. At the time, cryptographers everywhere believed it to be uncrackable. By the end of the film, Tur...
apps_data_3328
Mirko received an $N \times N$ table for his birthday, where a non-negative integer is written in each field of the table. Unfortunately, the written numbers are too large for Mirko’s taste, so he will place $K$ dominoes on top of the table that will cover the fields that are too large. More precisely, Mirko places the...
apps_data_3329
One nice summer day while Mirko was drinking lemonade in his room... “Big brother!”, yells Stanko. “I wonder sometimes which of the two of us is the big one. What is it?”, Mirko asked. “Listen carefully! In the backyard I have $N$ pebbles arranged in a circle. Some of the pebbles are black, some are white. I will do...
apps_data_3330
Young Mr. Potato is opening two new stores where he will, you guessed it, sell potatoes. Mr. Potato gets his potatoes from $N$ farmers. Each farmer offers exactly $a_ i$ potatoes per bag for a total price of $c_ i$. Mr. Potato is going to buy all bags of potatoes from all farmers and place the bags in his two stores. ...
apps_data_3331
When Farmer Oskar doesn’t watch his cows closely enough, they tend to wander off into the forest to hunt for horse spies. To catch an enemy agent horse, the cows lure it into a cow trail and set up fences at the endpoints of the trail, which are $L$ meters apart. Two previously hidden cows then reveal themselves, havin...
apps_data_3332
Victor works for Alberta Chemicals Monitoring (ACM). ACM is a company that analyses raw environmental data related to chemicals used in oil sand and other industries in Alberta, and produces some reports for environmental watchdogs. Victor is in charge of a multi-processor cluster in ACM. Each processor is connected t...
apps_data_3333
“Weeeee,” says the fox after breaking in to the roost and killing all the chickens. Then he realizes that he has killed way more chickens then he can eat right now and hence he decides to hide them in already existing hiding spots nearby. The fox can only carry two hens at a time and every hiding spot can fit at most o...
apps_data_3334
Optimistan is a strange country. It is situated on an island with a huge desert in the middle, so most people live in port towns along the coast. As the name suggests, people of Optimistan (also called Optimists) like to optimise everything, so they only built roads necessary to connect all port towns together and not ...
apps_data_3335
Simon Haples is a somewhat peculiar person. Not quite hip, not quite square, he is more of a triangular nature: ever since childhood, he has had an almost unhealthy obsession with triangles. Because of his discrete nature, Simon’s favorite kind of triangles are the Pythagorean ones, in which the side lengths are three ...
apps_data_3336
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 probability two persons will become a couple: - ...
apps_data_3337
Mirko is playing with stacks. In the beginning of the game, he has an empty stack denoted with number $0$. In the $i$-th step of the game he will choose an existing stack denoted with $v$, copy it and do one of the following actions: - place number $i$ on top of the new stack - remove the number from the top of the n...
apps_data_3338
In the rhythm game Arcaea, the player can play songs with various partners. Every partner has two skill levels: Frag, and Step. A larger Frag allows playing songs to earn a larger number of fragments, the main resource of the game. A larger Step helps the player progress faster in the World Mode that unlocks new songs ...
apps_data_3339
Evenland used to be a normal country. Then Steven became ruler and now everything must be done as he wishes. For some odd reason he is obsessed with the number two. Everything must be even in his country, hence he even changed the name to Evenland. The other day, Steven was driving through his country when he noticed...
apps_data_3340
The airline company NCPC Airways has flights to and from $n$ cities, numbered from 1 to $n$, around the entire world. However, they only have $n - 1$ different flights (operating in both directions), so in order to travel between any two cities you might have to take several flights. In fact, since the management has m...
apps_data_3341
In this problem you will be solving one of the most profound challenges of humans across the world since the beginning of time – how to make lots of money. You are a middleman in the widget market. Your job is to buy widgets from widget producer companies and sell them to widget consumer companies. Each widget consume...
apps_data_3342
Oskar really loves onions. Unfortunately, the onions he loves belong to the local vegetable farmer, Lökas Tomatcek. Since Oskar is very cheap, he simply steals Lökas’ onions from the large, convex, onion field. For obvious reasons, Lökas does not approve of this. Rather than going to the police, however, Lökas wants to...
apps_data_3343
Žofka is bending a copper wire. She starts with a straight wire placed on the table with the starting point glued to the middle of the table. She then repeatedly picks a point on the wire and bends the part starting at that point (away from the starting point) by $90$ degrees (either clockwise or counterclockwise). Thr...
apps_data_3344
Johan has a really boring job at the airport. It is his duty to make sure no bags collide when sliding onto the circular conveyor belt in the luggage pick-up zone. All pieces of luggage are loaded onto a straight conveyer belt which ends above the circular conveyor belt. Johan is then manually varying the speed of the ...
apps_data_3345
Despite the unfortunate incident last summer, which resulted in ten little puppies, you have been tasked with taking care of your neighbors’ dogs again. Shadow and Lydia may be very cute mutts, but this year you have strict instructions to walk them one by one. However, you have other things to do during the summer tha...
apps_data_3346
Per is repairing roads. The job is concentrated on roads with one lane in each direction. Thus, when Per closes down the lane in one direction, all traffic has to go through the other lane. This is done by allowing only one direction of travel at any time. Per is often assigned the task of directing the traffic through...
apps_data_3347
You may have heard of the lost city of Atlantis. As legend goes, Atlantis was a city of great wealth and power. Then the Gods became displeased with Atlantis and sank it into the ocean. What you may not have heard is the story of Demetrios, the only person in Atlantis with a ship at the time the city was pushed underwa...
apps_data_3348
Ylva loves bonbons, probably more than anything else on this planet. She loves them so much that she made a large plate of $R \cdot C$ bonbons for her fikaraster1. Ylva has a large wooden tray which can fit $R$ rows of $C$ bonbons per row, that she will put the bonbons on. Her bonbons have three different fillings: Nu...
apps_data_3349
NVWLS, or “No Vowels” puzzles are popular among puzzle enthusiasts. For example, consider the following no-vowels message: BTWNSBTLSHDNGNDTHBSNCFLGHTLSTHNNCFQLSN which is inscribed on the famous “Kryptos” statue located at the CIA’s headquarters in Virginia. This message is derived from the following sentence by remo...
apps_data_3350
Casting spells is the least understood technique of dealing with real life. Actually, people find it quite hard to distinguish between real spells like “abrahellehhelleh” (used in the battles and taught at the mage universities) and screams like “rachelhellabracadabra” (used by uneducated witches for shouting at cats)....
apps_data_3351
Danny has a hand-held game of Yahtzee that he likes to play (how 90’s!). The object of Yahztee is to score points by placing the result of rolls of $5$ dice into one of $13$ categories. The categories are listed below, along with how you score points for each category: Category Scoring Category Scoring $1$’s $1$ ...
apps_data_3352
Rar the Cat$^($™$^)$ is the founder of ACM (Association of Cats and Magical Lights). This is the story of the founding of ACM. It is the second half of the year again and Rar the Cat$^($™$^)$ is looking forward to Christmas. When people think of Christmas, Christmas trees will surely come into the picture. This year, ...
apps_data_3353
Sally and her friends are trying to cross safely from one bank of a raging river to another. Boulders are scattered within the river, with log planks connecting the banks of the river to some of the boulders, and some pairs of boulders to each other. Sally begins by trying to cross the river first. She starts at the l...
apps_data_3354
Maj loves pickled cucumber (also known as pickles). However, her partner is not as keen on filling a sandwich with pickles. Maj would like to maximize the amount of pickles on a sandwich, while still avoiding being judged by her partner. Both Maj’s sandwich and the pickles have a circular shape. The sandwich has radi...
apps_data_3355
A scavenger hunt is being organized for programming contest participants. In addition to the starting and ending locations of the race, there are $n$ ($n \leq 20$) other locations for competitors to travel to. At each location $i$ ($1 \leq i \leq n$), there is a task that must be performed to earn $p_ i$ points. The ta...
apps_data_3356
Moles are tidy and hard-working animals. Our mole likes to keep its underground residence in utmost order, so that everyone living there knows where to find things. To achieve this, the mole connected rooms with tunnels so that there is a single unique way to get from one room to any other room. The distance between t...
apps_data_3357
A core right in Roman tenancy law was the availability of sunlight to everybody, regardless of status. Good sun exposure has a number of health benefits, many of which were known even in those ancient times. The first act of a Roman city plan reviewer, then, is to survey the proposed structures to measure how well the...
apps_data_3358
One thing almost all computers have in common, whether it is a simple stack-based calculator, a 6502 powered BBC Micro, or a brand new Android phone, every modern computer requires programs that turn either high-level languages or assembly language into machine code. UKIEPC recently designed their own processor. While...
apps_data_3359
Photography is a deceptively simple subject to the naïve outsider. In truth, viewing angles, saturation levels, contrast, proper lighting and focusing all play a part. Today, we are most concerned with the problem of focus. The proudest space telescope of all, Inquisition IV, launched into space over a decade ago and...
apps_data_3360
It’s that time of year: election season. Political speeches abound, and your friend the armchair pundit likes to find quotes of politicians and use them out of context. You want to help your friend by developing a method to search through text for specified patterns. One of the more powerful ways to express a text sea...
apps_data_3361
Yulia works for a metal processing plant in Ekaterinburg. This plant processes ores mined in the Ural mountains, extracting precious metals such as chalcopyrite, platinum and gold from the ores. Every month the plant receives $n$ shipments of unprocessed ore. Yulia needs to partition these shipments into two groups bas...
apps_data_3362
While walking in grand malls little Elsa likes to play a game she calls “Lava”. This is a simple game using the different colors of the floor tiles as markers for where it is safe to walk and where it is not. The rules of the game say that you’re allowed to walk on white tiles, but not on black tiles. The tiles are squ...
apps_data_3363
Stan Ford is a typical college graduate student, meaning that one of the most important things on his mind is where his next meal will be. Fortune has smiled on him as he’s been invited to a multi-course barbecue put on by some of the corporate sponsors of his research team, where each course lasts exactly one hour. St...
apps_data_3364
-----Input----- The first line of input consists of two integers $N$ and $Q$, where $1 \le N \le 1000000$ is the number of elements in the base set and $0 \le Q \le 1000000$ is the number of operations. Then follow $Q$ lines, one per operation. There are two types of operations: - “= $a$ $b$” indicate that the sets co...
apps_data_3365
The Math department has challenged the Computer Science department at your University to solve a difficult puzzle in Discrete Mathematics. With the pride of your Computer Science department at stake, you must solve this puzzle! In this puzzle, you are given a sequence of $n$ positive integers. The sequence must be par...
apps_data_3366
Consider the following function $f(X)$, which takes a single positive integer as argument, and returns an integer. function f(X): iterations := 0 while X is not 1: if X is even: divide X by 2 else: add 1 to X add 1 to iterations return iterations It can be shown that for any positive integer $X$, this function termin...
apps_data_3367
In the TV quiz Monstermind, a contestant chooses a topic and is then asked questions about it during a fixed period of time. The contestant earns one point for each correct answer. When the time runs out, the contestant must be silent. Teresa has figured out such a niche topic that she knows all possible questions tha...
apps_data_3368
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 you need to move all of the animals back to...
apps_data_3369
Generating a random number sequence is not easy. Many sequences may look random but upon closer inspection we can find hidden regularities in the occurrence of the numbers. For example, consider the following $100$-digit “random” sequence starting with $4, 7, 9, \ldots $: 4 7 9 5 9 3 5 0 0 1 7 8 5 0 2 6 3 5 4 4 4 6 ...
apps_data_3370
The $N$ citizens of Eagleton have chosen to build their houses in a row along a single street (so that the houses can be numbered from $1$ to $N$, with $1$ the leftmost house and $N$ the rightmost). The houses have varying heights, with house $i$ being $h_ i$ inches tall. Unfortunately, all is not well in Eagleton: t...
apps_data_3371
For several years now, the Nordic Conference on Partitions and Combinatorics, NCPC, has had a growing number of participants. This year the organizing team is expecting an all time high record in the hundreds. Due to the politics of arranging this prestigious event, the conference site was decided a long time ago to be...
apps_data_3372
As you are probably aware, flight pricing can sometimes be surprisingly complex. For example, it can often be cheaper to take a much longer flight with several legs instead of flying directly between two airports. One of the reasons pricing seems to be complex is that airlines often try to obfuscate exactly how pricing...
apps_data_3373
You are teaching a class in programming, and you want to cover balanced parentheses. You’ve got a great visual aid, a sign with a very long, balanced string of parentheses. But, alas, somehow, your visual aid has been broken into pieces, and some pieces may be missing! You’ve got to try to put it back together as best ...
apps_data_3374
The year is 2312, and Humanity’s Rush to the Stars is now $200$ years old. The problem of real-time communication between star systems remains, however, and the key is the unterwave. Unterwave (UW) communication works as follows: direct UW links have been set up between certain pairs of star systems, and two systems w...
apps_data_3375
A unicyclic graph is a graph with exactly one cycle. A spanning subgraph of a graph $G$ is a subgraph that has one component and includes all the vertices of $G$. Given a simple graph $G$, count the number of spanning unicyclic subgraphs. The illustration below shows the visualization of Sample Input/Output $1$. -----...
apps_data_3376
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 believe that his strategy is not optimal. All Nudg...
apps_data_3377
Fiona is an expert climber. She often brings some pegs with her, which she nails in some strategic places in the rock wall, so that less experienced climbers can use them for support. Fiona can climb to anywhere in the wall, but hammering a peg needs some balance, so she can only place a peg if she is standing in curre...
apps_data_3378
Ivan is planning a large European tour with his jazz band. There are a total of $n$ cities in Europe, numbered with integers $1$ through $n$. Ivan is planning $d$ concerts in cities $a_1, a_2, \dots , a_ d$ in that exact order, never having two consecutive concerts in the same city ($a_ i \not= a_{i+1}$), possibly visi...
apps_data_3379
Topologically sorting the nodes of a directed graph (digraph) $G$ means putting the nodes in linear order\[ v_0, v_1, v_2, v_3, \ldots \] such that whenever there is an edge from node $x$ to node $y$ in $G$, $x$ always precedes $y$ in the linear ordering. It is not hard to show that the nodes of a digraph can be topol...
apps_data_3380
The people of Absurdistan discovered how to build roads only last year. After the discovery, each city decided to build its own road, connecting the city with some other city. Each newly built road can be used in both directions. Absurdistan is full of absurd coincidences. It took all $N$ cities precisely one year to ...
apps_data_3381
You are the boss of ACM (Association for Convex Main Office), an upstanding company with a single goal of world domination. Today, you have decided to move your main office from Helsinki to Singapore. You have purchased a square-shaped land in Singapore, represented as a square on a two dimensional Cartesian plane. Th...
apps_data_3382
Yes, we know $\ldots $ we’ve used Challenge $24$ before for contest problems. In case you’ve never heard of Challenge $24$ (or have a very short memory) the object of the game is to take $4$ given numbers (the base values) and determine if there is a way to produce the value $24$ from them using the four basic arithmet...
apps_data_3383
Ice cream is a difficult topic. You are at the ice cream store and have some trouble deciding how you want your ice cream. How many scoops? What flavours? In what order? The only way to ensure that you are making the right decisions is to approach the problem systematically. Therefore, you examine each of the $k$ flav...
apps_data_3384
An integer is considered handsome if every two of its consecutive digits are of different parity. For a given integer $N$, what is its closest handsome number? Please note: numbers consisting of only one digit are handsome numbers. The distance of two numbers is the absolute value of their difference. -----Input-----...
apps_data_3385
It’s Halloween, and you’ve organized a bonfire and dance for the neighborhood children. The $n$ children have gathered into a ring to dance around the fire. Each child is wearing one of two fun yet spooky costumes: orange pumpkin, or black bat. Since it’s dark outside, you can only see a few children at a time, as they...
apps_data_3386
Given an grid with $N$ rows and $M$ columns, your task is to find a tour such that: - The tour has length at least two - All squares in the grid are visited exactly once - Let $a_1, \dots , a_{NM}$ be the sequence of visited squares. Then $d(a_ k$, $a_{k+1}) = 2$ or $3$ for every $1 \leq k < NM$. Also, $d(a_{NM}, a...
apps_data_3387
Dreaming of revolutionizing the tech industry and making the world a better place, Ging has recently moved to Silicon Valley to found his own startup, Katbook. Katbook allows users to download cat pictures. Katbook is capable of transferring $t$ bits per second. There are $n$ species of cats, numbered from $1$ to $n$...
apps_data_3388
Julia is betting on a large sporting competition involving matches between pairs of teams. There are no parallel matches and each bettor receives one point for every correct bet they make. Julia had a good streak and is in the lead. Now she worries that her good luck may be turning, and decides to change her strategy. ...
apps_data_3389
While browsing YouTube videos, you commonly use the handy dandy tool that is Add Video to Watch Later. One day you finally decide that ‘Later’ has finally arrived and you have SO many videos in your list. You have a list of videos with different types. For example, some might be bouldering videos, some might be cat vi...
apps_data_3390
Since you are in Britain, you definitely want to try British food. Unfortunately you will only have a single free evening, so you decided to try all the food you can get in one run. You plan a gigantic meal where you eat one British dish after the other. Clearly not every order of dishes is appropriate. For example, it...
apps_data_3391
Given a registry of all houses in your state or province, you would like to know the minimum size of an axis-aligned square zone such that every house in a range of addresses lies in the zone or on its border. The zoning is a bit lenient and you can ignore any one house from the range to make the zone smaller. The add...
apps_data_3392
Mirko lives in a big enchanted forest where trees are very tall and grow really quickly. That forest can be represented as an $N\cdot N$ matrix where each field contains one tree. Mirko is very fond of the trees in the enchanted forest. He spent years observing them and for each tree measured how many meters it grew i...
apps_data_3393
Tom is an upcoming senior undergraduate student planning for his courses for the final year. The final year will have two semesters, in which there are $n$ courses offered numbered from $1$ to $n$. Course $i$ has a difficulty level $d_ i$. Two courses may be on a same topic but are at different levels: Level I or Level...
apps_data_3394
Hannah recently discovered her passion for baking pizzas, and decided to open a pizzeria in downtown Stockholm. She did this with the help of her sister, Holly, who was tasked with delivering the pizzas. Their pizzeria is an instant hit with the locals, but, sadly, the pizzeria keeps losing money. Hannah blames the gua...
apps_data_3395
There are many excellent strategy board games, and your favourite among them is called “Steel Age”. It offers many different paths to victory but you prefer the blood-and-fire-strategy: build as many soldiers as possible and club your opposition into submission. To be able to build soldiers you need two resources: iron...
apps_data_3396
A farmer has $n$ goats. Coincidentally, he also has $n$ fixed posts in a field where he wants the goats to graze. He wants to tie each goat to a post with a length of rope. He wants to give each goat as much leeway as possible – but, goat ropes are notorious for getting tangled, so he cannot allow any goat to be able t...
apps_data_3397
Yraglac is running a daycare service for dogs. He has $N$ dogs and he would like to take them on a walk. However, before he can walk the dogs, he needs to feed them first. Yraglac has $M$ feeding bowls. Because the dogs are very well trained, he can instruct a dog to eat from a specific bowl, but he can’t instruct mul...
apps_data_3398
Well, it’s time. Andrew has been accumulating file after file on his computer and could never bring himself to delete any single one of them (“You know Algol might make a comeback, so I better not delete any of those files” is one of a large number of his justifications). But he realizes that not only is it wasting a l...
apps_data_3399
In Gridnavia, three languages are spoken: Arwegian, Banish, and Cwedish. Gridnavia consists of an $n \times m$ grid, where at least one language is spoken in each cell. It is known that each of the three languages is spoken in a non-empty connected subset of grid cells. Connected means that it is possible to get betwee...