
Ordering Pizza
It’s another Startup finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza (obviously not, […]
It’s another Startup finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza (obviously not, […]
You’re trying to set the record on your favorite video game. The game consists of N levels, which must be completed sequentially in order to beat the […]
The game of Egg Roulette is played between two players. Initially 2R raw eggs and 2C cooked eggs are placed randomly into a carton. The shells are left on […]
You can perfectly predict the price of a certain stock for the next N days. You would like to profit on this knowledge, but only want to […]
Mad scientist Mike has applied for a job. His task is to manage a system of water pumping stations. The system consists of n pumping stations, which […]
Petya and Vasya got employed as couriers. During the working day they are to deliver packages to n different points on the line. According to the company’s […]
In an English class Nick had nothing to do at all, and remembered about wonderful strings called palindromes. We should remind you that a string is […]
Arkady words in a large company. There are n employees working in a system of a strict hierarchy. Namely, each employee, with an exception of the CEO, […]
It’s the turn of the year, so Bash wants to send presents to his friends. There are n cities in the Himalayan region and they are connected […]
While dad was at work, a little girl Tanya decided to play with dad’s password to his secret database. Dad’s password is a string consisting […]
There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecting each pair […]
Alice likes snow a lot! Unfortunately, this year’s winter is already over, and she can’t expect to have any more of it. Bob has thus […]
Alice has a very important message M consisting of some non-negative integers that she wants to keep secret from Eve. Alice knows that the only theoretically secure […]
Alice and Bob begin their day with a quick game. They first choose a starting number X 0 ≥ 3 and try to reach one million by the process described […]
One department of some software company has $n$ servers of different specifications. Servers are indexed with consecutive integers from $1$ to $n$. Suppose that the […]
In the year of $30XX$ participants of some world programming championship live in a single large hotel. The hotel has $n$ floors. Each floor has […]
Indiana Jones found ancient Aztec catacombs containing a golden idol. The catacombs consists of $n$ caves. Each pair of caves is connected with a two-way […]
It’s May in Flatland, and there are $m$ days in this month. Despite the fact that May Holidays are canceled long time ago, employees of […]
Vitya has learned that the answer for The Ultimate Question of Life, the Universe, and Everything is not the integer 54 42, but an increasing integer sequence […]