context
stringlengths
88
7.54k
groundtruth
stringlengths
9
28.8k
groundtruth_language
stringclasses
3 values
type
stringclasses
2 values
code_test_cases
listlengths
1
565
dataset
stringclasses
6 values
code_language
stringclasses
1 value
difficulty
float64
0
1
mid
stringlengths
32
32
Carl only eats food in the shape of equilateral pentagons. Unfortunately, for dinner he receives a piece of steak in the shape of an equilateral triangle. So that he can eat it, he cuts off two corners with straight cuts to form an equilateral pentagon. The set of possible perimeters of the pentagon he obtains is exactly the interval $[a, b)$, where $a$ and $b$ are positive real numbers. Compute $\frac{a}{b}$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{4 \sqrt{3}-6}
null
math
null
null
null
null
bd4e8b6ba0e45f70ad15d9543a86c268
The figure below was created by joining together 5 non-overlapping congruent squares. The total area of the figure is 45. Determine the perimeter of the figure. Please reason step by step, and put your final answer within \boxed{}.
\boxed{36}
null
math
null
null
null
null
bfa26a700f32f6b5d98d77f629da51f1
$Q$ is the point of intersection of the diagonals of one face of a cube whose edges have length 2 units. The length of $Q R$ is Please reason step by step, and put your final answer within \boxed{}.
\boxed{$\sqrt{6}$}
null
math
null
null
null
null
bfbaa01557ea2573f100db027e0b0087
Given points $P = (1: -2: 3), Q = (2: 2: -1)$ and $R = (3: 0: 2)$ on a line $g$ in $\mathbb{P}^{2}\mathbb{R}$, find a coordinate for $g$ such that $(P, Q, R)$ has coordinates $(0, 1, ∞)$. How many possibilities are there? Please reason step by step, and put your final answer within \boxed{}.
\boxed{1}
null
math
null
null
null
null
bfbdcf423de15444e8fca1a02c63aa56
In three out of six circles on the diagram, the numbers 4, 14, and 6 are written. In how many ways can the remaining three circles be filled with natural numbers such that the product of the three numbers along each side of the triangular diagram is the same? Please reason step by step, and put your final answer within \boxed{}.
\boxed{6}
null
math
null
null
null
null
c30230d8bbf9547772d773a479beafd9
Al told Bob that he was thinking of $2011$ distinct positive integers. He also told Bob the sum of those $2011$ distinct positive integers. From this information, Bob was able to determine all $2011$ integers. How many possible sums could Al have told Bob? Please reason step by step, and put your final answer within \boxed{}.
\boxed{2}
null
math
null
null
null
null
c33117eaebe1b1a78fc24a112f73bf9a
Two bored millionaires, Bilion and Trilion, decide to play a game. They each have a sufficient supply of $\$ 1, \ $ 2,\$ 5 $, and $ \ $ 10$ bills. Starting with Bilion, they take turns putting one of the bills they have into a pile. The game ends when the bills in the pile total exactly $\$ 1{,}000{,}000 $, and whoever makes the last move wins the $ \ $1{,}000{,}000$ in the pile (if the pile is worth more than $\$ 1{,}000{,}000$ after a move, then the person who made the last move loses instead, and the other person wins the amount of cash in the pile). Assuming optimal play, how many dollars will the winning player gain? *Proposed by Yannick Yao* Please reason step by step, and put your final answer within \boxed{}.
\boxed{1,000,000}
null
math
null
null
null
null
c7718a0566ca66afe39488203adab53f
At a school, after classes, someone broke a mirror in the vestibule. The last to leave were 9 students. The school principal asked each of them, "Who broke the mirror?" The answers were as follows: - Roland: "It was Percy." - Alex: "No, it wasn't Percy." - Ted: "I broke the mirror." - Fred: "It was either Ted or Walter." - Percy: "Alex is lying." - Tom: "Ted is guilty." - John: "Ted is not guilty." - Walter: "Neither I nor Ted broke the mirror." - Charlie: "Walter is telling the truth. Percy is also not guilty." The students later admitted that only three of their statements were true. Who broke the mirror? Please reason step by step, and put your final answer within \boxed{}.
\boxed{Walter}
null
math
null
null
null
null
c7d1a1d3777feb99e18def08779c6b75
6. A uniformly growing uniform grassland is divided into two unequal parts, $\mathrm{A}$ and $\mathrm{B}$. A herd of cows first eats the grass on plot A, finishing it in exactly 7 days. Then the herd continues to eat the grass on plot B at the same speed, finishing it in 4 days, at which point plot A has just recovered to the state it was in when the cows started eating. What is the simplest integer ratio of the area of plot A to plot B? $\qquad$ Please reason step by step, and put your final answer within \boxed{}.
\boxed{105:44}
null
math
null
null
null
null
c9d0406efd38e7393a6b6f50daee7454
An ancient British merchant had a 15-pound weight, which shattered into 4 pieces after falling to the ground. Each piece weighed an integer number of pounds, and it was possible to use these 4 pieces to measure any integer weight from 1 to 15 pounds (weights could only be placed on one side of the balance). What are the weights of the 4 pieces? Please reason step by step, and put your final answer within \boxed{}.
\boxed{1, 2, 4, 8}
null
math
null
null
null
null
cb0a2ff034722ac76e023a624e8e1eba
In how many ways every unit square of a $2018$ x $2018$ board can be colored in red or white such that number of red unit squares in any two rows are distinct and number of red squares in any two columns are distinct. Please reason step by step, and put your final answer within \boxed{}.
\boxed{2 * (2018!)^2}
null
math
null
null
null
null
cbc688f0f50812064952519c1d28670c
Given that $i$ is the imaginary unit, determine in which quadrant the complex conjugate of the complex number $i(1+i)$ is located in the complex plane. Please reason step by step, and put your final answer within \boxed{}.
\boxed{third quadrant}
null
math
null
null
null
null
cbe3ce12aa03104c1e10cdcf1b619e52
A triangular corner with side lengths $DB=EB=1$ is cut from equilateral triangle ABC of side length $3$. The perimeter of the remaining quadrilateral is Please reason step by step, and put your final answer within \boxed{}.
\boxed{8}
null
math
null
null
null
null
cc7f34300f042de35866008996126bf6
Let $A = (0,0)$, $B=(-1,-1)$, $C=(x,y)$, and $D=(x+1,y)$, where $x > y$ are positive integers. Suppose points $A$, $B$, $C$, $D$ lie on a circle with radius $r$. Denote by $r_1$ and $r_2$ the smallest and second smallest possible values of $r$. Compute $r_1^2 + r_2^2$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{2523}
null
math
null
null
null
null
cd9dd5107648189a3ed81717f5c78de2
In the picture, there is a grid consisting of 25 small equilateral triangles. How many rhombuses can be made from two adjacent small triangles? Please reason step by step, and put your final answer within \boxed{}.
\boxed{30}
null
math
null
null
null
null
cdef7a8a97f3a43863af84e0e65db0be
Find all real numbers \(a\) for which there exist three distinct real numbers \(x, y, z\) such that \(a = x + \frac{1}{y} = y + \frac{1}{z} = z + \frac{1}{x}\). Please reason step by step, and put your final answer within \boxed{}.
\boxed{\pm 1}
null
math
null
null
null
null
ce5c9bf088d2deb88b33f69412eee9c9
the length of a rectangle is increased by 40 % while its width is halved . what is the % change in area ? Please reason step by step, and put your final answer within \boxed{}.
\boxed{30\%}
null
math
null
null
null
null
d456db6fd7c7cbf3c2f067e2c2b34572
Three equal circles of radius \( R \) touch each other externally. Find the sides and angles of the triangle whose vertices are the points of tangency. Please reason step by step, and put your final answer within \boxed{}.
\boxed{R, 60^{\circ}, 60^{\circ}, 60^{\circ}}
null
math
null
null
null
null
d4d819ade1465f18a31c809f40d59002
Let $x$ be a complex number such that $x+x^{-1}$ is a root of the polynomial $p(t)=t^{3}+t^{2}-2 t-1$. Find all possible values of $x^{7}+x^{-7}$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{2}
null
math
null
null
null
null
d67419db2b7849dd5f58730e1f39989c
In the generalized Monty Hall problem, there are $n$ doors with $t$ cars hidden behind them ($t < n$). A contestant initially selects a door. The host, who knows the locations of the cars, opens $s$ doors revealing goats. Under what condition should the contestant switch their choice to maximize the chance of winning a car? Specifically, find the minimum $s$ such that switching always increases the probability of winning. Please reason step by step, and put your final answer within \boxed{}.
\boxed{1}
null
math
null
null
null
null
d7b85040fbc0c6e1cb93910b269a4575
Find the number of squares in the sequence given by $ a_0\equal{}91$ and $ a_{n\plus{}1}\equal{}10a_n\plus{}(\minus{}1)^n$ for $ n \ge 0.$ Please reason step by step, and put your final answer within \boxed{}.
\boxed{0}
null
math
null
null
null
null
d8bed0edae93fb2ac7f55e0fc742fcae
Find all solutions to the equation $$(z^2 - 3z + 1)^2 - 3(z^2 - 3z + 1) + 1 = z.$$ Please reason step by step, and put your final answer within \boxed{}.
\boxed{1+\sqrt 2,\ 1-\sqrt 2,\ 2+\sqrt 3,\ 2-\sqrt 3}
null
math
null
null
null
null
d8cccf4ae4598ca3ed8077efdad58050
Line segments PQ and RS are parallel. Points T, U, and V are placed so that ∠QTV = 30°, ∠SUV = 40°, and ∠TVU = x°, as shown. Find the value of x. Express your answer in degrees as a whole number. Please reason step by step, and put your final answer within \boxed{}.
\boxed{70}
null
math
null
null
null
null
da3154c031d9f9a003cd6712bf27e712
In convex quadrilateral $ABCD$, $\angle BAD = \angle BCD = 90^o$, and $BC = CD$. Let $E$ be the intersection of diagonals $\overline{AC}$ and $\overline{BD}$. Given that $\angle AED = 123^o$, find the degree measure of $\angle ABD$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{78^\circ}
null
math
null
null
null
null
de3a185e5a2f95ebded0ad00cb4ddd3f
In the diagram, \( KL \) is parallel to \( MN \), \( AB = BC \), and \(\angle KAC = 50^\circ\). Find the value of \( x \) in degrees. Please reason step by step, and put your final answer within \boxed{}.
\boxed{80}
null
math
null
null
null
null
de5cec11335481ef7846400e78361406
Wesyu is a farmer, and she's building a cao (a relative of the cow) pasture. She starts with a triangle $A_{0} A_{1} A_{2}$ where angle $A_{0}$ is $90^{\circ}$, angle $A_{1}$ is $60^{\circ}$, and $A_{0} A_{1}$ is 1. She then extends the pasture. First, she extends $A_{2} A_{0}$ to $A_{3}$ such that $A_{3} A_{0}=\frac{1}{2} A_{2} A_{0}$ and the new pasture is triangle $A_{1} A_{2} A_{3}$. Next, she extends $A_{3} A_{1}$ to $A_{4}$ such that $A_{4} A_{1}=\frac{1}{6} A_{3} A_{1}$. She continues, each time extending $A_{n} A_{n-2}$ to $A_{n+1}$ such that $A_{n+1} A_{n-2}=\frac{1}{2^{n}-2} A_{n} A_{n-2}$. What is the smallest $K$ such that her pasture never exceeds an area of $K$? Please reason step by step, and put your final answer within \boxed{}.
\boxed{\sqrt{3}}
null
math
null
null
null
null
de8ea9b13c3b0a5b995e290c98593137
Triangle $ABC$ has side lengths $AB=18$, $BC=36$, and $CA=24$. The circle $\Gamma$ passes through point $C$ and is tangent to segment $AB$ at point $A$. Let $X$, distinct from $C$, be the second intersection of $\Gamma$ with $BC$. Moreover, let $Y$ be the point on $\Gamma$ such that segment $AY$ is an angle bisector of $\angle XAC$. Suppose the length of segment $AY$ can be written in the form $AY=\frac{p\sqrt{r}}{q}$ where $p$, $q$, and $r$ are positive integers such that $\gcd(p, q)=1$ and $r$ is square free. Find the value of $p+q+r$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{69}
null
math
null
null
null
null
e02f9a22deb9214d9926b2a4d615616d
在平面直角坐标系 $x O y$ 中, 圆 $C_{1}: x^{2}+y^{2}-a=0$ 关于直线 $l$ 对称的圆为 $C_{2}: x^{2}+y^{2}+2 x-2 a y+3=0$, 请给出直线 $l$ 的方程中系数的和。 Please reason step by step, and put your final answer within \boxed{}.
\boxed{3}
null
math
null
null
null
null
e0812ce274fd12a13e701bc8655999ba
Consider an $8 \times 8$ grid of squares. A rook is placed in the lower left corner, and every minute it moves to a square in the same row or column with equal probability (the rook must move; i.e. it cannot stay in the same square). What is the expected number of minutes until the rook reaches the upper right corner? Please reason step by step, and put your final answer within \boxed{}.
\boxed{70}
null
math
null
null
null
null
e1162600a0ead65e3ef5144772163e62
Given the equation of the circle $(x-1)^2 + y^2 = 1$, identify the center $(a, b)$ and radius $r$. Express your answer as an ordered pair for the center and a single value for the radius. Please reason step by step, and put your final answer within \boxed{}.
\boxed{(1, 0), 1}
null
math
null
null
null
null
e11b1d4e1eb97cb7de910762cd769e1e
In the diagram, each of the two circles has center \(O\). Also, \(O P: P Q = 1:2\). If the radius of the larger circle is 9, what is the area of the shaded region? Please reason step by step, and put your final answer within \boxed{}.
\boxed{72 \pi}
null
math
null
null
null
null
e2513a3629eb8662ef1afb0a6ab7116f
A grasshopper is sitting on the number line at the number 0. Each second, it jumps one unit to the left or to the right, with equal probability. The directions of the jumps are chosen independently of each other. Let \( p \) denote the probability that, after 2022 jumps, the grasshopper is sitting at a number divisible by 5. Determine whether \( p < \frac{1}{5} \), \( p = \frac{1}{5} \), or \( p > \frac{1}{5} \). Please reason step by step, and put your final answer within \boxed{}.
\boxed{p > \frac{1}{5}}
null
math
null
null
null
null
e376b35506864e33c73ab5b955fdb65a
Which East Asian country was supposed to host the 1980 International Mathematical Olympiad (IMO) but was canceled due to internal strife in its host country? Please reason step by step, and put your final answer within \boxed{}.
\boxed{Mongolia}
null
math
null
null
null
null
e429d8fcd47016a7b3f844a70bc49965
Given two lines $l_{1}: ax+(a+2)y+1=0$ and $l_{2}: x+ay+2=0$. If $l_{1} \perpendicular l_{2}$, then find the value(s) of the real number $a$. Express your answer as a numerical value or a set of numerical values. Please reason step by step, and put your final answer within \boxed{}.
\boxed{0, -3}
null
math
null
null
null
null
e546d771ce8e6a2a851c702f82bde261
Find the real and imaginary parts of $(1 + i)^{19}$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{-512, 512}
null
math
null
null
null
null
ea09ee2bf9acdbba5bb77a46c5b8b1d5
In the diagram, semicircles are constructed on diameters $\overline{AB}$, $\overline{AC}$, and $\overline{CB}$, such that they are mutually tangent. Point $C$ is at one third the distance from $A$ to $B$, so $\overline{AC} = \frac{1}{3} \overline{AB}$ and $\overline{CB} = \frac{2}{3} \overline{AB}$. If $\overline{CD} \perp \overline{AB}$, find the ratio of the shaded area to the area of a circle with $\overline{CD}$ as radius. Please reason step by step, and put your final answer within \boxed{}.
\boxed{1:4}
null
math
null
null
null
null
eae4c56e9eb84b09d1ea3feffd44f8f1
A square is contained in a cube when all of its points are in the faces or in the interior of the cube. Determine the biggest $\ell > 0$ such that there exists a square of side $\ell$ contained in a cube with edge $1$ . Please reason step by step, and put your final answer within \boxed{}.
\boxed{\frac{\sqrt{6}}{2}}
null
math
null
null
null
null
eaf39bda7cca97df583845bba2d4c2fc
Let $T_1$ be a triangle with side lengths $2011$, $2012$, and $2013$. For $n \geq 1$, if $T_n = \Delta ABC$ and $D, E$, and $F$ are the points of tangency of the incircle of $\Delta ABC$ to the sides $AB$, $BC$, and $AC$, respectively, then $T_{n+1}$ is a triangle with side lengths $AD, BE$, and $CF$, if it exists. What is the perimeter of the last triangle in the sequence $\left(T_n\right)$? Please reason step by step, and put your final answer within \boxed{}.
\boxed{\frac{1509}{128}}
null
math
null
null
null
null
ecb7ce9271722f1bbce50347be707329
Three members of the Euclid Middle School girls' softball team had the following conversation. Ashley: I just realized that our uniform numbers are all $2$-digit primes. Bethany : And the sum of your two uniform numbers is the date of my birthday earlier this month. Caitlin: That's funny. The sum of your two uniform numbers is the date of my birthday later this month. Ashley: And the sum of your two uniform numbers is today's date. What number does Caitlin wear? Please reason step by step, and put your final answer within \boxed{}.
\boxed{11}
null
math
null
null
null
null
ed6f19e92b5a332b93d5eeb2107c38cf
A plane contains points $A$ and $B$ with $AB = 1$. Let $S$ be the union of all disks of radius 1 in the plane that cover $\overline{AB}$. What is the area of $S$? Express your answer in terms of $\pi$ and in simplest radical form. Please reason step by step, and put your final answer within \boxed{}.
\boxed{3\pi-\frac{\sqrt{3}}{2}}
null
math
null
null
null
null
eda4b8fe1e09fd3ae2e5a2ffdc1505f1
Number $125$ is written as the sum of several pairwise distinct and relatively prime numbers, greater than $1$ . What is the maximal possible number of terms in this sum? Please reason step by step, and put your final answer within \boxed{}.
\boxed{8}
null
math
null
null
null
null
edd68ecf38243467d36385490d817c19
The diagram shows two semicircles with a common center \( O \) and a rectangle \( OABC \). The line through \( O \) and \( C \) meets the small semicircle at \( D \) and the large semicircle at \( E \). The lengths \( CD \) and \( CE \) are equal. What fraction of the large semicircle is shaded? Please reason step by step, and put your final answer within \boxed{}.
\boxed{\frac{9}{25}}
null
math
null
null
null
null
ee0cb1806f9e02b2811f2d72135f9a15
Let $O$ and $I$ be the circumcenter and incenter of triangle $ABC$ . The perpendicular from $I$ to $OI$ meets $AB$ and the external bisector of angle $C$ at points $X$ and $Y$ respectively. In what ratio does $I$ divide the segment $XY$ ? Please reason step by step, and put your final answer within \boxed{}.
\boxed{ 1:2 }
null
math
null
null
null
null
ef0db4f6ac8bbbfdd5e2c3bd44530113
Let $ a $ , $ b $ , $ c $ , $ d $ , $ (a + b + c + 18 + d) $ , $ (a + b + c + 18 - d) $ , $ (b + c) $ , and $ (c + d) $ be distinct prime numbers such that $ a + b + c = 2010 $ , $ a $ , $ b $ , $ c $ , $ d \neq 3 $ , and $ d \le 50 $ . Find the maximum value of the difference between two of these prime numbers. Please reason step by step, and put your final answer within \boxed{}.
\boxed{2067}
null
math
null
null
null
null
f13f36cb1badd6a983f527cefe7e085a
Complete the conversion between the following number systems: $101101_{(2)} = \_\_\_\_\_\_\_\_\_\_\_\_{(10)}\_\_\_\_\_\_\_\_\_\_\_\_{(7)}$ Please reason step by step, and put your final answer within \boxed{}.
\boxed{63_{(7)}}
null
math
null
null
null
null
f1bbbe640059af922060c56d27e15d44
In triangle $ABC$ , $\angle ABC$ is obtuse. Point $D$ lies on side $AC$ such that $\angle ABD$ is right, and point $E$ lies on side $AC$ between $A$ and $D$ such that $BD$ bisects $\angle EBC$ . Find $CE$ given that $AC=35$ , $BC=7$ , and $BE=5$ . Please reason step by step, and put your final answer within \boxed{}.
\boxed{10}
null
math
null
null
null
null
f1c4efa050efdb6552332d57b03d997a
How many (possibly empty) sets of lattice points $\{P_1, P_2, ... , P_M\}$, where each point $P_i =(x_i, y_i)$ for $x_i , y_i \in \{0, 1, 2, 3, 4, 5, 6\}$, satisfy that the slope of the line $P_iP_j$ is positive for each $1 \le i < j \le M$ ? An infinite slope, e.g. $P_i$ is vertically above $P_j$ , does not count as positive. Please reason step by step, and put your final answer within \boxed{}.
\boxed{3432}
null
math
null
null
null
null
f621ea762f928cbd7155fb4d9b6eb3c8
In chemical laboratories, the floors are covered with tiles made of acid-resistant ceramics, which have the shape of regular polygons. Which polygons can be used to completely cover the floor without gaps? Please reason step by step, and put your final answer within \boxed{}.
\boxed{3, 4, 6}
null
math
null
null
null
null
f6ff6416fc0e370ef7018d8888e10c06
Each cell of a $29 \times 29$ table contains one of the integers $1, 2, 3, \ldots, 29$, and each of these integers appears $29$ times. The sum of all the numbers above the main diagonal is equal to three times the sum of all the numbers below this diagonal. Determine the number in the central cell of the table. Please reason step by step, and put your final answer within \boxed{}.
\boxed{15}
null
math
null
null
null
null
f75e41c80bc3c059158294678bf2a13c
Let $A B C$ be a triangle with $A B=13, B C=14$, and $C A=15$. We construct isosceles right triangle $A C D$ with $\angle A D C=90^{\circ}$, where $D, B$ are on the same side of line $A C$, and let lines $A D$ and $C B$ meet at $F$. Similarly, we construct isosceles right triangle $B C E$ with $\angle B E C=90^{\circ}$, where $E, A$ are on the same side of line $B C$, and let lines $B E$ and $C A$ meet at $G$. Find $\cos \angle A G F$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{-\frac{5}{13}}
null
math
null
null
null
null
f77f71658b7a9051335ee789a304ff3b
There are eleven positive integers $n$ such that there exists a convex polygon with $n$ sides whose angles, in degrees, are unequal integers that are in arithmetic progression. Find the sum of these values of $n$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{106}
null
math
null
null
null
null
fb05b08cec6286be01e7668a5f9a5bdd
Let $\theta=\frac{2\pi}{2015}$, and suppose the product \[\prod_{k=0}^{1439}\left(\cos(2^k\theta)-\frac{1}{2}\right)\] can be expressed in the form $\frac{b}{2^a}$, where $a$ is a non-negative integer and $b$ is an odd integer (not necessarily positive). Find $a+b$. Please reason step by step, and put your final answer within \boxed{}.
\boxed{1441}
null
math
null
null
null
null
fb71bc69a6fc23e8b6af3eb51a7f1d3b
Consider a $6 \times 6$ grid of squares. Edmond chooses four of these squares uniformly at random. What is the probability that the centers of these four squares form a square? Please reason step by step, and put your final answer within \boxed{}.
\boxed{\frac{1}{561}}
null
math
null
null
null
null
ff8def45165a3420b379a0a19b1fd3de