Deepseek v3.2· deepseek
Frontier Reasoning TracesA prime number n (11, 19, 23, etc.) that divides by 4 and has 3 has an interesting property. The results of calculating the remainder of the square of a natural number (1, 2, ..., n -1) of 1 or more and less than n divided by n are the same, so they are different from each…
Deepseek v3.2· deepseek
Frontier Reasoning Tracesproblem Hanako is playing with n (4 ≤ n ≤ 10) cards side by side. Each card has one integer between 1 and 99. Hanako chose k cards (2 ≤ k ≤ 4) from these cards and arranged them in a horizontal row to make an integer. How many kinds of integers can Hanako make in total? For…
Deepseek v3.2· deepseek
Frontier Reasoning TracesRecently our Paroothi got a crush on a girl , as we all know he is not good with the girls so he asked Vikrant ( The stud ) for expert advise and he told him to take her to her favourite restaurant . It is known that there are K restaurants in the city numbered from 1 to K.Now…
Deepseek v3.2· deepseek
Frontier Reasoning TracesOne must train much to do well on wizardry contests. So, there are numerous wizardry schools and magic fees. One of such magic schools consists of n tours. A winner of each tour gets a huge prize. The school is organised quite far away, so one will have to take all the prizes…
Deepseek v3.2· deepseek
Frontier Reasoning TracesTakahashi and Aoki will have a battle using their monsters. The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively. The two monsters will take turns attacking, in the order Takahashi's, Aoki's,…
Deepseek v3.2· deepseek
Frontier Reasoning TracesNiwango-kun is an employee of Dwango Co., Ltd. One day, he is asked to generate a thumbnail from a video a user submitted. To generate a thumbnail, he needs to select a frame of the video according to the following procedure: * Get an integer N and N integers a0, a1, ...,…
Deepseek v3.2· deepseek
Frontier Reasoning TracesThere are n benches in the Berland Central park. It is known that ai people are currently sitting on the i-th bench. Another m people are coming to the park and each of them is going to have a seat on some bench out of n available. Let k be the maximum number of people sitting…
Deepseek v3.2· deepseek
Frontier Reasoning TracesYou are given three positive (i.e. strictly greater than zero) integers x, y and z. Your task is to find positive integers a, b and c such that x = max(a, b), y = max(a, c) and z = max(b, c), or determine that it is impossible to find such a, b and c. You have to answer t…
Deepseek v3.2· deepseek
Frontier Reasoning TracesThe statement of this problem is the same as the statement of problem C1. The only difference is that, in problem C1, n is always even, and in C2, n is always odd. You are given a regular polygon with 2 ⋅ n vertices (it's convex and has equal sides and equal angles) and all its…
Deepseek v3.2· deepseek
Frontier Reasoning TracesA tatami mat, a Japanese traditional floor cover, has a rectangular form with aspect ratio 1:2. When spreading tatami mats on a floor, it is prohibited to make a cross with the border of the tatami mats, because it is believed to bring bad luck. Your task is to write a program…
Deepseek v3.2· deepseek
Frontier Reasoning TracesA permutation of N numbers from 1 to N A1, A2, ……, AN is given. You can perform the operation reverse (i, j) to reverse the order of the numbers in the interval [i, j] (1 ≤ i ≤ j ≤ N) for this permutation. For example, if reverse (2, 4) is applied to [1, 2, 3, 4, 5], it becomes…
Deepseek v3.2· deepseek
Frontier Reasoning TracesAs the Formula One Grand Prix was approaching, the officials decided to make the races a little more interesting with a new set of rules. According to the new set of rules, each driver will be given a vehicle with different height and the driver with maximum SIGHT would win the…
Deepseek v3.2· deepseek
Frontier Reasoning TracesYou are both a shop keeper and a shop assistant at a small nearby shop. You have n goods, the i-th good costs ai coins. You got tired of remembering the price of each product when customers ask for it, thus you decided to simplify your life. More precisely you decided to set…
Deepseek v3.2· deepseek
Frontier Reasoning TracesAt the beginning of the new semester there is new schedule in the Berland State University. According to this schedule, n groups have lessons at the room 31. For each group the starting time of the lesson and the finishing time of the lesson are known. It has turned out that it…
Deepseek v3.2· deepseek
Frontier Reasoning TracesComputation of the date either previous or forthcoming dates is quiet easy. But it is quiet difficult to calculate the day from a particular given date. You are required to find a day from a particular date given to you. Input It consists of a single line entry consisting of…
Deepseek v3.2· deepseek
Frontier Reasoning TracesAlice and Bob play the following game : There are N piles of stones with Si stones in the ith pile. Piles are numbered from 1 to N. Alice and Bob play alternately, with Alice starting. In a turn, the player chooses any pile i which has atleast i stones in it, and removes…
Deepseek v3.2· deepseek
Frontier Reasoning TracesThere are N one-off jobs available. If you take the i-th job and complete it, you will earn the reward of Bi after Ai days from the day you do it. You can take and complete at most one of these jobs in a day. However, you cannot retake a job that you have already done. Find the…
Deepseek v3.2· deepseek
Frontier Reasoning TracesProblem : Bajirao is on a date with his girlfriend Avni. It is a romantic night and they are playing a game of words. The rule of this game is that if Bajirao says a word such that no adjacent letters occurring in the word are same then he gets a kiss from her otherwise he gets…
Deepseek v3.2· deepseek
Frontier Reasoning TracesSereja loves integer sequences very much. He especially likes stairs. Sequence a1, a2, ..., a a ( a is the length of the sequence) is stairs if there is such index i (1 ≤ i ≤ a ), that the following condition is met: a1 < a2 < ... < ai - 1 < ai > ai + 1 > ... > a a - 1 > a a .…
Deepseek v3.2· deepseek
Frontier Reasoning TracesArpit thought AB De-villiers could do anything no matter what it is, however his brother didn’t believe him . To make his brother believe him he contacted AB and gave him a problem in which he gave him a two strings where the second string was the reverse of the first. He asked…