category
stringclasses 5
values | question
stringlengths 20
555
| answer
stringlengths 1
20
| solution_abst
stringlengths 1
287
| solution_code
stringlengths 27
5.97k
|
---|---|---|---|---|
Possibility | Using the four number cards 0, 1, 4, and 8 once each, find the third largest three-digit number with the ones digit of 8. | 148 | [OP_LIST_SOL] 0 1 4 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 8 [OP_LIST_SEARCH_FIXED_DIGIT] 3 [OP_LIST_MAX] | var_a = 0
var_b = 1
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))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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 in list_b]
var_f = 1
var_g = 8
list_c = []
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
i = int(i)
if (i//var_f)%10 == var_g:
list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i)) |
Correspondence | A4+B82=216. How much is B? | 1 | A4+B82=216 B [OP_DIGIT_UNK_SOLVER] | var_a = 'A4+B82=216'
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):
if v in variable_candi:
ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
term_list = []
op_list = []
temp_c = ''
for tc in temp:
if tc not in '+-*/=><().':
temp_c += tc
else:
op_list.append(tc)
term_list.append(temp_c)
temp_c = ''
term_list.append(temp_c)
new_eq = ''
for i in range(len(op_list)):
new_eq += str(int(term_list[i]))+op_list[i]
new_eq += str(int(term_list[-1]))
if len(new_eq) == len(var_a):
new_eq=new_eq.replace('=', '==')
new_eq=new_eq.replace('>==', '>=')
new_eq=new_eq.replace('<==', '<=')
eval_result = False
try:
eval_result = eval(new_eq)
except:
pass
if eval_result:
for i, (k, _) in enumerate(ans_dict.items()):
ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c)) |
Geometry | What is the total number of faces in a tetrahedron? | 4 | 4 | var_a = 4
print(int(var_a)) |
Correspondence | Sunmi's Korean language score is 40 points. The sum of Sunmi's Korean language score and math score is multiplied by 5 to get 555. Multiply her math score by 7 and then subtract 55 to find what it is. | 442 | 555 5 [OP_DIV] 40 [OP_SUB] 7 [OP_MUL] 55 [OP_SUB] | var_a = 555
var_b = 5
var_c = var_a / var_b
var_d = 40
var_e = var_c - var_d
var_f = 7
var_g = var_e * var_f
var_h = 55
var_i = var_g - var_h
print(int(var_i)) |
Correspondence | When 34 is divided by the natural number A, the remainder is 4 and the quotient is 6. Find the right value for A. | 5 | 34 4 [OP_SUB] 6 [OP_DIV] | var_a = 34
var_b = 4
var_c = var_a - var_b
var_d = 6
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | Seokjin had 100 sheets of paper. If he made 3 notebooks of 30 pages with this paper, how many sheets of paper are left? | 10 | 100 30 3 [OP_MUL] [OP_SUB] | var_a = 100
var_b = 30
var_c = 3
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e)) |
Geometry | Find the number of diagonals drawn from the vertex of a figure enclosed by 12 sides. | 9 | 12 3 [OP_SUB] | var_a = 12
var_b = 3
var_c = var_a - var_b
print(int(var_c)) |
Geometry | Find the sum of the volumes of two cubes whose edges are 5 centimeters (cm) long. | 250 | 5 5 2 [OP_MUL] [OP_MUL] 5 [OP_MUL] | var_a = 5
var_b = 5
var_c = 2
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 5
var_g = var_e * var_f
print(int(var_g)) |
Comparison | When people stand in a line, there are 5 people standing between the person standing at the front and the person standing at the tail. How many people are in line? | 7 | 5 2 [OP_ADD] | var_a = 5
var_b = 2
var_c = var_a + var_b
print(int(var_c)) |
Correspondence | There are 60 kinds of school supplies, such as pencils, notebooks, erasers, and ballpoint pens. If there are 5 pencils, 10 notebooks, and 32 erasers, how many ballpoint pens are there? | 13 | 60 32 [OP_SUB] 10 [OP_SUB] 5 [OP_SUB] | var_a = 60
var_b = 32
var_c = var_a - var_b
var_d = 10
var_e = var_c - var_d
var_f = 5
var_g = var_e - var_f
print(int(var_g)) |
Correspondence | If two different numbers A and B satisfy the addition expression AB+25=B3, what is B? | 8 | AB+25=B3 B [OP_DIGIT_UNK_SOLVER] | var_a = 'AB+25=B3'
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):
if v in variable_candi:
ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
term_list = []
op_list = []
temp_c = ''
for tc in temp:
if tc not in '+-*/=><().':
temp_c += tc
else:
op_list.append(tc)
term_list.append(temp_c)
temp_c = ''
term_list.append(temp_c)
new_eq = ''
for i in range(len(op_list)):
new_eq += str(int(term_list[i]))+op_list[i]
new_eq += str(int(term_list[-1]))
if len(new_eq) == len(var_a):
new_eq=new_eq.replace('=', '==')
new_eq=new_eq.replace('>==', '>=')
new_eq=new_eq.replace('<==', '<=')
eval_result = False
try:
eval_result = eval(new_eq)
except:
pass
if eval_result:
for i, (k, _) in enumerate(ans_dict.items()):
ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c)) |
Geometry | Suzy has a piece of colored paper in the shape of a square with each side measuring 6 centimeters (cm). By using additional colored paper, Suzy make the square's side 1cm larger. How much did the area of this colored paper increase than it was at first? | 13 | 6 1 [OP_ADD] 2 [OP_POW] 6 2 [OP_POW] [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 = 6
var_g = 2
var_h = var_f ** var_g
var_i = var_e - var_h
print(int(var_i)) |
Geometry | How many meters (m) are the circumference of a rectangle with 480 centimeters (cm) wide and 360 centimeters (cm) long, rounding up to the tenth digit? | 16.8 | 480 100 [OP_DIV] 360 100 [OP_DIV] [OP_ADD] 2 [OP_MUL] 2 [OP_ROUND] | var_a = 480
var_b = 100
var_c = var_a / var_b
var_d = 360
var_e = 100
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 2
var_i = var_g * var_h
var_j = 2
var_k = round(float(var_i)+1e-10, var_j)
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Arithmetic calculation | The water bottle A contains 3.8 liters (L) of water, and the water bottle B contains 8.4 liters (L) more water than A. When the water bottle C contains 3720 milliliters (㎖) more than 1/10 of the water in B, how many liters (L) of water are in the water bottle C? | 4.94 | 3.8 8.4 [OP_ADD] 1/10 [OP_MUL] 3720 1000 [OP_DIV] [OP_ADD] | var_a = 3.8
var_b = 8.4
var_c = var_a + var_b
var_d = 0.1
var_e = var_c * var_d
var_f = 3720
var_g = 1000
var_h = var_f / var_g
var_i = var_e + var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Geometry | Suzy made a large cube with a volume of 1000 cubic centimeters (cm3) from 8 small cubes. How many centimeters (cm) is the length of one edge of the small cube? | 5 | 1000 8 [OP_DIV] 1/3 [OP_POW] | var_a = 1000
var_b = 8
var_c = var_a / var_b
var_d = 0.3333333333333333
var_e = var_c ** var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2))))) |
Geometry | What is the sum of the number of edges of a triangle, and a rectangle? | 7 | 3 4 [OP_ADD] | var_a = 3
var_b = 4
var_c = var_a + var_b
print(int(var_c)) |
Arithmetic calculation | There is colored paper that is 25 centimeters (cm) wide and 30 centimeters (cm) long. When 15 pieces of this colored paper are attached horizontally to the wall, overlapping each other by 0.5 cm, find the horizontal length in meters (m) of the glued colored paper. | 3.68 | 25 25 0.5 [OP_SUB] 15 1 [OP_SUB] [OP_MUL] [OP_ADD] 100 [OP_DIV] | var_a = 25
var_b = 25
var_c = 0.5
var_d = var_b - var_c
var_e = 15
var_f = 1
var_g = var_e - var_f
var_h = var_d * var_g
var_i = var_a + var_h
var_j = 100
var_k = var_i / var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Comparison | Choose the largest number among 5, 8, 4, 3, and 2. | 8 | [OP_LIST_SOL] 5 8 4 3 2 [OP_LIST_EOL] 1 [OP_LIST_MAX] | var_a = 5
var_b = 8
var_c = 4
var_d = 3
var_e = 2
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 = 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_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
print(int(var_g)) |
Comparison | Jisoo poured 1 liter (L) and 400 milliliters (㎖) of apple juice and 2800 milliliters (㎖) of orange juice into a bucket, and the bucket was filled up. Which one has more capacity, a bucket or a basin with 4 liters (L) and 100 milliliters (㎖)? | basin | [OP_LIST_SOL] basin bucket [OP_LIST_EOL] [OP_LIST_SOL] 4 1000 [OP_MUL] 100 [OP_ADD] 2800 1 1000 [OP_MUL] 400 [OP_ADD] [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'basin'
var_b = 'bucket'
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 = 4
var_d = 1000
var_e = var_c * var_d
var_f = 100
var_g = var_e + var_f
var_h = 2800
var_i = 1
var_j = 1000
var_k = var_i * var_j
var_l = 400
var_m = var_k + var_l
var_n = var_h + var_m
list_b= []
if "/" in str(var_n):
var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_g):
var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r) |
Correspondence | Jimin wants to multiply 34 by some number. If the result of subtracting a number from 20 by mistake is 60, find the correct calculation. | -1360 | 34 20 60 [OP_SUB] [OP_MUL] | var_a = 34
var_b = 20
var_c = 60
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e)) |
Arithmetic calculation | There are numbers 25, 17, 21, 34, and 32. What is the difference between the largest number and the smallest number? | 17 | [OP_LIST_SOL] 25 17 21 34 32 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 25
var_b = 17
var_c = 21
var_d = 34
var_e = 32
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 = 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_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g - var_i
print(int(var_j)) |
Geometry | There is a square-shaped window with a side of 90 centimeters (cm). When decorating the edge of this window with stickers at 3 centimeters (cm) intervals, find how many stickers are needed in total. | 120 | 90 4 [OP_MUL] 3 [OP_FDIV] | var_a = 90
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c // var_d
print(int(var_e)) |
Arithmetic calculation | Minyoung drank 10 liters (L) of milk, and Yuna drank 2/3 liters (L). Find how many times the amount of milk that Minyoung drank was the amount of milk that Yuna drank. | 15 | 10 2/3 [OP_DIV] | var_a = 10
var_b = 0.6666666666666666
var_c = var_a / var_b
print(int(var_c)) |
Possibility | You want to create a two-digit natural number by drawing two from three erasers with the numbers 1, 2, and 3 written on them. How many can you make? | 6 | [OP_LIST_SOL] 1 2 3 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 1
var_b = 2
var_c = 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 = 2
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 in list_b]
var_e = len(list_b)
print(int(var_e)) |
Comparison | Hyunju and Seungah have the same amount of water. If Hyunju drank 0.41 times 6 liters (L) and Seungah poured 2.3 liters (L), whose remaining water is less? | Hyunju | [OP_LIST_SOL] Hyunju Seunga [OP_LIST_EOL] [OP_LIST_SOL] 6 0.41 [OP_MUL] 2.3 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Hyunju'
var_b = 'Seunga'
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 = 0.41
var_e = var_c * var_d
var_f = 2.3
list_b= []
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j) |
Arithmetic calculation | 63 people were equally divided into 9 cars. How many people were in one car? | 7 | 63 9 [OP_DIV] | var_a = 63
var_b = 9
var_c = var_a / var_b
print(int(var_c)) |
Geometry | If the area of the parallelogram is 44 square centimeters (cm2) and the height is 11 centimeters (cm), find the length of the base. | 4 | 44 11 [OP_DIV] | var_a = 44
var_b = 11
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | Which five-digit number is the largest common multiple of 2, 3, 8, and 9? | 99936 | 10000 99999 1 [OP_LIST_ARANGE] 2 [OP_LIST_DIVISIBLE] 3 [OP_LIST_DIVISIBLE] 8 [OP_LIST_DIVISIBLE] 9 [OP_LIST_DIVISIBLE] 1 [OP_LIST_MAX] | var_a = 10000
var_b = 99999
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.append(i)
var_f = 8
list_d = []
var_f = int(var_f)
for i in list_c:
i = int(i)
if i % var_f == 0:
list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
i = int(i)
if i % var_g == 0:
list_e.append(i)
var_h = 1
list_f=list_e.copy()
list_f.sort()
var_i = list_f[-var_h]
print(int(var_i)) |
Possibility | How many two-digit numbers can be made using only once each of 0, 1, 2, and 3? | 9 | [OP_LIST_SOL] 0 1 2 3 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 0
var_b = 1
var_c = 2
var_d = 3
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))
list_a.append(var_a)
list_a.reverse()
var_e = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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 in list_b]
var_f = len(list_b)
print(int(var_f)) |
Arithmetic calculation | Find the largest number whose hundreds digit is 7, the unit digit is 3, and the remainder when divided by 3 is 1. | 793 | 7A3 [OP_GEN_POSSIBLE_LIST] 3 1 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX] | var_a = '7A3'
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.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
if len(var_a) == len(str(int(temp))):
new_elem = int(temp)
list_a.append(new_elem)
var_b = 3
var_c = 1
list_b = []
var_b = int(var_b)
var_c = int(var_c)
if var_c < 0:
var_c = var_c + var_b
for i in list_a:
i = int(i)
if i%var_b == var_c:
list_b.append(i)
var_d = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[-var_d]
print(int(var_e)) |
Arithmetic calculation | There are 135.1 liters (L) of water. If this is divided into 7 liter (L) buckets, how many liters (L) are left after the buckets are filled with water? | 2.1 | 135.1 7 [OP_MOD] | var_a = 135.1
var_b = 7
var_c = var_a % var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | Nana is 1.618 meters (m) tall and Gaeun is 162.3 centimeters (cm) tall. Find out who is taller. | Gaeun | [OP_LIST_SOL] Nana Gaeun [OP_LIST_EOL] [OP_LIST_SOL] 1.618 100 [OP_MUL] 162.3 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Nana'
var_b = 'Gaeun'
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 = 1.618
var_d = 100
var_e = var_c * var_d
var_f = 162.3
list_b= []
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j) |
Correspondence | A56B is a four-digit number divisible by 36. What is the number of all numbers that can be A? | 3 | A56B [OP_GEN_POSSIBLE_LIST] 36 [OP_LIST_DIVISIBLE] A56B A [OP_LIST_FIND_UNK] [OP_LIST_LEN] | var_a = 'A56B'
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.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
if len(var_a) == len(str(int(temp))):
new_elem = int(temp)
list_a.append(new_elem)
var_b = 36
list_b = []
var_b = int(var_b)
for i in list_a:
i = int(i)
if i % var_b == 0:
list_b.append(i)
var_c = 'A56B'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
elem = str(elem)
list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e)) |
Possibility | When 6 people including A, B, and C are lined up, in how many ways can A, B, and C line up next to each other? | 144 | 6 [OP_LIST_SOL] A B C [OP_LIST_EOL] [OP_LIST_LEN] 1 [OP_SUB] [OP_SUB] 6 [OP_LIST_LEN] 1 [OP_SUB] [OP_SUB] [OP_PERM] [OP_LIST_LEN] [OP_LIST_LEN] [OP_PERM] [OP_MUL] | var_a = 6
var_b = 'A'
var_c = 'B'
var_d = 'C'
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)
list_a.reverse()
var_e = len(list_a)
var_f = 1
var_g = var_e - var_f
var_h = var_a - var_g
var_i = 6
var_j = len(list_a)
var_k = 1
var_l = var_j - var_k
var_m = var_i - var_l
var_n = 1
var_h = int(var_h)
var_m = int(var_m)
for i, elem in enumerate(range(var_m)):
var_n = var_n * (var_h-i)
var_o = len(list_a)
var_p = len(list_a)
var_q = 1
var_o = int(var_o)
var_p = int(var_p)
for i, elem in enumerate(range(var_p)):
var_q = var_q * (var_o-i)
var_r = var_n * var_q
print(int(var_r)) |
Comparison | A pumpkin weighs two and nine-tenths of a kilogram (kg) and a watermelon weighs forty-one-tenths of a kilogram (kg). Which one is heavier, pumpkin or watermelon? | watermelon | [OP_LIST_SOL] pumpkin watermelon [OP_LIST_EOL] [OP_LIST_SOL] 2 9 10 [OP_DIV] [OP_ADD] 41 10 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'pumpkin'
var_b = 'watermelon'
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 = 2
var_d = 9
var_e = 10
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 41
var_i = 10
var_j = var_h / var_i
list_b= []
if "/" in str(var_j):
var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_g):
var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n) |
Comparison | Seokjin's classroom has desks arranged in a square shape. When the number of desks in each row is the same, Seokjin's seat is 3rd from the front, 5th from the back, 4th from the right, and 2nd from the left. Find the total number of desks in Seokjin's classroom. | 35 | 3 5 [OP_ADD] 1 [OP_SUB] 4 2 [OP_ADD] 1 [OP_SUB] [OP_MUL] | var_a = 3
var_b = 5
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 4
var_g = 2
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k)) |
Arithmetic calculation | Hoseok has 138 pieces of purple-colored paper. Hoseok has 119 fewer pieces of blue-colored paper than yellow-colored paper and 185 more yellow-colored paper than purple-colored paper. How many purple, yellow, and blue-colored paper does Hoseok have in total? | 467 | 138 138 119 [OP_ADD] [OP_ADD] 138 119 [OP_ADD] 185 [OP_SUB] [OP_ADD] | var_a = 138
var_b = 138
var_c = 119
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 138
var_g = 119
var_h = var_f + var_g
var_i = 185
var_j = var_h - var_i
var_k = var_e + var_j
print(int(var_k)) |
Comparison | Choose the smaller number between 5 and 8. | 5 | [OP_LIST_SOL] 5 8 [OP_LIST_EOL] 1 [OP_LIST_MIN] | var_a = 5
var_b = 8
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 = 1
list_b=list_a.copy()
list_b.sort()
var_d = list_b[var_c-1]
print(int(var_d)) |
Comparison | What is the greatest number among the five numbers 5, 8, 4, 3, and 2? | 8 | [OP_LIST_SOL] 5 8 4 3 2 [OP_LIST_EOL] 1 [OP_LIST_MAX] | var_a = 5
var_b = 8
var_c = 4
var_d = 3
var_e = 2
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 = 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_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
print(int(var_g)) |
Arithmetic calculation | There are 4 boxes of 6 ballpoint pens. If you pack 3 ballpoint pens in a box, how many boxes are needed? | 8 | 6 4 [OP_MUL] 3 [OP_DIV] | var_a = 6
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e)) |
Comparison | Giyoon received 80 points in Korean, 94 points in mathematics, 82 points in social studies, 76 points in English, and 100 points in science in the midterm exam. How many subjects did he do better than the average points? | 2 | [OP_LIST_SOL] 80 94 82 76 100 [OP_LIST_EOL] [OP_LIST_MEAN] [OP_LIST_MORE] [OP_LIST_LEN] | var_a = 80
var_b = 94
var_c = 82
var_d = 76
var_e = 100
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 = 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()
list_a = [float(i) for i in list_a]
var_f = sum(list_a)/len(list_a)
list_b = []
for i in list_a:
if i > var_f:
list_b.append(i)
var_g = len(list_b)
print(int(var_g)) |
Arithmetic calculation | Find the sum of the quotients of the two divisions 4610 / 133 and 618 / 886 | 34 | 46.1 1.33 [OP_FDIV] 61.8 88.6 [OP_FDIV] [OP_ADD] | var_a = 46.1
var_b = 1.33
var_c = var_a // var_b
var_d = 61.8
var_e = 88.6
var_f = var_d // var_e
var_g = var_c + var_f
print(int(var_g)) |
Arithmetic calculation | After solving 12 problems of Korean, Seokjin solved 7 more. What is a total number of problems he solved? | 19 | 12 7 [OP_ADD] | var_a = 12
var_b = 7
var_c = var_a + var_b
print(int(var_c)) |
Possibility | If you are to form a three-digit number by selecting three from 0, 2, 4, and 6 and using them only once, what is the sum of the largest and smallest possible numbers? | 846 | [OP_LIST_SOL] 0 2 4 6 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD] | var_a = 0
var_b = 2
var_c = 4
var_d = 6
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))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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 in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g + var_i
print(int(var_j)) |
Arithmetic calculation | After filling a 250 milliliters (ml) cup with water and pouring it 20 times in a water bottle, and then filling a 600 milliliters (ml) cup with water and pouring it 13 times, the water bottle was full. How many liters (L) does this water bottle hold? | 12.8 | 250 20 [OP_MUL] 600 13 [OP_MUL] [OP_ADD] 1000 [OP_DIV] | var_a = 250
var_b = 20
var_c = var_a * var_b
var_d = 600
var_e = 13
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 1000
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Possibility | When three different coins are tossed, find the number of ways in which the first coin will come up heads. | 4 | 2 2 [OP_MUL] | var_a = 2
var_b = 2
var_c = var_a * var_b
print(int(var_c)) |
Correspondence | When a number is divided by 7, the quotient is 12 and the remainder is 5. What is the quotient when this number is divided by 8? | 11 | 12 7 [OP_MUL] 5 [OP_ADD] 8 [OP_FDIV] | var_a = 12
var_b = 7
var_c = var_a * var_b
var_d = 5
var_e = var_c + var_d
var_f = 8
var_g = var_e // var_f
print(int(var_g)) |
Correspondence | 9A5 is a three digit number. Find all possible numbers for A that make division 9A5÷5<197 possible. | 8 | 9A5÷5<197 A [OP_DIGIT_UNK_SOLVER] [OP_LIST_LEN] | var_a = '9A5÷5<197'
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):
if v in variable_candi:
ans_dict[v] = []
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
term_list = []
op_list = []
temp_c = ''
for tc in temp:
if tc not in '+-*/=><().':
temp_c += tc
else:
op_list.append(tc)
term_list.append(temp_c)
temp_c = ''
term_list.append(temp_c)
new_eq = ''
for i in range(len(op_list)):
new_eq += str(int(term_list[i]))+op_list[i]
new_eq += str(int(term_list[-1]))
if len(new_eq) == len(var_a):
new_eq=new_eq.replace('=', '==')
new_eq=new_eq.replace('>==', '>=')
new_eq=new_eq.replace('<==', '<=')
eval_result = False
try:
eval_result = eval(new_eq)
except:
pass
if eval_result:
for i, (k, _) in enumerate(ans_dict.items()):
ans_dict[k].append(int(c[i]))
list_a = list(set(ans_dict[var_b]))
var_c = len(list_a)
print(int(var_c)) |
Comparison | 19 different toys are placed in order from the smallest. (a) Toy is 9th from the left and (b) Toy is 15th from the left. Find the number of toys between the two toys. | 5 | 15 9 [OP_SUB] 1 [OP_SUB] | var_a = 15
var_b = 9
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e)) |
Comparison | Hoseok made a fraction less than 1 with 5 and 6, and Jungkook made a fraction. that is smaller than 1 using 4 and 3. Whose fraction is bigger? | Hoseok | [OP_LIST_SOL] Hoseok Jungkook [OP_LIST_EOL] [OP_LIST_SOL] 5 6 [OP_DIV] 3 4 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Hoseok'
var_b = 'Jungkook'
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 = 6
var_e = var_c / var_d
var_f = 3
var_g = 4
var_h = var_f / var_g
list_b= []
if "/" in str(var_h):
var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l) |
Arithmetic calculation | Of the 90 centimeters (cm) long string, 30 centimeters (cm) was given to Yoojung, and 8/15 of the remaining was used to tie the box. Find the length of the string used to tie the box. | 32 | 90 30 [OP_SUB] 8/15 [OP_MUL] | var_a = 90
var_b = 30
var_c = var_a - var_b
var_d = 0.5333333333333333
var_e = var_c * var_d
print(int(var_e)) |
Comparison | Choose a number or numbers less than 1.1 from 1.4, 9/10, 1.2, 0.5, and 13/10, then find the largest number among them. | 0.9 | [OP_LIST_SOL] 1.4 9/10 1.2 0.5 13/10 [OP_LIST_EOL] 1.1 [OP_LIST_LESS] 1 [OP_LIST_MAX] | 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 = 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_f = 1.1
list_b = []
for i in list_a:
if i < var_f:
list_b.append(i)
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print('{:.2f}'.format(round(var_h+1e-10,2))) |
Comparison | Fish A, B, C, and D are feeding. A ate more feed than D, and B ate more feed than A. If C ate less feed than A, which fish ate the most? | B | [OP_LIST_SOL] A B C D [OP_LIST_EOL] [OP_LIST_SOL] A D > C A < B A > [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] 1 [OP_LIST_GET] | var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
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))
list_a.append(var_a)
list_a.reverse()
var_e = 'A'
var_f = 'D'
var_g = '>'
var_h = 'C'
var_i = 'A'
var_j = '<'
var_k = 'B'
var_l = 'A'
var_m = '>'
list_b= []
if "/" in str(var_m):
var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
if cond_ in ("<", ">", "="):
operand_right = temp_stack.pop()
operand_left = temp_stack.pop()
if cond_ == "=":
cond_ = "=="
conditions.append(f"{operand_left} {cond_} {operand_right}")
else:
if not cond_.isdigit():
cond_ = "{" + cond_ + "}"
temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
item_name_index_dict = dict(zip(items_name_list, perm))
formatted_conditions = \
[condition.format_map(item_name_index_dict) for condition in conditions]
if all(map(eval, formatted_conditions)):
break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_n = 1
var_o = list_c[var_n-1]
print(var_o) |
Correspondence | Three water tanks A, B, and C contain water. Water tank A contains 29 liters (L) of water, water tank B contains 2700 milliliters (㎖) less than the water contained in water tank A, and water tank C contains 4750 milliliters (ml) more water than the sum of water of water tank A and B. How many liters (L) of water is in the water tank C? | 60.05 | 29 29 2700 1000 [OP_DIV] [OP_SUB] [OP_ADD] 4750 1000 [OP_DIV] [OP_ADD] | var_a = 29
var_b = 29
var_c = 2700
var_d = 1000
var_e = var_c / var_d
var_f = var_b - var_e
var_g = var_a + var_f
var_h = 4750
var_i = 1000
var_j = var_h / var_i
var_k = var_g + var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Arithmetic calculation | Two tapes of the same length are stacked together and overlapped resulting in a total length of 512 centimeters (cm). If the length of one piece of tape is 275 centimeters (cm), how many centimeters (cm) is the overlap? | 38 | 275 275 [OP_ADD] 512 [OP_SUB] | var_a = 275
var_b = 275
var_c = var_a + var_b
var_d = 512
var_e = var_c - var_d
print(int(var_e)) |
Geometry | A small cube was dug out of the edge of the cube that has the length of edge being 12 centimeters (cm). If the length of the edge of the small cube is 4 centimeters (cm), find the surface area of the portion left after the cutout. | 1632 | 12 12 [OP_MUL] 6 [OP_MUL] 4 4 [OP_MUL] 4 [OP_MUL] 12 [OP_MUL] [OP_ADD] | var_a = 12
var_b = 12
var_c = var_a * var_b
var_d = 6
var_e = var_c * var_d
var_f = 4
var_g = 4
var_h = var_f * var_g
var_i = 4
var_j = var_h * var_i
var_k = 12
var_l = var_j * var_k
var_m = var_e + var_l
print(int(var_m)) |
Possibility | There are 3 different pencils, 2 different erasers, and 2 different ballpoint pens. If 3 of these are selected and gifted, find the number of cases. | 35 | 3 2 [OP_ADD] 2 [OP_ADD] 3 [OP_COMB] | var_a = 3
var_b = 2
var_c = var_a + var_b
var_d = 2
var_e = var_c + var_d
var_f = 3
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
var_g = var_g * (var_e-i)
for i, elem in enumerate(range(var_f)):
var_g = var_g / (i+1)
print(int(var_g)) |
Possibility | Find the difference between the largest two-digit number and the smallest one-digit number that can be made by using all four cards with the numbers 3, 1, 7, and 4 once. | 72.96 | [OP_LIST_SOL] 3 1 7 4 [OP_LIST_EOL] 4 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 10 [OP_LIST_POP] [OP_LIST_LEN] 2 [OP_SUB] [OP_POW] [OP_DIV] 4 [OP_LIST_GET_PERM] 1 [OP_LIST_MIN] 10 [OP_LIST_POP] [OP_LIST_LEN] 1 [OP_SUB] [OP_POW] [OP_DIV] [OP_SUB] [OP_ABS] | var_a = 3
var_b = 1
var_c = 7
var_d = 4
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))
list_a.append(var_a)
list_a.reverse()
var_e = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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 in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
var_n = 4
list_d = [str(i) for i in list_a]
list_d = list(itertools.permutations(list_d, var_n))
list_d = [''.join(num_list) for num_list in list_d]
list_d = [str_num for str_num in list_d if str_num[0] != '0']
list_d = [float(i) for i in list_d]
var_o = 1
list_e=list_d.copy()
list_e.sort()
var_p = list_e[var_o-1]
var_q = 10
var_r = len(list_a)
var_s = 1
var_t = var_r - var_s
var_u = var_q ** var_t
var_v = var_p / var_u
var_w = var_m - var_v
var_x = abs(var_w)
print('{:.2f}'.format(round(var_x+1e-10,2))) |
Arithmetic calculation | One worker makes 370 pencils in a week. How many workers are needed to make 1000 dozens of pencils in a week? | 33 | 1000 12 [OP_MUL] 370 [OP_DIV] 1 [OP_CEIL] | var_a = 1000
var_b = 12
var_c = var_a * var_b
var_d = 370
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)) |
Arithmetic calculation | There were 18 people in the elevator. After a while, a few people got off and there were 11 people left. How many people got off the elevator? | 7 | 18 11 [OP_SUB] | var_a = 18
var_b = 11
var_c = var_a - var_b
print(int(var_c)) |
Correspondence | The equation A45+2B3=418 is said to be true. What number should go in A? | 1 | A45+2B3=418 A [OP_DIGIT_UNK_SOLVER] | var_a = 'A45+2B3=418'
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):
if v in variable_candi:
ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
term_list = []
op_list = []
temp_c = ''
for tc in temp:
if tc not in '+-*/=><().':
temp_c += tc
else:
op_list.append(tc)
term_list.append(temp_c)
temp_c = ''
term_list.append(temp_c)
new_eq = ''
for i in range(len(op_list)):
new_eq += str(int(term_list[i]))+op_list[i]
new_eq += str(int(term_list[-1]))
if len(new_eq) == len(var_a):
new_eq=new_eq.replace('=', '==')
new_eq=new_eq.replace('>==', '>=')
new_eq=new_eq.replace('<==', '<=')
eval_result = False
try:
eval_result = eval(new_eq)
except:
pass
if eval_result:
for i, (k, _) in enumerate(ans_dict.items()):
ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c)) |
Possibility | I have a box in the shape of an icosahedron. How many faces meet at one vertex of this box? | 5 | 5 | var_a = 5
print(int(var_a)) |
Possibility | Find how many 3-digit natural numbers that can be formed by repeating odd numbers from 1 to 9 are greater than 500. | 75 | 1 9 [OP_LIST_ODD] 3 [OP_LIST_GET_PRODUCT] 500 [OP_LIST_MORE] [OP_LIST_LEN] | var_a = 1
var_b = 9
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_c))
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 in list_b]
var_d = 500
list_c = []
for i in list_b:
if i > var_d:
list_c.append(i)
var_e = len(list_c)
print(int(var_e)) |
Geometry | How many faces are there in a regular octahedron? | 8 | 8 | var_a = 8
print(int(var_a)) |
Correspondence | 103 is the result of accidently multiplying a number by 3 and subtracting 5 when you have to actually divide this number by 3 and subtract 5. How much is it when you calculate correctly? | 7 | 103 5 [OP_ADD] 3 [OP_DIV] 3 [OP_DIV] 5 [OP_SUB] | var_a = 103
var_b = 5
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
var_f = 3
var_g = var_e / var_f
var_h = 5
var_i = var_g - var_h
print(int(var_i)) |
Arithmetic calculation | If the sum of 25 consecutive even numbers is 750, which number is the smallest? | 6 | 750 25 [OP_DIV] 25 2 [OP_FDIV] 2 [OP_MUL] [OP_SUB] | var_a = 750
var_b = 25
var_c = var_a / var_b
var_d = 25
var_e = 2
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)) |
Possibility | Yoongi, Jungkook, and Hoseok each put three notebooks in an empty bookshelf. How many notebooks are there in this bookshelf? | 9 | 3 3 [OP_MUL] | var_a = 3
var_b = 3
var_c = var_a * var_b
print(int(var_c)) |
Arithmetic calculation | There are 5 boxes. If there are 20 children's books in a box, how many children's books are there in all boxes? | 100 | 20 5 [OP_MUL] | var_a = 20
var_b = 5
var_c = var_a * var_b
print(int(var_c)) |
Comparison | Yoongi collected 4, Jungkook collected 6 minus 3, and Yuna collected 5. Who has the biggest number? | Yuna | [OP_LIST_SOL] Yoongi Jungkook Yuna [OP_LIST_EOL] [OP_LIST_SOL] 4 6 3 [OP_SUB] 5 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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 = 6
var_f = 3
var_g = var_e - var_f
var_h = 5
list_b= []
if "/" in str(var_h):
var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l) |
Geometry | What is the sum of the number of sides of a triangle, square, and hexagon? | 13 | 6 3 [OP_ADD] 4 [OP_ADD] | var_a = 6
var_b = 3
var_c = var_a + var_b
var_d = 4
var_e = var_c + var_d
print(int(var_e)) |
Geometry | Mijin's dice has one edge of 11 centimeters (cm). Find the surface area of this dice. | 726 | 11 2 [OP_POW] 6 [OP_MUL] | var_a = 11
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e)) |
Arithmetic calculation | Kahi memorized 1/9 of the 810 English words given as homework yesterday. If she memorized a quarter of the remaining words today, count how many English words she memorized today. | 180 | 810 1 1/9 [OP_SUB] [OP_MUL] 1 4 [OP_DIV] [OP_MUL] | var_a = 810
var_b = 1
var_c = 0.1111111111111111
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 1
var_g = 4
var_h = var_f / var_g
var_i = var_e * var_h
print(int(var_i)) |
Geometry | If the ratio of the radii of two bowling balls is 1:2 and the volume of the small ball is 36 cubic centimeters (cm3), what is the volume of the large ball? | 288 | 36 2 3 [OP_POW] [OP_MUL] | var_a = 36
var_b = 2
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
print(int(var_e)) |
Geometry | Twenty-seven cubes with an edge of 4 centimeters (cm) long were glued together to form one large cube. What is the surface area of this large cube in square centimeters (cm2)? | 864 | 4 3 [OP_MUL] 4 3 [OP_MUL] [OP_MUL] 6 [OP_MUL] | var_a = 4
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = 3
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i)) |
Comparison | Write the common multiples of 27 and 45 in order from smallest to largest. What is the product of the numbers between the 7th and 10th numbers from the left? | 1312200 | 27 45 [OP_LCM] 8 [OP_MUL] 27 45 [OP_LCM] 9 [OP_MUL] [OP_MUL] | var_a = 27
var_b = 45
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 8
var_e = var_c * var_d
var_f = 27
var_g = 45
var_h = var_g * var_f / math.gcd(int(var_g), int(var_f))
var_i = 9
var_j = var_h * var_i
var_k = var_e * var_j
print(int(var_k)) |
Geometry | If the diameter of a coin is 14 millimeters (mm), what is the radius of this coin in millimeters (mm)? | 7 | 14 2 [OP_DIV] | var_a = 14
var_b = 2
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | A full bucket of water weighs 3.4 kilograms (kg). After drinking 1/5 of the water, the bucket was re-weighed and the weight was 2.98 kilograms (kg). How many kilograms (kg) does the empty bucket weigh? | 1.3 | 3.4 3.4 2.98 [OP_SUB] 1/5 [OP_DIV] [OP_SUB] | var_a = 3.4
var_b = 3.4
var_c = 2.98
var_d = var_b - var_c
var_e = 0.2
var_f = var_d / var_e
var_g = var_a - var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Correspondence | In a herd of 93 goats, there are black and white goats. There are 66 black goats, and the rest are white goats. If 21 new black goats came in and as many black goats died as white goats, how many black goats will there be? | 60 | 66 93 66 [OP_SUB] [OP_SUB] 21 [OP_ADD] | var_a = 66
var_b = 93
var_c = 66
var_d = var_b - var_c
var_e = var_a - var_d
var_f = 21
var_g = var_e + var_f
print(int(var_g)) |
Comparison | 20 students lined up in a single line. Eleven students are standing behind Yoongi, and Hoseok is standing right behind Yoongi. How many students are standing in front of Hoseok? | 9 | 20 11 [OP_SUB] 1 [OP_ADD] 1 [OP_SUB] | var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
var_f = 1
var_g = var_e - var_f
print(int(var_g)) |
Comparison | As a result of the school Korean test, Taehyung, Minju, Sangmin, Yoonjung, and Yoojung received the highest scores in that order. Who has the highest score? | Taehyung | [OP_LIST_SOL] Taehyung Minju Sangmin Yoonjung Yoojung [OP_LIST_EOL] 1 [OP_LIST_GET] | var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjung'
var_e = 'Yoojung'
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 = 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_f = 1
var_g = list_a[var_f-1]
print(var_g) |
Correspondence | There was a mistake in calculation that you divided 63 by a certain number instead of subtracting a certain number from 36. If you got the wrong answer 9, how much is it if you calculate it correctly? | 29 | 36 63 9 [OP_DIV] [OP_SUB] | var_a = 36
var_b = 63
var_c = 9
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e)) |
Possibility | There is only one white marble, one black marble, one purple marble, one green marble, and one red marble. How many combinations can you buy if you buy 2 marbles? | 10 | [OP_LIST_SOL] white black purple green red [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB] | var_a = 'white'
var_b = 'black'
var_c = 'purple'
var_d = 'green'
var_e = 'red'
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 = 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_f = len(list_a)
var_g = 2
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
var_h = var_h * (var_f-i)
for i, elem in enumerate(range(var_g)):
var_h = var_h / (i+1)
print(int(var_h)) |
Geometry | How many triangles will there be if you draw a diagonal from one of the vertices of the pentagon? | 3 | 5 3 [OP_SUB] 1 [OP_ADD] | var_a = 5
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Possibility | Jiwoo has magnets which has 1, 2, and 7 numbers on them. If you arrange them to make a two-digit number, how many ways can he make it? | 6 | [OP_LIST_SOL] 1 2 7 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 1
var_b = 2
var_c = 7
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]
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 in list_b]
var_e = len(list_b)
print(int(var_e)) |
Arithmetic calculation | (A) class mates ate 8 pizzas. (B) class mates ate 7 pizzas. How many pizzas did the students in (a) and (b) eat? | 15 | 8 7 [OP_ADD] | var_a = 8
var_b = 7
var_c = var_a + var_b
print(int(var_c)) |
Geometry | There is a rectangle with four sides the same length. What is the area of the rectangle if the diagonals of the rectangle are 6 centimeters (cm) and 10 centimeters (cm), respectively? | 30 | 6 10 [OP_MUL] 2 [OP_DIV] | var_a = 6
var_b = 10
var_c = var_a * var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | A snail takes 5/18 minutes to crawl 7/12 centimeters (cm). If this snail crawls at a constant speed, how many centimeters (cm) can it travel in 1 minute? | 2.1 | 7/12 5/18 [OP_DIV] 1 [OP_MUL] | var_a = 0.5833333333333334
var_b = 0.2777777777777778
var_c = var_a / var_b
var_d = 1
var_e = var_c * var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Possibility | Write the third largest number when creating a two-digit decimal number using all four cards with numbers 3, 8, 2, and 7. | 83.72 | [OP_LIST_SOL] 3 8 2 7 [OP_LIST_EOL] 4 [OP_LIST_GET_PERM] 3 [OP_LIST_MAX] 10 [OP_LIST_POP] [OP_LIST_LEN] 2 [OP_SUB] [OP_POW] [OP_DIV] | var_a = 3
var_b = 8
var_c = 2
var_d = 7
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))
list_a.append(var_a)
list_a.reverse()
var_e = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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 in list_b]
var_f = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
print('{:.2f}'.format(round(var_m+1e-10,2))) |
Possibility | I'm going to choose two people from Jungkook, Jimin, and Yoongi to line up. How many options are there in total? | 6 | [OP_LIST_SOL] Jungkook Jimin Yoongi [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_PERM] | var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
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 = len(list_a)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
var_f = var_f * (var_d-i)
print(int(var_f)) |
Possibility | You have 2 chances to pick from the basket. How many possible ways can fruit be picked from a basket with 1 apple, 1 peach, and 1 pear each? | 6 | [OP_LIST_SOL] apple peach pear [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_PERM] | var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
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 = len(list_a)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
var_f = var_f * (var_d-i)
print(int(var_f)) |
Geometry | The length of the radius of the circle inside the donut is 2 centimeters (cm), and the length of the radius of the circle on the outside is 6 centimeters (cm). Find how many times bigger the length of the outer circumference of the donut is compared to the length of the inner circumference of the donut. | 3 | 6 2 [OP_DIV] | var_a = 6
var_b = 2
var_c = var_a / var_b
print(int(var_c)) |
Correspondence | 54 is this number minus 39. What do you get if this number is 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)) |
Geometry | Place four points on the segment AB. Find the number of straight lines that can be formed by connecting two of the four points with point C that is not on line segment AB. | 5 | 4 1 [OP_ADD] | var_a = 4
var_b = 1
var_c = var_a + var_b
print(int(var_c)) |
Comparison | Yujeong drank 7/10 liters (L) of water. Eunji drank 0.5 liters (L) of water. Yuna drank 6/10 liters (L) of water. Who drank the most water? | Yujeong | [OP_LIST_SOL] Yujeong Eunji Yuna [OP_LIST_EOL] [OP_LIST_SOL] 7 10 [OP_DIV] 0.5 6 10 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yujeong'
var_b = 'Eunji'
var_c = 'Yuna'
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 = 7
var_e = 10
var_f = var_d / var_e
var_g = 0.5
var_h = 6
var_i = 10
var_j = var_h / var_i
list_b= []
if "/" in str(var_j):
var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_g):
var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n) |
Correspondence | If A4+B82=216, what number should go in A? | 3 | A4+B82=216 A [OP_DIGIT_UNK_SOLVER] | var_a = 'A4+B82=216'
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):
if v in variable_candi:
ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_a
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
term_list = []
op_list = []
temp_c = ''
for tc in temp:
if tc not in '+-*/=><().':
temp_c += tc
else:
op_list.append(tc)
term_list.append(temp_c)
temp_c = ''
term_list.append(temp_c)
new_eq = ''
for i in range(len(op_list)):
new_eq += str(int(term_list[i]))+op_list[i]
new_eq += str(int(term_list[-1]))
if len(new_eq) == len(var_a):
new_eq=new_eq.replace('=', '==')
new_eq=new_eq.replace('>==', '>=')
new_eq=new_eq.replace('<==', '<=')
eval_result = False
try:
eval_result = eval(new_eq)
except:
pass
if eval_result:
for i, (k, _) in enumerate(ans_dict.items()):
ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c)) |
Possibility | Find the number of cases of selecting one pencil and one eraser out of 3 types of pencils and 2 types of erasers. | 6 | 3 2 [OP_MUL] | var_a = 3
var_b = 2
var_c = var_a * var_b
print(int(var_c)) |
Possibility | You are trying to choose 6 out of 7 tangerines. Find the number of all possible cases. | 7 | 7 6 [OP_COMB] | var_a = 7
var_b = 6
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
var_c = var_c * (var_a-i)
for i, elem in enumerate(range(var_b)):
var_c = var_c / (i+1)
print(int(var_c)) |
Geometry | If A is the number of diagonals in an octagon and B is the number of diagonals in a heptagon, what is the value of A-B? | 6 | 8 8 3 [OP_SUB] [OP_MUL] 2 [OP_DIV] 7 7 3 [OP_SUB] [OP_MUL] 2 [OP_DIV] [OP_SUB] | var_a = 8
var_b = 8
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
var_h = 7
var_i = 7
var_j = 3
var_k = var_i - var_j
var_l = var_h * var_k
var_m = 2
var_n = var_l / var_m
var_o = var_g - var_n
print(int(var_o)) |
Correspondence | 70 is the result of adding 24, multiplying by 5, and dividing by 7 by mistake instead of multiplying by 5, adding 24, and dividing by 7 to a certain number. What is the value if it is correctly calculated? | 22 | 70 7 [OP_DIV] 5 [OP_MUL] 24 [OP_SUB] 5 [OP_MUL] 24 [OP_ADD] 7 [OP_DIV] | var_a = 70
var_b = 7
var_c = var_a / var_b
var_d = 5
var_e = var_c * var_d
var_f = 24
var_g = var_e - var_f
var_h = 5
var_i = var_g * var_h
var_j = 24
var_k = var_i + var_j
var_l = 7
var_m = var_k / var_l
print(int(var_m)) |
Geometry | Jaewoong drew the diamond-shaped roof on the drawing paper whose area is 80 square centimeters (cm2). If one diagonal of this roof is 16 centimeters (cm), how long is the other diagonal in centimeters (cm)? | 10 | 80 2 [OP_MUL] 16 [OP_DIV] | var_a = 80
var_b = 2
var_c = var_a * var_b
var_d = 16
var_e = var_c / var_d
print(int(var_e)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.