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 six numbers 9/5, 3/5, 1.7, 3/2, 0.4, and 9/10. How many of these numbers are less than 1?
3
[OP_LIST_SOL] 9/5 3/5 1.7 3/2 0.4 9/10 [OP_LIST_EOL] 1 [OP_LIST_LESS] [OP_LIST_LEN]
var_a = 1.8 var_b = 0.6 var_c = 1.7 var_d = 1.5 var_e = 0.4 var_f = 0.9 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 = 1 list_b = [] for i in list_a: if i < var_g: list_b.append(i) var_h = len(list_b) print(int(var_h))
Arithmetic calculation
Yeonji wants to run. If it takes 4 seconds for Yeonji to run 3 meters (m) and the distance from the starting line to the finish point is 0.09 km (km), find how many seconds it took Yeonji to run from the starting line to the finish line.
124
0.09 1000 [OP_MUL] 3 [OP_ADD] 3 [OP_DIV] 4 [OP_MUL]
var_a = 0.09 var_b = 1000 var_c = var_a * var_b var_d = 3 var_e = var_c + var_d var_f = 3 var_g = var_e / var_f var_h = 4 var_i = var_g * var_h print(int(var_i))
Geometry
To make a paper string, 6 sheets of paper were overlapped by 7 centimeters (cm) and glued. This piece of paper has the shape of a square with each side measuring 30 centimeters (cm). Find the area of the string made.
4350
30 6 [OP_MUL] 7 6 1 [OP_SUB] [OP_MUL] [OP_SUB] 30 [OP_MUL]
var_a = 30 var_b = 6 var_c = var_a * var_b var_d = 7 var_e = 6 var_f = 1 var_g = var_e - var_f var_h = var_d * var_g var_i = var_c - var_h var_j = 30 var_k = var_i * var_j print(int(var_k))
Correspondence
Junhyung traveled 1/5 of the total distance on the first day of the trip, and 3/4 of the remaining distance on the second day. If the trip was completed after moving 1 kilometer (km) and 500 meters (m) on the third day, what is the total distance of Junhyung's trip in kilometers (km)?
7.5
1 500 1000 [OP_DIV] [OP_ADD] 1 3/4 [OP_SUB] [OP_DIV] 1 1/5 [OP_SUB] [OP_DIV]
var_a = 1 var_b = 500 var_c = 1000 var_d = var_b / var_c var_e = var_a + var_d var_f = 1 var_g = 0.75 var_h = var_f - var_g var_i = var_e / var_h var_j = 1 var_k = 0.2 var_l = var_j - var_k var_m = var_i / var_l print('{:.2f}'.format(round(var_m+1e-10,2)))
Geometry
I am going to make as many small square pieces as possible by cutting out a large rectangular piece of paper that is 172 centimeters (cm) wide and 295 centimeters (cm) long. Find how many square pieces of paper you can make.
84
172 24 [OP_FDIV] 295 24 [OP_FDIV] [OP_MUL]
var_a = 172 var_b = 24 var_c = var_a // var_b var_d = 295 var_e = 24 var_f = var_d // var_e var_g = var_c * var_f print(int(var_g))
Arithmetic calculation
The weight of the box is 0.5 kilograms (kg). When six billiard balls of the same weight were placed in a box, the box weighed 1.82 kilograms (kg). How many kilograms (kg) does one billiard ball weigh?
0.22
1.82 0.5 [OP_SUB] 6 [OP_DIV]
var_a = 1.82 var_b = 0.5 var_c = var_a - var_b var_d = 6 var_e = var_c / var_d print('{:.2f}'.format(round(var_e+1e-10,2)))
Arithmetic calculation
This year, the age of the father is four times the age of the daughter. After 5 years, the sum of the ages of father and daughter will be 50. How old is your father this year?
32
50 5 2 [OP_MUL] [OP_SUB] 1 4 [OP_ADD] [OP_DIV] 4 [OP_MUL]
var_a = 50 var_b = 5 var_c = 2 var_d = var_b * var_c var_e = var_a - var_d var_f = 1 var_g = 4 var_h = var_f + var_g var_i = var_e / var_h var_j = 4 var_k = var_i * var_j print(int(var_k))
Comparison
Fruit (a) is lighter than fruit (b). Fruit (c) is lighter than fruit (a). What is the heaviest fruit?
(b)
[OP_LIST_SOL] (a) (b) (c) [OP_LIST_EOL] [OP_LIST_SOL] (a) (b) < (c) (a) < [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] 1 [OP_LIST_GET]
var_a = '(a)' var_b = '(b)' var_c = '(c)' 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 = '(a)' var_e = '(b)' var_f = '<' var_g = '(c)' var_h = '(a)' var_i = '<' list_b= [] if "/" in str(var_i): var_i = eval(str(var_i)) list_b.append(var_i) if "/" in str(var_h): var_h = eval(str(var_h)) list_b.append(var_h) if "/" in str(var_g): var_g = eval(str(var_g)) list_b.append(var_g) if "/" in str(var_f): var_f = eval(str(var_f)) list_b.append(var_f) if "/" in str(var_e): var_e = eval(str(var_e)) list_b.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_b.append(var_d) list_b.reverse() global item_name_index_dict items_name_list = list_a.copy() conditions = [] condition_list = list_b.copy() temp_stack = [] for index_, cond_ in enumerate(map(str, condition_list)): if cond_ in ("<", ">", "="): operand_right = temp_stack.pop() operand_left = temp_stack.pop() if cond_ == "=": cond_ = "==" conditions.append(f"{operand_left} {cond_} {operand_right}") else: if not cond_.isdigit(): cond_ = "{" + cond_ + "}" temp_stack.append(cond_) item_name_index_dict = {} for perm in itertools.permutations(range(1, len(items_name_list) + 1)): item_name_index_dict = dict(zip(items_name_list, perm)) formatted_conditions = \ [condition.format_map(item_name_index_dict) for condition in conditions] if all(map(eval, formatted_conditions)): break list_c = list(item_name_index_dict.keys()) list_c.sort(key=item_name_index_dict.get, reverse=True) var_j = 1 var_k = list_c[var_j-1] print(var_k)
Arithmetic calculation
How many of the numbers 5, 1, 9, 0, 6, and 8 are greater than 4 and less than 8?
3
[OP_LIST_SOL] 5 1 9 0 6 8 [OP_LIST_EOL] 4 [OP_LIST_MORE_EQUAL] 8 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN]
var_a = 5 var_b = 1 var_c = 9 var_d = 0 var_e = 6 var_f = 8 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 = 4 list_b = [] for i in list_a: if i >= var_g: list_b.append(i) var_h = 8 list_c = [] for i in list_b: if i <= var_h: list_c.append(i) var_i = len(list_c) print(int(var_i))
Geometry
The circumference of a Polaroid photo is 40 centimeters (cm). Find the length of the length when the width is 8 centimeters (cm).
12
40 2 [OP_DIV] 8 [OP_SUB]
var_a = 40 var_b = 2 var_c = var_a / var_b var_d = 8 var_e = var_c - var_d print(int(var_e))
Correspondence
What number A is to make 57A-B14=364?
8
57A-B14=364 A [OP_DIGIT_UNK_SOLVER]
var_a = '57A-B14=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))
Geometry
If you draw a circle with a diameter of 14 centimeters (cm) on a piece of paper, what is the length of its radius in centimeters (cm)?
7
14 2 [OP_DIV]
var_a = 14 var_b = 2 var_c = var_a / var_b print(int(var_c))
Arithmetic calculation
Hosok jumped rope 88 times on Monday, 75 times on Tuesday, 62 times on Wednesday, 91 times on Thursday, and 80 times on Friday. Find the difference between the number of jumps on the days of the most and the least jumps.
29
[OP_LIST_SOL] 88 75 62 91 80 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB]
var_a = 88 var_b = 75 var_c = 62 var_d = 91 var_e = 80 list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = 1 list_b=list_a.copy() list_b.sort() var_g = list_b[-var_f] var_h = 1 list_c=list_a.copy() list_c.sort() var_i = list_c[var_h-1] var_j = var_g - var_i print(int(var_j))
Arithmetic calculation
Ji-young and her sister ran errands for their mother and received pocket money. If the sum of their pocket money is 12,000 won and the younger sister received 1,000 won less than Ji-young, how much money did Ji-young receive?
6500
12000 1000 [OP_SUB] 2 [OP_DIV] 1000 [OP_ADD]
var_a = 12000 var_b = 1000 var_c = var_a - var_b var_d = 2 var_e = var_c / var_d var_f = 1000 var_g = var_e + var_f print(int(var_g))
Comparison
The height of the green chair is 0.309 meters (m) and the height of the blue chair is 48.2 centimeters (cm). Which color is the taller chair?
blue
[OP_LIST_SOL] green blue [OP_LIST_EOL] [OP_LIST_SOL] 0.309 48.2 100 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'green' var_b = 'blue' 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.309 var_d = 48.2 var_e = 100 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] var_i = list_b.index(var_h)+1 var_j = list_a[var_i-1] print(var_j)
Geometry
Find the number of corners of the pentagonal prism.
15
5 3 [OP_MUL]
var_a = 5 var_b = 3 var_c = var_a * var_b print(int(var_c))
Geometry
If the radius of a circular lake is 7 meters (m), what is the diameter of the lake in meters (m)?
14
7 2 [OP_MUL]
var_a = 7 var_b = 2 var_c = var_a * var_b print(int(var_c))
Geometry
A cuboid is said to have a base area of 14 square centimeters (cm2) and a height of 13 centimeters (cm). What is the volume of this cuboid in cubic centimeters (cm)?
182
14 13 [OP_MUL]
var_a = 14 var_b = 13 var_c = var_a * var_b print(int(var_c))
Arithmetic calculation
A movie theater has 500 chairs. If all chairs are numbered from 1 to 500 in order, how many times is the number 4 written on them?
200
1 500 1 [OP_LIST_ARANGE] [OP_LIST2NUM] [OP_NUM2LIST] 4 [OP_LIST_FIND_NUM]
var_a = 1 var_b = 500 var_c = 1 list_a = [i for i in range(var_a, var_b + 1, var_c)] var_d="" for i in list_a: i = str(i) var_d = var_d + i list_b = [] var_d = int(var_d) while var_d//10 > 0: list_b.append(var_d%10) var_d = var_d//10 list_b.append(var_d%10) list_b = list_b[::-1] var_e = 4 var_f = 0 var_e = int(var_e) for i in list_b: i = int(i) if i == var_e: var_f = var_f + 1 print(int(var_f))
Arithmetic calculation
There are 6, 2, 4, 1, 5, and 9. Find out how many of the largest numbers are larger than the second largest.
3
[OP_LIST_SOL] 6 2 4 1 5 9 [OP_LIST_EOL] 1 [OP_LIST_MAX] 2 [OP_LIST_MAX] [OP_SUB]
var_a = 6 var_b = 2 var_c = 4 var_d = 1 var_e = 5 var_f = 9 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 = 1 list_b=list_a.copy() list_b.sort() var_h = list_b[-var_g] var_i = 2 list_c=list_a.copy() list_c.sort() var_j = list_c[-var_i] var_k = var_h - var_j print(int(var_k))
Comparison
People are standing in a line at an amusement park. If Eunji can ride the ride 6th from the back and there are 7 people in front of Eunji, how many people are in line to ride the ride?
13
6 7 [OP_ADD]
var_a = 6 var_b = 7 var_c = var_a + var_b print(int(var_c))
Geometry
If you make a square with 32 kilometers (km) of string, you will be given all the land. What is the largest size of land you could possibly get in square kilometers (km²)?
64
32 4 [OP_DIV] 2 [OP_POW]
var_a = 32 var_b = 4 var_c = var_a / var_b var_d = 2 var_e = var_c ** var_d print(int(var_e))
Correspondence
Find the product of A and B that satisfy 3/9=6/A=B/63
378
3/9=6/A=B/63 A [OP_NUM_UNK_SOLVER] 3/9=6/A=B/63 B [OP_NUM_UNK_SOLVER] [OP_MUL]
var_a = '3/9=6/A=B/63' 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] = 0 candidate_num = [i for i in range(51)] candi = list(itertools.product(candidate_num, 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)): if term_list[i] == '': new_eq += str(term_list[i])+op_list[i] else: new_eq += str(int(term_list[i]))+op_list[i] new_eq += str(int(term_list[-1])) new_eq=new_eq.replace('=', '==') new_eq=new_eq.replace('>==', '>=') new_eq=new_eq.replace('<==', '<=') eval_result = False try: if '=' in new_eq and '>' not in new_eq and '<' not in new_eq: new_eq=new_eq.replace('==','=') new_eq=new_eq.replace('>','') new_eq=new_eq.replace('<','') new_eq=new_eq.split('=') for i in range(len(new_eq)-1): eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1])) if not eval_result: break else: eval_result = eval(new_eq) except: eval_result = False pass if eval_result: for i, (k, _) in enumerate(ans_dict.items()): ans_dict[k] = int(c[i]) var_c = ans_dict[var_b] var_d = '3/9=6/A=B/63' var_e = 'B' ans_dict = dict() var_d = var_d.replace('×','*') var_d = var_d.replace('x','*') var_d = var_d.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_d): if v in variable_candi: ans_dict[v] = 0 candidate_num = [i for i in range(51)] candi = list(itertools.product(candidate_num, repeat=len(ans_dict))) for c in candi: temp = var_d 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)): if term_list[i] == '': new_eq += str(term_list[i])+op_list[i] else: new_eq += str(int(term_list[i]))+op_list[i] new_eq += str(int(term_list[-1])) new_eq=new_eq.replace('=', '==') new_eq=new_eq.replace('>==', '>=') new_eq=new_eq.replace('<==', '<=') eval_result = False try: if '=' in new_eq and '>' not in new_eq and '<' not in new_eq: new_eq=new_eq.replace('==','=') new_eq=new_eq.replace('>','') new_eq=new_eq.replace('<','') new_eq=new_eq.split('=') for i in range(len(new_eq)-1): eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1])) if not eval_result: break else: eval_result = eval(new_eq) except: eval_result = False pass if eval_result: for i, (k, _) in enumerate(ans_dict.items()): ans_dict[k] = int(c[i]) var_f = ans_dict[var_e] var_g = var_c * var_f print(int(var_g))
Geometry
There is some octagon. Find the number of all diagonals that can be drawn within this octagon.
20
8 8 3 [OP_SUB] [OP_MUL] 2 [OP_DIV]
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 print(int(var_g))
Possibility
Write the smallest three-digit number that can be formed by drawing three different numbers from 3, 0, 2, 5, and 7.
203
[OP_LIST_SOL] 3 0 2 5 7 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MIN]
var_a = 3 var_b = 0 var_c = 2 var_d = 5 var_e = 7 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 = 3 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-1] print(int(var_h))
Comparison
Yoongi collected 7 points, Jungkook 6 points, Yuna 9 points, Yoojung 8 points, and Taehyung 10 points. Who has the 2nd largest number?
Yuna
[OP_LIST_SOL] Yoongi Jungkook Yuna Yoojung Taehyung [OP_LIST_EOL] [OP_LIST_SOL] 7 6 9 8 10 [OP_LIST_EOL] 2 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'Yoongi' var_b = 'Jungkook' var_c = 'Yuna' var_d = 'Yoojung' var_e = 'Taehyung' list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" 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 = 7 var_g = 6 var_h = 9 var_i = 8 var_j = 10 list_b= [] if "/" in str(var_j): var_j = eval(str(var_j)) list_b.append(var_j) if "/" in str(var_i): var_i = eval(str(var_i)) list_b.append(var_i) if "/" in str(var_h): var_h = eval(str(var_h)) list_b.append(var_h) if "/" in str(var_g): var_g = eval(str(var_g)) list_b.append(var_g) if "/" in str(var_f): var_f = eval(str(var_f)) list_b.append(var_f) list_b.reverse() var_k = 2 list_c=list_b.copy() list_c.sort() var_l = list_c[-var_k] var_m = list_b.index(var_l)+1 var_n = list_a[var_m-1] print(var_n)
Comparison
The weight of the apple box is 3/5 kilograms (kg), and the weight of the tangerine box is 0.49 kilograms (kg). Which box is heavier?
apple
[OP_LIST_SOL] apple tangerine [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 = 'tangerine' 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)
Geometry
You want to make a square with a side of 7 centimeters (cm) by cutting a rectangular paper that is 112 centimeters (cm) wide and 63 centimeters (cm) long. How many squares can you make in total?
144
112 7 [OP_FDIV] 63 7 [OP_FDIV] [OP_MUL]
var_a = 112 var_b = 7 var_c = var_a // var_b var_d = 63 var_e = 7 var_f = var_d // var_e var_g = var_c * var_f print(int(var_g))
Possibility
You want to use all three dice rolls at least once to create a three-digit number less than 340. When 2, 4, and 3 are rolled, how many numbers can you make?
3
[OP_LIST_SOL] 2 4 3 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 340 [OP_LIST_LESS] [OP_LIST_LEN]
var_a = 2 var_b = 4 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 = 340 list_c = [] for i in list_b: if i < var_e: list_c.append(i) var_f = len(list_c) print(int(var_f))
Correspondence
A, B, and C are three different numbers. A is 4 less than 9, B is 5 greater than A, and 8 less than C is 1. What is B minus C?
1
9 4 [OP_SUB] 5 [OP_ADD] 8 1 [OP_ADD] [OP_SUB]
var_a = 9 var_b = 4 var_c = var_a - var_b var_d = 5 var_e = var_c + var_d var_f = 8 var_g = 1 var_h = var_f + var_g var_i = var_e - var_h print(int(var_i))
Comparison
There are 24 cars. Of these cars, red cars make up 1/4 of the total, blue cars outnumber red cars by 6, and the rest are yellow cars. What color cars do you have the most?
blue
[OP_LIST_SOL] red blue yellow [OP_LIST_EOL] [OP_LIST_SOL] 24 1/4 [OP_MUL] 24 1/4 [OP_MUL] 6 [OP_ADD] 24 24 1/4 [OP_MUL] 6 [OP_ADD] [OP_SUB] 24 1/4 [OP_MUL] [OP_SUB] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'red' var_b = 'blue' var_c = 'yellow' list_a= [] if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_d = 24 var_e = 0.25 var_f = var_d * var_e var_g = 24 var_h = 0.25 var_i = var_g * var_h var_j = 6 var_k = var_i + var_j var_l = 24 var_m = 24 var_n = 0.25 var_o = var_m * var_n var_p = 6 var_q = var_o + var_p var_r = var_l - var_q var_s = 24 var_t = 0.25 var_u = var_s * var_t var_v = var_r - var_u list_b= [] if "/" in str(var_v): var_v = eval(str(var_v)) list_b.append(var_v) if "/" in str(var_k): var_k = eval(str(var_k)) list_b.append(var_k) if "/" in str(var_f): var_f = eval(str(var_f)) list_b.append(var_f) list_b.reverse() var_w = 1 list_c=list_b.copy() list_c.sort() var_x = list_c[-var_w] var_y = list_b.index(var_x)+1 var_z = list_a[var_y-1] print(var_z)
Geometry
You have an aquarium in the shape of a cube with one corner measuring 20 centimeters (cm). What is the surface area of this aquarium in square centimeters (cm2)?
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))
Correspondence
There are four-digit numbers with 2 in the thousands digit which are divisible by 12. How many of these four-digit numbers are there?
83
2 1000 [OP_MUL] 2 1000 [OP_MUL] 999 [OP_ADD] 1 [OP_LIST_ARANGE] 12 [OP_LIST_DIVISIBLE] [OP_LIST_LEN]
var_a = 2 var_b = 1000 var_c = var_a * var_b var_d = 2 var_e = 1000 var_f = var_d * var_e var_g = 999 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 = 12 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))
Arithmetic calculation
You are trying to find a two-digit number that is divisible by 3 and 4 and that has a remainder of 4 when divided by 5. What is the largest two-digit number you can make?
84
10 99 1 [OP_LIST_ARANGE] 3 4 [OP_LCM] [OP_LIST_DIVISIBLE] 5 4 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX]
var_a = 10 var_b = 99 var_c = 1 list_a = [i for i in range(var_a, var_b + 1, var_c)] var_d = 3 var_e = 4 var_f = var_e * var_d / math.gcd(int(var_e), int(var_d)) list_b = [] var_f = int(var_f) for i in list_a: i = int(i) if i % var_f == 0: list_b.append(i) var_g = 5 var_h = 4 list_c = [] var_g = int(var_g) var_h = int(var_h) if var_h < 0: var_h = var_h + var_g for i in list_b: i = int(i) if i%var_g == var_h: list_c.append(i) var_i = 1 list_d=list_c.copy() list_d.sort() var_j = list_d[-var_i] print(int(var_j))
Comparison
Jimin received box A and a box B that was heavier than box A. When he wants to open a heavy box first, which box is to open first?
B
[OP_LIST_SOL] A B [OP_LIST_EOL] [OP_LIST_SOL] A B < [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] 1 [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 = 'A' var_d = 'B' var_e = '<' list_b= [] 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) if "/" in str(var_c): var_c = eval(str(var_c)) list_b.append(var_c) list_b.reverse() global item_name_index_dict items_name_list = list_a.copy() conditions = [] condition_list = list_b.copy() temp_stack = [] for index_, cond_ in enumerate(map(str, condition_list)): if cond_ in ("<", ">", "="): operand_right = temp_stack.pop() operand_left = temp_stack.pop() if cond_ == "=": cond_ = "==" conditions.append(f"{operand_left} {cond_} {operand_right}") else: if not cond_.isdigit(): cond_ = "{" + cond_ + "}" temp_stack.append(cond_) item_name_index_dict = {} for perm in itertools.permutations(range(1, len(items_name_list) + 1)): item_name_index_dict = dict(zip(items_name_list, perm)) formatted_conditions = \ [condition.format_map(item_name_index_dict) for condition in conditions] if all(map(eval, formatted_conditions)): break list_c = list(item_name_index_dict.keys()) list_c.sort(key=item_name_index_dict.get, reverse=True) var_f = 1 var_g = list_c[var_f-1] print(var_g)
Correspondence
A and B are single digit numbers. If A4461B is a multiple of 72, find the sum of A and B.
12
A4461B [OP_GEN_POSSIBLE_LIST] 72 [OP_LIST_DIVISIBLE] A4461B A [OP_LIST_FIND_UNK] A4461B B [OP_LIST_FIND_UNK] [OP_ADD]
var_a = 'A4461B' ans_dict = dict() var_a = str(var_a) list_a = [] variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']) for v in set(var_a): if v in variable_candi: ans_dict[v] = 0 candi = list(itertools.product('0123456789', repeat=len(ans_dict))) for c in candi: temp = var_a for i, (k, _) in enumerate(ans_dict.items()): temp = temp.replace(k, str(c[i])) if len(var_a) == len(str(int(temp))): new_elem = int(temp) list_a.append(new_elem) var_b = 72 list_b = [] var_b = int(var_b) for i in list_a: i = int(i) if i % var_b == 0: list_b.append(i) var_c = 'A4461B' var_d = 'A' var_c = str(var_c) var_d = str(var_d) unk_idx = var_c.index(var_d) var_e = 0 for elem in list_b: elem = str(elem) var_e = int(elem[unk_idx]) var_f = 'A4461B' var_g = 'B' var_f = str(var_f) var_g = str(var_g) unk_idx = var_f.index(var_g) var_h = 0 for elem in list_b: elem = str(elem) var_h = int(elem[unk_idx]) var_i = var_e + var_h print(int(var_i))
Arithmetic calculation
Jungkook went to the army at the age of 16, his mother was 46 at the time. How many years ago was Jungkook's age divided by his mother's age equal to 4?
6
16 4 [OP_MUL] 46 [OP_SUB] 4 1 [OP_SUB] [OP_DIV]
var_a = 16 var_b = 4 var_c = var_a * var_b var_d = 46 var_e = var_c - var_d var_f = 4 var_g = 1 var_h = var_f - var_g var_i = var_e / var_h print(int(var_i))
Geometry
A square has sides of 8 centimeters (cm), and the other one has sides of 10 centimeters (cm). Find the sum of the areas of the two squares.
164
8 2 [OP_POW] 10 2 [OP_POW] [OP_ADD]
var_a = 8 var_b = 2 var_c = var_a ** var_b var_d = 10 var_e = 2 var_f = var_d ** var_e var_g = var_c + var_f print(int(var_g))
Arithmetic calculation
In the running competition, the runners crossed the finish line in 11.4 seconds, 15.553 seconds, 22.6 seconds, 124 seconds, and 166 seconds in order. What is the difference between the fastest and slowest runners?
154.6
[OP_LIST_SOL] 11.4 15.553 22.6 124 166 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] [OP_ABS]
var_a = 11.4 var_b = 15.553 var_c = 22.6 var_d = 124 var_e = 166 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 var_k = abs(var_j) print('{:.2f}'.format(round(var_k+1e-10,2)))
Geometry
There is a rectangular iron plate with a width of 500 centimeters (cm) and a length of 800 centimeters (cm). What is the area in square meters (m2) of this iron plate?
40
500 100 [OP_DIV] 800 100 [OP_DIV] [OP_MUL]
var_a = 500 var_b = 100 var_c = var_a / var_b var_d = 800 var_e = 100 var_f = var_d / var_e var_g = var_c * var_f print(int(var_g))
Correspondence
There are apples and pears harvested from the orchard. The sum of the number of apples and pears is 913 and the number of apples is 514. Find the difference between the number of apples and pears.
115
514 913 514 [OP_SUB] [OP_SUB]
var_a = 514 var_b = 913 var_c = 514 var_d = var_b - var_c var_e = var_a - var_d print(int(var_e))
Correspondence
When 2×B+B=12, AD=5, CB=5, D+C=12, what is A?
8
12 2×B+B=12 B [OP_NUM_UNK_SOLVER] 5 [OP_ADD] [OP_SUB] 5 [OP_ADD]
var_a = 12 var_b = '2×B+B=12' var_c = 'B' ans_dict = dict() var_b = var_b.replace('×','*') var_b = var_b.replace('x','*') var_b = var_b.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_b): if v in variable_candi: ans_dict[v] = 0 candidate_num = [i for i in range(51)] candi = list(itertools.product(candidate_num, repeat=len(ans_dict))) for c in candi: temp = var_b 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)): if term_list[i] == '': new_eq += str(term_list[i])+op_list[i] else: new_eq += str(int(term_list[i]))+op_list[i] new_eq += str(int(term_list[-1])) new_eq=new_eq.replace('=', '==') new_eq=new_eq.replace('>==', '>=') new_eq=new_eq.replace('<==', '<=') eval_result = False try: if '=' in new_eq and '>' not in new_eq and '<' not in new_eq: new_eq=new_eq.replace('==','=') new_eq=new_eq.replace('>','') new_eq=new_eq.replace('<','') new_eq=new_eq.split('=') for i in range(len(new_eq)-1): eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1])) if not eval_result: break else: eval_result = eval(new_eq) except: eval_result = False pass if eval_result: for i, (k, _) in enumerate(ans_dict.items()): ans_dict[k] = int(c[i]) var_d = ans_dict[var_c] var_e = 5 var_f = var_d + var_e var_g = var_a - var_f var_h = 5 var_i = var_g + var_h print(int(var_i))
Arithmetic calculation
You want to distribute 67 candies to students. Each student took 4 candies, so there are 3 candies left. How many students do you have?
16
67 3 [OP_SUB] 4 [OP_DIV]
var_a = 67 var_b = 3 var_c = var_a - var_b var_d = 4 var_e = var_c / var_d print(int(var_e))
Comparison
How many numbers greater than 1.1 are there in 1.4, 9/10, 1.2, 0.5, and 13/10?
3
[OP_LIST_SOL] 1.4 9/10 1.2 0.5 13/10 [OP_LIST_EOL] 1.1 [OP_LIST_MORE] [OP_LIST_LEN]
var_a = 1.4 var_b = 0.9 var_c = 1.2 var_d = 0.5 var_e = 1.3 list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = 1.1 list_b = [] for i in list_a: if i > var_f: list_b.append(i) var_g = len(list_b) print(int(var_g))
Geometry
I made a square by arranging Go stones regularly without any gaps. If the number of Go stones on the perimeter is 84, how many Go stones are on one outermost side?
22
84 4 [OP_SUB] 4 [OP_DIV] 2 [OP_ADD]
var_a = 84 var_b = 4 var_c = var_a - var_b var_d = 4 var_e = var_c / var_d var_f = 2 var_g = var_e + var_f print(int(var_g))
Geometry
What is the volume of a rectangular parallelepiped that is 15 centimeters (cm) wide, 6 centimeters (cm) long, and 4 centimeters (cm) high?
360
15 6 [OP_MUL] 4 [OP_MUL]
var_a = 15 var_b = 6 var_c = var_a * var_b var_d = 4 var_e = var_c * var_d print(int(var_e))
Arithmetic calculation
Thirty students are standing in a line on the playground. If the distance between students is 3 meters (m), find what the distance of the first student and the last student is.
87
3 30 1 [OP_SUB] [OP_MUL]
var_a = 3 var_b = 30 var_c = 1 var_d = var_b - var_c var_e = var_a * var_d print(int(var_e))
Geometry
A certain cuboid has a volume of 28/3 cubic centimeters (cm3). If water is poured into this cuboid at a rate of 14/5 milliliters (ml) per second, find how many seconds it will take for the cube to be full.
3.33
28/3 14/5 [OP_DIV]
var_a = 9.333333333333334 var_b = 2.8 var_c = var_a / var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Arithmetic calculation
After putting 6 apples each in a small box weighing 220 grams (g), and then putting 9 of these small boxes in a large box weighing 250 grams (g), the result was 13.3 kilograms (kg). How many grams (g) does one apple weigh? (However, each apple weighs the same.)
205
13.3 1000 [OP_MUL] 250 [OP_SUB] 220 9 [OP_MUL] [OP_SUB] 6 9 [OP_MUL] [OP_DIV]
var_a = 13.3 var_b = 1000 var_c = var_a * var_b var_d = 250 var_e = var_c - var_d var_f = 220 var_g = 9 var_h = var_f * var_g var_i = var_e - var_h var_j = 6 var_k = 9 var_l = var_j * var_k var_m = var_i / var_l print(int(var_m))
Comparison
Yuna is the 5th one having the most pencils in the class, and Eunji is the next most. How many pencils does Eunji have?
6
5 1 [OP_ADD]
var_a = 5 var_b = 1 var_c = var_a + var_b print(int(var_c))
Correspondence
A is a single-digit number. Find A from the single-digit numbers' multiplication equation A×A×A=21A.
6
A×A×A=21A A [OP_DIGIT_UNK_SOLVER]
var_a = 'A×A×A=21A' 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
Given that the equation of 37 is divided by 8, the remainder is B and the quotient is A. Find the right value for B.
5
37 8 [OP_MOD]
var_a = 37 var_b = 8 var_c = var_a % var_b print(int(var_c))
Geometry
How many edges does a regular dodecahedron have?
30
30
var_a = 30 print(int(var_a))
Geometry
One wall of the warehouse is 6 meters (m) wide and 4 meters (m) long. How many tiles are needed if you attach rectangular tiles measuring 60 centimeters (cm) wide and 20 centimeters (cm) tall on this wall without overlapping any gaps?
200
6 100 [OP_MUL] 4 100 [OP_MUL] [OP_MUL] 60 20 [OP_MUL] [OP_DIV]
var_a = 6 var_b = 100 var_c = var_a * var_b var_d = 4 var_e = 100 var_f = var_d * var_e var_g = var_c * var_f var_h = 60 var_i = 20 var_j = var_h * var_i var_k = var_g / var_j print(int(var_k))
Arithmetic calculation
Five baskets contain 5 persimmons, and another basket contains 8 persimmons. How many persimmons are in all 6 baskets?
33
5 5 [OP_MUL] 1 8 [OP_MUL] [OP_ADD]
var_a = 5 var_b = 5 var_c = var_a * var_b var_d = 1 var_e = 8 var_f = var_d * var_e var_g = var_c + var_f print(int(var_g))
Arithmetic calculation
The older brother gave the younger brother pocket money, and the older brother got 360 won more than the younger brother. If the older brother had 2800 won and the younger brother had 1500 won, how much money would the older brother give to the younger brother?
470
2800 1500 [OP_SUB] 360 [OP_SUB] 2 [OP_DIV]
var_a = 2800 var_b = 1500 var_c = var_a - var_b var_d = 360 var_e = var_c - var_d var_f = 2 var_g = var_e / var_f print(int(var_g))
Geometry
How many centimeters (cm) is one edge of a cube with a volume of 2744 cubic centimeters (cm3)?
14
2744 1/3 [OP_POW]
var_a = 2744 var_b = 0.3333333333333333 var_c = var_a ** var_b print(int(eval('{:.2f}'.format(round(var_c+1e-10,2)))))
Geometry
The length of the perimeter of a rectangle with a length of 10 centimeters (cm) is equal to the sum of the lengths of the three sides of an equilateral triangle with a hypotenuse of length 16 centimeters (cm). What is the width of this rectangle in centimeters (cm)?
14
16 3 [OP_MUL] 2 [OP_DIV] 10 [OP_SUB]
var_a = 16 var_b = 3 var_c = var_a * var_b var_d = 2 var_e = var_c / var_d var_f = 10 var_g = var_e - var_f print(int(var_g))
Correspondence
When you add 14 to a particular number, you get 56. What is the result when that particular number is multiplied by 3?
126
56 14 [OP_SUB] 3 [OP_MUL]
var_a = 56 var_b = 14 var_c = var_a - var_b var_d = 3 var_e = var_c * var_d print(int(var_e))
Arithmetic calculation
The sum of 4 consecutive even numbers is 92. Write the largest of these four numbers.
26
92 4 [OP_DIV] 4 2 [OP_FDIV] 2 [OP_MUL] [OP_ADD] 1 [OP_SUB]
var_a = 92 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 print(int(var_k))
Geometry
There is a nonagon-shaped piece of land. If you divide a land by drawing a line from one vertex to a non-neighboring vertex, how many lands is it divided into?
7
9 3 [OP_SUB] 1 [OP_ADD]
var_a = 9 var_b = 3 var_c = var_a - var_b var_d = 1 var_e = var_c + var_d print(int(var_e))
Arithmetic calculation
Il-Woong is trying to find the larger of the two pages of the book he is looking at. If the sum of the two pages is 125, what is the answer?
63
125 2 [OP_FDIV] 1 [OP_ADD]
var_a = 125 var_b = 2 var_c = var_a // var_b var_d = 1 var_e = var_c + var_d print(int(var_e))
Arithmetic calculation
The clothing store sold 3/5 of the T-shirts that were left from yesterday's sale this morning. In the afternoon, we sold 180 T-shirts in total, including surplus T-shirts of this morning and new T-shirts. If the number of T-shirts sold in the morning is equal to the number of T-shirts sold in the afternoon, how many T-shirts were left after selling yesterday?
300
180 3/5 [OP_DIV]
var_a = 180 var_b = 0.6 var_c = var_a / var_b print(int(var_c))
Possibility
Round up the largest five-digit number you can make by using the five number cards 0, 1, 5, 7, and 9 once to the hundredth digit.
97600
[OP_LIST_SOL] 0 1 5 7 9 [OP_LIST_EOL] 5 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 3 [OP_CEIL]
var_a = 0 var_b = 1 var_c = 5 var_d = 7 var_e = 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 = 5 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 = 3 var_j=int(((var_h+9*10**(var_i-2))//(10**(var_i-1)))*10**(var_i-1)) print(int(var_j))
Correspondence
The quotient of a number divided by 7 is 12 and the remainder is 4. If this number is divided by 3, what is the quotient?
29
7 12 [OP_MUL] 4 [OP_ADD] 3 [OP_FDIV]
var_a = 7 var_b = 12 var_c = var_a * var_b var_d = 4 var_e = var_c + var_d var_f = 3 var_g = var_e // var_f print(int(var_g))
Possibility
There are two tops in Minhyung's closet. If he bought 4 more today, how many cases of Minhyung choosing the top to wear tomorrow are there?
6
2 4 [OP_ADD] 1 [OP_COMB]
var_a = 2 var_b = 4 var_c = var_a + var_b var_d = 1 var_e = 1 var_c = int(var_c) var_d = int(var_d) for i, elem in enumerate(range(var_d)): var_e = var_e * (var_c-i) for i, elem in enumerate(range(var_d)): var_e = var_e / (i+1) print(int(var_e))
Arithmetic calculation
Find the product of the two odd numbers that are not greater than 9 with the greatest difference.
9
0 9 [OP_LIST_ODD] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_MUL]
var_a = 0 var_b = 9 list_a = [] if var_a%2==0: for i in range(var_a+1, var_b+1, 2): list_a.append(i) else: for i in range(var_a, var_b+1, 2): list_a.append(i) var_c = 1 list_b=list_a.copy() list_b.sort() var_d = list_b[-var_c] var_e = 1 list_c=list_a.copy() list_c.sort() var_f = list_c[var_e-1] var_g = var_d * var_f print(int(var_g))
Arithmetic calculation
There are five times as many chickens as ducks, and there are 12 more ducks than rabbits. If there are 4 rabbits, how many total number of chickens, ducks and rabbits are there?
100
4 4 12 [OP_ADD] [OP_ADD] 5 4 12 [OP_ADD] [OP_MUL] [OP_ADD]
var_a = 4 var_b = 4 var_c = 12 var_d = var_b + var_c var_e = var_a + var_d var_f = 5 var_g = 4 var_h = 12 var_i = var_g + var_h var_j = var_f * var_i var_k = var_e + var_j print(int(var_k))
Arithmetic calculation
Dong-hoon and Yeon-jeong started at the same place at the same time on a playground with a circumference of 3 km (km) and walked in opposite directions. When Donghun walks at a speed of 100 meters per minute (m) and Yeonjeong walks at a speed of 150 meters per minute (m), find how many minutes later Donghun and Yeonjeong meet again for the first time.
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
On the way from the house to the destination, Youngha took a bus for 3/8 of the total, took a taxi for the remaining 1/3, and rode a bicycle for the remaining 4/5, so the remaining distance was 1 kilometer (km) was 200 meters (m). At this time, how many meters is the distance from Youngha's house to the destination?
14400
1 1000 [OP_MUL] 200 [OP_ADD] 1 4/5 [OP_SUB] [OP_DIV] 1 1/3 [OP_SUB] [OP_DIV] 1 3/8 [OP_SUB] [OP_DIV]
var_a = 1 var_b = 1000 var_c = var_a * var_b var_d = 200 var_e = var_c + var_d var_f = 1 var_g = 0.8 var_h = var_f - var_g var_i = var_e / var_h var_j = 1 var_k = 0.3333333333333333 var_l = var_j - var_k var_m = var_i / var_l var_n = 1 var_o = 0.375 var_p = var_n - var_o var_q = var_m / var_p print(int(var_q))
Arithmetic calculation
Each box contains 9 notebooks. If there are 27 notebooks in total, how many boxes are there?
3
27 9 [OP_FDIV]
var_a = 27 var_b = 9 var_c = var_a // var_b print(int(var_c))
Geometry
You bought a new tank from the aquarium, and this tank is in the shape of a cuboid measuring 20 meters (m) long by 12 meters (m) wide and 2 meters (m) deep. The tank is made of glass on all sides except for the top. Find the area in square meters (m2) of all the glass parts.
368
20 12 [OP_MUL] 20 2 [OP_MUL] 2 [OP_MUL] [OP_ADD] 12 2 [OP_MUL] 2 [OP_MUL] [OP_ADD]
var_a = 20 var_b = 12 var_c = var_a * var_b var_d = 20 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 = 12 var_k = 2 var_l = var_j * var_k var_m = 2 var_n = var_l * var_m var_o = var_i + var_n print(int(var_o))
Arithmetic calculation
There are 30 students in Yujeong's class. The average English score of 26 of them is 82 points. If the English scores of the other four students are 90, 85, 88, and 80, respectively, find the answer what is the average English score of Yujeong's class including the decimal point.
82.5
26 82 [OP_MUL] 90 [OP_ADD] 85 [OP_ADD] 88 [OP_ADD] 80 [OP_ADD] 30 [OP_DIV]
var_a = 26 var_b = 82 var_c = var_a * var_b var_d = 90 var_e = var_c + var_d var_f = 85 var_g = var_e + var_f var_h = 88 var_i = var_g + var_h var_j = 80 var_k = var_i + var_j var_l = 30 var_m = var_k / var_l print('{:.2f}'.format(round(var_m+1e-10,2)))
Correspondence
A certain number equals 5.46 minus 3.97. What is the value of adding 5.46 to the certain number?
6.95
5.46 5.46 3.97 [OP_SUB] [OP_ADD]
var_a = 5.46 var_b = 5.46 var_c = 3.97 var_d = var_b - var_c var_e = var_a + var_d print('{:.2f}'.format(round(var_e+1e-10,2)))
Correspondence
Seunghyo received 426 milliliters (ml) of medicine from the hospital. The doctor prescribed to take 0.06 of the total medicine per day. How many milliliters (ml) should Seunghyo take?
25.56
426 0.06 [OP_MUL]
var_a = 426 var_b = 0.06 var_c = var_a * var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Possibility
Find the sum of the four-digit numbers formed by using 2, 4, 5, and 3 once each.
93324
[OP_LIST_SOL] 2 4 5 3 [OP_LIST_EOL] 4 [OP_LIST_GET_PERM] [OP_LIST_SUM]
var_a = 2 var_b = 4 var_c = 5 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 = 4 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_e)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] list_b = [float(i) for i in list_b] var_f = sum(list_b) print(int(var_f))
Arithmetic calculation
254 students are going to be assigned to several buses. If there are 30 people on each bus and there are no seats left, how many more students are needed?
16
30 254 30 [OP_MOD] [OP_SUB]
var_a = 30 var_b = 254 var_c = 30 var_d = var_b % var_c var_e = var_a - var_d print(int(var_e))
Arithmetic calculation
In Ilwoong's drive, there are folders numbered 1 to 25, and each folder has 10 subfolders. If there are 8 files in each subfolder, how many files are there in Ilwoong's drive?
2000
25 10 [OP_MUL] 8 [OP_MUL]
var_a = 25 var_b = 10 var_c = var_a * var_b var_d = 8 var_e = var_c * var_d print(int(var_e))
Possibility
Five rabbits are going to have a picnic at the lake. In this case, if there are 2 lakes, how many ways can a rabbit choose a lake?
32
2 5 [OP_POW]
var_a = 2 var_b = 5 var_c = var_a ** var_b print(int(var_c))
Correspondence
Sang-jun has 10 more books on economics than a quarter of his total books, 5 fewer books on social studies than 3/5 of the rest, and 12 books on science. If Sang-jun has 13 books that are not economics, social studies, or science, how many books does Sang-jun have in total?
80
13 12 [OP_ADD] 5 [OP_SUB] 1 3/5 [OP_SUB] [OP_DIV] 10 [OP_ADD] 1 1 4 [OP_DIV] [OP_SUB] [OP_DIV]
var_a = 13 var_b = 12 var_c = var_a + var_b var_d = 5 var_e = var_c - var_d var_f = 1 var_g = 0.6 var_h = var_f - var_g var_i = var_e / var_h var_j = 10 var_k = var_i + var_j var_l = 1 var_m = 1 var_n = 4 var_o = var_m / var_n var_p = var_l - var_o var_q = var_k / var_p print(int(var_q))
Arithmetic calculation
There are 2 machines in the doll factory. (A) machine makes 256 dolls in 4 hours, and (B) machine makes 111 dolls in 3 hours. How many dolls can you make if you run (A) machine and (B) together for 3 hours at the same speed?
303
256 3 4 [OP_DIV] [OP_MUL] 111 [OP_ADD]
var_a = 256 var_b = 3 var_c = 4 var_d = var_b / var_c var_e = var_a * var_d var_f = 111 var_g = var_e + var_f print(int(var_g))
Possibility
You want to create a two-digit number by selecting two different numbers from 7, 4, 0, 3, and 5. Find the sum of the third largest number and the third smallest number possible.
108
[OP_LIST_SOL] 7 4 0 3 5 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 3 [OP_LIST_MAX] 3 [OP_LIST_MIN] [OP_ADD]
var_a = 7 var_b = 4 var_c = 0 var_d = 3 var_e = 5 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 = 3 list_c=list_b.copy() list_c.sort() var_h = list_c[-var_g] var_i = 3 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))
Arithmetic calculation
There is a box of 16 dumbbells weighing 17.88 kilograms (kg). If the empty box weighs 0.6 kilograms (kg) and all dumbbells weigh the same, how many kilograms (kg) are 7 dumbbells?
7.56
17.88 0.6 [OP_SUB] 16 [OP_DIV] 7 [OP_MUL]
var_a = 17.88 var_b = 0.6 var_c = var_a - var_b var_d = 16 var_e = var_c / var_d var_f = 7 var_g = var_e * var_f print('{:.2f}'.format(round(var_g+1e-10,2)))
Geometry
Find the difference between the area of a rectangle whose sum of its sides is 38 centimeters (cm) and its width is 15 centimeters (cm) and the rectangle whose sum of its sides is 36 centimeters (cm).
21
36 4 [OP_DIV] 2 [OP_POW] 38 2 [OP_DIV] 15 [OP_SUB] 15 [OP_MUL] [OP_SUB] [OP_ABS]
var_a = 36 var_b = 4 var_c = var_a / var_b var_d = 2 var_e = var_c ** var_d var_f = 38 var_g = 2 var_h = var_f / var_g var_i = 15 var_j = var_h - var_i var_k = 15 var_l = var_j * var_k var_m = var_e - var_l var_n = abs(var_m) print(int(var_n))
Arithmetic calculation
In a toy factory, machine A takes 3 hours to make 1 toy, and machine B takes 5 hours to make 1 toy. Find the time it took to make 16 toys with the two machines.
30
1 16 [OP_MUL] 1 5 [OP_DIV] 1 3 [OP_DIV] [OP_ADD] [OP_DIV]
var_a = 1 var_b = 16 var_c = var_a * var_b var_d = 1 var_e = 5 var_f = var_d / var_e var_g = 1 var_h = 3 var_i = var_g / var_h var_j = var_f + var_i var_k = var_c / var_j print(int(var_k))
Arithmetic calculation
There are three schools A, B and C. The sum of the students in schools A and C is 210. If the number of students in school A is 4 times the number of students in school B, and the number of students in school C is 3 times the number of students in school B, what is the number of students in school B?
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
The distance from Jimin's house to the school is 2 kilometers (km) and 280 meters (m), and the distance to the hospital is 4125 meters (m). Which is farther from Jimin's house, the hospital or the school?
hospital
[OP_LIST_SOL] school hospital [OP_LIST_EOL] [OP_LIST_SOL] 2 1000 [OP_MUL] 280 [OP_ADD] 4125 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'school' var_b = 'hospital' list_a= [] if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_c = 2 var_d = 1000 var_e = var_c * var_d var_f = 280 var_g = var_e + var_f var_h = 4125 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] var_k = list_b.index(var_j)+1 var_l = list_a[var_k-1] print(var_l)
Correspondence
If you divide a number by 5 and 6, you divide it and if you divide by 7, the rest is 6. Find the largest four-digit number in any number.
9960
1000 9999 1 [OP_LIST_ARANGE] 5 6 [OP_LCM] [OP_LIST_DIVISIBLE] 7 6 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX]
var_a = 1000 var_b = 9999 var_c = 1 list_a = [i for i in range(var_a, var_b + 1, var_c)] var_d = 5 var_e = 6 var_f = var_e * var_d / math.gcd(int(var_e), int(var_d)) list_b = [] var_f = int(var_f) for i in list_a: i = int(i) if i % var_f == 0: list_b.append(i) var_g = 7 var_h = 6 list_c = [] var_g = int(var_g) var_h = int(var_h) if var_h < 0: var_h = var_h + var_g for i in list_b: i = int(i) if i%var_g == var_h: list_c.append(i) var_i = 1 list_d=list_c.copy() list_d.sort() var_j = list_d[-var_i] print(int(var_j))
Comparison
A bakery sold 40 boxes of cookies maintaining 28 for each, and 65 boxes of macarons that have 15 for each. Which item was sold more: cookies or macarons?
cookies
[OP_LIST_SOL] cookies macarons [OP_LIST_EOL] [OP_LIST_SOL] 28 40 [OP_MUL] 15 65 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'cookies' var_b = 'macarons' 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 = 28 var_d = 40 var_e = var_c * var_d var_f = 15 var_g = 65 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
Hoseok's average score in Korean, English, and Science is 89. If Hoseok's average score increases by 1 after taking the Social studies test, what is the score of Social studies?
93
89 1 [OP_ADD] 4 [OP_MUL] 89 3 [OP_MUL] [OP_SUB]
var_a = 89 var_b = 1 var_c = var_a + var_b var_d = 4 var_e = var_c * var_d var_f = 89 var_g = 3 var_h = var_f * var_g var_i = var_e - var_h print(int(var_i))
Geometry
Jeong-ho wants to collect lots of square-shaped papers with sides measuring 24 centimeters (cm). How many pieces can you make by cutting a piece of drawing paper that is 172 centimeters (cm) wide and 295 centimeters (cm) long?
84
172 24 [OP_FDIV] 295 24 [OP_FDIV] [OP_MUL]
var_a = 172 var_b = 24 var_c = var_a // var_b var_d = 295 var_e = 24 var_f = var_d // var_e var_g = var_c * var_f print(int(var_g))
Comparison
Seokjin went to the swimming competition and came in 8th. What is the number of people who came in faster than Seokjin?
7
8 1 [OP_SUB]
var_a = 8 var_b = 1 var_c = var_a - var_b print(int(var_c))
Correspondence
Find the smallest natural number A that satisfies the equation 360÷(A×A×A/B)=5.
6
360÷(A×A×A/B)=5 A [OP_NUM_UNK_SOLVER] 1 [OP_LIST_MIN]
var_a = '360÷(A×A×A/B)=5' 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] = [] candidate_num = [i for i in range(51)] candi = list(itertools.product(candidate_num, 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)): if term_list[i] == '': new_eq += str(term_list[i])+op_list[i] else: new_eq += str(int(term_list[i]))+op_list[i] new_eq += str(int(term_list[-1])) new_eq=new_eq.replace('=', '==') new_eq=new_eq.replace('>==', '>=') new_eq=new_eq.replace('<==', '<=') eval_result = False try: if '=' in new_eq and '>' not in new_eq and '<' not in new_eq: new_eq=new_eq.replace('==','=') new_eq=new_eq.replace('>','') new_eq=new_eq.replace('<','') new_eq=new_eq.split('=') for i in range(len(new_eq)-1): eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1])) if not eval_result: break else: eval_result = eval(new_eq) except: eval_result = False 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 = 1 list_b=list_a.copy() list_b.sort() var_d = list_b[var_c-1] print(int(var_d))
Comparison
Yuna was 7th in line at the mart, and Yoojeong was right behind her. What number of position is Yoojung standing?
8
7 1 [OP_ADD]
var_a = 7 var_b = 1 var_c = var_a + var_b print(int(var_c))
Correspondence
If the two decimal numbers 12.4A is less than 12.45, how many digits can fit in A?
5
12.4A<12.45 A [OP_DIGIT_UNK_SOLVER] [OP_LIST_LEN]
var_a = '12.4A<12.45' 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))
Arithmetic calculation
A red paper tape is 20 centimeters (cm) long and a purple paper tape is 16 centimeters (cm) long. Find out the average length of the two paper tapes in centimeters (cm).
18
20 16 [OP_ADD] 2 [OP_DIV]
var_a = 20 var_b = 16 var_c = var_a + var_b var_d = 2 var_e = var_c / var_d print(int(var_e))
Geometry
You are going to make a square shape with colored tape that is 100 centimeters (cm) long. How many centimeters (cm) should each side be?
25
100 4 [OP_DIV]
var_a = 100 var_b = 4 var_c = var_a / var_b print(int(var_c))
Correspondence
I used the same length of ribbon while wrapping 7 presents. The length of the ribbon used is 50.68 centimeters (cm). Find how many centimeters (cm) of ribbon were used to wrap one gift.
7.24
50.68 7 [OP_DIV]
var_a = 50.68 var_b = 7 var_c = var_a / var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Arithmetic calculation
Yuna's average score in Korean and English is 92 points. If Yuna's overall average score increases by 2 points after taking the math test, what is Yuna's math score?
98
92 2 [OP_ADD] 3 [OP_MUL] 92 2 [OP_MUL] [OP_SUB]
var_a = 92 var_b = 2 var_c = var_a + var_b var_d = 3 var_e = var_c * var_d var_f = 92 var_g = 2 var_h = var_f * var_g var_i = var_e - var_h print(int(var_i))
Arithmetic calculation
One dozen of pencils is 12 pencils. 11 students took 3 pencils each from 3 dozen pencils. How many pencils are left after students took them?
3
12 3 [OP_MUL] 11 3 [OP_MUL] [OP_SUB]
var_a = 12 var_b = 3 var_c = var_a * var_b var_d = 11 var_e = 3 var_f = var_d * var_e var_g = var_c - var_f print(int(var_g))