id stringlengths 11 14 | content stringlengths 424 1.17M |
|---|---|
apps_data_3400 | Alice: How can it be?
Rabbit: Trust me Alice. It always takes the same time. When I go from my home up the road to Queen of Hearts’ Castle, my watch counts nine hours. However, if I continue down to Mad Hatter’s House, my watch counts just two hours in total. Isn’t that great?
Alice: How can it be Rabbit? The path ... |
apps_data_3401 | After conquering Britannia, the great Roman general Agricola decided all of his new cities should take advantage of the natural springs found aplenty. He appointed his advisor Wessus Waterus to try to find a way to get each town a fresh supply of water.
There are many springs and many towns and between each are the na... |
apps_data_3402 | Kang the Penguin has forgotten some letters of his password, help him figure them out!
Of course, Kang knows that something as important as a password should be easy to remember, but it also cannot be too short. Thus, he knows that he originally decided to generate his password in the following manner. First, he start... |
apps_data_3403 | The longest common prefix of two words is the longest word that both words start with. For example, the longest common prefix of the words “identity” and “idealistic” is the word “ide”. A database contains $N$ words.
The algorithm to search for a query word $W$ in the database is primitive. It compares the word $W$ on... |
apps_data_3404 | You’ve intercepted encrypted communications between Martian diplomats. Since Martian diplomats are often spies, you decide to decrypt the messages. While the Martians have skilled rocket tech, they lag behind in number theory considerably, which compromises their encryption protocol.
Fortunately for you, spies friendl... |
apps_data_3405 | Lukas is to hold a presentation on useful mathematical tricks. E.g., to take the square root of a number you just need to remove the first half of the number. To convince his audience he uses the well tested method of proof by example: $\sqrt {25} = 5$ and $\sqrt {5776} = 76$ so the method obviously works. To multiply ... |
apps_data_3406 | The 1941 October Revolution Parade of November $7^{th}$, 1941, taking place in Moscow, Soviet Union, was a parade in honor of the October Revolution 24 years ealier. It was one of the most memorable parade because of the serious circumstance at that time: Soviet’s forces had constantly been dominated since the last 4 m... |
apps_data_3407 | You have been hired at the Nano Wiring Efficient Route Company (NWERC) to help with the design of their new circuit boards. The circuits themselves have already been designed, and your task is to come up with a way to print them onto the blank boards that the company has bought.
More specifically, each circuit design... |
apps_data_3408 | Little Matej is solving an OOP (Object-oriented programming) laboratory exercise and he’s having trouble with solving one subtask.
He is given a set that contains $N$ words. He is also given $Q$ queries where each query is one pattern. A pattern consists of a single character “*” and lowercase letters of the English a... |
apps_data_3409 | Remember the busy boards for toddlers that have an array of holes into which to hammer pegs of various shapes? There’s a new, electronic version. The board consists of a 2D grid of pegs. Each peg on the board can be either up or down, but not both simultaneously. You can pick any peg that is currently up, and “hammer” ... |
apps_data_3410 | I don’t know how you feel about your school time, but I become maudlin when I remember those days. One of our teachers told us at the final year that among all the educational institutions in life one misses his/her school days the most. And yes, I miss those days a lot.
Let me tell you that we had a grid board in our... |
apps_data_3411 | Nick is a bird watcher and often visits the forum “CrowFinders” to discuss his hobby with like-minded people. CrowFinders has a voting system where users can upvote or downvote comments, which increases or decreases their score by $1$. This means that each comment can end up with any integer score (including negative s... |
apps_data_3412 | Gladstone Gander is walking through Duckburg and needs to get to his date with Daisy Duck as soon as possible. If he doesn’t get there in time, Donald might show up and take his place instead.
Duckburg has recently started providing a very eco-friendly way of public transport: bikes. At many bike stations throughout ... |
apps_data_3413 | You are a member of the Senate of an ancient empire governed by a mighty dictator. You have joined a bipartisan secret committee of the Senate that is plotting to overthrow the dictator.
In order for the plot to succeed, it is crucial that all the states in the empire ultimately support the plan–and to accomplish this... |
apps_data_3414 | After The Stig’s identity was revealed, the TV show Top Gear is in dire need of a new, tame racing driver to replace him. And of course you have been asked to take the job. However, you are not very fond of driving quickly, and especially not around the twisting and turning tracks they use in the show. To help you alle... |
apps_data_3415 | A complete binary tree is made of nodes arranged in a hierarchic structure. One of the nodes is the root node, said to be at level 0. The root node has two child nodes, which are at level 1. Each of those has two children at level 2 etc.
In general, a complete binary tree with $N$ levels has $2^N - 1$ nodes, each of w... |
apps_data_3416 | Being a traveling salesman is tough work. Per is one such salesman and would like to find an efficient way to visit all the cities in a foreign country exactly once.
Per defines efficiency in a peculiar way as Per hates flying on planes. Even worse, he absolutely refuses to use automobiles. Per’s favorite mode of tran... |
apps_data_3417 | For an undirected, simple graph $G = (V, E)$ we call a subset $V’ \subseteq V$ an independent set if no two elements of $V’$ are connected by an edge. An independent set of $G$ is called a maximum independent set if there is no independent set in $G$ with strictly more vertices. Given a specific kind of connected graph... |
apps_data_3418 | Mr. Lucky has a store that sells numbers. These numbers have an interesting property: each number formed by its first $k$ digits is evenly divisible by $k$, for $k$ from $1$ to $n$, where $n$ is the number of digits in the number. The numbers do not have leading zeroes.
Mr. Unlucky wants to open a competing store. Pri... |
apps_data_3419 | Rookie Bunny is helping the motor vehicle department to renew licenses for its customers. She works at the ticket machine and gives tickets to customers to tell them at which counters they will be served. There are two counters providing service in the office today. The two counters will be open for at most $s_1$ and $... |
apps_data_3420 | A couple of computer science students have decided to start a book circle, in which they will be able to share the passion of their lives, namely reading. Finally, the first season of reading is coming to its end, and the students in the book circle are going to present their fantastic books to the rest of the computer... |
apps_data_3421 | Goo is working in a well-known Slovak antivirus company which unfortunately cannot be named. In addition to antivirus software, they are developing a spam filter. Recently, Goo has made a few improvements to the filter and he wants to demonstrate his progress to his boss. As you can imagine, demonstrating low-level ide... |
apps_data_3422 | You may be under the impression that treasure maps originate from pirates, who create maps after burying their treasure so that they will later have a way to retrieve their stolen fortunes. In reality, it is extremely rare for pirates to bury treasure; there are only a few such documented cases.
As it turns out, the v... |
apps_data_3423 | Modern operating system distributions have tools to manage installed software, making it easy to keep the software up-to-date. Putting different pieces of software into ‘packages’ that can be installed separately keeps things simple and avoids duplicate effort and code. But this means that a package may depend on other... |
apps_data_3424 | My birthday is coming up. Alas, I am getting old and would like to feel young again. Fortunately, I have come up with an excellent way of feeling younger: if I write my age as a number in an appropriately chosen base $b$, then it appears to be smaller. For instance, suppose my age in base $10$ is $32$. Written in base ... |
apps_data_3425 | The $n$-queens problem is popular among computer science students. Its task is to place a maximum number of queens on an $n\times n$ chessboard so that no two queens attack each other. Two queens attack each other if they share a row, column, or diagonal.
One day Zapray gets bored and extends the problem by loosening ... |
apps_data_3426 | In the year 2120 there is a vast subway network under all of Lund, consisting of $N$ stations and $M$ tunnels. Each tunnel connects two stations and the stations are numbered $1$, $\ldots $, $N$.
Erik has had enough of Skånetrafiken’s terrible route planning software and plans to build his own. To do this, he needs to... |
apps_data_3427 | You own and manage an office building. One of the tenants, a regional paper supply company, is complaining about the lack of security offered by the CrapTacular$^{\text {TM}}$ doors you installed in the building. A potential attacker could easily pick the locks on these doors to gain access to any room of the building.... |
apps_data_3428 | In 1978 AD the great Sir Isaac Newton, whilst proving that $\mathcal{P}$ is a strict superset of $\mathcal{NP}$, defined the Beta Alpha Pi Zeta function $f$ as follows over any sequence of positive integers $a_1, \dots , a_ n$. Given integers $1\leq i\leq j\leq n$, we define $f(i, j)$ as $\gcd (a_ i, a_{i+1}, \dots , a... |
apps_data_3429 | Recently, Anthony has really gotten into the battle royale games. His favorite game is PUBNite.
In PUBNite, many players fight against each other and try to be the last one alive. One of the most well-known mechanics in PUBNite is the safety zone, which is a circular area. Players outside of the safety zone will take ... |
apps_data_3430 | A network of size $N$ contains $N$ computers connected by $N-1$ cables, so that there is exactly $1$ path between any pair of computers.
The transmission cost between $2$ computers is equal to the square of the number of cables on the path connecting the $2$ computers.
The transmission cost of a network is equal to t... |
apps_data_3431 | 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 consists of:
- One line with one i... |
apps_data_3432 | Mirko and Slavko are playing a new game. Again. Slavko starts each round by giving Mirko two numbers $A$ and $B$, both smaller than 100. Mirko then has to slove the following task for Slavko: how to pair all given $A$ numbers with all given $B$ numbers so that the maximal sum of such pairs is as small as possible.
In ... |
apps_data_3433 | Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help Joe escape the maze.
Given Joe’s location in the maze and which squares of the maze are on fire, you must determine whether Joe can exit the maze before the fire reaches ... |
apps_data_3434 | In a two player card game, you have $n$ minions on the board and the opponent has $m$ minions. Each minion has a health between $1$ and $6$.
You are contemplating your next move. You want to play an “Explosion” spell which deals $d$ units of damage randomly distributed across all minions. The damage is dealt one unit... |
apps_data_3435 | In a planet far far away, an intelligence agency plans to send some spies to the Earth to investigate the life there. In order to ensure the secret and secure of this scouting campaign, the agency gives a secret ID to each member.
Each ID is a binary string of length $n$. To prevent enemies from infiltrating the agenc... |
apps_data_3436 | We define an infinite two dimensional array $F$ using the following formula:
- $F_{0, 0} = 0$,
- $F_{0, 1} = F_{1, 0} = 1$,
- For $i \ge 2$, $F_{i, 0} = F_{i-1, 0} + F_{i-2, 0}$,
- For $i \ge 2$, $F_{0, i} = F_{0, i-1} + F_{0, i-2}$,
- For $i, j \ge 1$, $F_{i, j} = F_{i-1, j} + F_{i, j-1}$.
Here are the first few... |
apps_data_3437 | In the X-ray lab at KTH some experiments require evacuated tubes between source and sample and between sample and detector so that the X-rays are not absorbed by the air. Since the positions of object and detector vary between different experiments, several tubes of different lengths are available. The tubes should be ... |
apps_data_3438 | In a distributed system, data is never where you need it, and fetching data over a network takes time and consumes bandwidth. The problem can be mitigated by adding a cache, where a node stores some resources locally and if those resources need to be used again, it can simply take them from its cache rather than asking... |
apps_data_3439 | Gunnar dislikes forces of nature and always comes up with innovative plans to decrease their influence over him. Even though his previous plan of a giant dome over Stockholm to protect from too much sunlight (as well as rain and snow) has not yet been realized, he is now focusing on preempting the possible effects clim... |
apps_data_3440 | Frida is a writer for Cosmopolitan who writes restaurant reviews. She enjoys it a lot, but it seems that, throughout the years, she has reviewed all the restaurants on Earth. It’s now time to move one level up; she is going to review the food served by the airlines, so that the readers can make better decisions on whic... |
apps_data_3441 | Micah lives a peaceful life with his family in one of Canada’s most beautiful provinces. The vast wealth he has accumulated allows him to indulge in an extravagant hobby: collecting vintage automobiles. On Sunday afternoons, Micah and his family enjoy taking long, leisurely drives in these classic cars. Because of the ... |
apps_data_3442 | According to Sheldon Cooper, the best number is $73$. In his own words, “The best number is $73$. $73$ is the $21$st prime number. Its mirror, $37$, is the $12$th, and its mirror, $21$, is the product of multiplying $7$ and $3$. In binary, $73$ is a palindrome: $1001001$, which backwards is $1001001$. Exactly the same.... |
apps_data_3443 | You are totally bored with nothing to do. You notice a pattern of spots on the wall in front of you and begin to dwell on them. There is no obvious pattern of symmetry. With time this becomes very grating, and you contemplate adding more spots to satisfy your quest for balance. For this exercise you are to resolve this... |
apps_data_3444 | Lukáš loves skiing. One morning, the sun was shining like no other sun had ever shone before, and he wanted to do something exciting. There had been a slight storm during the night, and the wind had cleared snow from certain parts of the mountain, making them icy and more dangerous to ski down. Lukáš was aware of this,... |
apps_data_3445 | Two bicycle courier services have been competing in Metro City for many years, stealing customers back and forth from one another. Recently, they have come to realize that they would be better off if they could attract new customers instead. A problem is that, over time, each company’s customers have become so widely s... |
apps_data_3446 | The last worker in a production line at the factory of Automated Composed Machinery is worried. She knows that her job hangs in the balance unless her productivity increases. Her work consists of assembling a set of pieces in a given sequence, but the time spent on assembling pieces $a$ and $b$ and then $c$ may not the... |
apps_data_3447 | - Percent sign sand dollar sign! And colon semicolon, too!
- You Asterisk-mouth! – Sam & Max: Hit the Road
When typing SMS messages on a mobile phone, each of the ten digit buttons represent several alphabetic characters. On my phone (an ancient Ericsson T65, in case anyone was wondering), I have the following mapp... |
apps_data_3448 | At $3147.3$ meters high, Fansipan is the tallest mountain in the Indochina peninsula. To promote tourism, $n$ stations were built on the mountain, numbered from $1$ to $n$.
Two companies, Mobi and Vina are in charge of operating cable cars connecting the stations. Each of the two companies have $k$ cable cars. The $i$... |
apps_data_3449 | Night clubs aren’t what they used to be. Our benevolent state has decided that, for health and safety reasons, every club must now meet a minimum lighting standard. They have moved to verify standards by dividing each club up into $1\text { m}^2$ cells and measuring the light levels on the floor with probes in the cent... |
apps_data_3450 | Per is obsessed with factorials. He likes to calculate them, estimate them, read about them, draw them, dream about them and fight about them. He even has the value of $12!=479001600$ tattooed on his back.
He noticed a long time ago that factorials have many trailing zeroes and also wrote a program to calculate the nu... |
apps_data_3451 | Barry and Bruce are twin brothers. Bruce likes keeping his parenthetical sequences balanced. Barry would like to mess with Bruce by performing some operations on the sequence. Each operation is one of the following:
- Change a single ‘(’ to a ‘)’ in the sequence.
- Change a single ‘)’ to a ‘(’ in the sequence.
Bruce... |
apps_data_3452 | Jay runs a small carnival that has various rides and attractions. Unfortunately, times are tough. A recent roller coaster accident, flooding in the restrooms, and an unfortunate clown incident have given Jay’s carnival a bad reputation with the public. With fewer paying customers and reduced revenue, he will need to cu... |
apps_data_3453 | Spike is competing in the Gauntlet of Fire for the title of Dragon Lord. To succeed, he needs to traverse the labyrinthine volcanic tunnels, avoiding the treacherous elements and making it from chamber to chamber as quickly as possible.
The cave has $N$ chambers and $M$ tunnels connecting these chambers; no tunnel con... |
apps_data_3454 | Being a Pokenom trainer is very stressful. You always need to take good care of all your Pokenoms and always be prepared to battle other Pokenom trainers.
To cope with the stressful life, Bash learns to paint in his free time. Today Bash is working on his masterpiece: ‘The two staircases’.
The painting is divided int... |
apps_data_3455 | The Autonomous Car Manufacturer (ACM) needs to design algorithms to control their cars. One particular problem is lane switching—if the car needs to switch lanes, it wants to do so in the safest manner.
Initially the car is in the leftmost lane, and the car needs to switch to the rightmost lane. The car has a variety ... |
apps_data_3456 | You are an employee at Micah’s Airlift Payload Services (MAPS), which is a local crane company. On this particular day, you receive a call from a guy named Jerry, asking for help in moving a large number of wooden crates.
Jerry has $N$ stacks of crates, arranged side-by-side, in a perfectly straight row. However, not ... |
apps_data_3457 | You’re playing hopscotch! You start at the origin and your goal is to hop to the lattice point $(N, N)$. A hop consists of going from lattice point $(x_1, y_1)$ to $(x_2, y_2)$, where $x_1 < x_2$ and $y_1 < y_2$.
You dislike making small hops though. You’ve decided that for every hop you make between two lattice point... |
apps_data_3458 | As you might have heard, Gunnar is an old and forgetful researcher. Most of his research is in security and he cares a bit too much about his own security, so for each website he has a different password. It would be very hard for him to remember all passwords, so for every website he only remembers the method he used ... |
apps_data_3459 | Each resident of a particular town is a member of zero or more clubs and also a member of exactly one political party. Each club is to appoint one of its members to represent it on the town council so that the number of council members belonging to any given party does not equal or exceed half the membership of the cou... |
apps_data_3460 | There is an old adage about opening a can of worms. A lesser known adage is one about shooting a can of exploding worms with a BB gun.
Imagine we place some cans of exploding worms on a long, straight fence. When a can is shot, all of the worms inside will explode. Different types of worms have different blast radii. ... |
apps_data_3461 | You have an upcoming trip to Washington D.C. and you are fascinated with the intricacies of Congressional committee hearings. You wish to attend as many hearings as possible during your trip, and your local representative has provided you with a pass that will get you into the audience of any hearing. But there are som... |
apps_data_3462 | You are implementing an operating system, and now need to write a program to list files in a directory: “ls”. You want the user to be able to list only files that match a given pattern that can include wildcards (*), for example *.c. A wildcard matches zero or more characters of any kind.
-----Input-----
The first lin... |
apps_data_3463 | Anthony and Cora play a very exciting game. Initially, Anthony has $N$ points and Cora has $M$ points. The game then goes on for several rounds, during each round, either Anthony wins or Cora wins, the loser of the round loses $1$ point while nothing happens to the winner of the round. The game ends when either Anthony... |
apps_data_3464 | “In the casino, the cardinal rule is to keep them playing and to keep them coming back. The longer they play, the more they lose, and in the end, we get it all.” (from the 1995 film Casino)
Recent recessions have not been kind to entertainment venues, including the gambling industry. Competition is fierce among cas... |
apps_data_3465 | 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 to some other city. Each newly built road can be used in both directions.
You bought a tourist guide which has a map of the country with the newly built roads. Howev... |
apps_data_3466 | Every day, Danny buys one sweet from the candy store and eats it. The store has $m$ types of sweets, numbered from $1$ to $m$. Danny knows that a balanced diet is important and is applying this concept to his sweet purchasing. To each sweet type $i$, he has assigned a target fraction, which is a real number $f_ i$ ($0 ... |
apps_data_3467 | You are a very busy person, with a lot of important meetings. Today, you have a meeting for which it is insanely important to arrive at the agreed time.
Luckily you live in Zürich, which features a large network of extremely punctual trams. Each tram line travels from one place to another at regular intervals, always... |
apps_data_3468 | Sandra recently bought her first smart phone. One of her friends suggested a long list of applications (more commonly known as “apps”) that she should install on the phone. Sandra immediately started installing the apps from the list, but after installing a few, the phone did not have enough disk space to install any m... |
apps_data_3469 | As a Hunter, you will undoubtedly face difficult obstacles during your journey. At such time, a Hunter is expected to model the situation using Mathematical models, and apply probability and statistics knowledge to overcome the situation.
Thus, the third round of the Hunter Exam is based on the following game with coi... |
apps_data_3470 | During a game of Minesweeper you have arrived in the situation shown in the image, with an $n\times n$ square surrounded by $1$s, themselves surrounded by unknown cells. Your task is to determine which of the $4n+4$ surrounding $1$-cells is guaranteed to not contain a mine.
If you are unfamiliar with the rules of Min... |
apps_data_3471 | Due to the frantical usage of the racket to kill flies, Marin has sustained a serious bodily injury known to the medical community as epicondylitis lateralis humeri. His grandma has advised smearing rakija over it, the doctor has prescribed a strong painkiller, but Marin has ignored every single advice and decided to l... |
apps_data_3472 | Will the galaxy see peace at last? All the warlords have gathered to divide all of space between themselves. The negotiations have come quite far and the warlords have finally agreed on a peaceful way of deciding who gets what. The $2$-dimensional galactic map must first be divided into sectors by splitting it along a ... |
apps_data_3473 | A well-known Canadian programming contest is always held on a Friday in October each year. We need you to help choose the dates for years $2019$, $2020$, …, $2018+Z$.
There are Fridays when we cannot schedule the contest because of conflicting events. In particular, the contest cannot be held on the Friday before Cana... |
apps_data_3474 | You are in a game of laser tag, where the goal is to shoot and hit other players with the laser gun you are carrying. Running up to them and shooting sometimes works, but it leaves you more vulnerable to their counterattack than you would like. You have found that you can be sneakier if you bounce your shot off of a mi... |
apps_data_3475 | Tourists in the numerous Welsh valleys are in need of an IT solution to their transportation troubles. They want to see all the local Points of interest (POIs) in a specific order already set out by their trusty tour guides.
Visitors have to rely on various types of transportation: car, rickshaw, donkey cart, etc. The... |
apps_data_3476 | You are given an matrix of $R$ rows and $C$ columns. All elements of the matrix have absolute value smaller than or equal to $10^4$. You may perform the following operations:
Operation
Notation
Example
Rotate $i$-th row of the matrix $k$ elements right ($1 \leq i \leq R$, $1 \leq k < C$).
$\mathrm{rotR}\ i\ k$
$... |
apps_data_3477 | When simulating x-ray imaging different energy photons interact differently and therefore needs to be simulated separetly. Often one has an x-ray spectrum with thousands of bins, so that it is impractical to do a simulation for each bin. We want to do simulations only for a few energies, but want to choose these energi... |
apps_data_3478 | Jon Dayne is the ruler of a huge country called Seven Kingdoms. He has two sisters, Arya and Sansa, and wants to give some cities of Seven Kingdoms to them. He will rule the remaining cities or if no city remains, goes to the Wall, a colossal fortification along the northern border of the Seven Kingdoms, to be the Lord... |
apps_data_3479 | You and your friends have gathered at your house to prepare for the Big Game, which you all plan to attend in the afternoon at the football stadium across town. The problem: you only have $k$ cars between you, with each car seating five people (including the driver), so you might have to take multiple trips to get all ... |
apps_data_3480 | A round is a musical arrangement in which two or more voices repeat the same melodic line, at times offset from one another. One of the more famous rounds is the nursery rhyme "Row, Row, Your Boat", shown here.
In western music, an integer count of time units can be assigned to each syllable to indicate how long t... |
apps_data_3481 | Doug James is an up-and-coming DJ from Graphland who’s had a tough time making it big. This all changed with the release of his latest EP Wiggly Waves, which is the first album in history to go both Platinum and Uranium. With his newfound popularity, Doug (a.k.a. DJ Polygon) needs help with a problem most artists would... |
apps_data_3482 | Having just moved to Transylvania, one of the first orders of business is to get a transit card for the public transportation. The transit card can be charged with intervals of dates. For each such interval, the first few days come at a pretty high price per day, the next few days come at a slightly lower price per day... |
apps_data_3483 | The Miniature Toy Association (or MTA for short) is releasing the latest edition of its brand of collectible figurines. MTA used to sell them individually, but now has decided to adopt a new business strategy that involves randomly choosing $4$ figurines from the entire collection to be packaged and sold together as a ... |
apps_data_3484 | Alice and Bob are big fans of math. In particular, they are very excited about playing games that are related to numbers. Whenever they see a puzzle like Sudoku, they cannot stop themselves from solving it. The objective of Sudoku is to fill a $9\times 9$ grid with digits so that each column, each row, and each of the ... |
apps_data_3485 | The Martingale casino is creating new games to lure in new gamblers who tire of the standard fare. Their latest invention is a fast-paced game of chance called Stop Counting!, where a single customer plays with a dealer who has a deck of cards. Each card has some integer value.
One by one, the dealer reveals the cards... |
apps_data_3486 | Ms. Hall wants to teach her class about common factors. She arranges her students in a circle and assigns each student an integer in the range $[2,10^9]$. She also provides the students with crepe paper streamers. The students are to stretch these streamers between pairs of students, and pull them tight. But, there are... |
apps_data_3487 | Two years ago, you helped install the nation’s very first Flubber pipe network in your hometown, to great success. Polls show that everyone loves having their own Flubber dispenser in their kitchen, and now a few enterprising citizens have discovered a use for it. Apparently Flubber, when mixed with water, can help ext... |
apps_data_3488 | Celery — the legendary Pokenom has been spotted in Alexa Forest.
To become the best Pokenom trainer, Bash has arrived at Alexa Forest to capture Celery. After lots of information gathering, Bash was able to draw a map of Alexa Forest, and noted down $K$ sightings of Celery.
Alexa Forest’s map is a convex polygon $A$ ... |
apps_data_3489 | You are the kingpin of a large network of criminal hackers. Legend has it there has never been a richer criminal than you. Not just because you are the smartest, but also because you are the stingiest.
The police have been after you for years, but they have never been able to catch you thanks to your great set of esca... |
apps_data_3490 | Each Halloween, the $N$ witches of Sweden all gather high up in the air with their brooms to perform a magical dance. The dance consists of taking one’s broom and rotating clockwise around one of the ends of the broom. Each broom is exactly $1\text { m}$ long, and everyone rotates at the same speed. The $i$’th witch or... |
apps_data_3491 | The new semester at Hogwarts has just started, but something is not quite right – the staircases are not cooperating with the school administrators! Hogwarts has a single room of movable staircases connecting the $N$ floors. There are $M$ staircases in total, and no two staircases connect the same pair of floors (and, ... |
apps_data_3492 | You have just been hired by Amalgamated, Inc. in the country of Acmania to oversee the transportation of raw materials to the company’s factories. Each supplier of raw materials and each factory resides in one of Acmania’s states. No state has both a factory and a supplier (and never more than one of either) and there ... |
apps_data_3493 | Welcome, ladies and gentlemen, to Aperture Science. Astronauts, War Heroes, Olympians — you’re here because we want the best, and you are it. That said, it’s time to make some science.
Now, I want each of you to stand on one of these buttons. Well done, we’re making great progress here. Now let’s do it again. Oh, come... |
apps_data_3494 | It is often heard that the apple doesn’t fall far from the tree. But is that really so?
The National Statistics Department has tracked the falling of apples in a fruit garden for $G$ consecutive years. The fruit garden can be represented as a matrix with dimensions $R \times S$. Each field of the matrix can contain mo... |
apps_data_3495 | João wants to join the robotic football team of his university. However, since he knows little about robotics and mathematics, he decided to build a $2$-dimensional robotic arm to bootstrap his knowledge.
The robotic arm is composed of $N$ segments of various lengths. The segments can form any angle between them, incl... |
apps_data_3496 | The Next Wave Energy Research Club is looking at several atoms as potential energy sources, and has asked you to do some computations to see which are the most promising.
Although an atom is composed of various parts, for the purposes of this method only the number of neutrons in the atom is relevant1. In the method,... |
apps_data_3497 | You have all heard of the story of the three little pigs. However, this time they’re facing another predicament yet again!
The three pigs brought a bunch of their pig friends into a tree, which is a connected undirected graph with $V$ vertices and $V-1$ edges. Originally there were $V$ pigs, one on each vertex of the ... |
apps_data_3498 | Real-time software in the Mars Pathfinder spacecraft suffered from an issue known as priority inversion. One technique to address this issue is to use the Priority Ceiling Protocol.
In this problem, you will simulate the execution of multiple tasks according to this protocol. The tasks share a collection of resources,... |
apps_data_3499 | An alphabetical string is a string consisting of $0$ or more capital letters (i.e. [‘A’..‘Z’]). Given an alphabetical string $S[1..N]$, determine the number of palindromic alphabetical strings of length $2N$ that contains $S$ as a subsequence (not necessarily contiguous). A string is palindromic if it is equal to its r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.