philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): 691-6A7=4. What is A?
Question (KO): 691-6A7=4이 성립합니다. A는 무엇인가요?

Answer: 8

Solution (Python):
var_a = '691-6A7=4'
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))
Category: Correspondence

Question (EN): 637 is the result of adding 238 to a number by mistake, which was supposed to subtract 382 from a number. How much do you get from a correct calculation?

Question (KO): 637은 어떤 수에서 382를 빼야하는데 실수로 238을 더하여 나온 결과입니다. 바르게 계산하면 얼마입니까?

Answer: 17

Solution (Python):
var_a = 637
var_b = 238
var_c = var_a - var_b
var_d = 382
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If a watermelon sold at a store is 200 won cheaper than 5,000 won, find the price of the watermelon in units of 1,000 won.
Question (KO): 어느 가게에서 파는 수박이 5천원보다 2백원 쌀 때, 수박의 가격을 천원 단위로 구하시오.

Answer: 4.8

Solution (Python):
var_a = 5
var_b = 2
var_c = 10
var_d = var_b / var_c
var_e = var_a - var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): The quotient of 14 divided by 3 is 4, and the remainder is A. What is the value of A?
Question (KO): 14에 대해 3으로 나눈 몫은 4, 나머지는 A입니다. A의 값은 무엇일까요?

Answer: 2

Solution (Python):
var_a = 14
var_b = 3
var_c = 4
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): A 2 liter (L) water bottle was filled with water in a 200 milliliter (㎖) cup and poured three times. Find at least how many more times you need to pour this cup to fill the bucket with water.
Question (KO): 들이가 2리터(L) 인 물통에 들이가 200밀리리터(㎖) 인 컵으로 물을 가득 채워 3 번 부었습니다. 물통에 물이 가득 차게 하려면 이 컵으로 적어도 몇 번을 더 부어야 하는지 구하시오.

Answer: 7

Solution (Python):
var_a = 2
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = 3
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 200
var_i = var_g / var_h
var_j = 1
var_k=int(((var_i+9*10**(var_j-2))//(10**(var_j-1)))*10**(var_j-1))

print(int(var_k))
Category: Arithmetic calculation

Question (EN): Six years ago, the age of the father was five times the age of the son. Six years from this year, the sum of the ages of father and son will be 78. How old is the father this year?
Question (KO): 6년 전에 아버지 나이는 아들 나이의 5배였습니다. 올해부터 6년 후에 아버지와 아들의 나이의 합은 78살이 됩니다. 올해 아버지의 나이는 몇 살입니까?

Answer: 51

Solution (Python):
var_a = 78
var_b = 6
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 6
var_g = 2
var_h = var_f * var_g
var_i = var_e - var_h
var_j = 5
var_k = 1
var_l = var_j + var_k
var_m = var_i // var_l
var_n = 5
var_o = var_m * var_n
var_p = 6
var_q = var_o + var_p
print(int(var_q))
Category: Arithmetic calculation

Question (EN): In the hundreds place of the three-digit number ABC is 2 and in the units place is 7. What is the sum of the largest and smallest number of possible ABCs?
Question (KO): 어떤 세 자리 수의 백의 자리 숫자는 2이고 일의 자리 숫자는 7입니다. 가능한 가장 큰 수에 가장 작은 수를 더하면 얼마입니까?

Answer: 504

Solution (Python):
var_a = 2
var_b = 'A'
var_c = 7
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_d):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', 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]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Comparison

Question (EN): We compared the sizes of beads - (a), (b), (c), (d). (a) bead is larger than (b) bead, (b) bead is smaller than (c) bead, and (c) bead is smaller than (d) bead.Which of these marbles is the smallest?
Question (KO): (가), (나), (다), (라) 구슬의 크기를 비교해 보았더니 (가) 구슬은 (나) 구슬보다 크고 (나) 구슬은 (다) 구슬보다, (다) 구슬은 (라) 구슬보다 작았습니다. 이 중 크기가 가장 작은 구슬은 무엇이겠습니까?

Answer: (b)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
var_c = '(c)'
var_d = '(d)'
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = '(a)'
var_f = '(d)'
var_g = '>'
var_h = '(b)'
var_i = '(c)'
var_j = '<'
var_k = '(c)'
var_l = '(d)'
var_m = '<'
list_b= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Arithmetic calculation

Question (EN): Last year, Hoseok was 5 years old and his mother was 35 years old. How many times would the mother's age be Hoseok's age 4 years from now?
Question (KO): 작년에 호석이의 나이는 5살이었고 어머니는 35살이었습니다. 현재로부터 4년 후에 어머니의 나이는 호석이 나이의 몇 배입니까?

Answer: 4

Solution (Python):
var_a = 35
var_b = 1
var_c = var_a + var_b
var_d = 4
var_e = var_c + var_d
var_f = 5
var_g = 1
var_h = var_f + var_g
var_i = 4
var_j = var_h + var_i
var_k = var_e / var_j
print(int(var_k))
Category: Geometry

Question (EN): Jiwoo is solving a quiz, and she is told to turn the knob by the sum of the degrees of the interior angles of the hexagon. How many degrees (°) should the knob be turned?
Question (KO): 지우는 어떤 퀴즈를 풀고 있었는데, 육각형의 내각의 크기의 합만큼 손잡이를 돌리라고 되어 있엇다. 손잡이를 몇 도(°)만큼 돌려야 하는가?

Answer: 720

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a - var_b
var_d = 180
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Of the 41 third-grade students, there are three more male students than female students. Find how many male students there are.
Question (KO): 41명의 3학년 학생 중 남학생이 여학생보다 3명이 더 많습니다. 남학생은 몇 명인지 구하시오.

Answer: 22

Solution (Python):
var_a = 41
var_b = 3
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 3
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): An elementary school has 217 3rd-grade students and 196 4th-grade students. If the number of students in grades 3 and 5 combined is equal to the number of students in grades 4 and 6 combined, what is the difference between the number of students in grades 5 and 6?
Question (KO): 어느 초등학교의 3학년 학생 수는 217명, 4학년 학생 수는 196명입니다. 3학년과 5학년을 합한 학생의 수와 4학년과 6학년을 합한 학생 수가 같을 때, 5학년과 6학년 학생 수의 차는 몇 명입니까?

