category
stringclasses
5 values
question
stringlengths
20
555
answer
stringlengths
1
20
solution_abst
stringlengths
1
287
solution_code
stringlengths
27
5.97k
Geometry
There is a pentagon. What is the sum of the number of edges and the number of vertices?
10
5 5 [OP_ADD]
var_a = 5 var_b = 5 var_c = var_a + var_b print(int(var_c))
Possibility
If you write down all the even numbers up to 100 on a piece of paper, how many times should you write down the number 1?
6
1 100 [OP_LIST_EVEN] [OP_LIST2NUM] [OP_NUM2LIST] 1 [OP_LIST_FIND_NUM]
var_a = 1 var_b = 100 list_a = [] if var_a%2!=0: for i in range(var_a+1, var_b+1, 2): list_a.append(i) else: for i in range(var_a, var_b+1, 2): list_a.append(i) var_c="" for i in list_a: i = str(i) var_c = var_c + i list_b = [] var_c = int(var_c) while var_c//10 > 0: list_b.append(var_c%10) var_c = var_c//10 list_b.append(var_c%10) list_b = list_b[::-1] var_d = 1 var_e = 0 var_d = int(var_d) for i in list_b: i = int(i) if i == var_d: var_e = var_e + 1 print(int(var_e))
Correspondence
When any number is divided by 20, the quotient is 15 and the remainder is 6. What number is it?
306
15 20 [OP_MUL] 6 [OP_ADD]
var_a = 15 var_b = 20 var_c = var_a * var_b var_d = 6 var_e = var_c + var_d print(int(var_e))
Geometry
Twenty-seven dice with each edge of 3 centimeters (cm) are stacked in the shape of a cube. What is the surface area of the stacked cubes in square centimeters (cm2)?
486
3 27 1/3 [OP_POW] [OP_MUL] 2 [OP_POW] 6 [OP_MUL]
var_a = 3 var_b = 27 var_c = 0.3333333333333333 var_d = var_b ** var_c var_e = var_a * var_d var_f = 2 var_g = var_e ** var_f var_h = 6 var_i = var_g * var_h print(int(var_i))
Geometry
There is a square-shaped cookie. When you add up all the sides of this cookie, you get 17.8 centimeters (cm). Find the length of one side of the cookie.
4.45
17.8 4 [OP_DIV]
var_a = 17.8 var_b = 4 var_c = var_a / var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Comparison
Minyoung collected 4 and 9. Yuna collected 5 and 6. Whose sum of numbers is greater?
Minyoung
[OP_LIST_SOL] Minyoung Yuna [OP_LIST_EOL] [OP_LIST_SOL] 4 9 [OP_ADD] 5 6 [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'Minyoung' var_b = 'Yuna' list_a= [] if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_c = 4 var_d = 9 var_e = var_c + var_d var_f = 5 var_g = 6 var_h = var_f + var_g list_b= [] if "/" in str(var_h): var_h = eval(str(var_h)) list_b.append(var_h) if "/" in str(var_e): var_e = eval(str(var_e)) list_b.append(var_e) list_b.reverse() var_i = 1 list_c=list_b.copy() list_c.sort() var_j = list_c[-var_i] var_k = list_b.index(var_j)+1 var_l = list_a[var_k-1] print(var_l)
Arithmetic calculation
Find the sum of the largest and smallest even numbers less than or equal to 49.
50
1 49 [OP_LIST_EVEN] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD]
var_a = 1 var_b = 49 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))
Possibility
When the four numbers 2, 5, 6, and 9 are written on the target board, write the sum of the third largest number and the third smallest number that can be made using three of them.
1221
[OP_LIST_SOL] 2 5 6 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 3 [OP_LIST_MAX] 3 [OP_LIST_MIN] [OP_ADD]
var_a = 2 var_b = 5 var_c = 6 var_d = 9 list_a= [] if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_e = 3 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_e)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] var_f = 3 list_c=list_b.copy() list_c.sort() var_g = list_c[-var_f] var_h = 3 list_d=list_b.copy() list_d.sort() var_i = list_d[var_h-1] var_j = var_g + var_i print(int(var_j))
Arithmetic calculation
The length of the string A is 5 times the length of the string B, and the length of A is 6 times longer than C. If B is 12 meters (m) long, what is the length of the string C in meters (m)?
10
12 5 [OP_MUL] 6 [OP_FDIV]
var_a = 12 var_b = 5 var_c = var_a * var_b var_d = 6 var_e = var_c // var_d print(int(var_e))
Geometry
The cross-section of a sphere with a radius of 4 centimeters (cm) passing through the center of the sphere is a circle. Find the diameter of this circle.
8
4 2 [OP_MUL]
var_a = 4 var_b = 2 var_c = var_a * var_b print(int(var_c))
Possibility
You want to find three-digit numbers that are greater than 550 and less than 850 by using three numbers from 5, 2, 8, and 0. How many three-digit numbers can you think of?
6
[OP_LIST_SOL] 5 2 8 0 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 550 [OP_LIST_MORE] 850 [OP_LIST_LESS] [OP_LIST_LEN]
var_a = 5 var_b = 2 var_c = 8 var_d = 0 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 = 550 list_c = [] for i in list_b: if i > var_f: list_c.append(i) var_g = 850 list_d = [] for i in list_c: if i < var_g: list_d.append(i) var_h = len(list_d) print(int(var_h))
Geometry
The area of a rectangular notebook is 1.77 square centimeters (cm2). If the width is 3 centimeters (cm), how many centimeters (cm) is the length?
0.59
1.77 3 [OP_DIV]
var_a = 1.77 var_b = 3 var_c = var_a / var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Arithmetic calculation
It is said that several 25 centimeters (cm) bars are to be made. If you have a 2 meter (m) 50 centimeters (cm) bar, how many times do you have to cut the bar?
9
2 100 [OP_MUL] 50 [OP_ADD] 25 [OP_DIV] 1 [OP_SUB]
var_a = 2 var_b = 100 var_c = var_a * var_b var_d = 50 var_e = var_c + var_d var_f = 25 var_g = var_e / var_f var_h = 1 var_i = var_g - var_h print(int(var_i))
Comparison
Jungkook collected 6 multiplied by 3, and Yoongi collected 4. Who got the bigger number?
Jungkook
[OP_LIST_SOL] Jungkook Yoongi [OP_LIST_EOL] [OP_LIST_SOL] 6 3 [OP_MUL] 4 [OP_LIST_EOL] 1 [OP_LIST_MAX] [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] var_i = list_b.index(var_h)+1 var_j = list_a[var_i-1] print(var_j)
Comparison
In the jumping rope competition, Jimin placed 6th and Jungkook placed 8th. Taehyung did better than Jungkook but worse than Jimin. What is Taehyung's rank?
7
6 8 [OP_ADD] 2 [OP_FDIV]
var_a = 6 var_b = 8 var_c = var_a + var_b var_d = 2 var_e = var_c // var_d print(int(var_e))
Arithmetic calculation
When a wire was divided by intervals of 120 centimeters (cm), it was split into two parts, with 2.4 centimeters (cm) being left. Find how many centimeters (cm) of wire you'll get if you divide this wire into three parts.
80.8
120 2 [OP_MUL] 2.4 [OP_ADD] 3 [OP_DIV]
var_a = 120 var_b = 2 var_c = var_a * var_b var_d = 2.4 var_e = var_c + var_d var_f = 3 var_g = var_e / var_f print('{:.2f}'.format(round(var_g+1e-10,2)))
Arithmetic calculation
There were 156 Strawberry Flavored Candies and 267 Lemon Flavored Candies in the box. I wrapped 115 of these and gave them to a friend. How many candies do I have left after giving my friend?
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
The length of one edge of a cube is 9 centimeters (cm). From this cube, a small cube with one edge 2 centimeters (cm) long was cut from the vertex. What is the surface area of the remaining part in square centimeters (cm2)?
486
9 9 [OP_MUL] 6 [OP_MUL]
var_a = 9 var_b = 9 var_c = var_a * var_b var_d = 6 var_e = var_c * var_d print(int(var_e))
Arithmetic calculation
There are 48 students in Seokjin's class. One day, there were 37 students who did math homework and 42 students who did Korean homework. If there is no student who has not done both math homework and Korean homework, how many students have done both math homework and Korean homework?
31
37 42 [OP_ADD] 48 [OP_SUB]
var_a = 37 var_b = 42 var_c = var_a + var_b var_d = 48 var_e = var_c - var_d print(int(var_e))
Correspondence
There are multi-colored pens in the stationery store. 3/10 of the pens in the stationery store are red and 1/5 are black. There are 12 red pens in the stationery store. Find how many black pens are in the stationery store.
8
12 3/10 [OP_DIV] 1/5 [OP_MUL]
var_a = 12 var_b = 0.3 var_c = var_a / var_b var_d = 0.2 var_e = var_c * var_d print(int(var_e))
Arithmetic calculation
Yoo Seung's number of marbles is three times that of Han-sol's, and Han-sol's has 15 more marbles than Young-soo's. If the three of them have 165 marbles, how many marbles does Yoo Seung have?
108
165 15 [OP_ADD] 3 1 1 [OP_ADD] [OP_ADD] [OP_DIV] 3 [OP_MUL]
var_a = 165 var_b = 15 var_c = var_a + var_b var_d = 3 var_e = 1 var_f = 1 var_g = var_e + var_f var_h = var_d + var_g var_i = var_c / var_h var_j = 3 var_k = var_i * var_j print(int(var_k))
Comparison
There are three people: Youngseo, Gunuk, and Suhwan. When Youngseo is heavier than Gunwook and Suhwan is heavier than Youngseo, who is the heaviest?
Suhwan
[OP_LIST_SOL] Youngseo Gunuk Suhwan [OP_LIST_EOL] [OP_LIST_SOL] Youngseo Gunuk > Suhwan Youngseo > [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] 1 [OP_LIST_GET]
var_a = 'Youngseo' var_b = 'Gunuk' var_c = 'Suhwan' 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 = 'Youngseo' var_e = 'Gunuk' var_f = '>' var_g = 'Suhwan' var_h = 'Youngseo' 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)
Geometry
Find the area of a rectangle whose width and length differ by 6 centimeters (cm) and whose perimeter is 68 centimeters (cm).
280
68 2 [OP_DIV] 6 [OP_SUB] 2 [OP_DIV] 68 2 [OP_DIV] 6 [OP_SUB] 2 [OP_DIV] 6 [OP_ADD] [OP_MUL]
var_a = 68 var_b = 2 var_c = var_a / var_b var_d = 6 var_e = var_c - var_d var_f = 2 var_g = var_e / var_f var_h = 68 var_i = 2 var_j = var_h / var_i var_k = 6 var_l = var_j - var_k var_m = 2 var_n = var_l / var_m var_o = 6 var_p = var_n + var_o var_q = var_g * var_p print(int(var_q))
Correspondence
Hoseok subtracted 7 from a certain number to get 9. What is the result of multiplying this number by 3?
48
9 7 [OP_ADD] 3 [OP_MUL]
var_a = 9 var_b = 7 var_c = var_a + var_b var_d = 3 var_e = var_c * var_d print(int(var_e))
Possibility
Among Jungkook, Jimin, Yoongi, and Yuna, I'm trying to choose 2 people. How many options are there in total?
6
[OP_LIST_SOL] Jungkook Jimin Yoongi Yuna [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB]
var_a = 'Jungkook' var_b = 'Jimin' var_c = 'Yoongi' var_d = 'Yuna' list_a= [] if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_e = len(list_a) var_f = 2 var_g = 1 var_e = int(var_e) var_f = int(var_f) for i, elem in enumerate(range(var_f)): var_g = var_g * (var_e-i) for i, elem in enumerate(range(var_f)): var_g = var_g / (i+1) print(int(var_g))
Correspondence
You had to subtract 36 from a number, but you mistakenly subtracted 63 and got 8 as an answer. Find the answer to the correct calculation.
35
8 63 [OP_ADD] 36 [OP_SUB]
var_a = 8 var_b = 63 var_c = var_a + var_b var_d = 36 var_e = var_c - var_d print(int(var_e))
Geometry
There is a box in the shape of a cube. If the sum of all the edges of the box is 144 centimeters (cm), how many centimeters (cm) is the length of one edge?
12
144 12 [OP_DIV]
var_a = 144 var_b = 12 var_c = var_a / var_b print(int(var_c))
Arithmetic calculation
If the sum of two consecutive natural numbers is 39, find the smallest of the two natural numbers.
19
39 1 [OP_SUB] 2 [OP_DIV]
var_a = 39 var_b = 1 var_c = var_a - var_b var_d = 2 var_e = var_c / var_d print(int(var_e))
Arithmetic calculation
There are 204 male students and 468 female students in (A) village, 334 male students and 516 female students in (B) village, 427 male students and 458 female students in (C) village, and 549 male students and 239 female students in (D) village. What is the difference between the total number of boys and total number of girls in your town?
167
[OP_LIST_SOL] 204 334 427 549 [OP_LIST_EOL] [OP_LIST_SUM] [OP_LIST_SOL] 468 516 458 239 [OP_LIST_EOL] [OP_LIST_SUM] [OP_SUB] [OP_ABS]
var_a = 204 var_b = 334 var_c = 427 var_d = 549 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() list_a = [float(i) for i in list_a] var_e = sum(list_a) var_f = 468 var_g = 516 var_h = 458 var_i = 239 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) list_b.reverse() list_b = [float(i) for i in list_b] var_j = sum(list_b) var_k = var_e - var_j var_l = abs(var_k) print(int(var_l))
Arithmetic calculation
Jinho went to the stationery store with 2,500 won and bought 5 erasers which cost 120 won each and 3 pencils that cost 350 won each. Find out the remaining money Jinho has after buying erasers and pencils.
850
2500 120 5 [OP_MUL] 350 3 [OP_MUL] [OP_ADD] [OP_SUB]
var_a = 2500 var_b = 120 var_c = 5 var_d = var_b * var_c var_e = 350 var_f = 3 var_g = var_e * var_f var_h = var_d + var_g var_i = var_a - var_h print(int(var_i))
Correspondence
We subtracted 50 from a certain number, divided it by 4, multiplied it by 3, and added 28. If the final result is 73, what is the certain number?
110
73 28 [OP_SUB] 3 [OP_DIV] 4 [OP_MUL] 50 [OP_ADD]
var_a = 73 var_b = 28 var_c = var_a - var_b var_d = 3 var_e = var_c / var_d var_f = 4 var_g = var_e * var_f var_h = 50 var_i = var_g + var_h print(int(var_i))
Possibility
How many ways are there for you to buy 2 fruits out of apples, pears, melons, persimmons, and watermelons at the fruit store?
10
[OP_LIST_SOL] apples pears melons persimmons watermelons [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_COMB]
var_a = 'apples' var_b = 'pears' var_c = 'melons' var_d = 'persimmons' var_e = 'watermelons' list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = len(list_a) var_g = 2 var_h = 1 var_f = int(var_f) var_g = int(var_g) for i, elem in enumerate(range(var_g)): var_h = var_h * (var_f-i) for i, elem in enumerate(range(var_g)): var_h = var_h / (i+1) print(int(var_h))
Correspondence
When 13 is divided by 7, the quotient is 1 and the remainder is A. Find the value of A at this time.
6
13 7 1 [OP_MUL] [OP_SUB]
var_a = 13 var_b = 7 var_c = 1 var_d = var_b * var_c var_e = var_a - var_d print(int(var_e))
Possibility
Find the number of three-digit natural numbers that can be made by drawing three of the number cards 3, 5, 8, and 9.
24
[OP_LIST_SOL] 3 5 8 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] [OP_LIST_LEN]
var_a = 3 var_b = 5 var_c = 8 var_d = 9 list_a= [] if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_e = 3 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_e)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] var_f = len(list_b) print(int(var_f))
Arithmetic calculation
Out of 15 chickens, there are only 3 hens. If there are 4 chicks fewer than the number of roosters, how many chicks are there?
8
15 3 [OP_SUB] 4 [OP_SUB]
var_a = 15 var_b = 3 var_c = var_a - var_b var_d = 4 var_e = var_c - var_d print(int(var_e))
Comparison
Students give their presentations taking turns. If Eunjeong's turn is at the 6th from the last, and the 7 students give presentations ahead of Eunjeong. How many students are there in total?
13
6 7 [OP_ADD]
var_a = 6 var_b = 7 var_c = var_a + var_b print(int(var_c))
Correspondence
When the art teacher distributed 132.6 centimeters (cm) of ribbon tape to the students in equal lengths, each student received 13.26 centimeters (cm). If you give these students equal lengths of string of 0.064 meters (m), how many meters (m) of string will each student receive?
0.64
132.6 13.26 [OP_DIV] 0.064 [OP_MUL]
var_a = 132.6 var_b = 13.26 var_c = var_a / var_b var_d = 0.064 var_e = var_c * var_d print('{:.2f}'.format(round(var_e+1e-10,2)))
Geometry
A pyramid has 14 edges. Find the number of vertices of this pyramid.
8
14 2 [OP_DIV] 1 [OP_ADD]
var_a = 14 var_b = 2 var_c = var_a / var_b var_d = 1 var_e = var_c + var_d print(int(var_e))
Correspondence
I was to subtract 36 from a number, but mistakenly subtracted 63, and got 24 as a result. Find out the right answer to the calculation.
51
24 63 [OP_ADD] 36 [OP_SUB]
var_a = 24 var_b = 63 var_c = var_a + var_b var_d = 36 var_e = var_c - var_d print(int(var_e))
Arithmetic calculation
There are 17 (a) objects and some (b) objects. If you add (a) object and (b) object, there are 35 in total. How many (b) objects do you have?
18
35 17 [OP_SUB]
var_a = 35 var_b = 17 var_c = var_a - var_b print(int(var_c))
Comparison
Each of the three boxes contains 16 pieces of bread A, each weighing 200 grams (g). There are also two boxes containing 12 pieces of bread B, each weighing 250 grams (g). If the empty boxes weigh the same, which bread is contained in one box whose weight is heavier?
A
[OP_LIST_SOL] A B [OP_LIST_EOL] [OP_LIST_SOL] 200 16 3 3 [OP_DIV] [OP_MUL] [OP_MUL] 250 12 2 2 [OP_DIV] [OP_MUL] [OP_MUL] [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 = 200 var_d = 16 var_e = 3 var_f = 3 var_g = var_e / var_f var_h = var_d * var_g var_i = var_c * var_h var_j = 250 var_k = 12 var_l = 2 var_m = 2 var_n = var_l / var_m var_o = var_k * var_n var_p = var_j * var_o list_b= [] if "/" in str(var_p): var_p = eval(str(var_p)) list_b.append(var_p) if "/" in str(var_i): var_i = eval(str(var_i)) list_b.append(var_i) list_b.reverse() var_q = 1 list_c=list_b.copy() list_c.sort() var_r = list_c[-var_q] var_s = list_b.index(var_r)+1 var_t = list_a[var_s-1] print(var_t)
Comparison
Taehyung, Minju, Sangmin, Yoonjung, and Yoojung entered the finish line in that order. Who entered first?
Taehyung
[OP_LIST_SOL] Taehyung Minju Sangmin Yoonjung Yoojung [OP_LIST_EOL] 1 [OP_LIST_GET]
var_a = 'Taehyung' var_b = 'Minju' var_c = 'Sangmin' var_d = 'Yoonjung' var_e = 'Yoojung' list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = 1 var_g = list_a[var_f-1] print(var_g)
Arithmetic calculation
Jungkook wants to equally distribute 15 sheets of colored paper to 3 friends. How many sheets of colored paper do they get each?
5
15 3 [OP_DIV]
var_a = 15 var_b = 3 var_c = var_a / var_b print(int(var_c))
Correspondence
What number is 1/3 when you add -5/12 to it?
0.75
1/3 -5/12 [OP_SUB]
var_a = 0.3333333333333333 var_b = -0.4166666666666667 var_c = var_a - var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Correspondence
Jimin wanted to add a particular number to 34. If the result of dividing 96 by that particular number was 6, find the correct result.
50
34 96 6 [OP_DIV] [OP_ADD]
var_a = 34 var_b = 96 var_c = 6 var_d = var_b / var_c var_e = var_a + var_d print(int(var_e))
Correspondence
6 is a number added 3 to the number. What number is it that is 5 greater than the number?
8
6 3 [OP_SUB] 5 [OP_ADD]
var_a = 6 var_b = 3 var_c = var_a - var_b var_d = 5 var_e = var_c + var_d print(int(var_e))
Arithmetic calculation
In the calculation of subtracting a two-digit number from a four-digit number, I mistook the number in the units place of the four-digit number for 5, and I made an error and understood the two-digit number as 84 because I confused the numbers in the tens place with the units place. The result of this calculation was 1781. If the number in the units place of a four-digit number was originally 9, what would be the correct result?
1821
1781 9 5 [OP_SUB] [OP_ADD] 84 48 [OP_SUB] [OP_ADD]
var_a = 1781 var_b = 9 var_c = 5 var_d = var_b - var_c var_e = var_a + var_d var_f = 84 var_g = 48 var_h = var_f - var_g var_i = var_e + var_h print(int(var_i))
Arithmetic calculation
Jungkook's weight is 154 grams (g) heavier than 54 kilograms (kg). Write Jungkook's weight in kilograms (kg)
54.15
54 154 1000 [OP_DIV] [OP_ADD]
var_a = 54 var_b = 154 var_c = 1000 var_d = var_b / var_c var_e = var_a + var_d print('{:.2f}'.format(round(var_e+1e-10,2)))
Correspondence
You were supposed to subtract 40 from a certain number, but you accidentally added 21 and the result was 52. What is the answer to the corrected calculation?
9
52 21 [OP_SUB] 40 [OP_SUB]
var_a = 52 var_b = 21 var_c = var_a - var_b var_d = 40 var_e = var_c - var_d print(int(var_e))
Geometry
There is a rectangular vacant lot with the width and length of 36 meters (m) and 72 meters (m), respectively. Find the maximum number of boxes that can be stored in this clearing, whose base is a rectangle measuring 3 meters (m) wide and 4 meters (m) long.
216
36 3 [OP_FDIV] 72 4 [OP_FDIV] [OP_MUL]
var_a = 36 var_b = 3 var_c = var_a // var_b var_d = 72 var_e = 4 var_f = var_d // var_e var_g = var_c * var_f print(int(var_g))
Comparison
There are pharmacies every 22.75 meters (m) on one side of the 364 meters (m) long road, and shops every 45.5 meters (m) on the other side. Which are more on this road, pharmacies or shops?
pharmacies
[OP_LIST_SOL] pharmacies shops [OP_LIST_EOL] [OP_LIST_SOL] 364 22.75 [OP_DIV] 364 45.5 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'pharmacies' var_b = 'shops' 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 = 364 var_d = 22.75 var_e = var_c / var_d var_f = 364 var_g = 45.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)
Correspondence
The four arithmetic operations were carried out using only the number 5 up to a certain number. What is the number if you first add 5, then multiply by 5, then subtract 5, then divide by 5 to get 5?
1
5 5 [OP_MUL] 5 [OP_ADD] 5 [OP_DIV] 5 [OP_SUB]
var_a = 5 var_b = 5 var_c = var_a * var_b var_d = 5 var_e = var_c + var_d var_f = 5 var_g = var_e / var_f var_h = 5 var_i = var_g - var_h print(int(var_i))
Arithmetic calculation
The mart sold all 12 boxes of apples in 4 days. If each crate contained 25 apples, find the average number of apples that were sold per day.
75
12 25 [OP_MUL] 4 [OP_DIV]
var_a = 12 var_b = 25 var_c = var_a * var_b var_d = 4 var_e = var_c / var_d print(int(var_e))
Arithmetic calculation
Woojin spends 1/3 of the day sleeping, 3/4 of the remaining time studying, and 1/4 of the rest of the time playing computer games. How many hours does Woojin spend playing computer games in a day?
1
24 1 1/3 [OP_SUB] [OP_MUL] 1 3/4 [OP_SUB] [OP_MUL] 1/4 [OP_MUL]
var_a = 24 var_b = 1 var_c = 0.3333333333333333 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 = 0.25 var_k = var_i * var_j print(int(var_k))
Comparison
Taehee jumped rope 23 times yesterday and 14 times more today. Jihoon jumped rope 35 times yesterday and 19 fewer times today than yesterday. Who skipped more ropes yesterday and today combined?
Taehee
[OP_LIST_SOL] Taehee Jihoon [OP_LIST_EOL] [OP_LIST_SOL] [OP_LIST_SOL] 23 23 14 [OP_LIST_EOL] [OP_LIST_SUM] [OP_LIST_SOL] 35 35 -19 [OP_LIST_EOL] [OP_LIST_SUM] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_POP] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'Taehee' var_b = 'Jihoon' 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 = 23 var_d = 23 var_e = 14 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() list_b = [float(i) for i in list_b] var_f = sum(list_b) var_g = 35 var_h = 35 var_i = -19 list_c= [] if "/" in str(var_i): var_i = eval(str(var_i)) list_c.append(var_i) if "/" in str(var_h): var_h = eval(str(var_h)) list_c.append(var_h) if "/" in str(var_g): var_g = eval(str(var_g)) list_c.append(var_g) list_c.reverse() list_c = [float(i) for i in list_c] var_j = sum(list_c) list_d= [] if "/" in str(var_j): var_j = eval(str(var_j)) list_d.append(var_j) if "/" in str(var_f): var_f = eval(str(var_f)) list_d.append(var_f) list_d.reverse() var_k = 1 list_e=list_d.copy() list_e.sort() var_l = list_e[-var_k] var_m = list_d.index(var_l)+1 var_n = list_a[var_m-1] print(var_n)
Geometry
There is a square piece of land with sides measuring 200 meters (m). What is the area of this land?
40000
200 2 [OP_POW]
var_a = 200 var_b = 2 var_c = var_a ** var_b print(int(var_c))
Possibility
What is the second greatest number with 3 in the tens place using 3 numbers out of 4, 3, 1, 7, and 9?
934
[OP_LIST_SOL] 4 3 1 7 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 10 3 [OP_LIST_SEARCH_FIXED_DIGIT] 2 [OP_LIST_MAX]
var_a = 4 var_b = 3 var_c = 1 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 = 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 = 10 var_h = 3 list_c = [] var_g = int(var_g) var_h = int(var_h) for i in list_b: i = int(i) if (i//var_g)%10 == var_h: list_c.append(i) var_i = 2 list_d=list_c.copy() list_d.sort() var_j = list_d[-var_i] print(int(var_j))
Geometry
The surface area of one cube is 150 square centimeters (cm2). In this case, find the sum of the lengths of all the edges of the cube.
60
150 6 [OP_DIV] 1/2 [OP_POW] 4 3 [OP_MUL] [OP_MUL]
var_a = 150 var_b = 6 var_c = var_a / var_b var_d = 0.5 var_e = var_c ** var_d var_f = 4 var_g = 3 var_h = var_f * var_g var_i = var_e * var_h print(int(var_i))
Comparison
There are five people: A, B, C, D, E, and F. Their average pocket money is 2,300 won, the average of A and B is 3,000 won, the average of B and C is 2,100 won, and the average of C and D is 2,750 won. And A gets 800 won more than B. How much D's pocket money is?
3900
2750 2 [OP_MUL] 2100 2 [OP_MUL] 3000 2 [OP_MUL] 800 [OP_SUB] 2 [OP_DIV] [OP_SUB] [OP_SUB]
var_a = 2750 var_b = 2 var_c = var_a * var_b var_d = 2100 var_e = 2 var_f = var_d * var_e var_g = 3000 var_h = 2 var_i = var_g * var_h var_j = 800 var_k = var_i - var_j var_l = 2 var_m = var_k / var_l var_n = var_f - var_m var_o = var_c - var_n print(int(var_o))
Comparison
The distances from Seungheon's house to the library, park, and clothing store are 1.912 kilometers (km), 876 meters (m), and 1.054 kilometers (km), respectively. Which is the second closest to the house?
clothing
[OP_LIST_SOL] library park clothing [OP_LIST_EOL] [OP_LIST_SOL] 1.912 876 1000 [OP_DIV] 1.054 [OP_LIST_EOL] 2 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'library' var_b = 'park' var_c = 'clothing' 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.912 var_e = 876 var_f = 1000 var_g = var_e / var_f var_h = 1.054 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 = 2 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)
Arithmetic calculation
Which three-digit number is the largest multiple of 6 and multiple of 5 and multiple of 8 and multiple of 9?
720
100 999 1 [OP_LIST_ARANGE] 6 [OP_LIST_DIVISIBLE] 5 [OP_LIST_DIVISIBLE] 8 [OP_LIST_DIVISIBLE] 9 [OP_LIST_DIVISIBLE] 1 [OP_LIST_MAX]
var_a = 100 var_b = 999 var_c = 1 list_a = [i for i in range(var_a, var_b + 1, var_c)] var_d = 6 list_b = [] var_d = int(var_d) for i in list_a: i = int(i) if i % var_d == 0: list_b.append(i) var_e = 5 list_c = [] var_e = int(var_e) for i in list_b: i = int(i) if i % var_e == 0: list_c.append(i) var_f = 8 list_d = [] var_f = int(var_f) for i in list_c: i = int(i) if i % var_f == 0: list_d.append(i) var_g = 9 list_e = [] var_g = int(var_g) for i in list_d: i = int(i) if i % var_g == 0: list_e.append(i) var_h = 1 list_f=list_e.copy() list_f.sort() var_i = list_f[-var_h] print(int(var_i))
Arithmetic calculation
When water in a beaker was poured into a 120 milliliter (ml) bucket, 2 buckets were filled and 2.4 milliliters (ml) remained in the beaker. Calculate how many milliliters (ml) each of the three beakers contains if the same amount of water is equally divided into three beakers.
80.8
120 2 [OP_MUL] 2.4 [OP_ADD] 3 [OP_DIV]
var_a = 120 var_b = 2 var_c = var_a * var_b var_d = 2.4 var_e = var_c + var_d var_f = 3 var_g = var_e / var_f print('{:.2f}'.format(round(var_g+1e-10,2)))
Arithmetic calculation
Seokjin solved 12 Korean problems, and he solved 7 more afterwards. How many problems did he solve?
19
12 7 [OP_ADD]
var_a = 12 var_b = 7 var_c = var_a + var_b print(int(var_c))
Possibility
You want to form a two-digit number by picking two different numbers from 0, 2, 4, 6, and 8. How many two-digit numbers can you make?
16
[OP_LIST_SOL] 0 2 4 6 8 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN]
var_a = 0 var_b = 2 var_c = 4 var_d = 6 var_e = 8 list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = 2 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_f)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] var_g = len(list_b) print(int(var_g))
Comparison
Which of the five numbers 5, 8, 1, 2, 6 is the smallest?
1
[OP_LIST_SOL] 5 8 1 2 6 [OP_LIST_EOL] 1 [OP_LIST_MIN]
var_a = 5 var_b = 8 var_c = 1 var_d = 2 var_e = 6 list_a= [] if "/" in str(var_e): var_e = eval(str(var_e)) list_a.append(var_e) if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_f = 1 list_b=list_a.copy() list_b.sort() var_g = list_b[var_f-1] print(int(var_g))
Geometry
Fifteen pieces of rectangular colored tape, 9.4 cm (cm) wide and 3.7 cm (cm) long, overlap each other by 0.6 centimeters (cm). Find the total area of the entire colored tape joint together, excluding the overlapping area.
490.62
9.4 15 [OP_MUL] 15 1 [OP_SUB] 0.6 [OP_MUL] [OP_SUB] 3.7 [OP_MUL]
var_a = 9.4 var_b = 15 var_c = var_a * var_b var_d = 15 var_e = 1 var_f = var_d - var_e var_g = 0.6 var_h = var_f * var_g var_i = var_c - var_h var_j = 3.7 var_k = var_i * var_j print('{:.2f}'.format(round(var_k+1e-10,2)))
Possibility
Use the number cards 1, 6, and 8 all once to find the third small three-digit number.
618
[OP_LIST_SOL] 1 6 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 3 [OP_LIST_MIN]
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 = 3 list_c=list_b.copy() list_c.sort() var_f = list_c[var_e-1] print(int(var_f))
Geometry
There is a parallelogram whose 2 times the sum of its base and its height is 56. If the base is 16 centimeters (cm), what is the area of the parallelogram?
192
56 2 [OP_DIV] 16 [OP_SUB] 16 [OP_MUL]
var_a = 56 var_b = 2 var_c = var_a / var_b var_d = 16 var_e = var_c - var_d var_f = 16 var_g = var_e * var_f print(int(var_g))
Arithmetic calculation
When I ran one lap around the playground, I ran at 15 kilometers (km) per hour the first time, and ran at 10 kilometers (km) per hour the second time, which took 30 minutes longer than the first time. Find the time to run the playground for the second time.
1.5
10 30 60 [OP_DIV] [OP_MUL] 15 10 [OP_SUB] [OP_DIV] 30 60 [OP_DIV] [OP_ADD]
var_a = 10 var_b = 30 var_c = 60 var_d = var_b / var_c var_e = var_a * var_d var_f = 15 var_g = 10 var_h = var_f - var_g var_i = var_e / var_h var_j = 30 var_k = 60 var_l = var_j / var_k var_m = var_i + var_l print('{:.2f}'.format(round(var_m+1e-10,2)))
Arithmetic calculation
The large barrel contained 10 liters (L) of juice and the small barrel contained 8 liters (L) of juice. When 3 liters (L) of juice from the small barrel is poured into a large barrel, how many more liters (L) of juice is in the large barrel than the juice in the small barrel?
8
10 3 [OP_ADD] 8 3 [OP_SUB] [OP_SUB]
var_a = 10 var_b = 3 var_c = var_a + var_b var_d = 8 var_e = 3 var_f = var_d - var_e var_g = var_c - var_f print(int(var_g))
Geometry
A rectangular marble measuring 1120 centimeters (cm) by 630 centimeters (cm) will be cut and used to cover the floor. If you cut marble into squares with sides measuring 70 centimeters (cm), how many can you make?
144
1120 70 [OP_FDIV] 630 70 [OP_FDIV] [OP_MUL]
var_a = 1120 var_b = 70 var_c = var_a // var_b var_d = 630 var_e = 70 var_f = var_d // var_e var_g = var_c * var_f print(int(var_g))
Arithmetic calculation
A water bottle is full of water. After scooping out the water 20 times with a 250 milliliter (㎖) cup and 13 times with a 600 milliliter (㎖) cup from this water bottle, the water bottle became completely empty. How many liters (L) does this water bottle hold?
12.8
250 20 [OP_MUL] 600 13 [OP_MUL] [OP_ADD] 1000 [OP_DIV]
var_a = 250 var_b = 20 var_c = var_a * var_b var_d = 600 var_e = 13 var_f = var_d * var_e var_g = var_c + var_f var_h = 1000 var_i = var_g / var_h print('{:.2f}'.format(round(var_i+1e-10,2)))
Comparison
Find how many numbers among 0.8, 1/2, 0.3 are less than 0.4.
1
[OP_LIST_SOL] 0.8 1/2 0.3 [OP_LIST_EOL] 0.4 [OP_LIST_LESS] [OP_LIST_LEN]
var_a = 0.8 var_b = 0.5 var_c = 0.3 list_a= [] if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_d = 0.4 list_b = [] for i in list_a: if i < var_d: list_b.append(i) var_e = len(list_b) print(int(var_e))
Correspondence
Multiply a number by 11, add 6, divide that number by 5, then subtract 42 and the result is 12. Find the number.
24
12 42 [OP_ADD] 5 [OP_MUL] 6 [OP_SUB] 11 [OP_DIV]
var_a = 12 var_b = 42 var_c = var_a + var_b var_d = 5 var_e = var_c * var_d var_f = 6 var_g = var_e - var_f var_h = 11 var_i = var_g / var_h print(int(var_i))
Comparison
What is the sum of all numbers less than or equal to 0.4 among 0.8, 1/2, 0.9, and 1/3?
0.33
[OP_LIST_SOL] 0.8 1/2 0.9 1/3 [OP_LIST_EOL] 0.4 [OP_LIST_LESS_EQUAL] [OP_LIST_SUM]
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.4 list_b = [] for i in list_a: if i <= var_e: list_b.append(i) list_b = [float(i) for i in list_b] var_f = sum(list_b) print('{:.2f}'.format(round(var_f+1e-10,2)))
Arithmetic calculation
Find the number of divisors of 32.
6
32 [OP_LIST_GET_DIVISOR] [OP_LIST_LEN]
var_a = 32 list_a = [] num_sqrt = int(math.sqrt(var_a)) for i in range(1, num_sqrt+1): if var_a % i == 0: list_a.append(i) list_a.append(int(var_a/i)) list_a = sorted(set(list_a)) var_b = len(list_a) print(int(var_b))
Arithmetic calculation
The average score for Korean and mathematics is 86 points. Find the average score of the three subjects when English is 98 points.
90
86 2 [OP_MUL] 98 [OP_ADD] 3 [OP_DIV]
var_a = 86 var_b = 2 var_c = var_a * var_b var_d = 98 var_e = var_c + var_d var_f = 3 var_g = var_e / var_f print(int(var_g))
Geometry
Try to make a square as small as possible by arranging rectangular cards with a width of 20 centimeters (cm) and a length of 8 centimeters (cm) without overlapping. How many cards will you need in total?
10
20 8 [OP_LCM] 2 [OP_POW] 20 8 [OP_MUL] [OP_DIV]
var_a = 20 var_b = 8 var_c = var_b * var_a / math.gcd(int(var_b), int(var_a)) var_d = 2 var_e = var_c ** var_d var_f = 20 var_g = 8 var_h = var_f * var_g var_i = var_e / var_h print(int(var_i))
Comparison
There are a total of 4 numbers: 0.8, 1/2, 0.5 and 1/3. What is the sum of all given numbers less than 3?
2.13
[OP_LIST_SOL] 0.8 1/2 0.5 1/3 [OP_LIST_EOL] 3 [OP_LIST_LESS] [OP_LIST_SUM]
var_a = 0.8 var_b = 0.5 var_c = 0.5 var_d = 0.3333333333333333 list_a= [] if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_e = 3 list_b = [] for i in list_a: if i < var_e: list_b.append(i) list_b = [float(i) for i in list_b] var_f = sum(list_b) print('{:.2f}'.format(round(var_f+1e-10,2)))
Comparison
Yoongi has 4 apples and Jungkook had 6 apples, but he has eaten 3. Who has fewer apples?
Jungkook
[OP_LIST_SOL] Yoongi Jungkook [OP_LIST_EOL] [OP_LIST_SOL] 4 6 3 [OP_SUB] [OP_LIST_EOL] 1 [OP_LIST_MIN] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET]
var_a = 'Yoongi' var_b = 'Jungkook' list_a= [] if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_c = 4 var_d = 6 var_e = 3 var_f = var_d - var_e list_b= [] if "/" in str(var_f): var_f = eval(str(var_f)) list_b.append(var_f) if "/" in str(var_c): var_c = eval(str(var_c)) list_b.append(var_c) list_b.reverse() var_g = 1 list_c=list_b.copy() list_c.sort() var_h = list_c[var_g-1] var_i = list_b.index(var_h)+1 var_j = list_a[var_i-1] print(var_j)
Possibility
Using number cards 1, 6, and 8 all once, find the difference between the second largest three-digit number and the third largest three-digit number.
198
[OP_LIST_SOL] 1 6 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 2 [OP_LIST_MAX] 3 [OP_LIST_GET] [OP_SUB] [OP_ABS]
var_a = 1 var_b = 6 var_c = 8 list_a= [] if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_d = 3 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_d)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] var_e = 2 list_c=list_b.copy() list_c.sort() var_f = list_c[-var_e] var_g = 3 var_h = list_b[var_g-1] var_i = var_f - var_h var_j = abs(var_i) print(int(var_j))
Geometry
When attaching a square picture drawn by students to a rectangular blackboard 120 centimeters (cm) wide and 96 centimeters (cm) long without any remaining parts, find how many centimeters (cm) long a side should be to maximize the size of the picture.
24
120 96 [OP_GCD]
var_a = 120 var_b = 96 var_c = math.gcd(int(var_b), int(var_a)) print(int(var_c))
Geometry
Two of the triangle's three angles measure 30 degrees and 60 degrees, respectively. What is the measure of the other angle of this triangle in degrees?
90
180 30 [OP_SUB] 60 [OP_SUB]
var_a = 180 var_b = 30 var_c = var_a - var_b var_d = 60 var_e = var_c - var_d print(int(var_e))
Arithmetic calculation
What is the sum of the numbers 6, 8 and 11?
25
6 8 [OP_ADD] 11 [OP_ADD]
var_a = 6 var_b = 8 var_c = var_a + var_b var_d = 11 var_e = var_c + var_d print(int(var_e))
Arithmetic calculation
Find the sum of the largest number and the second smallest number among 75, 91, 83, and 72.
166
[OP_LIST_SOL] 75 91 83 72 [OP_LIST_EOL] 1 [OP_LIST_MAX] 2 [OP_LIST_MIN] [OP_ADD]
var_a = 75 var_b = 91 var_c = 83 var_d = 72 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 = 1 list_b=list_a.copy() list_b.sort() var_f = list_b[-var_e] var_g = 2 list_c=list_a.copy() list_c.sort() var_h = list_c[var_g-1] var_i = var_f + var_h print(int(var_i))
Geometry
You want to find the length and width of a rectangle whose perimeter is 16 centimeters (cm) and whose length is shorter than its width by 2 centimeters (cm). What is the horizontal length?
5
16 2 [OP_DIV] 2 [OP_SUB] 2 [OP_DIV] 2 [OP_ADD]
var_a = 16 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 var_h = 2 var_i = var_g + var_h print(int(var_i))
Comparison
Yuna has the 5th most pencils in her class, right after Eunji. What order does Eunji in when it comes to having the most pencils?
4
5 1 [OP_SUB]
var_a = 5 var_b = 1 var_c = var_a - var_b print(int(var_c))
Geometry
If a prism with two congruent and parallel bases has 21 edges, find the number of vertices.
14
21 3 [OP_DIV] 2 [OP_MUL]
var_a = 21 var_b = 3 var_c = var_a / var_b var_d = 2 var_e = var_c * var_d print(int(var_e))
Possibility
The number of ways going from school to the library is 2, and the number of ways going from the library to home is 3. Find the number of ways to go home from school via the library.
6
2 3 [OP_MUL]
var_a = 2 var_b = 3 var_c = var_a * var_b print(int(var_c))
Comparison
Jungkook collected 6 times 3 apples, and Yoongi collected 4 apples. Who has more apples?
Jungkook
[OP_LIST_SOL] Jungkook Yoongi [OP_LIST_EOL] [OP_LIST_SOL] 6 3 [OP_MUL] 4 [OP_LIST_EOL] 1 [OP_LIST_MAX] [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] var_i = list_b.index(var_h)+1 var_j = list_a[var_i-1] print(var_j)
Geometry
Mijin took a cube-shaped box with one edge 2 centimeters (cm) long and made a cube box with one edge 10 centimeters (cm) long. yellow colored paper was attached to all sides of the cube-shaped box that was created. How many small cube boxes with yellow confetti on one side?
54
10 2 [OP_DIV] 2 [OP_SUB] 2 [OP_POW] 6 [OP_MUL]
var_a = 10 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 var_h = 6 var_i = var_g * var_h print(int(var_i))
Correspondence
When 1A+4B3=469 is true, what number should go in A?
6
1A+4B3=469 A [OP_DIGIT_UNK_SOLVER]
var_a = '1A+4B3=469' 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
During Chuseok, Minjun decided to stop by his mother's house first and then go to his father's side. It takes 10 kilometers (km) and 700 meters (m) from Minjun's house to his mother's house, and the distance from the mother's side to the father's side is 24 kilometers (km) and 900 meters (m). Find the distance between Minjun's house and the midpoint of the way from his mother's to his father's house in meters (m).
12450
10 1000 [OP_MUL] 700 [OP_ADD] 24 1000 [OP_MUL] 900 [OP_ADD] 2 [OP_DIV]
var_a = 10 var_b = 1000 var_c = var_a * var_b var_d = 700 var_e = var_c + var_d var_f = 24 var_g = 1000 var_h = var_f * var_g var_i = 900 var_j = var_h + var_i var_k = 2 var_l = var_j / var_k print(int(var_l))
Arithmetic calculation
If animal (A) and animal (B) are added together, there are 17 animals. If there are 8 (B)s, how many (A)s are there?
9
17 8 [OP_SUB]
var_a = 17 var_b = 8 var_c = var_a - var_b print(int(var_c))
Possibility
Eight teams will play basketball. The two teams play, the losing team is eliminated and the winning team advances to the next game. How many matches are played when the last team to win wins?
7
8 2 [OP_DIV] 8 2 [OP_DIV] 2 [OP_DIV] 8 2 [OP_DIV] 2 [OP_DIV] 2 [OP_DIV] [OP_ADD] [OP_ADD]
var_a = 8 var_b = 2 var_c = var_a / var_b var_d = 8 var_e = 2 var_f = var_d / var_e var_g = 2 var_h = var_f / var_g var_i = 8 var_j = 2 var_k = var_i / var_j var_l = 2 var_m = var_k / var_l var_n = 2 var_o = var_m / var_n var_p = var_h + var_o var_q = var_c + var_p print(int(var_q))
Correspondence
The equation 68A-3=684 holds. What number should be in A?
7
68A-3=684 A [OP_DIGIT_UNK_SOLVER]
var_a = '68A-3=684' var_b = 'A' ans_dict = dict() var_a = var_a.replace('×','*') var_a = var_a.replace('x','*') var_a = var_a.replace('÷','/') variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']) for v in set(var_a): if v in variable_candi: ans_dict[v] = 1 candi = list(itertools.product('0123456789', repeat=len(ans_dict))) for c in candi: temp = var_a for i, (k, _) in enumerate(ans_dict.items()): temp = temp.replace(k, str(c[i])) term_list = [] op_list = [] temp_c = '' for tc in temp: if tc not in '+-*/=><().': temp_c += tc else: op_list.append(tc) term_list.append(temp_c) temp_c = '' term_list.append(temp_c) new_eq = '' for i in range(len(op_list)): new_eq += str(int(term_list[i]))+op_list[i] new_eq += str(int(term_list[-1])) if len(new_eq) == len(var_a): new_eq=new_eq.replace('=', '==') new_eq=new_eq.replace('>==', '>=') new_eq=new_eq.replace('<==', '<=') eval_result = False try: eval_result = eval(new_eq) except: pass if eval_result: for i, (k, _) in enumerate(ans_dict.items()): ans_dict[k] = int(c[i]) var_c = ans_dict[var_b] print(int(var_c))
Possibility
You are going to create a three-digit number using only once of 5, 9, and 2. Which of the two numbers is greater when the difference between the two numbers made is greatest?
952
[OP_LIST_SOL] 5 9 2 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX]
var_a = 5 var_b = 9 var_c = 2 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] print(int(var_f))
Geometry
A circular lake with a diameter of 100 meters (m) had a circumference of 314 meters (m). How many times bigger is the circumference of this lake compared to its diameter?
3.14
314 100 [OP_DIV]
var_a = 314 var_b = 100 var_c = var_a / var_b print('{:.2f}'.format(round(var_c+1e-10,2)))
Possibility
The teacher asks the students to create a four-digit number using all 1, 0, 5, and 7. How many answers can the student give?
18
[OP_LIST_SOL] 1 0 7 5 [OP_LIST_EOL] 4 [OP_LIST_GET_PERM] [OP_LIST_LEN]
var_a = 1 var_b = 0 var_c = 7 var_d = 5 list_a= [] if "/" in str(var_d): var_d = eval(str(var_d)) list_a.append(var_d) if "/" in str(var_c): var_c = eval(str(var_c)) list_a.append(var_c) if "/" in str(var_b): var_b = eval(str(var_b)) list_a.append(var_b) if "/" in str(var_a): var_a = eval(str(var_a)) list_a.append(var_a) list_a.reverse() var_e = 4 list_b = [str(i) for i in list_a] list_b = list(itertools.permutations(list_b, var_e)) list_b = [''.join(num_list) for num_list in list_b] list_b = [str_num for str_num in list_b if str_num[0] != '0'] list_b = [float(i) for i in list_b] var_f = len(list_b) print(int(var_f))
Arithmetic calculation
There were 1.6 kg (kg) of strawberries. I ate 0.8 kg (kg) of strawberries yesterday and 0.3 kg (kg) today. How many kilograms (kg) of strawberries are left?
0.5
1.6 0.8 [OP_SUB] 0.3 [OP_SUB]
var_a = 1.6 var_b = 0.8 var_c = var_a - var_b var_d = 0.3 var_e = var_c - var_d print('{:.2f}'.format(round(var_e+1e-10,2)))