Little Mishka is a great traveller and she visited many countries. After thinking about where to tra...
Lesha and array splittingOne spring day on his way to university Lesha found an array A. Lesha likes...
Ilya and tic-tac-toe gameIlya is an experienced player in tic-tac-toe on the 4 × 4 field. He always ...
Chloe and the sequenceChloe, the same as Vladik, is a competitive programmer. She didn’t have any pr...
PolandBall is playing a game with EnemyBall. The rules are simple. Players have to say words in turn...
PolandBall has such a convex polygon with n veritces that no three of its diagonals intersect at the...
n hobbits are planning to spend the night at Frodo’s house. Frodo has n beds standing in a row and m...
Nothing is eternal in the world, Kostya understood it on the 7-th of January when he saw partially d...
Bash has set out on a journey to become the greatest Pokemon master. To get his first Pokemon, he we...
You are given two integers n and k. Find k-th smallest divisor of n, or report that it doesn’t exist...
Due to the increase in the number of students of Berland State University it was decided to equip a ...
PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirect...
Little Joty has got a task to do. She has a line of n tiles indexed from 1 to n. She has to paint th...
Catherine has a deck of n cards, each of which is either red, green, or blue. As long as there are a...
Anton likes to play chess. Also he likes to do programming. No wonder that he decided to attend ches...
Anton likes to listen to fairy tales, especially when Danik, Anton’s best friend, tells them. Right ...
Anastasia loves going for a walk in Central Uzhlyandian Park. But she became uninterested in simple ...
Masha really loves algebra. On the last lesson, her strict teacher Dvastan gave she new exercise.You...
Something happened in Uzhlyandia again… There are riots on the streets… Famous Uzhlyandian superhero...
A continued fraction of height n is a fraction of form . You are given two rational numbers, one is ...