Answer: 21

Solution (Python):
var_a = 217
var_b = 196
var_c = var_a - var_b
var_d = abs(var_c)
print(int(var_d))
Category: Geometry

Question (EN): Diagonals were drawn from one vertex of the octagon to the other vertices. Find the number of triangles formed in this case.
Question (KO): 팔각형의 한 꼭짓점에서 다른 꼭짓점들에게 대각선을 그었습니다. 이때 생기는 삼각형의 개수를 구하시오.

Answer: 6

Solution (Python):
var_a = 8
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I made a roundtrip between two points A and B by bicycle, traveling at 15 kilometers (km) per hour on the way and 10 kilometers (km) per hour on the way back. It took 30 minutes longer on the way back. Find the distance between two points A and B.
Question (KO): 두 지점 A, B 사이를 자전거를 타고 왕복하는데 갈때는 시속 15 킬로미터(㎞)로, 올 때는 시속 10 킬로미터(㎞)로 달렸더니 올 때는 갈 때보다 30분이 더 걸렸다. 두 지점 A, B 사이의 거리를 구하시오.

Answer: 15

Solution (Python):
var_a = 30
var_b = 60
var_c = var_a / var_b
var_d = 1
var_e = 10
var_f = var_d / var_e
var_g = 1
var_h = 15
var_i = var_g / var_h
var_j = var_f - var_i
var_k = var_c / var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2)))))
Category: Geometry

Question (EN): Find the number of vertices of a polyhedron such that 6 diagonals can be drawn from one vertex.
Question (KO): 한 꼭짓점에서 6개의 대각선을 그을 수 잇는 다격형의 꼭짓점의 개수를 구하시오.

Answer: 9

Solution (Python):
var_a = 6
var_b = 3
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): You bought three sets of marbles with 32 marbles in each and handed four of them out to each student. When there are no marbles left, find how many students there are.
Question (KO): 구슬이 32개가 들어있는 세트 3개를 사서 학생들에게 4개씩 나누어주었더니 남는 것 없이 모두 나누어 주었다고 한다. 학생들은 모두 몇 명인지 구하시오.

