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 | There are 5 numbers, 3.4, 7/2, 1.7, 27/10, 2.9. What is the smallest number including the decimal point? | 1.7 | [OP_LIST_SOL] 3.4 7/2 1.7 27/10 2.9 [OP_LIST_EOL] 1 [OP_LIST_MIN] | var_a = 3.4
var_b = 3.5
var_c = 1.7
var_d = 2.7
var_e = 2.9
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-1]
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Comparison | Of these numbers 1.4, 9/10, 1.2, 0.5, and 13/10, select the numbers that are less than 1.1 and find the sum of those numbers. | 1.4 | [OP_LIST_SOL] 1.4 9/10 1.2 0.5 13/10 [OP_LIST_EOL] 1.1 [OP_LIST_LESS] [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 = 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)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Arithmetic calculation | When Hyunwoo asked about Jooheon's science test score, Jooheon answered that it was in the 80s. What is the possible largest number for Jooheon's science test score? | 89 | [OP_LIST_SOL] 8 A [OP_LIST_EOL] [OP_LIST2NUM] [OP_GEN_POSSIBLE_LIST] 1 [OP_LIST_MAX] | var_a = 8
var_b = 'A'
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=""
for i in list_a:
i = str(i)
var_c = var_c + i
ans_dict = dict()
var_c = str(var_c)
list_b = []
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_c):
if v in variable_candi:
ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
temp = var_c
for i, (k, _) in enumerate(ans_dict.items()):
temp = temp.replace(k, str(c[i]))
if len(var_c) == len(str(int(temp))):
new_elem = int(temp)
list_b.append(new_elem)
var_d = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[-var_d]
print(int(var_e)) |
Possibility | Dohee and Gahee choose two of the number cards with the numbers 2, 4, 5, and 8 written on them and use them all to make two digits each, and then try to make the difference as large as possible. What is the answer of it? | 61 | [OP_LIST_SOL] 2 4 5 8 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 2
var_b = 4
var_c = 5
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 = 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 = 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)) |
Correspondence | When you have to multiply a number by 2 and then subtract 45 from it, you mistakenly divide the number by 2 and add 45 and got 85. Find the correctly calculated value. | 115 | 85 45 [OP_SUB] 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)) |
Possibility | There are 2 types of pencils and 3 types of erasers. When trying to use one by one, find the number of possible combinations. | 6 | 2 3 [OP_MUL] | var_a = 2
var_b = 3
var_c = var_a * var_b
print(int(var_c)) |
Correspondence | Subtracting 17 from a number gives 55. Find the result of dividing this number by 9. | 8 | 55 17 [OP_ADD] 9 [OP_DIV] | var_a = 55
var_b = 17
var_c = var_a + var_b
var_d = 9
var_e = var_c / var_d
print(int(var_e)) |
Correspondence | 632-A9B=41 is true. What is A? | 5 | 632-A9B=41 A [OP_DIGIT_UNK_SOLVER] | var_a = '632-A9B=41'
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)) |
Correspondence | Dividing 520 by a particular number gives a quotient of 22 and a remainder of 14. Find the remainder and the quotient of 520 divided by the number that is 7 less than that particular number, and find the product of that remainder and quotient. | 256 | 520 520 14 [OP_SUB] 22 [OP_DIV] 7 [OP_SUB] [OP_FDIV] 520 520 14 [OP_SUB] 22 [OP_DIV] 7 [OP_SUB] [OP_MOD] [OP_MUL] | var_a = 520
var_b = 520
var_c = 14
var_d = var_b - var_c
var_e = 22
var_f = var_d / var_e
var_g = 7
var_h = var_f - var_g
var_i = var_a // var_h
var_j = 520
var_k = 520
var_l = 14
var_m = var_k - var_l
var_n = 22
var_o = var_m / var_n
var_p = 7
var_q = var_o - var_p
var_r = var_j % var_q
var_s = var_i * var_r
print(int(var_s)) |
Geometry | How many diagonals can be drawn from a vertex of a regular decagon? | 7 | 10 3 [OP_SUB] | var_a = 10
var_b = 3
var_c = var_a - var_b
print(int(var_c)) |
Geometry | If there are 3 bus routes, 2 subway routes, and 4 train routes from Seohee's house to school, find the number of ways to go by subway. | 2 | 2 | var_a = 2
print(int(var_a)) |
Arithmetic calculation | Seokgi and Ye-seul want to buy a boat. It is said that Seokgi's money is short of 2,000 won, and Ye-seul's money is short of 1,500 won. If 3,500 won is left after buying a boat with the sum of money the two people have, how much money does Seokgi have? | 5000 | 2000 1500 [OP_ADD] 3500 [OP_ADD] 2000 [OP_SUB] | var_a = 2000
var_b = 1500
var_c = var_a + var_b
var_d = 3500
var_e = var_c + var_d
var_f = 2000
var_g = var_e - var_f
print(int(var_g)) |
Arithmetic calculation | I am going to put 6 posters with a width of 30 centimeters (cm) in a row on a wall with a width of 3 meters (m) and 20 centimeters (cm). Determine how many centimeters (cm) the distance must be to equalize the distance between the end of the wall and the poster and the distance between the posters. | 20 | 3 100 [OP_MUL] 20 [OP_ADD] 30 6 [OP_MUL] [OP_SUB] 6 1 [OP_ADD] [OP_DIV] | var_a = 3
var_b = 100
var_c = var_a * var_b
var_d = 20
var_e = var_c + var_d
var_f = 30
var_g = 6
var_h = var_f * var_g
var_i = var_e - var_h
var_j = 6
var_k = 1
var_l = var_j + var_k
var_m = var_i / var_l
print(int(var_m)) |
Arithmetic calculation | Giyun's one step is 0.75 meters (m), and he takes 70 steps in one minute. If it took 13 minutes for Giyun to walk from his house to school, what is the distance in meters (m) between Giyun's house and school? | 682.5 | 0.75 70 [OP_MUL] 13 [OP_MUL] | var_a = 0.75
var_b = 70
var_c = var_a * var_b
var_d = 13
var_e = var_c * var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Arithmetic calculation | Two people are going to drink 2.87 liters of orange juice equally. Find how many liters (l) each person will drink. | 1.44 | 2.87 2 [OP_DIV] | var_a = 2.87
var_b = 2
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Geometry | The perimeter of the rectangle is 52 centimeters (cm). What is the area of this rectangle if its side is 11 centimeters (cm)? | 165 | 11 52 2 [OP_DIV] 11 [OP_SUB] [OP_MUL] | var_a = 11
var_b = 52
var_c = 2
var_d = var_b / var_c
var_e = 11
var_f = var_d - var_e
var_g = var_a * var_f
print(int(var_g)) |
Possibility | If you write down all the odd numbers less than 100 on a piece of paper, how many times do you have to write the figure '1'? | 15 | 1 100 [OP_LIST_ODD] [OP_LIST2NUM] [OP_NUM2LIST] 1 [OP_LIST_FIND_NUM] | var_a = 1
var_b = 100
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=""
for i in list_a:
i = str(i)
var_c = var_c + i
list_b = []
var_c = int(var_c)
while var_c//10 > 0:
list_b.append(var_c%10)
var_c = var_c//10
list_b.append(var_c%10)
list_b = list_b[::-1]
var_d = 1
var_e = 0
var_d = int(var_d)
for i in list_b:
i = int(i)
if i == var_d:
var_e = var_e + 1
print(int(var_e)) |
Arithmetic calculation | It takes 6.64 grams (g) of glutinous rice flour to make one glutinous rice cake. How many glutinous rice cakes can be made with 212.48 grams (g) of glutinous rice flour? | 32 | 212.48 6.64 [OP_FDIV] | var_a = 212.48
var_b = 6.64
var_c = var_a // var_b
print(int(var_c)) |
Correspondence | At a certain university, the number of Korean department students is 6/11 of Chinese department students, and the number of Japanese department students is 1/8 of the students in the Chinese department. If there are 48 Korean department students, find the number of Japanese department students. | 11 | 48 6/11 [OP_DIV] 1/8 [OP_MUL] | var_a = 48
var_b = 0.5454545454545454
var_c = var_a / var_b
var_d = 0.125
var_e = var_c * var_d
print(int(var_e)) |
Possibility | How many different two-digit numbers can be formed by using the two numbers 3 and 5 only once? | 2 | [OP_LIST_SOL] 3 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 3
var_b = 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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, 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 = len(list_b)
print(int(var_d)) |
Possibility | Ten students are trying to form a group. The number of people in a group must be 3 or less. Find the number of cases of groups that can be created. | 10 | [OP_LIST_SOL] 0 1 2 3 [OP_LIST_EOL] [OP_LIST_LEN] [OP_LIST_GET_PRODUCT] [OP_LIST_NUM2SUM] 10 [OP_LIST_FIND_NUM] | 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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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]
list_c=[]
for i in list_b:
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_c.append(var_f)
var_g = 10
var_h = 0
var_g = int(var_g)
for i in list_c:
i = int(i)
if i == var_g:
var_h = var_h + 1
print(int(var_h)) |
Arithmetic calculation | There are 36 students in Jaehong's class. If there are 24 fewer students wearing short sleeves than students wearing long sleeves, find how many students are wearing short sleeves. | 6 | 36 24 [OP_SUB] 2 [OP_DIV] | var_a = 36
var_b = 24
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e)) |
Comparison | In the math test, Jimin is ranked 4th, and Seokjin is ranked lower than Jimin and there are 19 people between them. What is the rank of Seokjin? | 24 | 4 19 [OP_ADD] 1 [OP_ADD] | var_a = 4
var_b = 19
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Arithmetic calculation | There are 1500 students in Sarang's School, 0.4 of which are female students. If 0.65 of the male students at Sarang's School like math, how many male students do not like math? | 315 | 1500 1 0.4 [OP_SUB] [OP_MUL] 1 0.65 [OP_SUB] [OP_MUL] | var_a = 1500
var_b = 1
var_c = 0.4
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 1
var_g = 0.65
var_h = var_f - var_g
var_i = var_e * var_h
print(int(var_i)) |
Arithmetic calculation | One small box can contain 3 balls each. Jungkook is trying to put 12 balls in the small boxes. How many boxes does Jungkook need? | 4 | 12 3 [OP_DIV] | var_a = 12
var_b = 3
var_c = var_a / var_b
print(int(var_c)) |
Geometry | A cuboid space can contain 36 boxes, each measuring 1 centimeter (cm) in length, width, and height. How many boxes could fit in this space if you double its length, width, and height? | 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)) |
Arithmetic calculation | There were 82 people on the train. A few of these got off, and 17 more got on, making the total 73 people. How many people got off the train? | 26 | 82 17 [OP_ADD] 73 [OP_SUB] | var_a = 82
var_b = 17
var_c = var_a + var_b
var_d = 73
var_e = var_c - var_d
print(int(var_e)) |
Comparison | The time it took for Binwoo and Jiwan to go around the playground was 1 minute 33 seconds and 102 seconds, respectively. Who would have circled faster? | Binwoo | [OP_LIST_SOL] Binwoo Jiwan [OP_LIST_EOL] [OP_LIST_SOL] 1 60 [OP_MUL] 33 [OP_ADD] 102 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Binwoo'
var_b = 'Jiwan'
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
var_d = 60
var_e = var_c * var_d
var_f = 33
var_g = var_e + var_f
var_h = 102
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)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l) |
Correspondence | Hyung-cheol was using the calculator, but he pressed the wrong number and subtracted 46, which originally should be multiplied. The calculator gave 27 as the answer. If you calculated correctly, find out how much you would get. | 3358 | 27 46 [OP_ADD] 46 [OP_MUL] | var_a = 27
var_b = 46
var_c = var_a + var_b
var_d = 46
var_e = var_c * var_d
print(int(var_e)) |
Comparison | Students stand in a line. Yoojung is standing on the far right. Eunjeong is standing 5th from the far left. When 8 students are standing between Eunjeong and Yoojung, how many students are in line? | 14 | 5 8 [OP_ADD] 1 [OP_ADD] | var_a = 5
var_b = 8
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Arithmetic calculation | A box of apples weighed 9 kilograms (kg). After removing half of the apples, I weighed it again and it was 5 kilograms (kg). If each apple is the same size and weight, how many kilograms (kg) does only one box except apples weigh? | 1 | 9 9 5 [OP_SUB] 2 [OP_MUL] [OP_SUB] | var_a = 9
var_b = 9
var_c = 5
var_d = var_b - var_c
var_e = 2
var_f = var_d * var_e
var_g = var_a - var_f
print(int(var_g)) |
Comparison | Yujeong placed balls of various colors in a row on the desk. When the red, blue, yellow, purple, and white balls are placed in order, what color is the first ball? | red | [OP_LIST_SOL] red blue yellow purple white [OP_LIST_EOL] 1 [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(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) |
Arithmetic calculation | Eunji's weight is 145/4 kilograms (kg), and Junsu is 47/10 kilograms (kg) lighter than Eunji. How many kilograms (kg) does Junsu weigh? | 31.55 | 145/4 47/10 [OP_SUB] | var_a = 36.25
var_b = 4.7
var_c = var_a - var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | Younghee, Jimin, and Junsu had a water drinking contest for two days. Younghee drank 1.4 liters (L), Jimin drank 1.8 liters (L), and Junsu drank 2.1 liters (L). Who is the winner? | Junsu | [OP_LIST_SOL] Younghee Jimin Junsu [OP_LIST_EOL] [OP_LIST_SOL] 1.4 1.8 2.1 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Younghee'
var_b = 'Jimin'
var_c = 'Junsu'
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.4
var_e = 1.8
var_f = 2.1
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)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
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) |
Geometry | There is a rectangle whose longer side is 4 centimeters (cm) and its area is 25/2 square centimeter (cm2). What is the length of the shorter side of this rectangle in centimeters (cm)? | 3.13 | 25/2 4 [OP_DIV] | var_a = 12.5
var_b = 4
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Correspondence | When you divide 48 by a number and add 7 to the quotient of it, you get 15. Figure out what the number is. | 6 | 48 15 7 [OP_SUB] [OP_DIV] | var_a = 48
var_b = 15
var_c = 7
var_d = var_b - var_c
var_e = var_a / var_d
print(int(var_e)) |
Comparison | Jiseok's backpack weighs 1.49 kilograms (kg), and Miho's backpack weighs 9/20 kilograms (kg). What is the name of the person whose backpack weighs less? | Miho | [OP_LIST_SOL] Jiseok Miho [OP_LIST_EOL] [OP_LIST_SOL] 1.49 9 20 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Jiseok'
var_b = 'Miho'
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.49
var_d = 9
var_e = 20
var_f = var_d / var_e
list_b= []
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j) |
Correspondence | Jinho went to a friend's house to play, so he took the subway for 3 kilometers (km) and 7 meters (m), and then walked a few meters (m). And again, he moved 840 meters (m) by bus, which has a total distance of 6 kilometers (km) and 30 meters (m). Find how many kilometers (km) Jinho walked. | 2.18 | 6 1000 [OP_MUL] 30 [OP_ADD] 840 [OP_SUB] 3 1000 [OP_MUL] 7 [OP_ADD] [OP_SUB] 1000 [OP_DIV] | var_a = 6
var_b = 1000
var_c = var_a * var_b
var_d = 30
var_e = var_c + var_d
var_f = 840
var_g = var_e - var_f
var_h = 3
var_i = 1000
var_j = var_h * var_i
var_k = 7
var_l = var_j + var_k
var_m = var_g - var_l
var_n = 1000
var_o = var_m / var_n
print('{:.2f}'.format(round(var_o+1e-10,2))) |
Geometry | The width and height of a rectangle with an area of 32 are both natural numbers. Find the number of possible rectangles. (However, when the width and height are swapped, the same rectangle is considered identical.) | 3 | 32 [OP_LIST_GET_DIVISOR] [OP_LIST_LEN] 2 [OP_DIV] | var_a = 32
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
if var_a % i == 0:
list_a.append(i)
list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = len(list_a)
var_c = 2
var_d = var_b / var_c
print(int(var_d)) |
Possibility | When two of the number cards 4, 3, and 1 are used once to form the largest two-digit number, what is the number on the unused card? | 1 | [OP_LIST_SOL] 4 3 1 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] [OP_LIST_POP] [OP_NUM2LIST] [OP_SET_DIFFERENCE] 1 [OP_LIST_GET] | var_a = 4
var_b = 3
var_c = 1
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
list_d = []
var_f = int(var_f)
while var_f//10 > 0:
list_d.append(var_f%10)
var_f = var_f//10
list_d.append(var_f%10)
list_d = list_d[::-1]
list_e = list(set(list_a) - set(list_d))
var_g = 1
var_h = list_e[var_g-1]
print(int(var_h)) |
Comparison | Youngbin and Sujeong had a competition to pick up coins faster. If it took Yeongbin 16.23 seconds and Sujeong 16.19 seconds to pick up all the coins, who wins? | Sujeong | [OP_LIST_SOL] Youngbin Sujeong [OP_LIST_EOL] [OP_LIST_SOL] 16.23 16.19 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Youngbin'
var_b = 'Sujeong'
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 = 16.23
var_d = 16.19
list_b= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h) |
Arithmetic calculation | The proportion of blue tulips is 3/8 of the 56 tulips. If 3/7 of the total are red tulips, and the others pink, how many pink tulips are there? | 11 | 1 3/7 [OP_SUB] 3/8 [OP_SUB] 50 [OP_MUL] | var_a = 1
var_b = 0.42857142857142855
var_c = var_a - var_b
var_d = 0.375
var_e = var_c - var_d
var_f = 50
var_g = var_e * var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Geometry | The length and width of the base of a rectangular cuboid are 7 centimeters (cm) and 6 centimeters (cm) respectively, and the volume is 16 cubic centimeters (cm3). Find the value of the surface area. | 93.9 | 16 7 [OP_DIV] 6 [OP_DIV] 7 6 [OP_ADD] [OP_MUL] 7 6 [OP_MUL] [OP_ADD] 2 [OP_MUL] | var_a = 16
var_b = 7
var_c = var_a / var_b
var_d = 6
var_e = var_c / var_d
var_f = 7
var_g = 6
var_h = var_f + var_g
var_i = var_e * var_h
var_j = 7
var_k = 6
var_l = var_j * var_k
var_m = var_i + var_l
var_n = 2
var_o = var_m * var_n
print('{:.2f}'.format(round(var_o+1e-10,2))) |
Possibility | Gahyeon, Nahyeon, and Dahyeon play a game of making a three-digit number using all the numbers 1, 6, and 8 at least once. Gahyeon made the biggest number possible, and Nahyeon made the second largest number. When Dahyun made the third largest number, what is the difference between the number Nahyeon and Dahyun made? | 135 | [OP_LIST_SOL] 1 6 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 2 [OP_LIST_MAX] 3 [OP_LIST_MAX] [OP_SUB] [OP_ABS] | var_a = 1
var_b = 6
var_c = 8
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]
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 = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[-var_g]
var_i = var_f - var_h
var_j = abs(var_i)
print(int(var_j)) |
Arithmetic calculation | There are 2 bars of different lengths. The length of the long stick is 12 centimeters (cm) longer than the length of the short stick, and the sum of the lengths of the two sticks is 20 centimeters (cm). Find how many sticks the same length as the shorter sticks can be made by cutting the longer sticks. | 4 | 20 12 [OP_SUB] 2 [OP_DIV] 12 [OP_ADD] 20 12 [OP_SUB] 2 [OP_DIV] [OP_FDIV] | var_a = 20
var_b = 12
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 12
var_g = var_e + var_f
var_h = 20
var_i = 12
var_j = var_h - var_i
var_k = 2
var_l = var_j / var_k
var_m = var_g // var_l
print(int(var_m)) |
Geometry | If A is the number of diagonals in a heptagon and B is the number of diagonals in an octagon, find the value of B-A. | 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)) |
Possibility | Using the four number cards 0, 1, 4, and 8 once, find the number of three-digit numbers where the tens digit is zero. | 6 | [OP_LIST_SOL] 0 1 4 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 10 0 [OP_LIST_SEARCH_FIXED_DIGIT] [OP_LIST_LEN] | 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 = 10
var_g = 0
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 = len(list_c)
print(int(var_h)) |
Geometry | Jungwoo drew a rectangle and a square with the same area during drawing time. The two sides of the rectangle drawn by JungWoo are 9 centimeters (cm) and 16 centimeters (cm), respectively. How many centimeters (cm) is the length of one side of the square? | 12 | 9 16 [OP_MUL] 1/2 [OP_POW] | var_a = 9
var_b = 16
var_c = var_a * var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e)) |
Comparison | Sooae and Seungho had a 100 meters (m) running race. If Sooae took 16.23 seconds and Seungho took 16.19 seconds to run 100 meters (m), who ran faster? | Seungho | [OP_LIST_SOL] Sooae Seungho [OP_LIST_EOL] [OP_LIST_SOL] 100 16.23 [OP_DIV] 100 16.19 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Sooae'
var_b = 'Seungho'
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 = 100
var_d = 16.23
var_e = var_c / var_d
var_f = 100
var_g = 16.19
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 | Find the difference between the largest proper fraction and the second smallest proper fraction with a denominator of 6. | 0.5 | 1 5 1 [OP_LIST_ARANGE] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] 6 [OP_DIV] | var_a = 1
var_b = 5
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 1
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e - var_g
var_i = 6
var_j = var_h / var_i
print('{:.2f}'.format(round(var_j+1e-10,2))) |
Geometry | For a cuboid, find the number of edges in skewed positions with one edge. | 4 | 4 | var_a = 4
print(int(var_a)) |
Possibility | There are 3 pandas in the zoo. Let's say you give these pandas at least 2 bamboos. How many ways are there to distribute 20 bamboos? | 560 | 20 3 2 [OP_MUL] [OP_SUB] 3 [OP_ADD] 1 [OP_SUB] 3 [OP_COMB] | var_a = 20
var_b = 3
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 3
var_g = var_e + var_f
var_h = 1
var_i = var_g - var_h
var_j = 3
var_k = 1
var_i = int(var_i)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
var_k = var_k * (var_i-i)
for i, elem in enumerate(range(var_j)):
var_k = var_k / (i+1)
print(int(var_k)) |
Geometry | If Dong-min stands on a chair with a height of 53 centimeters (cm) 7 millimeters (mm) and measures his height from the floor, he will be 190 centimeters (cm), and if he stands on a desk and measures his height from the floor, he will be 232 centimeters (cm) and 5 millimeters (mm). How tall is the desk? | 96.2 | 232 5 10 [OP_DIV] [OP_ADD] 190 [OP_SUB] 53 7 10 [OP_DIV] [OP_ADD] [OP_ADD] | var_a = 232
var_b = 5
var_c = 10
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 190
var_g = var_e - var_f
var_h = 53
var_i = 7
var_j = 10
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))) |
Arithmetic calculation | There are 156 dureums of gulbis. How many gulbis are there in all? (One dureum equals 20 fish) | 3120 | 156 20 [OP_MUL] | var_a = 156
var_b = 20
var_c = var_a * var_b
print(int(var_c)) |
Correspondence | In A888<5001, you are going to write the numbers 1 through 9 in A. How many digits can you write in A? | 4 | A888<5001 A [OP_DIGIT_UNK_SOLVER] [OP_LIST_LEN] | var_a = 'A888<5001'
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)) |
Geometry | In the truck, there is a cuboid space of 350 centimeters (cm) in width, 260 centimeters (cm) in depth, 165 centimeters (cm) in height, and 5 centimeters (cm) in thickness, respectively. If you receive 1,600 won for shipping a box measuring 1 centimeter (cm) in width, depth, and height, how much would it cost if the truck was shipped full of boxes? | 21760000000 | 350 5 2 [OP_MUL] [OP_SUB] 260 5 2 [OP_MUL] [OP_SUB] [OP_MUL] 165 5 [OP_SUB] [OP_MUL] 1600 [OP_MUL] | var_a = 350
var_b = 5
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 260
var_g = 5
var_h = 2
var_i = var_g * var_h
var_j = var_f - var_i
var_k = var_e * var_j
var_l = 165
var_m = 5
var_n = var_l - var_m
var_o = var_k * var_n
var_p = 1600
var_q = var_o * var_p
print(int(var_q)) |
Arithmetic calculation | When Daehyeon and Donggil cleaned the school for 8 days, an area equivalent to 7/12 of the total area was cleaned. If it took 10 days for Daehyeon to clean the rest of the area by himself, how many days did it take for Donggil to clean the entire area alone? | 32 | 1 7/12 8 [OP_DIV] 1 7/12 [OP_SUB] 10 [OP_DIV] [OP_SUB] [OP_DIV] | var_a = 1
var_b = 0.5833333333333334
var_c = 8
var_d = var_b / var_c
var_e = 1
var_f = 0.5833333333333334
var_g = var_e - var_f
var_h = 10
var_i = var_g / var_h
var_j = var_d - var_i
var_k = var_a / var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2))))) |
Arithmetic calculation | Yoongi is 2 years younger than Hoseok, and together, Yoongi and Hoseok are 18 years old. How old is Yoongi? | 8 | 18 2 [OP_SUB] 2 [OP_DIV] | var_a = 18
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | There are 5 bottles that each contains 242.7 milliliters (ml) of beverage. How many milliliters (ml) of beverage are there? | 1213.5 | 242.7 5 [OP_MUL] | var_a = 242.7
var_b = 5
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Possibility | You are planning to distribute 7 apples to 2 different monkeys. If the monkey must take at least 1 apple, how many cases are there to share apples? | 6 | 7 2 1 [OP_MUL] [OP_SUB] 1 [OP_ADD] | var_a = 7
var_b = 2
var_c = 1
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g)) |
Comparison | 20 students stood in a line. Jungkook stood in third place, and Yoongi stood right in front of Jungkook. How many students are standing behind Yoongi? | 18 | 20 3 [OP_SUB] 1 [OP_ADD] | var_a = 20
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Arithmetic calculation | There are 23 fewer basketballs at Hoseok's school than soccer balls, and 18 more soccer balls than volleyballs. If there are 40 volleyballs, how many basketballs are there? | 35 | 40 18 [OP_ADD] 23 [OP_SUB] | var_a = 40
var_b = 18
var_c = var_a + var_b
var_d = 23
var_e = var_c - var_d
print(int(var_e)) |
Possibility | When the three numbers 1, 2, and 3 are used repeatedly to form a four-digit number, how many ways can the sum be 10? | 10 | [OP_LIST_SOL] 0 1 2 3 [OP_LIST_EOL] [OP_LIST_LEN] [OP_LIST_GET_PRODUCT] [OP_LIST_NUM2SUM] 10 [OP_LIST_FIND_NUM] | 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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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]
list_c=[]
for i in list_b:
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_c.append(var_f)
var_g = 10
var_h = 0
var_g = int(var_g)
for i in list_c:
i = int(i)
if i == var_g:
var_h = var_h + 1
print(int(var_h)) |
Arithmetic calculation | It is said that four times the number of persimmons Jungkook picked equals the number minus three persimmons picked by Hoseok. When Hoseok picked 35 persimmons, how many persimmons did Jungkook pick? | 8 | 35 3 [OP_SUB] 4 [OP_DIV] | var_a = 35
var_b = 3
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e)) |
Possibility | Find the sum of the largest and smallest two-digit numbers that can be formed by drawing two different numbers from 0, 3, 5, 7, and 8. | 117 | [OP_LIST_SOL] 0 3 5 7 8 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD] | var_a = 0
var_b = 3
var_c = 5
var_d = 7
var_e = 8
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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
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_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 1
list_d=list_b.copy()
list_d.sort()
var_j = list_d[var_i-1]
var_k = var_h + var_j
print(int(var_k)) |
Possibility | Using the four digits 1, 5, 6, and 9 once, find the second largest three-digit number whose hundreds digit is 5. | 591 | [OP_LIST_SOL] 1 5 6 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 100 5 [OP_LIST_SEARCH_FIXED_DIGIT] 2 [OP_LIST_MAX] | var_a = 1
var_b = 5
var_c = 6
var_d = 9
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 = 100
var_g = 5
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 = 2
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i)) |
Possibility | Two were removed from a basket containing one each of apples, peaches, pears, melons, and strawberries. How many cases of fruit are left in the basket? | 10 | [OP_LIST_SOL] apples peaches pears melons strawberries [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB] | var_a = 'apples'
var_b = 'peaches'
var_c = 'pears'
var_d = 'melons'
var_e = 'strawberries'
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)) |
Arithmetic calculation | The sum of 4 consecutive odd numbers is 112. Write down the 2nd smallest of these 4 numbers. | 27 | 112 4 [OP_DIV] 4 2 [OP_FDIV] 2 [OP_MUL] [OP_SUB] 1 [OP_ADD] 2 [OP_ADD] | var_a = 112
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = 2
var_f = var_d // var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c - var_h
var_j = 1
var_k = var_i + var_j
var_l = 2
var_m = var_k + var_l
print(int(var_m)) |
Correspondence | Given that the equation A5+2B=68 is true, what number can go in B? | 3 | A5+2B=68 B [OP_DIGIT_UNK_SOLVER] | var_a = 'A5+2B=68'
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)) |
Comparison | Jinseok's backpack weighs 1.49 kilograms (kg) and Miho's backpack weighs 9/20 kilograms (kg). Whose backpack is lighter? | Miho | [OP_LIST_SOL] Jinseok Miho [OP_LIST_EOL] [OP_LIST_SOL] 1.49 9/20 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Jinseok'
var_b = 'Miho'
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.49
var_d = 0.45
list_b= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h) |
Geometry | You see 4 squares from the front, 3 from the top, and 4 from the side. How many cubes are there? | 6 | 4 2 [OP_ADD] | var_a = 4
var_b = 2
var_c = var_a + var_b
print(int(var_c)) |
Geometry | How many cubic meters (m3) is the volume of a rectangular parallelepiped made by doubling the length, width, and height of a rectangular parallelepiped with a width of 80 centimeters (cm), a length of 75 centimeters (cm), and a height of 120 centimeters (cm)? Save it. | 5.76 | 80 100 [OP_DIV] 2 [OP_MUL] 75 100 [OP_DIV] 2 [OP_MUL] 120 100 [OP_DIV] 2 [OP_MUL] [OP_MUL] [OP_MUL] | var_a = 80
var_b = 100
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
var_f = 75
var_g = 100
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = 120
var_l = 100
var_m = var_k / var_l
var_n = 2
var_o = var_m * var_n
var_p = var_j * var_o
var_q = var_e * var_p
print('{:.2f}'.format(round(var_q+1e-10,2))) |
Correspondence | A number equals a number minus 5 and multiply it by 4. Find some number. | 6.67 | 5 4 [OP_MUL] 4 1 [OP_SUB] [OP_DIV] | var_a = 5
var_b = 4
var_c = var_a * var_b
var_d = 4
var_e = 1
var_f = var_d - var_e
var_g = var_c / var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Correspondence | My mother buys the same amount of eggs every month. There were 27 eggs left last month, but since my mother bought eggs, the number has increased to 58. If you eat 48 eggs this month and your mother buys eggs for the next month, how many eggs will there be? | 41 | 58 48 [OP_SUB] 58 27 [OP_SUB] [OP_ADD] | var_a = 58
var_b = 48
var_c = var_a - var_b
var_d = 58
var_e = 27
var_f = var_d - var_e
var_g = var_c + var_f
print(int(var_g)) |
Arithmetic calculation | In a factory, machine A makes 8 toys per minute, and machine B makes 10 toys per minute. Provided that both machines started making toys at the same time and machine B made 100 toys, find how many fewer toys machine A made than machine B. | 20 | 100 100 10 [OP_DIV] 8 [OP_MUL] [OP_SUB] | var_a = 100
var_b = 100
var_c = 10
var_d = var_b / var_c
var_e = 8
var_f = var_d * var_e
var_g = var_a - var_f
print(int(var_g)) |
Geometry | I used all the 12/25 centimeter (cm) lengths of yarn to make a square. What is the length of one side of this square? | 0.12 | 12/25 4 [OP_DIV] | var_a = 0.48
var_b = 4
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | The length of board A is 2.4 centimeters (cm), board B is 3.2 centimeters (cm), and board C is 2.8 centimeters (cm). When Eunji, Namjoon, and Hoseok are standing on top of 8 A boards, 4 B boards, and 5 C boards, respectively, find who is at the lowest. | Namjoon | [OP_LIST_SOL] Eunji Namjoon Hoseok [OP_LIST_EOL] [OP_LIST_SOL] 2.4 8 [OP_MUL] 3.2 4 [OP_MUL] 2.8 5 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Eunji'
var_b = 'Namjoon'
var_c = 'Hoseok'
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.4
var_e = 8
var_f = var_d * var_e
var_g = 3.2
var_h = 4
var_i = var_g * var_h
var_j = 2.8
var_k = 5
var_l = var_j * var_k
list_b= []
if "/" in str(var_l):
var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[var_m-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p) |
Geometry | There is a block of wood in the shape of a cuboid, and it has a height of 3.5 meters (m). What is the volume in cubic centimeters (cm3) of this block of wood if the surface area is increased by 144 square centimeters (cm2) when divided into three parts by making two cuts parallel to the base? | 12600 | 144 4 [OP_DIV] 3.5 100 [OP_MUL] [OP_MUL] | var_a = 144
var_b = 4
var_c = var_a / var_b
var_d = 3.5
var_e = 100
var_f = var_d * var_e
var_g = var_c * var_f
print(int(var_g)) |
Arithmetic calculation | There was a string that was 70 centimeters (cm) long. Of these, 27 centimeters (cm) was given to Minyoung, and 7/9 of the remaining was used to make (A). How many centimeters (cm) is the length of the remaining string? | 9.56 | 70 27 [OP_SUB] 1 7/9 [OP_SUB] [OP_MUL] | var_a = 70
var_b = 27
var_c = var_a - var_b
var_d = 1
var_e = 0.7777777777777778
var_f = var_d - var_e
var_g = var_c * var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Possibility | For the flower arrangement, you will pick one of four roses and one of three tulips and arrange them. When arranging flowers, how many cases are there where you pick only one of the roses and tulips the same? | 60 | 4 3 2 [OP_PERM] [OP_MUL] 3 4 2 [OP_PERM] [OP_MUL] [OP_ADD] | var_a = 4
var_b = 3
var_c = 2
var_d = 1
var_b = int(var_b)
var_c = int(var_c)
for i, elem in enumerate(range(var_c)):
var_d = var_d * (var_b-i)
var_e = var_a * var_d
var_f = 3
var_g = 4
var_h = 2
var_i = 1
var_g = int(var_g)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
var_i = var_i * (var_g-i)
var_j = var_f * var_i
var_k = var_e + var_j
print(int(var_k)) |
Geometry | Gayoung has a cube-shaped box with one corner measuring 20 centimeters (cm). What is the surface area of this box? | 2400 | 20 2 [OP_POW] 6 [OP_MUL] | var_a = 20
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e)) |
Possibility | If there are 6 people A, B, C, D, E, and F, find the number of ways to select 2 subjects and 1 king. | 60 | [OP_LIST_SOL] A B C D E F [OP_LIST_EOL] [OP_LIST_LEN] 2 1 [OP_ADD] [OP_PERM] 2 2 [OP_PERM] [OP_DIV] | 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):
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_g = len(list_a)
var_h = 2
var_i = 1
var_j = var_h + var_i
var_k = 1
var_g = int(var_g)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
var_k = var_k * (var_g-i)
var_l = 2
var_m = 2
var_n = 1
var_l = int(var_l)
var_m = int(var_m)
for i, elem in enumerate(range(var_m)):
var_n = var_n * (var_l-i)
var_o = var_k / var_n
print(int(var_o)) |
Arithmetic calculation | The 28 students in Jungkook's class played matching games during PE class. We paired them up in groups of 5, subtracted the remaining students, then paired them in groups of 7, and subtracted the remaining students. Find how many students are excluded. | 7 | 28 5 [OP_MOD] 28 28 5 [OP_MOD] [OP_SUB] 7 [OP_MOD] [OP_ADD] | var_a = 28
var_b = 5
var_c = var_a % var_b
var_d = 28
var_e = 28
var_f = 5
var_g = var_e % var_f
var_h = var_d - var_g
var_i = 7
var_j = var_h % var_i
var_k = var_c + var_j
print(int(var_k)) |
Possibility | You are trying to create a three-digit number using three number cards of 5, 2, and 8 only once. Find the difference between the largest number and the smallest number that can be made. | 594 | [OP_LIST_SOL] 5 2 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 5
var_b = 2
var_c = 8
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]
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f - var_h
print(int(var_i)) |
Arithmetic calculation | Subin climbed a mountain with her father to pick chestnuts and wanted to divide them into 8 baskets equally. However, on the way up the mountain, two baskets were broken, so she put one more chestnut in each basket, and there were four left. How many chestnuts did Subin and her father pick? | 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)) |
Arithmetic calculation | A basket containing 30 pears each weighing 0.36 kilograms (kg) weighs 11.26 kilograms (kg). How many kilograms (kg) does the basket weigh alone? | 0.46 | 11.26 0.36 30 [OP_MUL] [OP_SUB] | var_a = 11.26
var_b = 0.36
var_c = 30
var_d = var_b * var_c
var_e = var_a - var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Correspondence | Jinbeom had 12 large and 34 small ttakji. Jinbeom lost several large ttakji and three times as many small ones as he was playing a game of ttakji-chigi. If the number of ttakji Jinbeom currently has is 30, how many large ttakji did Jinbeom lose? | 4 | 12 34 [OP_ADD] 30 [OP_SUB] 1 3 [OP_ADD] [OP_DIV] | var_a = 12
var_b = 34
var_c = var_a + var_b
var_d = 30
var_e = var_c - var_d
var_f = 1
var_g = 3
var_h = var_f + var_g
var_i = var_e / var_h
print(int(var_i)) |
Arithmetic calculation | Street trees are to be planted at intervals of 4.5 meters (m) on a road with a length of 63 meters (m). If you plant street trees both at the beginning and at the end, how many trees will you need in total? | 15 | 63 4.5 [OP_FDIV] 1 [OP_ADD] | var_a = 63
var_b = 4.5
var_c = var_a // var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e)) |
Geometry | How many centimeters (cm) is the sum of all the side lengths of a regular octagon with a side length of 2.3 meters (m)? | 1840 | 2.3 100 [OP_MUL] 8 [OP_MUL] | var_a = 2.3
var_b = 100
var_c = var_a * var_b
var_d = 8
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2))))) |
Geometry | Find the length of one side of a square whose perimeter is the same as that of a rectangle whose sides are 7 centimeters (cm) long and 5 centimeters (cm) wide. | 6 | 7 5 [OP_ADD] 2 [OP_MUL] 4 [OP_DIV] | var_a = 7
var_b = 5
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
var_f = 4
var_g = var_e / var_f
print(int(var_g)) |
Arithmetic calculation | There is a bag with marbles in it. The weight of this bag is 3.4 kilograms (kg), and after taking out 1/5 of the marbles, the bag weighs 2.98 kilograms (kg). Find the weight in kilograms (kg) of the empty bag. | 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))) |
Geometry | In the fairy tale Jack and the Beanstalk, there is a scene where Jack climbs the beanstalk. Jack climbs 25 meters (m) during the day and slides down 3 meters (m) at night. If Jack climbed 25 meters (m) during the day on the 64th day and reached the sky island, find the height in meters (m) of the sky island. | 1411 | 25 64 [OP_MUL] 3 64 1 [OP_SUB] [OP_MUL] [OP_SUB] | var_a = 25
var_b = 64
var_c = var_a * var_b
var_d = 3
var_e = 64
var_f = 1
var_g = var_e - var_f
var_h = var_d * var_g
var_i = var_c - var_h
print(int(var_i)) |
Comparison | What is the sum of all numbers greater than or equal to 0.4 among 0.8, 1/2, and 0.9? | 2.2 | [OP_LIST_SOL] 0.8 1/2 0.9 [OP_LIST_EOL] 0.4 [OP_LIST_MORE_EQUAL] [OP_LIST_SUM] | var_a = 0.8
var_b = 0.5
var_c = 0.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 = 0.4
list_b = []
for i in list_a:
if i >= var_d:
list_b.append(i)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Arithmetic calculation | Haeun is 1.56 meters (m) tall. Nayeon is 0.14 meters (m) shorter than Haeun and 0.27 meters (m) shorter than Minkyung. How tall is Minkyung in meters (m)? | 1.69 | 1.56 0.14 [OP_SUB] 0.27 [OP_ADD] | var_a = 1.56
var_b = 0.14
var_c = var_a - var_b
var_d = 0.27
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Correspondence | You want to subtract a number from 20. When you mistakenly divide 40 by a number, the result is 5. What is the correct calculation result? | 12 | 20 40 5 [OP_DIV] [OP_SUB] | var_a = 20
var_b = 40
var_c = 5
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e)) |
Arithmetic calculation | You want to plant flags at intervals of 20 meters (m) along a playground track with a circumference of 200 meters (m). If there are 12 flags ready, how many flags are left? Also, if it/s not enough, how many are insufficient? | 2 | 12 200 20 [OP_DIV] [OP_SUB] | var_a = 12
var_b = 200
var_c = 20
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e)) |
Comparison | Dongkyun runs 8 laps around the playground 4 times a day, and Heejin runs 5/7 laps 10 times a day. Find who runs the playground more. | Dongkyun | [OP_LIST_SOL] Dongkyun Heejin [OP_LIST_EOL] [OP_LIST_SOL] 8 4 [OP_MUL] 5/7 10 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Dongkyun'
var_b = 'Heejin'
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 = 8
var_d = 4
var_e = var_c * var_d
var_f = 0.7142857142857143
var_g = 10
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) |
Comparison | There are four numbers 0.8, 1/2, 0.9, and 1/3. How many numbers are less than 3? | 4 | [OP_LIST_SOL] 0.8 1/2 0.9 1/3 [OP_LIST_EOL] 3 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 0.8
var_b = 0.5
var_c = 0.9
var_d = 0.3333333333333333
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 = []
for i in list_a:
if i < var_e:
list_b.append(i)
var_f = len(list_b)
print(int(var_f)) |
Correspondence | A is 742. A is 397 less than B. B is 693 greater than C. Find the value of A-C. | 296 | 742 742 397 [OP_ADD] 693 [OP_SUB] [OP_SUB] | var_a = 742
var_b = 742
var_c = 397
var_d = var_b + var_c
var_e = 693
var_f = var_d - var_e
var_g = var_a - var_f
print(int(var_g)) |
Arithmetic calculation | A cloud train with a length of 20 meters (m) is running at 288 centimeters (cm) per second. If this train took 25 seconds to completely pass the tunnel, find the length of the tunnel in meters (m). | 52 | 288 100 [OP_DIV] 25 [OP_MUL] 20 [OP_SUB] | var_a = 288
var_b = 100
var_c = var_a / var_b
var_d = 25
var_e = var_c * var_d
var_f = 20
var_g = var_e - var_f
print(int(var_g)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.