Dataset Viewer
Auto-converted to Parquet Duplicate
problem
stringlengths
95
1.87k
answer
stringlengths
0
95
task
stringclasses
6 values
problem_number
int64
7
1.31k
set_number
int64
1
5
Let $\mathcal{B}$ be the set of rectangular boxes with surface area $54$ and volume $23$. Let $r$ be the radius of the smallest sphere that can contain each of the rectangular boxes that are elements of $\mathcal{B}$. The value of $r^2$ can be written as $\frac{p}{q}$, where $p$ and $q$ are relatively prime positive in...
721
AIME24
7
5
Let $\omega\neq 1$ be a 13th root of unity. Find the remainder when \[\prod_{k=0}^{12}(2-2\omega^k+\omega^{2k})\] is divided by 1000.
321
AIME24
20
4
The $9$ members of a baseball team went to an ice-cream parlor after their game. Each player had a single scoop cone of chocolate, vanilla, or strawberry ice cream. At least one player chose each flavor, and the number of players who chose chocolate was greater than the number of players who chose vanilla, which was gr...
16
AIME25
33
3
Six points $A, B, C, D, E,$ and $F$ lie in a straight line in that order. Suppose that $G$ is a point not on the line and that $AC=26, BD=22, CE=31, DF=33, AF=73, CG=40,$ and $DG=30.$ Find the area of $\triangle BGE.$
468
AIME25
46
2
Let ${\triangle ABC}$ be a right triangle with $\angle A = 90^\circ$ and $BC = 38.$ There exist points $K$ and $L$ inside the triangle such\[AK = AL = BK = CL = KL = 14.\]The area of the quadrilateral $BKLC$ can be expressed as $n\sqrt3$ for some positive integer $n.$ Find $n.$
104
AIME25
59
1
Rows 1, 2, 3, 4, and 5 of a triangular array of integers are shown below. 1 1 1 1 3 1 1 5 5 1 1 7 11 7 1 Each row after the first row is formed by placing a 1 at each end of the row, and each interior entry is 1 greater than the sum of the two numbers diagonally above it in the previous row. What is the units digits of...
5
AMC23
71
5
In the $xy$-plane, a circle of radius $4$ with center on the positive $x$-axis is tangent to the $y$-axis at the origin, and a circle with radius $10$ with center on the positive $y$-axis is tangent to the $x$-axis at the origin. What is the slope of the line passing through the two points at which these circles inters...
7
AMC23
84
4
When the roots of the polynomial \[P(x) = (x-1)^1 (x-2)^2 (x-3)^3 \cdot \cdot \cdot (x-10)^{10}\] are removed from the number line, what remains is the union of $11$ disjoint open intervals. On how many of these intervals is $P(x)$ positive?
6
AMC23
97
3
Identify the compound C9H11NO2 using the given data. IR: medium to strong intensity bands at 3420 cm-1, 3325 cm-1 strong band at 1720 cm-1 1H NMR: 1.20 ppm (t, 3H); 4.0 ppm (bs, 2H); 4.5 ppm (q, 2H); 7.0 ppm (d, 2H), 8.0 ppm (d, 2H).
ethyl 4-aminobenzoate
GPQADiamond
147
1
Complete the following reactions and select the major products by considering the steric hindrance, and the stability of the products. 2-ethyl-2,6-dimethylcyclohexan-1-one + ethyl acrylate (t-BuOK) ---> A 1-nitropropane + (KOH, (E)-but-2-enenitrile, H2O) ---> B
A = ethyl 3-(3-ethyl-1,3-dimethyl-2-oxocyclohexyl)propanoate, B = 3-methyl-4-nitrohexanenitrile
GPQADiamond
211
1
Consider an oscillating charge distribution, which is spheroid in shape (with the symmetry axis along z-axis). Because it oscillates, it would radiate at a wavelength \lambda. In the radiation zone, the radiated power per unit solid angle will be a function f of \lambda and the angle \theta (with z-axis), along which t...
3/4, \lambda^(-6)
GPQADiamond
275
1
A regular octagon has the same perimeter as the regular hexagon shown here with side length 16 cm. How long is each side of the octagon? [asy]size(80); pair A = dir(120); pair B=dir(60); pair M=(A+B)/2; draw(dir(360)--B--A--dir(180)--dir(240)--dir(300)--cycle); label("16 cm", M, N);[/asy]
12
MATH500
339
1
The graphs of $x^2 + y^2 + 6x - 24y + 72 = 0$ and $x^2 - y^2 + 6x + 16y - 46 = 0$ intersect at four points. Compute the sum of the distances from these four points to the point $(-3,2).$
40
MATH500
403
1
There is a total of 70 squares of three sizes whose vertices are points on this rectangular $3\times n$ grid of points. What is the value of $n$? [asy] unitsize(0.4 inch); dot((0,0),linewidth(9bp)); dot((1,0),linewidth(9bp)); dot((2,0),linewidth(9bp)); dot((0,1),linewidth(9bp)); dot((0,2),linewidth(9bp)); dot((1,1),...
19
MATH500
467
1
If $\omega^{1997} = 1$ and $\omega \neq 1,$ then evaluate \[\frac{1}{1 + \omega} + \frac{1}{1 + \omega^2} + \dots + \frac{1}{1 + \omega^{1997}}.\]
\frac{1997}{2}
MATH500
531
1
Assume $0 < r < 3$. Below are five equations for $x$. Which equation has the largest solution $x$? $\textbf{(A)}\ 3(1 + r)^x = 7\qquad \textbf{(B)}\ 3(1 + r/10)^x = 7\qquad \textbf{(C)}\ 3(1 + 2r)^x = 7$ $\textbf{(D)}\ 3(1 + \sqrt {r})^x = 7\qquad \textbf{(E)}\ 3(1 + 1/r)^x = 7$
\text{(B)}
MATH500
595
1
The following line is parameterized, so that its direction vector is of the form $\begin{pmatrix} -7 \\ b \end{pmatrix}.$ Find $b.$ [asy] unitsize(0.4 cm); pair A, B, L, R; int i, n; for (i = -8; i <= 8; ++i) { draw((i,-8)--(i,8),gray(0.7)); draw((-8,i)--(8,i),gray(0.7)); } draw((-8,0)--(8,0),Arrows(6)); draw(...
\frac{7}{4}
MATH500
659
1
The value of $y$ varies inversely as $\sqrt x$ and when $x=24$, $y=15$. What is $x$ when $y=3$?
600
MATH500
723
1
A shirt's sale price is marked $\$14.40$, which is $60\%$ off the original price. How many dollars was the original price of the shirt?
\$36
MATH500
787
1
There is a 0-indexed array nums of length n. Initially, all elements are uncolored (has a value of 0). You are given a 2D integer array queries where queries[i] = [index_i, color_i]. For each query, you color the index index_i with the color color_i in the array nums. Return an array answer of the same length as querie...
LiveCodeBench
816
2
You are given an integer n denoting the total number of servers and a 2D 0-indexed integer array logs, where logs[i] = [server_id, time] denotes that the server with id server_id received a request at time time. You are also given an integer x and a 0-indexed integer array queries. Return a 0-indexed integer array arr ...
LiveCodeBench
837
3
Given three strings a, b, and c, your task is to find a string that has the minimum length and contains all three strings as substrings. If there are multiple such strings, return the lexicographically smallest one. Return a string denoting the answer to the problem. Notes A string a is lexicographically smaller than ...
LiveCodeBench
859
1
You are given a 2D integer array coordinates and an integer k, where coordinates[i] = [x_i, y_i] are the coordinates of the i^th point in a 2D plane. We define the distance between two points (x_1, y_1) and (x_2, y_2) as (x1 XOR x2) + (y1 XOR y2) where XOR is the bitwise XOR operation. Return the number of pairs (i, j)...
LiveCodeBench
880
2
You are given a binary string s that contains at least one '1'. You have to rearrange the bits in such a way that the resulting binary number is the maximum odd binary number that can be created from this combination. Return a string representing the maximum odd binary number that can be created from the given combinat...
LiveCodeBench
901
3
You are given a 0-indexed integer array nums. A subsequence of nums having length k and consisting of indices i_0 < i_1 < ... < i_k-1 is balanced if the following holds: nums[i_j] - nums[i_j-1] >= i_j - i_j-1, for every j in the range [1, k - 1]. A subsequence of nums having length 1 is considered balanced. Return an...
LiveCodeBench
923
1
You are given a string word and an integer k. A substring s of word is complete if: Each character in s occurs exactly k times. The difference between two adjacent characters is at most 2. That is, for any two adjacent characters c1 and c2 in s, the absolute difference in their positions in the alphabet is at most 2. ...
LiveCodeBench
944
2
You are given a 2D 0-indexed integer array dimensions. For all indices i, 0 <= i < dimensions.length, dimensions[i][0] represents the length and dimensions[i][1] represents the width of the rectangle i. Return the area of the rectangle having the longest diagonal. If there are multiple rectangles with the longest diago...
LiveCodeBench
965
3
You are given a 0-indexed integer array nums, and an integer k. In one operation, you can remove one occurrence of the smallest element of nums. Return the minimum number of operations needed so that all elements of the array are greater than or equal to k. Example 1: Input: nums = [2,11,10,1,3], k = 10 Output: 3 Ex...
LiveCodeBench
987
1
There are N people numbered 1, 2, \ldots, N on a two-dimensional plane, and person i is at the point represented by the coordinates (X_i,Y_i). Person 1 has been infected with a virus. The virus spreads to people within a distance of D from an infected person. Here, the distance is defined as the Euclidean distance, tha...
LiveCodeBench
1,008
2
We have a grid with H horizontal rows and W vertical columns. We denote by (i,j) the cell at the i-th row from the top and j-th column from the left. Each cell in the grid has a lowercase English letter written on it. The letter written on (i,j) equals the j-th character of a given string S_i. Snuke will repeat movi...
LiveCodeBench
1,029
3
You are given a non-empty string S consisting of (, ), and ?. There are 2^x ways to obtain a new string by replacing each ? in S with ( and ), where x is the number of occurrences of ? in S. Among them, find the number, modulo 998244353, of ways that yield a parenthesis string. A string is said to be a parenthesis st...
LiveCodeBench
1,051
1
You are given a weighted undirected complete graph with N vertices numbered from 1 to N. The edge connecting vertices i and j (i< j) has a weight of D_{i,j}. When choosing some number of edges under the following condition, find the maximum possible total weight of the chosen edges. - The endpoints of the chosen edges...
LiveCodeBench
1,072
2
You are given a string S of length 16 consisting of 0 and 1. If the i-th character of S is 0 for every even number i from 2 through 16, print Yes; otherwise, print No. Input The input is given from Standard Input in the following format: S Output If the i-th character of S is 0 for every even number i from 2 throug...
LiveCodeBench
1,093
3
You are given a string S of length N consisting of lowercase English letters. If there are any adjacent occurrences of a and b in S, print Yes; otherwise, print No. (The order of a and b does not matter.) Input The input is given from Standard Input in the following format: N S Output If there are any adjacent oc...
LiveCodeBench
1,115
1
In the calendar of AtCoder Kingdom, a year consists of M months from month 1 to month M, and each month consists of D days from day 1 to day D. What day follows year y, month m, day d in this calendar? Input The input is given from Standard Input in the following format: M D y m d Output If the day following year ...
LiveCodeBench
1,136
2
Takahashi has created a game where the player controls a dragon on a coordinate plane. The dragon consists of N parts numbered 1 to N, with part 1 being called the head. Initially, part i is located at the coordinates (i,0). Process Q queries as follows. - 1 C: Move the head by 1 in direction C. Here, C is one of R, L...
LiveCodeBench
1,157
3
You have an empty sequence A. There are Q queries given, and you need to process them in the order they are given. The queries are of the following two types: - 1 x: Append x to the end of A. - 2 k: Find the k-th value from the end of A. It is guaranteed that the length of A is at least k when this query is given. In...
LiveCodeBench
1,179
1
You are given a string S consisting of lowercase English letters and |. S is guaranteed to contain exactly two |s. Remove the characters between the two |s, including the |s themselves, and print the resulting string. Input The input is given from Standard Input in the following format: S Output Print the answer. ...
LiveCodeBench
1,200
2
There are N people labeled 1 to N, who have played several one-on-one games without draws. Initially, each person started with 0 points. In each game, the winner's score increased by 1 and the loser's score decreased by 1 (scores can become negative). Determine the final score of person N if the final score of person i...
LiveCodeBench
1,221
3
There are N buildings aligned in a row. The i-th building from the left has a height of H_i. Determine if there is a building taller than the first one from the left. If such a building exists, find the position of the leftmost such building from the left. Input The input is given from Standard Input in the following...
LiveCodeBench
1,243
1
Given a string s, return the maximum length of a substring such that it contains at most two occurrences of each character. Example 1: Input: s = "bcbbbcba" Output: 4 Explanation: The following substring has a length of 4 and contains at most two occurrences of each character: "bcbbbcba". Example 2: Input: s = "aaa...
LiveCodeBench
1,264
2
You are given a string s. The score of a string is defined as the sum of the absolute difference between the ASCII values of adjacent characters. Return the score of s. Example 1: Input: s = "hello" Output: 13 Explanation: The ASCII values of the characters in s are: 'h' = 104, 'e' = 101, 'l' = 108, 'o' = 111. So, t...
LiveCodeBench
1,285
3
A powerful array for an integer x is the shortest sorted array of powers of two that sum up to x. For example, the powerful array for 11 is [1, 2, 8]. The array big_nums is created by concatenating the powerful arrays for every positive integer i in ascending order: 1, 2, 3, and so forth. Thus, big_nums starts as [1, 2...
LiveCodeBench
1,307
1
README.md exists but content is empty.
Downloads last month
8