Answer: 24

Solution (Python):
var_a = 32
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 56 pear trees. There are 18 more pear trees than apple trees, and 12 fewer tangerine trees than apple trees. How many tangerine trees are there in all?
Question (KO): 배나무가 56그루 있습니다. 배나무는 사과나무보다 18그루 많고, 귤나무는 사과나무보다 12그루 적습니다. 귤나무는 모두 몇 그루입니까?

Answer: 26

Solution (Python):
var_a = 56
var_b = 18
var_c = var_a - var_b
var_d = 12
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Jungkook collected 6 divided by 3 apples, and Yoongi collected 4 apples. Who has the greater number of apples?
Question (KO): 정국이는 6 나누기 3만큼 사과를 모았고, 윤기는 4개의 사과를 모았습니다. 사과의 개수가 더 큰 사람은 누구입니까?

Answer: Yoongi

Solution (Python):
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)
Category: Arithmetic calculation

Question (EN): Which 5-digit number is the largest number divisible by 9, 6, and 2?
Question (KO): 3개의 수 9, 6, 2로 나누어 떨어질 수 있는 수 중 가장 큰 다섯 자리 수는?

Answer: 99990

Solution (Python):
var_a = 10000
var_b = 99999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 9
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 = 6
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 = 2
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 = 1
list_e=list_d.copy()
list_e.sort()
var_h = list_e[-var_g]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): If there are 127 female students and the total number of students at Yoongi's school is 280, how many fewer female students than male students are there?
Question (KO): 여학생이 127명이고 윤기네 학교 학생 수는 총 280명일때 여학생은 남학생보다 몇 명 더 적나요?

Answer: 26

Solution (Python):
var_a = 280
var_b = 127
var_c = var_a - var_b
var_d = 127
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): I was supposed to multiply a certain number by 6, but by mistake, adding 6 to it and multiplying it by 2 resulted in 28. Find the correct calculated value.
Question (KO): 어떤 수에 6을 곱하여야 하는데 잘못하여 6을 더하고 2를 곱하였더니 28이었다고 한다. 바르게 계산한 값을 구하시오.

Answer: 48

Solution (Python):
var_a = 28
var_b = 2
var_c = var_a / var_b
var_d = 6
var_e = var_c - var_d
var_f = 6
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Jungkook opened the book and the sum of the two pages was 185. Write the smaller of the two pages that Jungkook unfolded.
Question (KO): 정국이가 책을 펼쳤는데 두 쪽수의 합이 185였습니다. 정국이가 펼친 두 쪽수 중 작은 수를 쓰시오.

Answer: 92

Solution (Python):
var_a = 185
var_b = 2
var_c = var_a // var_b
print(int(var_c))
Category: Correspondence

Question (EN): You mistakenly subtracted what two numbers should be added to, and got 12. This is different by 40 from the correct answer. Find the product of those two numbers.
Question (KO): 어떤 두 수를 더해야 할 것을 잘못하여 뺐더니 12가 되었습니다. 이것은 바르게 계산했을 때의 정답과 40만큼 차이가 납니다. 어떤 두 수의 곱을 구하시오.

Answer: 640

Solution (Python):
var_a = 40
var_b = 2
var_c = var_a / var_b
var_d = 12
var_e = var_c + var_d
var_f = 40
var_g = 2
var_h = var_f / var_g
var_i = var_e * var_h
print(int(var_i))
Category: Geometry

Question (EN): Find the sum of the lengths of the edges of a regular tetrahedron with a side length of 3 centimeters (cm) plus 3.
Question (KO): 한 변의 길이가 3인 정사면체의 모서리 길이의 합에서 3을 더한 값을 구하시오.

Answer: 21

Solution (Python):
var_a = 3
var_b = 6
var_c = 3
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e))
Category: Correspondence

Question (EN): Yoongi wants to do a subtraction with a two-digit number and a four-digit number. Yoongi confused the tens and units digits of the two-digit number to get 23, and the four-digit number's units digit 9 was misread as 6. When the difference Yoongi got is 1299, find the four-digit number.
Question (KO): 윤기는 두 자리 수와 네 자리 수의 뺄셈을 하려 합니다. 윤기는 두 자리 수의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 23이라고 잘못 보았고, 네 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 차는 1299 일 때, 네 자리 수를 구하시오.

