Dataset Viewer
Auto-converted to Parquet Duplicate
problem
stringlengths
73
2.63k
answer
stringlengths
0
49
task
stringclasses
6 values
problem_number
int64
9
1.29k
set_number
int64
1
5
Alice and Bob play the following game. A stack of $n$ tokens lies before them. The players take turns with Alice going first. On each turn, the player removes either $1$ token or $4$ tokens from the stack. Whoever removes the last token wins. Find the number of positive integers $n$ less than or equal to $2024$ for whi...
809
AIME24
9
5
Find the number of rectangles that can be formed inside a fixed regular dodecagon ($12$-gon) where each side of the rectangle lies on either a side or a diagonal of the dodecagon. The diagram below shows three of those rectangles. [asy] unitsize(0.6 inch); for(int i=0; i<360; i+=30) { dot(dir(i), 4+black); draw(dir(i)-...
315
AIME24
22
4
There are $8!= 40320$ eight-digit positive integers that use each of the digits $1, 2, 3, 4, 5, 6, 7, 8$ exactly once. Let $N$ be the number of these integers that are divisible by $22$. Find the difference between $N$ and $2025$.$
279
AIME25
35
3
Four unit squares form a $2 \times 2$ grid. Each of the $12$ unit line segments forming the sides of the squares is colored either red or blue in such a say that each unit square has $2$ red sides and $2$ blue sides. One example is shown below (red is solid, blue is dashed). Find the number of such colorings. [asy] ...
82
AIME25
48
2
Cities $A$ and $B$ are $45$ miles apart. Alicia lives in $A$ and Beth lives in $B$. Alicia bikes towards $B$ at 18 miles per hour. Leaving at the same time, Beth bikes toward $A$ at 12 miles per hour. How many miles from City $A$ will they be when they meet?
27
AMC23
61
1
Let $f$ be the unique function defined on the positive integers such that \[\sum_{d\mid n}d\cdot f\left(\frac{n}{d}\right)=1\] for all positive integers $n$. What is $f(2023)$?
96
AMC23
73
5
For complex number $u = a+bi$ and $v = c+di$ (where $i=\sqrt{-1}$), define the binary operation $u \otimes v = ac + bdi$ Suppose $z$ is a complex number such that $z\otimes z = z^{2}+40$. What is $|z|^2$?
50
AMC23
86
4
How many nonempty subsets $B$ of ${0, 1, 2, 3, \cdots, 12}$ have the property that the number of elements in $B$ is equal to the least element of $B$? For example, $B = {4, 6, 8, 11}$ satisfies the condition.
144
AMC23
99
3
Given the measured phase shifts $\delta_o=90^o, \delta_1=67^o, \delta_2=55, \delta_3=30^o$ and $\delta_4=13^o$ in an experiment of elastic scattering of $50~MeV$ electrons from a nuclear target. Ignore rest of the phase shifts. Calculate the imaginary part of the scattering amplitude along the incident beam direction.
251.271 fm
GPQADiamond
157
1
When saturated epoxides are reacted with organocuprates, the alkyl group of the reagent is always introduced at less hindered carbon of the epoxide ring. In the disubstituted epoxides, inversion of configuration occurs at a carbon to which Nu is added. Identify the product when (1R,3R,4R,6S)-1,3,4-trimethyl-7-oxabicycl...
(1R,2R,4R,5R)-1,2,4,5-tetramethylcyclohexan-1-ol
GPQADiamond
221
1
Consider a system with Hamiltonian operator $H = \varepsilon \vec{\sigma}.\vec{n}$. Here, $\vec{n}$ is an arbitrary unit vector, $\varepsilon $ is a constant of dimension energy, and components of $\vec{\sigma}$ are the Pauli spin matrices. What are the eigenvalues of the Hamiltonian operator?
+ \varepsilon, -\varepsilon
GPQADiamond
285
1
You have seven bags of gold coins. Each bag has the same number of gold coins. One day, you find a bag of 53 coins. You decide to redistribute the number of coins you have so that all eight bags you hold have the same number of coins. You successfully manage to redistribute all the coins, and you also note that you hav...
203
MATH500
349
1
Find the product $CD$ of the integers $C$ and $D$ for which \[\frac{C}{x-3}+\frac{D}{x+8}=\frac{4x-23}{x^2+5x-24}\]for all real values of $x$ except $-8$ and $3$.
-5
MATH500
413
1
What is the positive square root of the product $10 \times 15 \times 24$?
60
MATH500
477
1
An investment of $\$24,\!000$ is made in a government bond that will pay $1\%$ bi-monthly interest (meaning that the investment will increase by $1\%$ every two months). At the end of five years, what is the total number of dollars in this investment? Express your answer to the nearest whole number.
\$32,\!348
MATH500
541
1
Find the number of quadratic equations of the form $x^2 + ax + b = 0,$ such that whenever $c$ is a root of the equation, $c^2 - 2$ is also a root of the equation.
6
MATH500
605
1
Find the dot product of $\begin{pmatrix} -2 \\ 0 \\ 7 \end{pmatrix}$ and $\begin{pmatrix} 3 \\ 4 \\ -5 \end{pmatrix}.$
-41
MATH500
669
1
In a certain isosceles right triangle, the altitude to the hypotenuse has length $4\sqrt{2}$. What is the area of the triangle?
32
MATH500
733
1
A sequence $(a_n)$ is defined as follows: \[a_{i + 1} = \frac{1}{1 - a_i}\]for $i \ge 1.$ If $a_3 = a_1,$ compute $(a_9)^9.$
-1
MATH500
797
1
You are given a 0-indexed string s that consists of digits from 0 to 9. A string t is called a semi-repetitive if there is at most one consecutive pair of the same digits inside t. For example, 0010, 002020, 0123, 2002, and 54944 are semi-repetitive while 00101022, and 1101234883 are not. Return the length of the longe...
LiveCodeBench
819
3
You are given a 1-indexed integer array nums of length n. An element nums[i] of nums is called special if i divides n, i.e. n % i == 0. Return the sum of the squares of all special elements of nums. Example 1: Input: nums = [1,2,3,4] Output: 21 Explanation: There are exactly 3 special elements in nums: nums[1] since...
LiveCodeBench
841
1
Given an array of strings words and a character separator, split each string in words by separator. Return an array of strings containing the new strings formed after the splits, excluding empty strings. Notes separator is used to determine where the split should occur, but it is not included as part of the resulting ...
LiveCodeBench
862
2
Given an array of strings words and a string s, determine if s is an acronym of words. The string s is considered an acronym of words if it can be formed by concatenating the first character of each string in words in order. For example, "ab" can be formed from ["apple", "banana"], but it can't be formed from ["bear", ...
LiveCodeBench
883
3
You are given a 0-indexed integer array nums and an integer k. Return an integer that denotes the sum of elements in nums whose corresponding indices have exactly k set bits in their binary representation. The set bits in an integer are the 1's present when it is written in binary. For example, the binary representati...
LiveCodeBench
905
1
Given three integers a, b, and n, return the maximum value of (a XOR x) * (b XOR x) where 0 <= x < 2^n. Since the answer may be too large, return it modulo 10^9 + 7. Note that XOR is the bitwise XOR operation. Example 1: Input: a = 12, b = 5, n = 4 Output: 98 Explanation: For x = 2, (a XOR x) = 14 and (b XOR x) = 7....
LiveCodeBench
926
2
You are given a 0-indexed integer array nums of even length and there is also an empty array arr. Alice and Bob decided to play a game where in every round Alice and Bob will do one move. The rules of the game are as follows: Every round, first Alice will remove the minimum element from nums, and then Bob does the sam...
LiveCodeBench
947
3
You are given an array of integers nums of length n. The cost of an array is the value of its first element. For example, the cost of [1,2,3] is 1 while the cost of [3,4,1] is 3. You need to divide nums into 3 disjoint contiguous subarrays. Return the minimum possible sum of the cost of these subarrays. Example 1: I...
LiveCodeBench
969
1
We have a sequence of length N consisting of positive integers: A=(A_1,\ldots,A_N). Any two adjacent terms have different values. Let us insert some numbers into this sequence by the following procedure. - If every pair of adjacent terms in A has an absolute difference of 1, terminate the procedure. - Let A_i, A_{i+1}...
LiveCodeBench
990
2
There is an ultramarathon course totaling 100\;\mathrm{km}. Water stations are set up every 5\;\mathrm{km} along the course, including the start and goal, for a total of 21. Takahashi is at the N\;\mathrm{km} point of this course. Find the position of the nearest water station to him. Under the constraints of this pr...
LiveCodeBench
1,011
3
You are given a grid with N rows and N columns. An integer A_{i, j} is written on the square at the i-th row from the top and j-th column from the left. Here, it is guaranteed that A_{i,j} is either 0 or 1. Shift the integers written on the outer squares clockwise by one square each, and print the resulting grid. Her...
LiveCodeBench
1,033
1
There are N people numbered 1 through N. Each person has a integer score called programming ability; person i's programming ability is P_i points. How many more points does person 1 need, so that person 1 becomes the strongest? In other words, what is the minimum non-negative integer x such that P_1 + x > P_i for all i...
LiveCodeBench
1,054
2
There is a 3\times3 grid with numbers between 1 and 9, inclusive, written in each square. The square at the i-th row from the top and j-th column from the left (1\leq i\leq3,1\leq j\leq3) contains the number c _ {i,j}. The same number may be written in different squares, but not in three consecutive cells vertically, h...
LiveCodeBench
1,075
3
Takahashi has a playlist with N songs. Song i (1 \leq i \leq N) lasts T_i seconds. Takahashi has started random play of the playlist at time 0. Random play repeats the following: choose one song from the N songs with equal probability and play that song to the end. Here, songs are played continuously: once a song ends,...
LiveCodeBench
1,097
1
A pair of sequences of length M consisting of positive integers at most N, (S, T) = ((S_1, S_2, \dots, S_M), (T_1, T_2, \dots, T_M)), is said to be a good pair of sequences when (S, T) satisfies the following condition. - There exists a sequence X = (X_1, X_2, \dots, X_N) of length N consisting of 0 and 1 that satisfi...
LiveCodeBench
1,118
2
There is a grid with 10^9 by 10^9 squares. Let (i, j) denote the square at the (i + 1)-th row from the top and the (j + 1)-th column from the left (0 \leq i, j \lt 10^9). (Note the unusual index assignment.) Each square is black or white. The color of the square (i, j) is represented by a character P[i \bmod N][j \bmo...
LiveCodeBench
1,139
3
A non-negative integer n is called a good integer when it satisfies the following condition: - All digits in the decimal notation of n are even numbers (0, 2, 4, 6, and 8). For example, 0, 68, and 2024 are good integers. You are given an integer N. Find the N-th smallest good integer. Input The input is given from ...
LiveCodeBench
1,161
1
There are N boxes numbered 0 to N-1. Initially, box i contains A_i balls. Takahashi will perform the following operations for i=1,2,\ldots,M in order: - Set a variable C to 0. - Take out all the balls from box B_i and hold them in hand. - While holding at least one ball in hand, repeat the following process: - Increas...
LiveCodeBench
1,182
2
You are given a sequence A=(A_1,\ldots,A_N) of length N. The elements of A are distinct. Process Q queries in the order they are given. Each query is of one of the following two types: - 1 x y : Insert y immediately after the element x in A. It is guaranteed that x exists in A when this query is given. - 2 x : Remove ...
LiveCodeBench
1,203
3
You are given a string S of length 6. It is guaranteed that the first three characters of S are ABC and the last three characters are digits. Determine if S is the abbreviation of a contest held and concluded on AtCoder before the start of this contest. Here, a string T is "the abbreviation of a contest held and conclu...
LiveCodeBench
1,225
1
N AtCoder users have gathered to play AtCoder RPS 2. The i-th user's name is S_i and their rating is C_i. AtCoder RPS 2 is played as follows: - Assign the numbers 0, 1, \dots, N - 1 to the users in lexicographical order of their usernames. - Let T be the sum of the ratings of the N users. The user assigned the number ...
LiveCodeBench
1,246
2
You are given two arrays of strings wordsContainer and wordsQuery. For each wordsQuery[i], you need to find a string from wordsContainer that has the longest common suffix with wordsQuery[i]. If there are two or more strings in wordsContainer that share the longest common suffix, find the string that is the smallest in...
LiveCodeBench
1,267
3
You are given two integers n and x. You have to construct an array of positive integers nums of size n where for every 0 <= i < n - 1, nums[i + 1] is greater than nums[i], and the result of the bitwise AND operation between all elements of nums is x. Return the minimum possible value of nums[n - 1]. Example 1: Input...
LiveCodeBench
1,289
1
README.md exists but content is empty.
Downloads last month
8