category
stringclasses 5
values | question
stringlengths 20
555
| answer
stringlengths 1
20
| solution_abst
stringlengths 1
287
| solution_code
stringlengths 27
5.97k
|
---|---|---|---|---|
Comparison | 20 students are waiting for the bus. If Jungkook came right after Yoongi, and there are 11 people who came before Jungkook, how many people came after Yoongi? | 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)) |
Possibility | There is one rose, lily, tulip, chrysanthemum, and carnation each. I'm going to pick three of them and put them in three vases A, B, and C. How many different ways can you put flowers in a vase? | 60 | [OP_LIST_SOL] rose lily tulip chrysanthemum carnation [OP_LIST_EOL] [OP_LIST_LEN] 3 [OP_PERM] | var_a = 'rose'
var_b = 'lily'
var_c = 'tulip'
var_d = 'chrysanthemum'
var_e = 'carnation'
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 = 3
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)
print(int(var_h)) |
Possibility | You are trying to select two people from Jungkook, Jimin, Yoongi, Yuna, and Taehyung allowing duplicate cases. Find the possible number of cases. | 15 | [OP_LIST_SOL] Jungkook Jimin Yoongi Yuna Taehyung [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_ADD] 1 [OP_SUB] 2 [OP_COMB] | var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
var_e = 'Taehyung'
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" 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 = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = 2
var_l = 1
var_j = int(var_j)
var_k = int(var_k)
for i, elem in enumerate(range(var_k)):
var_l = var_l * (var_j-i)
for i, elem in enumerate(range(var_k)):
var_l = var_l / (i+1)
print(int(var_l)) |
Possibility | If you select three of the four numbers 1, 2, 3, and 4, allowing duplicates, and arrange them in a row to form a three-digit natural number. How many multiples of 3 are there? | 22 | [OP_LIST_SOL] 1 2 3 4 [OP_LIST_EOL] 3 [OP_LIST_GET_PRODUCT] 3 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 1
var_b = 2
var_c = 3
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 = 3
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]
var_f = 3
list_c = []
var_f = int(var_f)
for i in list_b:
i = int(i)
if i % var_f == 0:
list_c.append(i)
var_g = len(list_c)
print(int(var_g)) |
Arithmetic calculation | Saham walked 2.6 kilometers (km) today, and Saham's mother walked 5.98 kilometers (km). How many kilometers (km) is the sum of the distance that Saham and his mother walked? | 8.58 | 2.6 5.98 [OP_ADD] | var_a = 2.6
var_b = 5.98
var_c = var_a + var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Geometry | The sum of the four sides of a rectangle is 48 centimeters (cm), and the width of the rectangle is 2 centimeters (cm) shorter than its length. Find the width of the rectangle. | 11 | 48 2 [OP_DIV] 2 [OP_SUB] 2 [OP_DIV] | var_a = 48
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g)) |
Correspondence | Dividing a three-digit number with 9 in the hundreds place is divisible by 7. How many of these three digit numbers are there? | 14 | 9 100 [OP_MUL] 9 100 [OP_MUL] 99 [OP_ADD] 1 [OP_LIST_ARANGE] 7 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 9
var_b = 100
var_c = var_a * var_b
var_d = 9
var_e = 100
var_f = var_d * var_e
var_g = 99
var_h = var_f + var_g
var_i = 1
list_a = [i for i in range(var_c, var_h + 1, var_i)]
var_j = 7
list_b = []
var_j = int(var_j)
for i in list_a:
i = int(i)
if i % var_j == 0:
list_b.append(i)
var_k = len(list_b)
print(int(var_k)) |
Possibility | We are going to use 2 of our number cards 2, 4, and 5 in order to create a double-digit number. How many multiples of 4 can you make? | 2 | [OP_LIST_SOL] 2 4 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 4 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 2
var_b = 4
var_c = 5
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
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 = 4
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 = len(list_c)
print(int(var_f)) |
Arithmetic calculation | It takes 0.84 meters (m) of ribbon tape to make one ribbon. After making 10 ribbons with the ribbon tape that Yujin has, there are 50 centimeters (cm) left. How many meters (m) is the ribbon tape that Yujin had at first? | 8.9 | 0.84 10 [OP_MUL] 50 100 [OP_DIV] [OP_ADD] | var_a = 0.84
var_b = 10
var_c = var_a * var_b
var_d = 50
var_e = 100
var_f = var_d / var_e
var_g = var_c + var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Correspondence | When A78-21B=364, where A79 and 21B are three-digit numbers. Find A. | 5 | A78-21B=364 A [OP_DIGIT_UNK_SOLVER] | var_a = 'A78-21B=364'
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)) |
Arithmetic calculation | If the age of the mother is 4 times that of the daughter this year, and the sum of the ages of the mother and daughter is 71 after 8 years, how old will the mother be after 5 years? | 49 | 71 8 2 [OP_MUL] [OP_SUB] 4 1 [OP_ADD] [OP_DIV] 4 [OP_MUL] 5 [OP_ADD] | var_a = 71
var_b = 8
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 4
var_g = 1
var_h = var_f + var_g
var_i = var_e / var_h
var_j = 4
var_k = var_i * var_j
var_l = 5
var_m = var_k + var_l
print(int(var_m)) |
Comparison | Find the product of the smallest number and the largest number among 2.8, 2.3, 5, 3, and 4.3. | 11.5 | [OP_LIST_SOL] 2.8 2.3 5 3 4.3 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_MUL] | var_a = 2.8
var_b = 2.3
var_c = 5
var_d = 3
var_e = 4.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
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('{:.2f}'.format(round(var_j+1e-10,2))) |
Comparison | There are a total of three numbers: 0.8, 1/2, and 0.5. What is the sum of all numbers less than or equal to 2? | 1.8 | [OP_LIST_SOL] 0.8 1/2 0.5 [OP_LIST_EOL] 2 [OP_LIST_LESS_EQUAL] [OP_LIST_SUM] | var_a = 0.8
var_b = 0.5
var_c = 0.5
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = []
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 | It takes 10 days for Sumin to do something alone, and 15 days for Junwoo to do it alone. Answer how many days it will take to complete the task if two people are doing it together. | 6 | 1 1 10 [OP_DIV] 1 15 [OP_DIV] [OP_ADD] [OP_DIV] | var_a = 1
var_b = 1
var_c = 10
var_d = var_b / var_c
var_e = 1
var_f = 15
var_g = var_e / var_f
var_h = var_d + var_g
var_i = var_a / var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2))))) |
Possibility | How many three-digit numbers are there that are greater than 150 and less than 700, given that the numbers 7, 1, and 3 are used once? | 3 | [OP_LIST_SOL] 7 1 3 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 150 [OP_LIST_MORE] 700 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 7
var_b = 1
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 = 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 = 150
list_c = []
for i in list_b:
if i > var_e:
list_c.append(i)
var_f = 700
list_d = []
for i in list_c:
if i < var_f:
list_d.append(i)
var_g = len(list_d)
print(int(var_g)) |
Geometry | Rectangular business cards measuring 5 centimeters (cm) wide and 7 centimeters (cm) long were laid out without overlapping, filling the bottom of the square box. How many centimeters (cm) is each side of this box at its smallest size? | 35 | 5 7 [OP_LCM] | var_a = 5
var_b = 7
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
print(int(var_c)) |
Comparison | Students are standing in a line. Yoojung is standing at the very front. When 10 students are standing behind Yoojeong, how many students are in the line? | 11 | 10 1 [OP_ADD] | var_a = 10
var_b = 1
var_c = var_a + var_b
print(int(var_c)) |
Comparison | Yoongi collected 4, Jungkook collected 6 divided by 3, and Yuna collected 5. Who got the smallest number? | Jungkook | [OP_LIST_SOL] Yoongi Jungkook Yuna [OP_LIST_EOL] [OP_LIST_SOL] 4 6 3 [OP_FDIV] 5 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l) |
Correspondence | The quotient of 665655 divided by 5 is the six-digit number ABCDEF. Find the sum of A, B, C, D, E, and F. | 12 | 665655 5 [OP_DIV] [OP_NUM2LIST] [OP_LIST_SUM] | var_a = 665655
var_b = 5
var_c = var_a / var_b
list_a = []
var_c = int(var_c)
while var_c//10 > 0:
list_a.append(var_c%10)
var_c = var_c//10
list_a.append(var_c%10)
list_a = list_a[::-1]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)
print(int(var_d)) |
Arithmetic calculation | There is a wire with a total length of 3.944 meters (m). Eight cuts of 29.05 cm (cm) were cut from this wire. When dividing the remaining length into 9 equal parts, find the length of one cut-off. | 18 | 3.944 100 [OP_MUL] 29.05 8 [OP_MUL] [OP_SUB] 8 1 [OP_ADD] [OP_DIV] | var_a = 3.944
var_b = 100
var_c = var_a * var_b
var_d = 29.05
var_e = 8
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 8
var_i = 1
var_j = var_h + var_i
var_k = var_g / var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2))))) |
Comparison | Today Yeseul exercised for 13/10 hours and Youngjun for 22/15 hours. Who has been exercising longer, Yeseul or Youngjun? | Youngjun | [OP_LIST_SOL] Yeseul Youngjun [OP_LIST_EOL] [OP_LIST_SOL] 13 10 [OP_DIV] 22 15 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yeseul'
var_b = 'Youngjun'
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 = 13
var_d = 10
var_e = var_c / var_d
var_f = 22
var_g = 15
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 | There are the total of 210 apples and persimmons. The number of apples and persimmons is four times and three times the number of bananas, respectively. So how many bananas are there in total? | 30 | 210 4 3 [OP_ADD] [OP_DIV] | var_a = 210
var_b = 4
var_c = 3
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e)) |
Comparison | Yoongi collected 4 and Yuna collected 5. If Jungkook collects a sum of 6 and 3, who has the largest number? | Jungkook | [OP_LIST_SOL] Yoongi Yuna Jungkook [OP_LIST_EOL] [OP_LIST_SOL] 4 5 6 3 [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yoongi'
var_b = 'Yuna'
var_c = 'Jungkook'
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 4
var_e = 5
var_f = 6
var_g = 3
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)
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) |
Correspondence | Moving some decimal places to the left equals the original value minus 1.782. If you moved the decimal point by two places, what was the original decimal? | 1.8 | 1.782 0.99 [OP_DIV] | var_a = 1.782
var_b = 0.99
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | When the weight of 7 students in Geontak’s class is 35.1 kilograms (kg), 41.3 kilograms (kg), 38.6 kilograms (kg), 40.2 kilograms (kg), 39.0 kilograms (kg), 43.7 kilograms (kg), and 38.4 kilograms (kg), find the average weight of students who weighed more than or equal to 39 kilograms (kg). | 41.05 | [OP_LIST_SOL] 35.1 41.3 38.6 40.2 39.0 43.7 38.4 [OP_LIST_EOL] 39 [OP_LIST_MORE_EQUAL] [OP_LIST_MEAN] | var_a = 35.1
var_b = 41.3
var_c = 38.6
var_d = 40.2
var_e = 39
var_f = 43.7
var_g = 38.4
list_a= []
if "/" in str(var_g):
var_g = eval(str(var_g))
list_a.append(var_g)
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_h = 39
list_b = []
for i in list_a:
if i >= var_h:
list_b.append(i)
list_b = [float(i) for i in list_b]
var_i = sum(list_b)/len(list_b)
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Arithmetic calculation | What is the smallest four-digit number divisible by 2, 3, 8, and 9? | 1008 | 1000 9999 1 [OP_LIST_ARANGE] 2 [OP_LIST_DIVISIBLE] 3 [OP_LIST_DIVISIBLE] 8 [OP_LIST_DIVISIBLE] 9 [OP_LIST_DIVISIBLE] 1 [OP_LIST_MIN] | var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
list_b = []
var_d = int(var_d)
for i in list_a:
i = int(i)
if i % var_d == 0:
list_b.append(i)
var_e = 3
list_c = []
var_e = int(var_e)
for i in list_b:
i = int(i)
if i % var_e == 0:
list_c.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-1]
print(int(var_i)) |
Geometry | If one side of the base of a regular hexagonal prism is 6 centimeters (cm) long, and the prism is 11 centimeters (cm) high, how many centimeters (cm) is the sum of the lengths of all the edges? | 138 | 6 6 [OP_MUL] 2 [OP_MUL] 11 6 [OP_MUL] [OP_ADD] | var_a = 6
var_b = 6
var_c = var_a * var_b
var_d = 2
var_e = var_c * var_d
var_f = 11
var_g = 6
var_h = var_f * var_g
var_i = var_e + var_h
print(int(var_i)) |
Arithmetic calculation | Seojun and his friends picked 100 apples from the orchard. If Seojun takes 11 of them, how many apples does Seojun have compared to entire apples as a decimal number? | 0.11 | 11 100 [OP_DIV] | var_a = 11
var_b = 100
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Arithmetic calculation | There is 1 liter (L) of water. The mother drank 0.1 liters (L), and the father drank 0.2 liters (L) more than the mother. If your sister drank 0.3 liters (L) at this time, how many liters (L) of water is left? | 0.3 | 1 0.1 [OP_SUB] 0.1 0.2 [OP_ADD] [OP_SUB] 0.3 [OP_SUB] | var_a = 1
var_b = 0.1
var_c = var_a - var_b
var_d = 0.1
var_e = 0.2
var_f = var_d + var_e
var_g = var_c - var_f
var_h = 0.3
var_i = var_g - var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Correspondence | A sheet of paper, yellow on the front and green on the back, lies on the floor. At this time, it is said that the students flipped 152 pieces of paper that showed yellow and turned them over to show green. At this time, if there are 346 more yellow papers than green papers, what is the difference before flipping? | 650 | 346 152 [OP_ADD] 152 [OP_ADD] | var_a = 346
var_b = 152
var_c = var_a + var_b
var_d = 152
var_e = var_c + var_d
print(int(var_e)) |
Correspondence | Multiply 2.5 to a particular number and subtract 2.49, and it becomes 22.01. Find the value if you divide the number by 2.5 and add 2.49 and 22.01. | 28.42 | 22.01 2.49 [OP_ADD] 2.5 [OP_DIV] 2.5 [OP_DIV] 2.49 [OP_ADD] 22.01 [OP_ADD] | var_a = 22.01
var_b = 2.49
var_c = var_a + var_b
var_d = 2.5
var_e = var_c / var_d
var_f = 2.5
var_g = var_e / var_f
var_h = 2.49
var_i = var_g + var_h
var_j = 22.01
var_k = var_i + var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Arithmetic calculation | Find the difference between the quotients of two divisions 32.5 / 1.3 and 60.8 / 7.6. | 17 | 32.5 1.3 [OP_DIV] 60.8 7.6 [OP_DIV] [OP_SUB] [OP_ABS] | var_a = 32.5
var_b = 1.3
var_c = var_a / var_b
var_d = 60.8
var_e = 7.6
var_f = var_d / var_e
var_g = var_c - var_f
var_h = abs(var_g)
print(int(var_h)) |
Possibility | I want to choose three of the natural numbers 5, 3, 6, and 8, and use all of them to create a three-digit number. Choose the 10th smallest possible number. | 568 | [OP_LIST_SOL] 5 3 6 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 10 [OP_LIST_MIN] | var_a = 5
var_b = 3
var_c = 6
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
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
print(int(var_g)) |
Arithmetic calculation | Find the largest number from all natural numbers less than or equal to 100, which become common multiples of 7 and 8 if 2 is subtracted. | 58 | 1 100 1 [OP_LIST_ARANGE] 7 2 [OP_LIST_DIVIDE_AND_REMAIN] 8 2 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX] | var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 7
var_e = 2
list_b = []
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
var_e = var_e + var_d
for i in list_a:
i = int(i)
if i%var_d == var_e:
list_b.append(i)
var_f = 8
var_g = 2
list_c = []
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
var_g = var_g + var_f
for i in list_b:
i = int(i)
if i%var_f == var_g:
list_c.append(i)
var_h = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i)) |
Arithmetic calculation | It is said that it takes four days for the older brother and 12 days for the younger to complete a certain task. If the older brother and the younger brother do this together, find how many days it will take to complete the job. | 3 | 1 1 4 [OP_DIV] 1 12 [OP_DIV] [OP_ADD] [OP_DIV] | var_a = 1
var_b = 1
var_c = 4
var_d = var_b / var_c
var_e = 1
var_f = 12
var_g = var_e / var_f
var_h = var_d + var_g
var_i = var_a / var_h
print(int(var_i)) |
Comparison | There are four numbers A, B, C, and D. A is 27. B is 7 greater than A. C is 9 less than B. D is twice the number of C. Which number is the largest? | D | [OP_LIST_SOL] A B C D [OP_LIST_EOL] [OP_LIST_SOL] 27 27 7 [OP_ADD] 27 7 [OP_ADD] 9 [OP_SUB] 27 7 [OP_ADD] 9 [OP_SUB] 2 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [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 = 27
var_f = 27
var_g = 7
var_h = var_f + var_g
var_i = 27
var_j = 7
var_k = var_i + var_j
var_l = 9
var_m = var_k - var_l
var_n = 27
var_o = 7
var_p = var_n + var_o
var_q = 9
var_r = var_p - var_q
var_s = 2
var_t = var_r * var_s
list_b= []
if "/" in str(var_t):
var_t = eval(str(var_t))
list_b.append(var_t)
if "/" in str(var_m):
var_m = eval(str(var_m))
list_b.append(var_m)
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_u = 1
list_c=list_b.copy()
list_c.sort()
var_v = list_c[-var_u]
var_w = list_b.index(var_v)+1
var_x = list_a[var_w-1]
print(var_x) |
Correspondence | When a number is divided by 4, it is 12. Find the result of dividing the number by 3. | 16 | 12 4 [OP_MUL] 3 [OP_DIV] | var_a = 12
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e)) |
Geometry | You want to make the largest square out of a piece of string that is 32 centimeters (cm) long. How many centimeters (cm) is the length of one side of the square? | 8 | 32 4 [OP_DIV] | var_a = 32
var_b = 4
var_c = var_a / var_b
print(int(var_c)) |
Correspondence | 122 is the result of mistakenly subtracting 64 from a number. We need to subtract 46 from it. Calculate correctly. | 140 | 122 64 [OP_ADD] 46 [OP_SUB] | var_a = 122
var_b = 64
var_c = var_a + var_b
var_d = 46
var_e = var_c - var_d
print(int(var_e)) |
Arithmetic calculation | There are 10 balls in a big box. How many small boxes are needed to if you put 5 balls in each of the small box? | 2 | 10 5 [OP_DIV] | var_a = 10
var_b = 5
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | You're trying to move 48 one-metric ton (m/t) objects. How many trips would it take to move 6 trucks that can load up to 4-metric ton (m/t) at a time? | 2 | 48 4 6 [OP_MUL] [OP_DIV] | var_a = 48
var_b = 4
var_c = 6
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e)) |
Geometry | There is a square with a side of 5 centimeters (cm). What is the sum of the lengths of the four sides of this square in centimeters (cm)? | 20 | 5 4 [OP_MUL] | var_a = 5
var_b = 4
var_c = var_a * var_b
print(int(var_c)) |
Comparison | Kiyoung's classroom is placed in a square shape with the same number of desks in each row. Kiyoung's seat is 2nd from the front, 4th from the back, and 3rd from the right. Karam's seat is right next to Kiyoung's left and is second from the left. How many desks are there in Kiyoung's classroom? | 25 | 2 4 [OP_ADD] 1 [OP_SUB] 3 2 [OP_ADD] [OP_MUL] | var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 3
var_g = 2
var_h = var_f + var_g
var_i = var_e * var_h
print(int(var_i)) |
Arithmetic calculation | From the 0.35 kilometer (km) point to the 0.37 kilometer (km) point of a certain road, it was decided to divide it into 4 equal sections and plant street trees from beginning to end. How many kilometers (km) is the location of the street tree planted at the fourth point using a decimal number? | 0.37 | 0.35 0.37 0.35 [OP_SUB] 4 [OP_DIV] 4 1 [OP_SUB] [OP_MUL] [OP_ADD] | var_a = 0.35
var_b = 0.37
var_c = 0.35
var_d = var_b - var_c
var_e = 4
var_f = var_d / var_e
var_g = 4
var_h = 1
var_i = var_g - var_h
var_j = var_f * var_i
var_k = var_a + var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Correspondence | 225 is the result of adding 20 to a number and multiplying it by 5 by mistake, when it was supposed to be adding 20 and dividing it by 5. How much is it if you calculate it correctly? | 9 | 225 5 [OP_DIV] 20 [OP_SUB] 20 [OP_ADD] 5 [OP_DIV] | var_a = 225
var_b = 5
var_c = var_a / var_b
var_d = 20
var_e = var_c - var_d
var_f = 20
var_g = var_e + var_f
var_h = 5
var_i = var_g / var_h
print(int(var_i)) |
Comparison | Sora, Heesu, and Jiyeon are playing a game of collecting number cards. Sora picked up cards with 4 and 6 written on them, Heesu picked up cards with 7 and 5 written on them, and Jiyeon collected cards with 3 and 8 written on them. Find who has the greatest sum of the numbers written on all the cards. | Heesu | [OP_LIST_SOL] Sora Heesu Jiyeon [OP_LIST_EOL] [OP_LIST_SOL] 4 6 [OP_ADD] 7 5 [OP_ADD] 3 8 [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Sora'
var_b = 'Heesu'
var_c = 'Jiyeon'
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 = var_d + var_e
var_g = 7
var_h = 5
var_i = var_g + var_h
var_j = 3
var_k = 8
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]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p) |
Arithmetic calculation | Junyoung has 11 dozen pencils. Of these, 4 dozen were given to Taesoo and 9 were given to Jongsoo. How many pencils are left to Junyoung? | 75 | 11 4 [OP_SUB] 12 [OP_MUL] 9 [OP_SUB] | var_a = 11
var_b = 4
var_c = var_a - var_b
var_d = 12
var_e = var_c * var_d
var_f = 9
var_g = var_e - var_f
print(int(var_g)) |
Comparison | Basket containing 5 apples of the same weight weighs 2.9 kilograms (kg), and a basket containing 3 melons of the same weight weighs 2.51 kilograms (kg). If the empty basket weighs 0.2 kilograms (kg), find out which of the apples or melons is heavier. | melons | [OP_LIST_SOL] apples melons [OP_LIST_EOL] [OP_LIST_SOL] 2.9 0.2 [OP_SUB] 5 [OP_DIV] 2.51 0.2 [OP_SUB] 3 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'apples'
var_b = 'melons'
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.9
var_d = 0.2
var_e = var_c - var_d
var_f = 5
var_g = var_e / var_f
var_h = 2.51
var_i = 0.2
var_j = var_h - var_i
var_k = 3
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_g):
var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p) |
Comparison | Mijoo's house is on the 1st from the left, the 7th from the right, the 2nd from the top floor, and the 4th from the bottom floor of the apartment. If the number of houses in each row is the same and there are 3 households in each house, how many households live in this apartment? | 105 | 1 7 [OP_ADD] 1 [OP_SUB] 2 4 [OP_ADD] 1 [OP_SUB] [OP_MUL] 3 [OP_MUL] | var_a = 1
var_b = 7
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = 4
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
var_l = 3
var_m = var_k * var_l
print(int(var_m)) |
Geometry | The width of the wall was measured with a string measuring 1 meter (m) and 70 centimeters (cm) in length. If the width of the wall is 80 centimeters (cm) greater than 5 times the length of the string, what is the width of this wall in centimeters (cm)? | 930 | 1 100 [OP_MUL] 70 [OP_ADD] 5 [OP_MUL] 80 [OP_ADD] | var_a = 1
var_b = 100
var_c = var_a * var_b
var_d = 70
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 80
var_i = var_g + var_h
print(int(var_i)) |
Possibility | I am trying to make a three digit number by picking 3 times out of 0, 3, 5, 6. What is the smallest number that can be made? | 305 | [OP_LIST_SOL] 0 3 5 6 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MIN] | var_a = 0
var_b = 3
var_c = 5
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-1]
print(int(var_g)) |
Arithmetic calculation | There are 156 pigs and 267 cows in the barn. If 115 of them were sold today, how many are left in the barn? | 308 | 156 267 [OP_ADD] 115 [OP_SUB] | var_a = 156
var_b = 267
var_c = var_a + var_b
var_d = 115
var_e = var_c - var_d
print(int(var_e)) |
Geometry | You have a rectangular-shaped notebook with a circumference of 46 centimeters (cm) and a length of 9 centimeters (cm). How many centimeters (cm) is the width of this notebook? | 14 | 46 2 [OP_DIV] 9 [OP_SUB] | var_a = 46
var_b = 2
var_c = var_a / var_b
var_d = 9
var_e = var_c - var_d
print(int(var_e)) |
Arithmetic calculation | There are three numbers 10, 11, and 12. What is the difference between the largest number and the smallest number? | 2 | [OP_LIST_SOL] 10 11 12 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 10
var_b = 11
var_c = 12
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1
list_b=list_a.copy()
list_b.sort()
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
print(int(var_h)) |
Correspondence | There are four numbers A, B, C, and D. Find C from the four-digit addition formula 4A5B+C2D7=8070. | 3 | 4A5B+C2D7=8070 C [OP_DIGIT_UNK_SOLVER] | var_a = '4A5B+C2D7=8070'
var_b = 'C'
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 | When we divide the product of 4 and a number by 7 and add 12, we get 36. Find this number | 42 | 36 12 [OP_SUB] 7 [OP_MUL] 4 [OP_DIV] | var_a = 36
var_b = 12
var_c = var_a - var_b
var_d = 7
var_e = var_c * var_d
var_f = 4
var_g = var_e / var_f
print(int(var_g)) |
Geometry | How many diagonals are there in a figure bounded by 11 sides? | 44 | 11 11 3 [OP_SUB] [OP_MUL] 2 [OP_DIV] | var_a = 11
var_b = 11
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g)) |
Comparison | There are two fruit crates. The apple box is 3/5 kilograms (kg) and the orange box is 0.49 kilograms (kg). Which box is the heavier of the two? | apple | [OP_LIST_SOL] apple orange [OP_LIST_EOL] [OP_LIST_SOL] 3/5 0.49 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'apple'
var_b = 'orange'
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 = 0.6
var_d = 0.49
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]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h) |
Arithmetic calculation | There are magic pencil cases, in which writing materials become 10 times longer when put in a gold pencil case, and 1/100 times longer when put in a silver pencil case. Kihoon put the 13.5 centimeters (cm) pencil in and out of the gold pencil case 3 times and the silver pencil case 2 times. How long is Kihoon's pencil now in centimeters (cm)? | 1.35 | 13.5 10 3 [OP_POW] [OP_MUL] 1/100 2 [OP_POW] [OP_MUL] | var_a = 13.5
var_b = 10
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 0.01
var_g = 2
var_h = var_f ** var_g
var_i = var_e * var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Possibility | You want to distribute 4 different ice creams to your friend. There are 4 friends: Kahi, Nahee, Dahee, and Rahee. How many cases are there? | 24 | 4 4 [OP_PERM] | var_a = 4
var_b = 4
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)
print(int(var_c)) |
Geometry | What is the side length in meters (m) of an equilateral triangle with a perimeter of 8 meters (m)? | 2.67 | 8 3 [OP_DIV] | var_a = 8
var_b = 3
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Possibility | Given 3, 4, and 6, find the number of three-digit numbers less than 450, using all the given numbers once. | 3 | [OP_LIST_SOL] 3 4 6 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 450 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 3
var_b = 4
var_c = 6
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 = 450
list_c = []
for i in list_b:
if i < var_e:
list_c.append(i)
var_f = len(list_c)
print(int(var_f)) |
Possibility | Given the number cards 5, 7, and 8, how many total three-digit numbers can be formed by using all of them? | 6 | [OP_LIST_SOL] 5 7 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 5
var_b = 7
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 = len(list_b)
print(int(var_e)) |
Comparison | You want to divide 1 liter (L) of water and 4 liters (L) of water equally into bottles of the same shape and size. If 1 liter (L) of water is divided equally into 3 A bottles, and 4 liters (L) of water is equally divided into 5 B bottles, which bottle has more water, bottle A or bottle B? | B | [OP_LIST_SOL] A B [OP_LIST_EOL] [OP_LIST_SOL] 1 3 [OP_DIV] 4 5 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'A'
var_b = 'B'
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 = 3
var_e = var_c / var_d
var_f = 4
var_g = 5
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 | When you walked around the school for the first time, you walked at 3 kilometers (km) per hour. For the second time, you walked 2 kilometers (km) more than the first time at the speed of 4 kilometers (km) per hour. If the walk took 4 hours in total, how much time would be taken for the first walk? | 2 | 4 2 4 [OP_DIV] [OP_SUB] 1 3 [OP_DIV] 1 4 [OP_DIV] [OP_ADD] [OP_DIV] 3 [OP_DIV] | var_a = 4
var_b = 2
var_c = 4
var_d = var_b / var_c
var_e = var_a - var_d
var_f = 1
var_g = 3
var_h = var_f / var_g
var_i = 1
var_j = 4
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_e / var_l
var_n = 3
var_o = var_m / var_n
print(int(eval('{:.2f}'.format(round(var_o+1e-10,2))))) |
Arithmetic calculation | We plan to plant street trees on both sides of the 1.08 kilometer (km) long road from beginning to end. How many street trees are needed to plant one tree every 13.5 meters (m)? | 162 | 1.08 1000 [OP_MUL] 13.5 [OP_DIV] 1 [OP_ADD] 2 [OP_MUL] | var_a = 1.08
var_b = 1000
var_c = var_a * var_b
var_d = 13.5
var_e = var_c / var_d
var_f = 1
var_g = var_e + var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i)) |
Possibility | Among Jungkook, Jimin, Yoongi, Yuna, and Taehyung, the class president, vice president, and public relations officer will be selected. What is the total number of possible cases? | 60 | [OP_LIST_SOL] Jungkook Jimin Yoongi Yuna Taehyung [OP_LIST_EOL] [OP_LIST_LEN] 3 [OP_PERM] | var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
var_e = 'Taehyung'
list_a= []
if "/" in str(var_e):
var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" 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 = 3
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)
print(int(var_h)) |
Possibility | You want to choose two cards from the number cards with the numbers 8, 7, and 9 on them. Find how many possible cases there are. | 3 | [OP_LIST_SOL] 8 7 9 [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB] | var_a = 8
var_b = 7
var_c = 9
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 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)
for i, elem in enumerate(range(var_e)):
var_f = var_f / (i+1)
print(int(var_f)) |
Arithmetic calculation | Minsu wants to save 100,000 won. If he saves 7,000 won per day, how many days will it take for him to reach his goal? | 15 | 100000 7000 [OP_DIV] 1 [OP_CEIL] | var_a = 100000
var_b = 7000
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))
print(int(var_e)) |
Arithmetic calculation | Jia and Yujun had 3 forks each, so there are 2 left. How many forks were there initially? | 8 | 2 3 2 [OP_MUL] [OP_ADD] | var_a = 2
var_b = 3
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e)) |
Comparison | 20 students lined up in a single line. Jungkook is standing behind Yoongi, and 11 students are standing behind Jungkook. How many students are standing in front of Yoongi? | 7 | 20 11 [OP_SUB] 1 [OP_SUB] 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)) |
Possibility | When you play a car game, you have to choose one character from three characters, and then one car from three cars. How many cases are there? | 9 | 3 3 [OP_MUL] | var_a = 3
var_b = 3
var_c = var_a * var_b
print(int(var_c)) |
Geometry | There is a box in the shape of a cube with a surface area of 864 square centimeters (cm2). How many centimeters (cm) is the length of one side of this box? | 12 | 864 6 [OP_DIV] 1/2 [OP_POW] | var_a = 864
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e)) |
Arithmetic calculation | I gave some ten 10 won coins to Yoongi, and there are 7 left. Find out how much he gave to Yoongi. | 30 | 10 10 7 [OP_SUB] [OP_MUL] | var_a = 10
var_b = 10
var_c = 7
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e)) |
Geometry | Jihye holds a piece of colored paper in the shape of a square whose side is 14 centimeters (cm). When she cut it into rectangles that are 8 centimeters (cm) long and 2 centimeters (cm) wide. How many of these rectangular pieces of paper does she get at most? | 12 | 14 2 [OP_POW] 8 2 [OP_MUL] [OP_FDIV] | var_a = 14
var_b = 2
var_c = var_a ** var_b
var_d = 8
var_e = 2
var_f = var_d * var_e
var_g = var_c // var_f
print(int(var_g)) |
Geometry | Find how many centimeters (cm) is the length of one corner of a cube whose volume is 1 square centimeter (cm2) less than a cuboid whose base is 10 square centimeter (cm2) and whose height is 73 centimeters (cm). | 9 | 10 73 [OP_MUL] 1 [OP_SUB] 1/3 [OP_POW] | var_a = 10
var_b = 73
var_c = var_a * var_b
var_d = 1
var_e = var_c - var_d
var_f = 0.3333333333333333
var_g = var_e ** var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2))))) |
Geometry | There is a doll in the shape of a rectangular cuboid. The volume of this doll is 16 square centimeters (cm2). And, the side facing the floor is 6 centimeters (cm) wide and 7 centimeters (cm) long. Find the total surface area of this doll. | 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))) |
Arithmetic calculation | The sum of 5 consecutive natural numbers is 180. Write the largest of these 5 numbers. | 38 | 180 5 [OP_DIV] 5 2 [OP_FDIV] [OP_ADD] | var_a = 180
var_b = 5
var_c = var_a / var_b
var_d = 5
var_e = 2
var_f = var_d // var_e
var_g = var_c + var_f
print(int(var_g)) |
Arithmetic calculation | Yooseon wakes up in the morning and has a cold, so she decides to stop by the hospital and then go to school. It is 1 kilometer (km) 700 meters (m) from Yooseon’s house to the hospital, and the distance from the hospital to the school is 900 meters (m). How many meters (m) is the midway point of a distance starting from Yooseon's house, passing by the hospital and to the school, apart from of Yooseon's house? | 1300 | 1 1000 [OP_MUL] 700 [OP_ADD] 900 [OP_ADD] 2 [OP_DIV] | var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 700
var_e = var_c + var_d
var_f = 900
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i)) |
Comparison | Jaehyun skipped 23 times and Seulgi jumped 19 times. Miran jumped rope 18 times in the first and 21 times in the second. In order for Jaehyun to jump rope more than Miran, at least how many times should he do in the second round? | 17 | 18 21 [OP_ADD] 23 [OP_SUB] 1 [OP_ADD] | var_a = 18
var_b = 21
var_c = var_a + var_b
var_d = 23
var_e = var_c - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g)) |
Comparison | Yooseung, Shinyoung, and Seokgi did the long jump. Yooseung jumped 15/8 meters (m), Shinyoung 2 meters (m), and Seokgi 17/8 meters (m). Who jumped the furthest? | Seokgi | [OP_LIST_SOL] Yooseung Shinyoung Seokgi [OP_LIST_EOL] [OP_LIST_SOL] 15/8 2 17/8 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Yooseung'
var_b = 'Shinyoung'
var_c = 'Seokgi'
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.875
var_e = 2
var_f = 2.125
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) |
Correspondence | 27 is subtracted from the quotient of a number divided by 46, which gives 46. Find the number. | 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)) |
Possibility | Choose two of the five numbers 0, 1, 2, 3, 4, and 5 to make a two-digit number. If you can use the same number multiple times, what is the sum of all possible numbers? | 975 | [OP_LIST_SOL] 0 1 2 3 4 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PRODUCT] [OP_LIST_SUM] | var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_g))
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_b = [float(i) for i in list_b]
var_h = sum(list_b)
print(int(var_h)) |
Arithmetic calculation | 17 more people got on the train with 82 people on it, and a few people got off. If 73 people were on the train, find how many people left 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)) |
Possibility | When 3, 4, and 6 are given, find how many three-digit numbers using these three numbers exist, that is bigger than 450 | 3 | [OP_LIST_SOL] 3 4 6 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 450 [OP_LIST_MORE] [OP_LIST_LEN] | var_a = 3
var_b = 4
var_c = 6
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 = 450
list_c = []
for i in list_b:
if i > var_e:
list_c.append(i)
var_f = len(list_c)
print(int(var_f)) |
Comparison | Jungkook collected 6 divided by 3, and Yoongi collected 4. Who got the smaller number? | Jungkook | [OP_LIST_SOL] Jungkook Yoongi [OP_LIST_EOL] [OP_LIST_SOL] 6 3 [OP_FDIV] 4 [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 3
var_e = var_c // var_d
var_f = 4
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-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j) |
Arithmetic calculation | A box containing 10 apples of the same weight was weighed and found to be 3.1 kg (kg). After removing one apple from the box, it became 2.81 kilograms (kg). Find the weight in kilograms (kg) of the empty box. | 0.2 | 3.1 3.1 2.81 [OP_SUB] 10 [OP_MUL] [OP_SUB] | var_a = 3.1
var_b = 3.1
var_c = 2.81
var_d = var_b - var_c
var_e = 10
var_f = var_d * var_e
var_g = var_a - var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Arithmetic calculation | The total weight of one lion, one tiger, and one panda is 106 kilograms (kg) and 600 grams (g). A panda weighs 7 kilograms (kg) and 700 grams (g) less than a tiger, and a tiger weighs 4.8 kilograms (kg) less than a lion. How many kilograms (kg) does one lion weigh? | 41.3 | 106 600 1000 [OP_DIV] [OP_ADD] 7 700 1000 [OP_DIV] [OP_ADD] [OP_ADD] 4.8 2 [OP_MUL] [OP_ADD] 3 [OP_DIV] | var_a = 106
var_b = 600
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 7
var_g = 700
var_h = 1000
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e + var_j
var_l = 4.8
var_m = 2
var_n = var_l * var_m
var_o = var_k + var_n
var_p = 3
var_q = var_o / var_p
print('{:.2f}'.format(round(var_q+1e-10,2))) |
Comparison | Yoongi is playing a game of throwing basketballs with his 20 friends. If 11 students scored less than Yoongi, how many students scored more than Yoongi? | 8 | 20 11 [OP_SUB] 1 [OP_SUB] | var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e)) |
Arithmetic calculation | A group of people wants to eat 2/5 of a watermelon per person. How many watermelons are needed to feed 10 people? | 4 | 2/5 10 [OP_MUL] | var_a = 0.4
var_b = 10
var_c = var_a * var_b
print(int(var_c)) |
Arithmetic calculation | You have a candle that is 25 centimeters (cm) long. If this candle burns 1.75 centimeters (cm) in 10 minutes, how many minutes after lighting will it be 11 centimeters (cm) long? | 80 | 25 11 [OP_SUB] 1.75 10 [OP_DIV] [OP_DIV] | var_a = 25
var_b = 11
var_c = var_a - var_b
var_d = 1.75
var_e = 10
var_f = var_d / var_e
var_g = var_c / var_f
print(int(var_g)) |
Comparison | Which of 0.8, 1/2, 0.9, 1/3 is the smallest number greater than 0.7? | 0.8 | [OP_LIST_SOL] 0.8 1/2 0.9 1/3 [OP_LIST_EOL] 0.7 [OP_LIST_MORE] 1 [OP_LIST_MIN] | 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 = 0.7
list_b = []
for i in list_a:
if i > var_e:
list_b.append(i)
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Arithmetic calculation | Yeonjeong and Donghun started skating in opposite directions at the same time on a skating rink with a circumference of 3 km (km). If Yeonjeong skates at a speed of 100 meters (m) per minute and Donghun skates at a speed of 150 meters (m) per minute, find the two meet again for the first time in a few minutes. | 12 | 3 100 1000 [OP_DIV] 150 1000 [OP_DIV] [OP_ADD] [OP_DIV] | var_a = 3
var_b = 100
var_c = 1000
var_d = var_b / var_c
var_e = 150
var_f = 1000
var_g = var_e / var_f
var_h = var_d + var_g
var_i = var_a / var_h
print(int(var_i)) |
Correspondence | A and B are two different natural numbers. When A is divided by 7, the quotient is 15 and the remainder is B. Find A when B is the smallest possible number. | 105 | 7 15 [OP_MUL] | var_a = 7
var_b = 15
var_c = var_a * var_b
print(int(var_c)) |
Possibility | There are toys with 1, 6 and 8 drawn on them. Let's say the first one Rowoon chooses is the hundred's place, the second is the tens' place, and the third is the ones' place. Find the sum of the largest number and the third largest number that Rowoon can make. However, Rowwon cannot select the same toy multiple times. | 1542 | [OP_LIST_SOL] 1 6 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 3 [OP_LIST_MAX] [OP_ADD] | 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 = 1
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
print(int(var_i)) |
Comparison | There are red balls and blue balls in the box with blue balls being 17 more than the red balls. Minsu put in 57 blue balls and 18 red balls and subtracted 44 balls. When you checked the inside of the box and there were 502 balls in total, find the number of blue balls that were in the box at the beginning. | 244 | 502 18 57 [OP_ADD] 44 [OP_SUB] [OP_SUB] 17 [OP_ADD] 2 [OP_DIV] | var_a = 502
var_b = 18
var_c = 57
var_d = var_b + var_c
var_e = 44
var_f = var_d - var_e
var_g = var_a - var_f
var_h = 17
var_i = var_g + var_h
var_j = 2
var_k = var_i / var_j
print(int(var_k)) |
Arithmetic calculation | Taehong's distance from school to home is 460 meters (m) farther than Jiwon's. If the distance from Taehong's house to the school is 1.05 kilometers (km), how many kilometers (km) is it from Jiwon's house to the school? | 0.59 | 1.05 460 1000 [OP_DIV] [OP_SUB] | var_a = 1.05
var_b = 460
var_c = 1000
var_d = var_b / var_c
var_e = var_a - var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Arithmetic calculation | If the weight of the heavy box is 14/15 kg (kg), and the light box is 1/10 kg (kg) lighter than the heavy box, find the sum of the weights of the two boxes in kg (kg). | 1.77 | 14/15 2 [OP_MUL] 1/10 [OP_SUB] | var_a = 0.9333333333333333
var_b = 2
var_c = var_a * var_b
var_d = 0.1
var_e = var_c - var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Possibility | How many three-digit numbers are there where the sum of all the digits is 25? | 6 | 100 1000 1 [OP_SUB] 1 [OP_LIST_ARANGE] [OP_LIST_NUM2SUM] 25 [OP_LIST_MORE_EQUAL] 25 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN] | var_a = 100
var_b = 1000
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
list_b=[]
for i in list_a:
var_f = 0
i = int(i)
while i//10 > 0:
var_f = var_f + i%10
i = i//10
var_f = var_f + i%10
list_b.append(var_f)
var_g = 25
list_c = []
for i in list_b:
if i >= var_g:
list_c.append(i)
var_h = 25
list_d = []
for i in list_c:
if i <= var_h:
list_d.append(i)
var_i = len(list_d)
print(int(var_i)) |
Arithmetic calculation | There are five numbers 10, 11, 12, 13, and 14. What is the quotient when you divide the largest number by the second smallest number? | 1 | [OP_LIST_SOL] 10 11 12 13 14 [OP_LIST_EOL] 1 [OP_LIST_MAX] 2 [OP_LIST_MIN] [OP_FDIV] | var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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 = 2
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)) |