Answer: 1273

Solution (Python):
var_a = 23
var_b = 1299
var_c = var_a - var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Two candles A and B, each 30 centimeters (cm) and 20 centimeters (cm) long, were lit at the same time. Candle A is said to lose 1 centimeter (cm) per minute, and candle B is said to lose 0.5 centimeters (cm) per minute. Find the length of the candle when both candles are equal in length.
Question (KO): 길이가 각각 30센티미터(㎝), 20센티미터(㎝)인 두 양초 A, B에 동시에 불을 붙였다. 양초 A는 1분에 1센티미터(㎝)씩 길이가 줄어들고, 양초 B는 1분에 0.5센티미터(㎝)씩 길이가 줄어든다고 한다. 두 양초의 길이가 같아졌을 때의 양초의 길이를 구하여라.

Answer: 10

Solution (Python):
var_a = 30
var_b = 30
var_c = 20
var_d = var_b - var_c
var_e = 1
var_f = 0.5
var_g = var_e - var_f
var_h = var_d / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Comparison

Question (EN): You are comparing the heights of 20 students. Jungkook is taller than Yoongi, and there are 5 students between Yoongi and Jungkook. There are 6 students who are taller than Jungkook. How many students are shorter than Yoongi?
Question (KO): 20명의 학생들의 키를 비교하고 있습니다. 정국이는 윤기보다 키가 크고, 윤기와 정국이 사이에는 5명의 학생이 있습니다. 정국이보다 키가 큰 학생은 모두 6명입니다. 윤기보다 작은 학생은 몇 명입니까?

Answer: 7

Solution (Python):
var_a = 20
var_b = 6
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
var_f = 5
var_g = var_e - var_f
var_h = 1
var_i = var_g - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Yoojung has 4 times as many flowers as Namjoon. If Yoojung has 32 flowers, how many flowers do Yoojung and Namjoon have?
Question (KO): 남준이가 가진 꽃의 4배 만큼 유정이가 꽃을 가지고 있습니다. 유정이가 가진 꽃의 수가 32송이라면 유정이와 남준이가 가진 꽃은 모두 몇 송이입니까?

Answer: 40

Solution (Python):
var_a = 32
var_b = 32
var_c = 4
var_d = var_b / var_c
var_e = var_a + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Of the 13/4 liters (l) of water in the bucket, 12/5 liters (l) were used for cleaning, and 11/6 liters (l) of water was refilled into the bucket. Find how many liters (l) of water are left in the bucket.
Question (KO): 양동이에 담겨 있는 13/4리터(L)의 물 중에서 12/5리터(L)를 청소하는 데 사용하고, 11/6리터(L)만큼의 물을 양동이에 다시 채웠습니다. 양동이에 남은 물은 몇 리터(L)인지 구하시오.

Answer: 2.68

Solution (Python):
var_a = 3.25
var_b = 2.4
var_c = var_a - var_b
var_d = 1.8333333333333333
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Possibility

Question (EN): Find the difference between the largest and smallest three-digit number that can be formed using the number cards 2, 5, and 8 once. What is the answer when multiplying that by the second largest number?
Question (KO): 숫자 카드 2, 5, 8을 한 번씩 사용하여 만들 수 있는 세 자리 수 중에서 가장 큰 수와 가장 작은 수의 차에 두 번째로 큰 수를 곱하면 얼마가 됩니까?

Answer: 490050

Solution (Python):
var_a = 2
var_b = 5
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f - var_h
var_j = abs(var_i)
var_k = 2
list_e=list_b.copy()
list_e.sort()
var_l = list_e[-var_k]
var_m = var_j * var_l
print(int(var_m))
Category: Correspondence

Question (EN): There are 10 apples in the fruit gift set. If 2/9 of the fruit gift set is apples and 2/5 is pears, find the number of pears in the fruit gift set.
Question (KO): 과일선물세트에 10개의 사과가 들어있다. 과일 선물세트에 2/9가 사과이고 2/5가 배라고 할 때, 과일선물세트에 들어있는 배의 개수를 구하시오.

