
Fox and Card Game
Fox Ciel is playing a card game with her friend Fox Jiro. There are n piles of cards on the table. And there is a positive integer […]
Fox Ciel is playing a card game with her friend Fox Jiro. There are n piles of cards on the table. And there is a positive integer […]
Fox Ciel has n boxes in her room. They have the same size and weight, but they might have different strength. The i-th box can hold at most x i boxes […]
Fox Ciel studies number theory. She thinks a non-empty set S contains non-negative integers is perfect if and only if for any ( a can be equal to b), . Where operation xor means exclusive or […]
You’ve got an array consisting of n integers: a[1], a[2], …, a[n]. Moreover, there are m queries, each query can be described by three integers l i, r i, k i. Query l i, r i, k i means that we should add to each element a[j], where l i ≤ j ≤ r i. […]
You are given matrix a of size n × m, its elements are integers. We will assume that the rows of the matrix are numbered from top to bottom from […]
Two teams meet in The Game World Championship. Some scientists consider this game to be the most intellectually challenging game in the world. You are […]
Salve, mi amice. Et tu quidem de lapis philosophorum. Barba non facit philosophum. Labor omnia vincit. Non potest creatio ex nihilo. Necesse est partibus. Rp: […]
A + B is often used as an example of the easiest problem possible to show some contest platform. However, some scientists have observed that […]
A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are […]
While resting on the ship after the “Russian Code Cup” a boy named Misha invented an interesting game. He promised to give his quadrocopter to […]
The Finals of the “Russian Code Cup” 2214 will be held in n hotels. Two hotels (let’s assume that they are the main hotels), will host all […]
The R1 company wants to hold a web search championship. There were n computers given for the competition, each of them is connected to the Internet. The […]
The employees of the R1 company often spend time together: they watch football, they go camping, they solve contests. So, it’s no big deal that […]