category stringclasses 5
values | question stringlengths 20 555 | answer stringlengths 1 20 | solution_abst stringlengths 1 287 | solution_code stringlengths 27 5.97k |
|---|---|---|---|---|
Arithmetic calculation | You are attaching posters measuring 30 centimeters (cm) in width and 20 centimeters (cm) in height to the wall. 15 posters are to be attached horizontally in succession, overlapping each other by 2 centimeters (cm). Find the minimum width of the wall in centimeters (cm) to attach all the posters. | 422 | 30 15 [OP_MUL] 15 1 [OP_SUB] 2 [OP_MUL] [OP_SUB] | var_a = 30
var_b = 15
var_c = var_a * var_b
var_d = 15
var_e = 1
var_f = var_d - var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i)) |
Correspondence | A3+31=54 is true. What is A? | 2 | A3+31=54 A [OP_DIGIT_UNK_SOLVER] | var_a = 'A3+31=54'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Arithmetic calculation | When writing numbers from 1 to 125, find out how many times all the numbers 2 are written. | 29 | 1 125 1 [OP_LIST_ARANGE] [OP_LIST2NUM] [OP_NUM2LIST] 2 [OP_LIST_FIND_NUM] | var_a = 1
var_b = 125
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
i = str(i)
var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
list_b.append(var_d%10)
var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 2
var_f = 0
var_... |
Arithmetic calculation | It is said that street trees are planted on both sides of the road at intervals of 25 meters (m). The length of the road is 2575 meters (m) and trees are also planted at the beginning and end of the road. How many trees are needed in total? | 208 | 2575 25 [OP_DIV] 1 [OP_ADD] 2 [OP_MUL] | var_a = 2575
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
var_f = 2
var_g = var_e * var_f
print(int(var_g)) |
Comparison | Find the number of numbers greater than 0.4 among 0.8, 1/2, and 0.3. | 2 | [OP_LIST_SOL] 0.8 1/2 0.3 [OP_LIST_EOL] 0.4 [OP_LIST_MORE] [OP_LIST_LEN] | var_a = 0.8
var_b = 0.5
var_c = 0.3
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 0.4
list_b = []
for i in list_a:... |
Geometry | Some cubes have edges of 5 centimeters (cm). In the middle of all the faces of this cube, I tried to dig out a cube shape with an edge length of 1 centimeter (cm), but I accidentally forgot to dig one out. Find the volume in cubic centimeters (cm3) of this shape. | 120 | 5 3 [OP_POW] 1 3 [OP_POW] 5 [OP_MUL] [OP_SUB] | var_a = 5
var_b = 3
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d ** var_e
var_g = 5
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i)) |
Geometry | A rectangle has a sum of 4 sides equal to 38 centimeters (cm). If the long side of this rectangle is 12 centimeters (cm), how many centimeters (cm) is the short side? | 7 | 38 2 [OP_DIV] 12 [OP_SUB] | var_a = 38
var_b = 2
var_c = var_a / var_b
var_d = 12
var_e = var_c - var_d
print(int(var_e)) |
Comparison | Yoojung collected 5 and 8, and Yuna collected 7 and 9. Who has the greatest sum of numbers? | Yuna | [OP_LIST_SOL] Yoojung Yuna [OP_LIST_EOL] [OP_LIST_SOL] 5 8 [OP_ADD] 7 9 [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoojung'
var_b = 'Yuna'
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 5
var_d = 8
var_e = var_c + var_d
var_f = 7
var_g = 9
var_h = var_f + var_g
list_b= []
if "/" in str(var_h)... |
Geometry | Create a cube using string, and the volume of the cube at its largest is 3375 cubic centimeters (cm3). Find the length of the string. | 180 | 3375 1/3 [OP_POW] 12 [OP_MUL] | var_a = 3375
var_b = 0.3333333333333333
var_c = var_a ** var_b
var_d = 12
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2))))) |
Comparison | There are buttons with two numbers written on them. The difference between the numbers on the buttons is 480. When you divide the larger number by the smaller number, you get a quotient of 4 and a remainder of 30. Find what the larger number is. | 630 | 480 30 [OP_SUB] 4 1 [OP_SUB] [OP_DIV] 4 [OP_MUL] 30 [OP_ADD] | var_a = 480
var_b = 30
var_c = var_a - var_b
var_d = 4
var_e = 1
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 4
var_i = var_g * var_h
var_j = 30
var_k = var_i + var_j
print(int(var_k)) |
Comparison | The five students, Yoongi, Jungkook, Yuna, Yoojung, and Taehyung, each have the numbers 7, 6, 9, 8, and 10. Who has the smallest number? | Jungkook | [OP_LIST_SOL] Yoongi Jungkook Yuna Yoojung Taehyung [OP_LIST_EOL] [OP_LIST_SOL] 7 6 9 8 10 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
var_d = 'Yoojung'
var_e = 'Taehyung'
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/... |
Geometry | There are 3 apples and 2 persimmons in the box. How many persimmons are in the box? | 2 | 2 | var_a = 2
print(int(var_a)) |
Comparison | Yoongi has 4, Yuna has 5, and Jungkook has the number 6 multiplied by 3. Who got the biggest number? | Jungkook | [OP_LIST_SOL] Yoongi Yuna Jungkook [OP_LIST_EOL] [OP_LIST_SOL] 4 5 6 3 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoongi'
var_b = 'Yuna'
var_c = 'Jungkook'
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 4
var_e = 5
var_f... |
Arithmetic calculation | Find how many times the number 2 appears on the train timetable for the station where trains stop every hour from 6:00 am to 11:00 pm. (However, 11 o'clock at night is indicated as 23 o'clock.) | 6 | 6 23 1 [OP_LIST_ARANGE] [OP_LIST2NUM] [OP_NUM2LIST] 2 [OP_LIST_FIND_NUM] | var_a = 6
var_b = 23
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
i = str(i)
var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
list_b.append(var_d%10)
var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 2
var_f = 0
var_e... |
Arithmetic calculation | Among the natural numbers from 1 to 100, what is the third largest number with a remainder of 2 when divided by 5? | 87 | 1 100 1 [OP_LIST_ARANGE] 5 2 [OP_LIST_DIVIDE_AND_REMAIN] 3 [OP_LIST_MAX] | var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
var_e = 2
list_b = []
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
var_e = var_e + var_d
for i in list_a:
i = int(i)
if i%var_d == var_e:
list_b.append(i)
var_f = 3
list_c=list_b.copy()
list_c.sort... |
Correspondence | When 9 is multiplied by a number, the result is 36. Find out the number exactly. | 4 | 36 9 [OP_DIV] | var_a = 36
var_b = 9
var_c = var_a / var_b
print(int(var_c)) |
Geometry | Building blocks are laid out to form a square. The number of building blocks on the outermost sides of the square is 52. Find the number of building blocks on the outermost of one side. | 14 | 52 4 [OP_SUB] 4 [OP_DIV] 2 [OP_ADD] | var_a = 52
var_b = 4
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
var_f = 2
var_g = var_e + var_f
print(int(var_g)) |
Arithmetic calculation | Each box contains 6 balls, and there are 30 white balls and 18 red balls. How many more boxes are there in white ball boxes than red ball boxes? | 2 | 30 6 [OP_DIV] 18 6 [OP_DIV] [OP_SUB] | var_a = 30
var_b = 6
var_c = var_a / var_b
var_d = 18
var_e = 6
var_f = var_d / var_e
var_g = var_c - var_f
print(int(var_g)) |
Arithmetic calculation | You want to print the text '29/12/2020'. Find how many times the number '2' is printed. | 4 | [OP_LIST_SOL] 2020 12 29 [OP_LIST_EOL] [OP_LIST2NUM] [OP_NUM2LIST] 2 [OP_LIST_FIND_NUM] | var_a = 2020
var_b = 12
var_c = 29
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d=""
for i in list_a:
i = str(i)
... |
Arithmetic calculation | Giyoon prepared some chocolates to distribute equally to 8 of her friends who decided to do volunteering together. But 2 people didn't come, so she gave one more chocolate to each person, and there were 4 chocolates left. How many chocolates did Giyoon prepare? | 40 | 8 2 [OP_SUB] 4 [OP_ADD] 8 8 2 [OP_SUB] [OP_SUB] [OP_FDIV] 8 [OP_MUL] | var_a = 8
var_b = 2
var_c = var_a - var_b
var_d = 4
var_e = var_c + var_d
var_f = 8
var_g = 8
var_h = 2
var_i = var_g - var_h
var_j = var_f - var_i
var_k = var_e // var_j
var_l = 8
var_m = var_k * var_l
print(int(var_m)) |
Geometry | After making a large square out of several small square-shaped pieces of paper, there were 20 pieces of paper left. When I tried to increase a horizontal side and a vertical side by one row each, nine pieces of paper were short. How many pieces of paper are there? | 216 | 20 9 [OP_ADD] 1 [OP_SUB] 2 [OP_DIV] 2 [OP_POW] 20 [OP_ADD] | var_a = 20
var_b = 9
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = var_g ** var_h
var_j = 20
var_k = var_i + var_j
print(int(var_k)) |
Comparison | There are 28 identical vending machines in the arcade. Each vending machine has the same number of beverages. When you selected the beverage that is 14th from the front, 20th from the back, 3rd from the top and 2nd from the bottom in a vending machine, find the total number of drinks in these arcade vending machines. | 3696 | 14 20 [OP_ADD] 1 [OP_SUB] 3 2 [OP_ADD] 1 [OP_SUB] [OP_MUL] 28 [OP_MUL] | var_a = 14
var_b = 20
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 3
var_g = 2
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
var_l = 28
var_m = var_k * var_l
print(int(var_m)) |
Correspondence | I took B6 away from 7A, and it became 23. What is A+B? | 14 | 7A-B6=23 A [OP_DIGIT_UNK_SOLVER] 7A-B6=23 B [OP_DIGIT_UNK_SOLVER] [OP_ADD] | var_a = '7A-B6=23'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Arithmetic calculation | I bought 16 pencils at a stationery store, but I lost a few on the way back home. When I counted the number of remaining pencils, there were 8. How many pencils were lost? | 8 | 16 8 [OP_SUB] | var_a = 16
var_b = 8
var_c = var_a - var_b
print(int(var_c)) |
Correspondence | You weighed the bag at the airport and it was 35 kilograms (kg) and 500 grams (g). After that, if you take out a laptop weighing 1 kg (kg) and 750 grams (g) from the bag and there is another bag weighing 27 kilograms (kg) and 200 grams (g), what is the total weight of the bags in kilograms (kg)? | 60.95 | 35 500 1000 [OP_DIV] [OP_ADD] 1 750 1000 [OP_DIV] [OP_ADD] [OP_SUB] 27 200 1000 [OP_DIV] [OP_ADD] [OP_ADD] | var_a = 35
var_b = 500
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1
var_g = 750
var_h = 1000
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e - var_j
var_l = 27
var_m = 200
var_n = 1000
var_o = var_m / var_n
var_p = var_l + var_o
var_q = var_k + var_p
print('{:.2f}'.format(round(var_q+1e-... |
Arithmetic calculation | How many four-digit numbers are the common multiples of 5, 6, and 2? | 300 | 1000 9999 1 [OP_LIST_ARANGE] 5 [OP_LIST_DIVISIBLE] 6 [OP_LIST_DIVISIBLE] 2 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
list_b = []
var_d = int(var_d)
for i in list_a:
i = int(i)
if i % var_d == 0:
list_b.append(i)
var_e = 6
list_c = []
var_e = int(var_e)
for i in list_b:
i = int(i)
if i % var_e == 0:
list_c... |
Arithmetic calculation | If there are 8 boxes of 12 soccer balls and 5 boxes of 12 basketballs, how many basketballs are fewer than soccer balls? | 36 | 12 8 [OP_MUL] 12 5 [OP_MUL] [OP_SUB] | var_a = 12
var_b = 8
var_c = var_a * var_b
var_d = 12
var_e = 5
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g)) |
Correspondence | A and B are single digit numbers. When A15B94 is divisible by 99, find the appropriate value for B. | 3 | A15B94 [OP_GEN_POSSIBLE_LIST] 99 [OP_LIST_DIVISIBLE] A15B94 B [OP_LIST_FIND_UNK] | var_a = 'A15B94'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
if v in variable_candi:
ans_dict[v] = 0
candi = list(itertools.produ... |
Arithmetic calculation | You are going to hand out notebooks to a few students. If you give each student 4 notebooks, 3 notebooks will be left, and if you give each student 5 notebooks, 6 noteboks will be in short. Find the number of notebooks. | 39 | 3 6 [OP_ADD] 5 4 [OP_SUB] [OP_DIV] 4 [OP_MUL] 3 [OP_ADD] | var_a = 3
var_b = 6
var_c = var_a + var_b
var_d = 5
var_e = 4
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 4
var_i = var_g * var_h
var_j = 3
var_k = var_i + var_j
print(int(var_k)) |
Arithmetic calculation | There are 85 apples and pears in total. How many more apples are there than pears when there are 48 apples? | 11 | 48 85 48 [OP_SUB] [OP_SUB] | var_a = 48
var_b = 85
var_c = 48
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e)) |
Possibility | Find the number of cases to put A and B next to each other in a situation where 6 people A, B, C, D, E, and F are lined up in a line. | 240 | [OP_LIST_SOL] A B C D E F [OP_LIST_EOL] [OP_LIST_SOL] A [OP_LIST_EOL] [OP_SET_DIFFERENCE] [OP_LIST_LEN] [OP_LIST_LEN] [OP_PERM] [OP_LIST_SOL] A B [OP_LIST_EOL] [OP_LIST_LEN] [OP_LIST_LEN] [OP_PERM] [OP_MUL] | var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
var_f = 'F'
list_a= []
if "/" in str(var_f):
var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):... |
Comparison | Yujeong arranged colored balls in a row on the desk in the following order: red, blue, yellow, purple, and white. What color comes last? | white | [OP_LIST_SOL] red blue yellow purple white [OP_LIST_EOL] [OP_LIST_LEN] [OP_LIST_GET] | var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
var_d = 'purple'
var_e = 'white'
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(... |
Possibility | How many 4-digit numbers are there where the sum of all digits is 35? | 4 | 1000 10000 1 [OP_SUB] 1 [OP_LIST_ARANGE] [OP_LIST_NUM2SUM] 35 [OP_LIST_MORE_EQUAL] 35 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN] | var_a = 1000
var_b = 10000
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
list_b=[]
for i in list_a:
var_f = 0
i = int(i)
while i//10 > 0:
var_f = var_f + i%10
i = i//10
var_f = var_f + i%10
list_b.append(var_f)
var_g = 35
list_c = []
f... |
Possibility | How many 2-digit numbers can you make by selecting 2 of the cookies numbered 0, 1, and 5? | 4 | [OP_LIST_SOL] 0 1 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 0
var_b = 1
var_c = 5
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
li... |
Correspondence | Subtracting 46 from a number gives 15 as a result. What would be the result if 29 is subtracted from this number? | 32 | 15 46 [OP_ADD] 29 [OP_SUB] | var_a = 15
var_b = 46
var_c = var_a + var_b
var_d = 29
var_e = var_c - var_d
print(int(var_e)) |
Correspondence | A number divided by 2 and dividing it by 2 again equals 85 plus 45. What is the value of subtracting 45 from the number? | 475 | 85 45 [OP_ADD] 2 [OP_MUL] 2 [OP_MUL] 45 [OP_SUB] | var_a = 85
var_b = 45
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
var_f = 2
var_g = var_e * var_f
var_h = 45
var_i = var_g - var_h
print(int(var_i)) |
Comparison | Several children are sitting in a circle. A child is facing the fifteenth child sitting clockwise from that child. Find the number of children sitting. | 30 | 15 1 [OP_SUB] 2 [OP_MUL] 2 [OP_ADD] | var_a = 15
var_b = 1
var_c = var_a - var_b
var_d = 2
var_e = var_c * var_d
var_f = 2
var_g = var_e + var_f
print(int(var_g)) |
Arithmetic calculation | What is the smallest two-digit number divisible by two numbers, 3 and 5? | 15 | 10 99 1 [OP_LIST_ARANGE] 3 [OP_LIST_DIVISIBLE] 5 [OP_LIST_DIVISIBLE] 1 [OP_LIST_MIN] | var_a = 10
var_b = 99
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
list_b = []
var_d = int(var_d)
for i in list_a:
i = int(i)
if i % var_d == 0:
list_b.append(i)
var_e = 5
list_c = []
var_e = int(var_e)
for i in list_b:
i = int(i)
if i % var_e == 0:
list_c.app... |
Comparison | There are two numbers 0.8, 1/2. How many numbers are less than 3? | 2 | [OP_LIST_SOL] 0.8 1/2 [OP_LIST_EOL] 3 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 0.8
var_b = 0.5
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 3
list_b = []
for i in list_a:
if i < var_c:
list_b.append(i)
var_d = len(list_b)
print(int(var_d)) |
Possibility | We are going to divide the students into 2 groups. How many ways are there to divide Jungkook, Jimin, Yoongi, and Yuna? The number of students in each group is the same. | 6 | [OP_LIST_SOL] Jungkook Jimin Yoongi Yuna [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB] | var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
list_a= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
... |
Comparison | When 19 toys are placed in a row, if the toy (A) is placed 8th from the right, in which place is toy (A) placed from the left? | 12 | 19 8 [OP_SUB] 1 [OP_ADD] | var_a = 19
var_b = 8
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Correspondence | You made the mistake of subtracting 63 instead of multiplying a number by 8, and got 8. What is the correct calculation result? | 568 | 8 63 [OP_ADD] 8 [OP_MUL] | var_a = 8
var_b = 63
var_c = var_a + var_b
var_d = 8
var_e = var_c * var_d
print(int(var_e)) |
Arithmetic calculation | I stacked 10 rows of chips. 9 rows are stacked 8 each, and the other 1 row is stacked 4 each. How many chips are there in total? | 76 | 9 8 [OP_MUL] 1 4 [OP_MUL] [OP_ADD] | var_a = 9
var_b = 8
var_c = var_a * var_b
var_d = 1
var_e = 4
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g)) |
Comparison | There are 32 students in Jimin's class, and each has a different height. If you line up these students in order from shortest to tallest, Jimin will be 11th from the front and Yuna will be 27th from the front. How many students are standing between Jimin and Yuna? | 15 | 27 11 [OP_SUB] 1 [OP_SUB] | var_a = 27
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e)) |
Geometry | You gathered several pieces of paper in the shape of an square with a side length of 8 centimeters (cm). If you put as many of these papers as possible without overlapping them in a 72 centimeters (cm) square bin, how many can you fit? | 81 | 72 8 [OP_DIV] 72 8 [OP_DIV] [OP_MUL] | var_a = 72
var_b = 8
var_c = var_a / var_b
var_d = 72
var_e = 8
var_f = var_d / var_e
var_g = var_c * var_f
print(int(var_g)) |
Correspondence | The equation A85-B1=364 makes. What number should go in B? | 2 | A85-B1=364 B [OP_DIGIT_UNK_SOLVER] | var_a = 'A85-B1=364'
var_b = 'B'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Possibility | How many two-digit integers can be formed by drawing two of the three flags with the numbers 3, 4, and 5 on them? | 6 | [OP_LIST_SOL] 3 4 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 3
var_b = 4
var_c = 5
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
li... |
Correspondence | AB40C is a five-digit number and a multiple of 45. Find the number of numbers that can be AB40C. | 20 | AB40C [OP_GEN_POSSIBLE_LIST] 45 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 'AB40C'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
if v in variable_candi:
ans_dict[v] = 0
candi = list(itertools.produc... |
Correspondence | If A78-21B=364, what number should go in B? | 4 | A78-21B=364 B [OP_DIGIT_UNK_SOLVER] | var_a = 'A78-21B=364'
var_b = 'B'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Correspondence | A3+61B=695. What is B? | 2 | A3+61B=695 B [OP_DIGIT_UNK_SOLVER] | var_a = 'A3+61B=695'
var_b = 'B'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Correspondence | When A is divided by B, the quotient is C and the remainder is 3. A, B, and C are natural numbers. If B and C are equal, what is the smallest possible number of A? | 19 | 3 1 [OP_ADD] 2 [OP_POW] 3 [OP_ADD] | var_a = 3
var_b = 1
var_c = var_a + var_b
var_d = 2
var_e = var_c ** var_d
var_f = 3
var_g = var_e + var_f
print(int(var_g)) |
Geometry | The sum of the lengths of all the edges of a cuboid is 100 centimeters (cm), and the length and width of the base are twice the height each. What is the surface area of this cuboid in square centimeters (cm2)? | 400 | 100 4 [OP_DIV] 2 2 [OP_ADD] 1 [OP_ADD] [OP_DIV] 2 [OP_POW] 2 2 [OP_MUL] 2 [OP_MUL] 1 2 [OP_MUL] 2 [OP_MUL] 1 2 [OP_MUL] 2 [OP_MUL] [OP_ADD] [OP_ADD] [OP_MUL] | var_a = 100
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = 2
var_f = var_d + var_e
var_g = 1
var_h = var_f + var_g
var_i = var_c / var_h
var_j = 2
var_k = var_i ** var_j
var_l = 2
var_m = 2
var_n = var_l * var_m
var_o = 2
var_p = var_n * var_o
var_q = 1
var_r = 2
var_s = var_q * var_r
var_t = 2
var_u = var_s * var_t... |
Arithmetic calculation | Ten trees are planted on one side of the road at intervals of 10 meters (m). If trees are planted at both ends of the road, find the length in meters (m) of the road. | 90 | 10 1 [OP_SUB] 10 [OP_MUL] | var_a = 10
var_b = 1
var_c = var_a - var_b
var_d = 10
var_e = var_c * var_d
print(int(var_e)) |
Comparison | Which shape has a longer perimeter, a regular-hexagon with a side length of 6 centimeters (cm) or a regular-pentagon with a side length of 7 centimeters (cm)? | regular-hexagon | [OP_LIST_SOL] regular-hexagon regular-pentagon [OP_LIST_EOL] [OP_LIST_SOL] 6 6 [OP_MUL] 7 5 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'regular-hexagon'
var_b = 'regular-pentagon'
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 6
var_d = 6
var_e = var_c * var_d
var_f = 7
var_g = 5
var_h = var_f * var_g
list_b= []
... |
Geometry | A rectangular flower bed is 4 meters (m) long and has an area of 143.2 square meters (m2). At this time, how many meters (m) is the width of the flower field? | 35.8 | 143.2 4 [OP_DIV] | var_a = 143.2
var_b = 4
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Arithmetic calculation | There are four numbers: 10, 11, 12, and 13. What is the sum of the third smallest and second smallest numbers? | 23 | [OP_LIST_SOL] 10 11 12 13 [OP_LIST_EOL] 3 [OP_LIST_MIN] 2 [OP_LIST_MIN] [OP_ADD] | var_a = 10
var_b = 11
var_c = 12
var_d = 13
list_a= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a)... |
Geometry | The sum of the lengths of all the edges of the cube equals 72 centimeters (cm). If you select two faces of this cube that touch each other, find the length in centimeters (cm) of the line segment that forms the boundary. | 6 | 72 4 3 [OP_MUL] [OP_DIV] | var_a = 72
var_b = 4
var_c = 3
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e)) |
Correspondence | While taking a math test, Jinyong misunderstood the question that required division by 9/4 as multiplied by 9/4, and submitted 18/5 as the answer. What is the correct answer to the problem that Jinyong solved incorrectly? | 0.71 | 18/5 9/4 [OP_DIV] 9/4 [OP_DIV] | var_a = 3.6
var_b = 2.25
var_c = var_a / var_b
var_d = 2.25
var_e = var_c / var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Comparison | Of the five numbers 1.4, 9/10, 1.2, 0.5, and 13/10, how many are less than 1.1? | 2 | [OP_LIST_SOL] 1.4 9/10 1.2 0.5 13/10 [OP_LIST_EOL] 1.1 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b =... |
Arithmetic calculation | Ho-yun is trying to divide marbles into several pieces. Dividing Hoyun's marbles into pockets 12 each, leaves 55 pockets. How many pockets will there be if you put 15 marbles in each? | 44 | 12 55 [OP_MUL] 15 [OP_DIV] 1 [OP_CEIL] | var_a = 12
var_b = 55
var_c = var_a * var_b
var_d = 15
var_e = var_c / var_d
var_f = 1
var_g=int(((var_e+9*10**(var_f-2))//(10**(var_f-1)))*10**(var_f-1))
print(int(var_g)) |
Possibility | Find the number of ways to draw 3 people among Namjoon, Yoongi, Hoseok, and Minyoung and put them in a line. | 24 | [OP_LIST_SOL] Namjoon Yoongi Hoseok Minyoung [OP_LIST_EOL] [OP_LIST_LEN] 3 [OP_PERM] | var_a = 'Namjoon'
var_b = 'Yoongi'
var_c = 'Hoseok'
var_d = 'Minyoung'
list_a= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
... |
Correspondence | You had to divide a number by 6 but instead multiplied by 7 to get 126. What is the correctly calculated value? | 3 | 126 7 [OP_DIV] 6 [OP_DIV] | var_a = 126
var_b = 7
var_c = var_a / var_b
var_d = 6
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | When the length of 8.8 centimeters (cm) of colored tape was overlapped by 0.5 centimeters (cm), the total length of the connected colored tape was 282.7 centimeters (cm). How many pieces of colored tape are there in total? | 34 | 282.7 8.8 [OP_SUB] 8.8 0.5 [OP_SUB] [OP_DIV] 1 [OP_ADD] | var_a = 282.7
var_b = 8.8
var_c = var_a - var_b
var_d = 8.8
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 1
var_i = var_g + var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2))))) |
Geometry | If there are 3 airplane routes and 2 boat routes from Seohee’s city to Jeju Island, find the number of ways to go by boat. | 2 | 2 | var_a = 2
print(int(var_a)) |
Geometry | A cube is 1 meter (m) long on one side, and a cuboid is 50 centimeters (cm) wide, 50 centimeters (cm) long, and 20 centimeters (cm) high. How many times the volume of this cube is the cuboid? | 20 | 1 100 [OP_MUL] 3 [OP_POW] 50 50 [OP_MUL] 20 [OP_MUL] [OP_DIV] | var_a = 1
var_b = 100
var_c = var_a * var_b
var_d = 3
var_e = var_c ** var_d
var_f = 50
var_g = 50
var_h = var_f * var_g
var_i = 20
var_j = var_h * var_i
var_k = var_e / var_j
print(int(var_k)) |
Correspondence | Subtracting 39 from a number gives 54. Find the value of this number divided by 3. | 31 | 39 54 [OP_ADD] 3 [OP_DIV] | var_a = 39
var_b = 54
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e)) |
Possibility | Five number cards with different digits were used each time to create a five-digit number that is a multiple of 99, with 6 in the ten thousands digit, 3 in the thousands digit, and 9 in the hundreds digit. Find the correct number on the two invisible cards and get the five digit number. | 63954 | 0 9 1 [OP_LIST_ARANGE] 5 [OP_LIST_GET_PERM] 10000 6 [OP_LIST_SEARCH_FIXED_DIGIT] 1000 3 [OP_LIST_SEARCH_FIXED_DIGIT] 100 9 [OP_LIST_SEARCH_FIXED_DIGIT] 99 [OP_LIST_DIVISIBLE] 1 [OP_LIST_GET] | var_a = 0
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i i... |
Possibility | How many cases can you make a number that is 10 or more and 100 or less by selecting two cards from 1, 7, and 9? | 6 | [OP_LIST_SOL] 1 7 9 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 1
var_b = 7
var_c = 9
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
li... |
Correspondence | A, B, C are different numbers from 0 to 9. Find A from the following two-digit addition: AB+BC=BCB. | 9 | AB+BC=BCB A [OP_DIGIT_UNK_SOLVER] | var_a = 'AB+BC=BCB'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
... |
Arithmetic calculation | What is the fifth largest number that can come out when you divide a number by 85? | 80 | 85 5 [OP_SUB] | var_a = 85
var_b = 5
var_c = var_a - var_b
print(int(var_c)) |
Comparison | Hohyeon is 162 centimeters (cm) tall and Seulgi is 159 centimeters (cm) tall. Who is taller? | Hohyeon | [OP_LIST_SOL] Hohyeon Seulgi [OP_LIST_EOL] [OP_LIST_SOL] 162 159 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Hohyeon'
var_b = 'Seulgi'
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 162
var_d = 159
list_b= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
if "/"... |
Arithmetic calculation | Use 400 grams (g) of wood to make 3 crafts. How many crafts can you make using 2.3 kilograms (kg) of wood? (However, crafts are made 3 at a time.) | 15 | 2.3 1000 [OP_MUL] 400 [OP_FDIV] 3 [OP_MUL] | var_a = 2.3
var_b = 1000
var_c = var_a * var_b
var_d = 400
var_e = var_c // var_d
var_f = 3
var_g = var_e * var_f
print(int(var_g)) |
Comparison | Children lined up at the sledding range to ride the sled. If there are 30 people between the foremost child and the fifth child from the back, how many children are in the line? | 36 | 5 30 [OP_ADD] 1 [OP_ADD] | var_a = 5
var_b = 30
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Geometry | You have a rectangular garden. The garden is 500 centimeters (cm) wide and 800 centimeters (cm) long. What is the area of this garden in square meters (m2)? | 40 | 500 100 [OP_DIV] 800 100 [OP_DIV] [OP_MUL] | var_a = 500
var_b = 100
var_c = var_a / var_b
var_d = 800
var_e = 100
var_f = var_d / var_e
var_g = var_c * var_f
print(int(var_g)) |
Geometry | Nine people stand in a line in order from shortest to tallest. Hoseok is standing 4th from the front. If you line up again in order from the tallest to the shortest, what number will Hoseok stand from the back? | 4 | 4 | var_a = 4
print(int(var_a)) |
Geometry | Find the area of a quadrilateral with two pairs of opposite sides parallel if the base is 3.8 meters (m) and the height is 6.36 meters (m). | 24.17 | 3.8 6.36 [OP_MUL] | var_a = 3.8
var_b = 6.36
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Geometry | What is the perimeter in centimeters (cm) of an octagon with all sides equal to 12 centimeters (cm)? | 96 | 12 8 [OP_MUL] | var_a = 12
var_b = 8
var_c = var_a * var_b
print(int(var_c)) |
Arithmetic calculation | How many single-digit odd numbers and two-digit even numbers are there? | 50 | 10 99 [OP_LIST_EVEN] 1 9 [OP_LIST_ODD] [OP_SET_UNION] [OP_LIST_LEN] | var_a = 10
var_b = 99
list_a = []
if var_a%2!=0:
for i in range(var_a+1, var_b+1, 2):
list_a.append(i)
else:
for i in range(var_a, var_b+1, 2):
list_a.append(i)
var_c = 1
var_d = 9
list_b = []
if var_c%2==0:
for i in range(var_c+1, var_d+1, 2):
list_b.append(i)
else:
for i in ran... |
Possibility | Find the sum of the smallest and largest four-digit numbers that can be formed using all the number cards 0, 3, 4, and 8. | 11478 | [OP_LIST_SOL] 0 3 4 8 [OP_LIST_EOL] 4 [OP_LIST_GET_PERM] 1 [OP_LIST_MIN] 1 [OP_LIST_MAX] [OP_ADD] | var_a = 0
var_b = 3
var_c = 4
var_d = 8
list_a= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
li... |
Arithmetic calculation | If you have three numbers of 10, 11 and 12, what do you get for the difference between the largest number and the second largest number? | 1 | [OP_LIST_SOL] 10 11 12 [OP_LIST_EOL] 1 [OP_LIST_MAX] 2 [OP_LIST_MAX] [OP_SUB] | var_a = 10
var_b = 11
var_c = 12
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1
list_b=list_a.copy()
list_b.sort(... |
Comparison | If you line up numbers that are less than or equal to 1.1 from among five numbers 1.4, 9/10, 1.2, 0.5, 13/10 and calculate the sum, what is the value? | 1.4 | [OP_LIST_SOL] 1.4 9/10 1.2 0.5 13/10 [OP_LIST_EOL] 1.1 [OP_LIST_LESS_EQUAL] [OP_LIST_SUM] | var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b =... |
Geometry | If the perimeter of a regular octagon is 72 centimeters (cm), find the length of one side. | 9 | 72 8 [OP_DIV] | var_a = 72
var_b = 8
var_c = var_a / var_b
print(int(var_c)) |
Correspondence | There are three natural numbers A, B, and C. When A is divided by 7, the quotient is B and the remainder is C. The quotient and remainder are equal in this equation. Find the largest number among A. | 48 | 7 6 [OP_MUL] 6 [OP_ADD] | var_a = 7
var_b = 6
var_c = var_a * var_b
var_d = 6
var_e = var_c + var_d
print(int(var_e)) |
Geometry | On the way to school from home, Jinho takes a bus to travel 4 kilometers (km) and 436 meters (m), and walks 1999 meters (m). When he went back home in the same way, how many kilometers (km) did Jinho travel to and from school? | 12.87 | 4 436 1000 [OP_DIV] [OP_ADD] 1999 1000 [OP_DIV] [OP_ADD] 2 [OP_MUL] | var_a = 4
var_b = 436
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1999
var_g = 1000
var_h = var_f / var_g
var_i = var_e + var_h
var_j = 2
var_k = var_i * var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Geometry | A bowl has a volume of 36.488 milliliters (ml). If you pour 6.08 milliliters (ml) per second, how long will it take to fill the bowl? | 6 | 36.48 6.08 [OP_DIV] | var_a = 36.48
var_b = 6.08
var_c = var_a / var_b
print(int(eval('{:.2f}'.format(round(var_c+1e-10,2))))) |
Geometry | You have a square piece of paper with a side length of 10 centimeters (cm). How many right triangle-shaped pieces with a base of 1 centimeter (cm) and a hight of 3 centimeters (cm) can you cut out from this piece of paper? | 66 | 10 2 [OP_POW] 1 3 [OP_MUL] [OP_FDIV] 2 [OP_MUL] | var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i)) |
Correspondence | There are balls A, B, and C of different sizes. A is three times bigger than B, and B is half the size of C. How many times the size of A than the size of C? | 1.5 | 3 1/2 [OP_MUL] | var_a = 3
var_b = 0.5
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | At a gimbap shop, a basic gimbap is 2,000 won, a tuna gimbap is 3,500 won, red pepper gimbap is 3,000 won, a beef gimbap is 4,000 won, and a rice gimbap is 3,500 won. Find out the number of types of gimbap that costs more than or equal to 3500 won. | 3 | [OP_LIST_SOL] 2000 3500 3000 4000 3500 [OP_LIST_EOL] 3500 [OP_LIST_MORE_EQUAL] [OP_LIST_LEN] | var_a = 2000
var_b = 3500
var_c = 3000
var_d = 4000
var_e = 3500
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
va... |
Geometry | A theater ticket is rectangular in shape, measuring 28 centimeters (cm) in perimeter and 6 centimeters (cm) in width. Find the area of this theater ticket. | 48 | 28 2 [OP_DIV] 6 [OP_SUB] 6 [OP_MUL] | var_a = 28
var_b = 2
var_c = var_a / var_b
var_d = 6
var_e = var_c - var_d
var_f = 6
var_g = var_e * var_f
print(int(var_g)) |
Geometry | I drew two parallel lines, then drew two parallel lines on top of them, and a square was drawn. If the base of this square is 9.51 centimeters (cm) and the height is 4.8 centimeters (cm), what is the area? | 45.65 | 9.51 4.8 [OP_MUL] | var_a = 9.51
var_b = 4.8
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Correspondence | Wooyoung spent 200 won more than half of the money he had at the first store and 300 won more than half of the remaining money at the second store, and was left with 350 won. How much money did Wooyoung have at first? | 3000 | 350 300 [OP_ADD] 1 1/2 [OP_SUB] [OP_DIV] 200 [OP_ADD] 1 1/2 [OP_SUB] [OP_DIV] | var_a = 350
var_b = 300
var_c = var_a + var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 200
var_i = var_g + var_h
var_j = 1
var_k = 0.5
var_l = var_j - var_k
var_m = var_i / var_l
print(int(var_m)) |
Arithmetic calculation | How many four-digit numbers are multiples of all of 2, 3, 8, and 9? | 125 | 1000 9999 1 [OP_LIST_ARANGE] 2 [OP_LIST_DIVISIBLE] 3 [OP_LIST_DIVISIBLE] 8 [OP_LIST_DIVISIBLE] 9 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
list_b = []
var_d = int(var_d)
for i in list_a:
i = int(i)
if i % var_d == 0:
list_b.append(i)
var_e = 3
list_c = []
var_e = int(var_e)
for i in list_b:
i = int(i)
if i % var_e == 0:
list_c... |
Comparison | If a box weighing 1 kg (kg) is estimated to be 1100 grams (g) for Dami and 850 grams (g) for Woosik, find out which of the two people has the closest estimate of the weight of the box. | Dami | [OP_LIST_SOL] Dami Woosik [OP_LIST_EOL] [OP_LIST_SOL] 1000 1100 [OP_SUB] [OP_ABS] 1000 850 [OP_SUB] [OP_ABS] [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Dami'
var_b = 'Woosik'
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 1000
var_d = 1100
var_e = var_c - var_d
var_f = abs(var_e)
var_g = 1000
var_h = 850
var_i = var_g - var_h
va... |
Correspondence | A, B, and C are natural numbers. When A is divided by 9, the quotient is B and the remainder is C. If the remainder is 3 less than the quotient, choose the smallest number that can be A. | 27 | 9 3 [OP_MUL] 0 [OP_ADD] | var_a = 9
var_b = 3
var_c = var_a * var_b
var_d = 0
var_e = var_c + var_d
print(int(var_e)) |
Comparison | 6 friends and Yuna are standing in a line. If there are 2 friends in front of Yuna, find how many friends are behind Yuna. | 4 | 6 1 [OP_ADD] 2 [OP_SUB] 1 [OP_SUB] | var_a = 6
var_b = 1
var_c = var_a + var_b
var_d = 2
var_e = var_c - var_d
var_f = 1
var_g = var_e - var_f
print(int(var_g)) |
Comparison | The red tape is 11/6 meters (m), the blue tape is 7/4 meters (m), and the yellow tape is 13/8 meters (m). Which tape is the longest? | red | [OP_LIST_SOL] red blue yellow [OP_LIST_EOL] [OP_LIST_SOL] 11/6 7/4 13/8 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1.8333333333333333
var... |
Geometry | There is an octagon-shaped gift box. If the box's perimeter is 72 centimeters (cm), what is the side length in centimeters (cm)? | 9 | 72 8 [OP_DIV] | var_a = 72
var_b = 8
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | How many apples are left when you equally distribute 40 apples to as many as possible to 7 people? | 5 | 40 7 [OP_MOD] | var_a = 40
var_b = 7
var_c = var_a % var_b
print(int(var_c)) |
Correspondence | Sangjun has 10 more than 1/4 of the books on economics, 5 less than 3/5 of the remaining books on social science, and 12 of the remaining books are on science. If Sangjun has 13 books that are not related to economics, society, or science, how many books does Sangjun have? | 80 | 13 12 [OP_ADD] 5 [OP_SUB] 1 3/5 [OP_SUB] [OP_DIV] 10 [OP_ADD] 1 1/4 [OP_SUB] [OP_DIV] | var_a = 13
var_b = 12
var_c = var_a + var_b
var_d = 5
var_e = var_c - var_d
var_f = 1
var_g = 0.6
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 10
var_k = var_i + var_j
var_l = 1
var_m = 0.25
var_n = var_l - var_m
var_o = var_k / var_n
print(int(var_o)) |
Possibility | How many three-digit numbers contain all of 3, 6, and 9? | 6 | [OP_LIST_SOL] 3 6 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 3
var_b = 6
var_c = 9
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.