Answer: 18

Solution (Python):
var_a = 10
var_b = 0.2222222222222222
var_c = var_a / var_b
var_d = 0.4
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): A particular number should have been multiplied by 12, but the result was 8 because it was divided by mistake. Find the correct calculation result.
Question (KO): 8은 어떤 수에 12를 곱해야하는데 실수로 나누어서 나온 결과입니다. 바르게 계산한 결과를 구하세요.

Answer: 1152

Solution (Python):
var_a = 8
var_b = 12
var_c = var_a * var_b
var_d = 12
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I put 8 more coins in the piggy bank, and there are 29 coins in total. How many coins were there in the first place?
Question (KO): 돼지 저금통에 동전을 8개 더 넣었더니 모두 29개가 되었습니다. 돼지 저금통에는 처음 몇 개의 동전이 있었을까요?

Answer: 21

Solution (Python):
var_a = 29
var_b = 8
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a box in the shape of a cube with one edge 60 centimeters (cm) long. How many pieces of colored paper are needed to glue 5 centimeters (cm) wide and 5 centimeters (cm) long colored paper to the outer surface of the box without any gap?
Question (KO): 한 모서리의 길이가 60㎝인 정육면체 모양의 상자가 있습니다. 가로와 세로가 각각 5㎝인 색종이를 상자의 바깥쪽 겉면에 빈틈없이 붙이려고 할 때, 색종이는 적어도 몇 장 필요합니까?

Answer: 864

Solution (Python):
var_a = 60
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
var_f = 5
var_g = 2
var_h = var_f ** var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Find the total of four numbers 1/3, 5/24, 8.16, and 1/8. 
Question (KO): 4개의 수 1/3, 5/24, 8.16, 1/8이 있습니다. 총합은?

Answer: 8.83

Solution (Python):
var_a = 0.3333333333333333
var_b = 0.20833333333333334
var_c = var_a + var_b
var_d = 8.16
var_e = var_c + var_d
var_f = 0.125
var_g = var_e + var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): A rose is planted in the 7th row from the front, the 16th row from the back, the 13th row from the right, and the 9th row from the left. Assuming the same number of flowers are planted in each row, find the total number of flowers.
Question (KO): 앞에서 7번째 줄, 뒤에서 16번째 줄, 오른쪽에서 13번째, 왼쪽에서 9번째 열에 장미가 심어져 있습니다. 각 열에 같은 수의 꽃이 심어져 있다고 할 때, 꽃의 수는 총 몇 송이인지 구하시오.

Answer: 462

Solution (Python):
var_a = 7
var_b = 16
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 9
var_g = 13
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): What is the smallest two-digit multiple of 3?
Question (KO): 3의 배수 중 가장 작은 두 자리 수는?

Answer: 12

Solution (Python):
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
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
print(int(var_f))
Category: Correspondence

Question (EN): There are 21 soccer balls in the four nets. If all soccer balls are handed out equally to 12 soccer team members, how many soccer balls will each player have?
Question (KO): 4개의 그물안에 21개씩 축구공이 들어있습니다. 모든 축구공을 똑같은 개수로 축구부부원 12명에게 나누어준다면 한 명은 몇 개의 축구공을 가지게 되는지 구하시오.

Answer: 7

Solution (Python):
var_a = 4
var_b = 21
var_c = var_a * var_b
var_d = 12
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): When the shuttlecocks were distributed equally to 24 students in Yunsu's class, 19 shuttlecocks were distributed to each student and there were no shuttlecocks left. Find the total number of shuttlecocks distributed to the students in Yunsu's class.
Question (KO): 윤수네 반 학생들 24명에게 셔틀콕을 똑같이 나누어 주었을 때, 학생당 19개씩 나누어주고 남은 셔틀콕이 없었다고 한다. 윤수네 반 학생들에게 나누어 준 셔틀콕의 개수는 모두 몇 개인지 구하시오.

Answer: 456

Solution (Python):
var_a = 19
var_b = 24
var_c = var_a * var_b
print(int(var_c))