philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): This year, the age of the father is three times the age of the daughter, and after 12 years, the age of the father will be twice the age of the daughter. How old is the daughter this year?
Question (KO): 올해 아버지의 나이는 딸의 나이의 3배이고, 12년 후에 아버지의 나이는 딸의 나이의 2배가 된다고 한다. 올해 딸의 나이는?

Answer: 12

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a * var_b
var_d = 12
var_e = var_c - var_d
var_f = 3
var_g = 2
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Comparison

Question (EN): The shape (A) is a rectangle 12 centimeters (cm) wide and 5 centimeters (cm) long. The shape (B) is a rectangle with a perimeter of 32 centimeters (cm) and a width of 8 centimeters (cm). Which of the two shapes is wider?
Question (KO): 모양 (가)은 가로 12센티미터(㎝), 세로 5센티미터(㎝)의 직사각형입니다. 모양 (나)는 둘레가 32센티미터(㎝), 가로가 8센티미터(㎝)인 직사각형입니다. 두 도형 중 어느 것이 더 넓습니까?

Answer: (B)

Solution (Python):
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 = 4
var_d = 4
var_e = var_c * var_d
var_f = 32
var_g = 8
var_h = 2
var_i = var_g * var_h
var_j = var_f - var_i
var_k = 2
var_l = var_j / var_k
var_m = 8
var_n = var_l * var_m
list_b= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r)
Category: Correspondence

Question (EN): When 34 is divided by 7, the remainder is 6 and the quotient is A. Find the right value for A.
Question (KO): 34를 7로 나눴더니 나머지가 6, 몫이 A가 되었습니다. A에 알맞은 값을 구하시오.

Answer: 4

Solution (Python):
var_a = 34
var_b = 6
var_c = var_a - var_b
var_d = 7
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When we weighed 9 robots of the same weight and 7 tops also of the same weight in total, it was 10.98 kilograms (kg). If the weight of one robot is 0.8 kilograms (kg), find the weight of one top in kilograms (kg).
Question (KO): 무게가 각각 같은 로봇 9개와 팽이 7개의 무게를 재어 보니 10.98킬로그램(㎏)이었습니다. 로봇 1개의 무게가 0.8킬로그램(㎏)일 때 팽이 한 개의 무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0.54

Solution (Python):
var_a = 10.98
var_b = 0.8
var_c = 9
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 7
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): Find the sum of the largest and smallest of the five numbers 0.45, 1/2, 0.77, 3/8, and 6/8.
Question (KO): 5개의 수 0.45, 1/2, 0.77, 3/8, 6/8 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 1.15

Solution (Python):
var_a = 0.45
var_b = 0.5
var_c = 0.77
var_d = 0.375
var_e = 0.75
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g + var_i
print('{:.2f}'.format(round(var_j+1e-10,2)))
Category: Correspondence

Question (EN): Say that the equation 57A-B14=364 holds. To make the equation hold, what number should go in B?
Question (KO): 등식 57A-B14=364이 성립한다고 합니다. B에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = '57A-B14=364'
var_b = 'B'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Correspondence

Question (EN): Sangeun goes shopping and spends half of her money and 2,000 won at the first store, then half of her remaining money and 2,000 won at the second store, and she has no money left. How much money did Sangeun have at first?
Question (KO): 상은이는 물건을 사러 가서 첫 번째 가게에서 가지고 있던 돈의 절반과 2000원을 쓰고, 두 번째 가게에서 남은 돈의 절반과 2000원을 썼더니 남은 돈이 없었습니다. 상은이가 처음에 가지고 있던 돈은 얼마인가요?

Answer: 12000

Solution (Python):
var_a = 0
var_b = 2000
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
var_f = 2000
var_g = var_e + var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Comparison

Question (EN): Seokjin is heavier than Hoseok but lighter than Jimin. Namjoon is heavier than Jimin. Which of the 4 is the lightest?
Question (KO): 석진이는 호석이보다 무겁고 지민이보다 가볍습니다. 남준이는 지민이보다 무겁습니다. 4명 중 가장 가벼운 사람은 누구입니까?

Answer: Hoseok

Solution (Python):
var_a = 'Seokjin'
var_b = 'Hoseok'
var_c = 'Jimin'
var_d = 'Namjoon'
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 = 'Seokjin'
var_f = 'Hoseok'
var_g = '>'
var_h = 'Seokjin'
var_i = 'Jimin'
var_j = '<'
var_k = 'Namjoon'
var_l = 'Jimin'
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: Correspondence

Question (EN): There is a four-digit number 8A42 which, when rounded, is 8000. How many possible A's are there if A range between 0 to 9?
Question (KO): 반올림하면 8000이 되는 네 자리 수 8A42가 있습니다. A에 0부터 9까지 들어갈 수 있을때 가능한 A는 모두 몇 개 입니까?

Answer: 5

Solution (Python):
var_a = '8A42'
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 = 8500
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = '8A42'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Geometry

Question (EN): A circle has a radius of 5 centimeters (cm). How many times is the area of the circle whose radius is tripled bigger compared to the area of the original circle?
Question (KO): 반지름이 5센티미터(㎝)인 원이 있습니다. 반지름을 3배로 늘린 원의 넓이는 처음 원의 넓이의 몇 배가 됩니까?

Answer: 9

Solution (Python):
var_a = 3
var_b = 2
var_c = var_a ** var_b
print(int(var_c))
Category: Correspondence

Question (EN): If you take away 46 from this number it becomes 15. What is the result of subtracting 29 from this number?
Question (KO): 46을 어떤 수에서 뺐더니 15가 되었습니다. 29를 어떤 수에 뺀 결과를 구하시오.

Answer: 32

Solution (Python):
var_a = 15
var_b = 46
var_c = var_a + var_b
var_d = 29
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): I have to divide a number by 8, but I multiply it by 8 by mistake, it's 56. If calculated correctly, indicate how much to the second decimal place.
Question (KO): 어떤 수를 8로 나누어야 할 것을 잘못하여 곱했더니 56이 되었습니다. 바르게 계산하면 얼마인지 소수점 둘째자리까지 나타내시오.

Answer: 0.88

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

Question (EN): There are numbers 0.8, 1/2, and 0.9. Find the smallest number that is greater than or equal to 0.6.
Question (KO): 0.8, 1/2, 0.9의 숫자가 있다. 이 중 0.6보다 크거나 같은 숫자들 중 가장 작거나 같은 숫자를 구하시오.

Answer: 0.8

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 0.6
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Correspondence

Question (EN): What number must go in A to make 51-A3=28?
Question (KO): 51-A3=28라는 식이 성립하려면, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = '51-A3=28'
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: Geometry

Question (EN): What is the length of one side of a rhombus made out of a string of 32 centimeters (cm) in length?
Question (KO): 길이가 32센티미터(㎝)인 끈으로 마름모를 만들때 한변의 길이는 얼마입니까?

Answer: 8

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

Question (EN): We want to share the books that Yoongi, Eunji, and Yuna had together fairly. If Yoongi gives 5 books to Eunji and receives 15 books from Yuna, and Eunji gives 10 books to Yuna, the three of them will each have 45 books. How many books did Yunji bring at first?
Question (KO): 윤기, 은지, 유나가 모여 가지고 있던 책을 공평하게 나눠가지고자 합니다. 윤기가 은지에게 5권을 주고 유나에게 15권을 받고, 은지가 유나에게 10권을 주면 세 사람은 책을 45권씩 가지게 됩니다. 윤기가 처음에 가지고 온 책은 몇 권입니까?

Answer: 35

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): There are 6 robot toys that look different. Find the number of cases in which one is given each to Kahi, Nahee, Dahee, and Rahee.
Question (KO): 서로 다르게 생긴 로봇 장난감 6개가 있다. 가희, 나희, 다희, 라희에게 1개씩 주는 경우의 수를 구하시오.

Answer: 360

Solution (Python):
var_a = 6
var_b = 1
var_c = 1
var_d = var_b + var_c
var_e = 1
var_f = var_d + var_e
var_g = 1
var_h = var_f + var_g
var_i = 1
var_a = int(var_a)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_a-i)
print(int(var_i))
Category: Geometry

Question (EN): How many pairs of parallel sides are there in a regular hexagon?
Question (KO): 정육각형에서 평행인 변은 모두 몇 쌍일까요?

Answer: 3

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a // var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): A ballpoint pen is 20 centimeters (cm) long and a pencil is 16 centimeters (cm) long. What is the average of the two writing instruments in centimeters (cm)?
Question (KO): 볼펜은 20센티미터(㎝), 연필은 16센티미터(㎝)입니다. 두 필기구의 평균은 몇 센티미터(㎝)입니까?

Answer: 18

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

Question (EN): If 397 is 236 lesser than a certain number, find the value that is 496 lesser than this certain number.
Question (KO): 어떤 수보다 236 작은 수가 397일 때, 어떤 수보다 496 작은 수를 구하시오.

Answer: 137

Solution (Python):
var_a = 397
var_b = 236
var_c = var_a + var_b
var_d = 496
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Find the third largest number among five-digit numbers that can be formed using 0, 4, 6, 7, and 8 only once each.
Question (KO): 0, 4, 6, 7, 8 중에 한 번씩만 사용하여 만들 수 있는 다섯 자리 수 중에서 세 번째로 큰 수를 구하시오.

Answer: 87460

Solution (Python):
var_a = 0
var_b = 4
var_c = 6
var_d = 7
var_e = 8
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 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 = 3
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print(int(var_h))
Category: Geometry

Question (EN): Find how long is the side of a regular pentagon in centimeters (cm) when it has the same perimeter as an equilateral triangle with a side length of 20/9 centimeters (cm).
Question (KO): 한 변의 길이가 20/9센티미터(㎝)인 정삼각형과 둘레가 같은 정오각형의 한 변의 길이는 몇 센티미터(㎝)인지 답을 구하세요.

Answer: 1.33

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

Question (EN): Find the sum of the largest and smallest numbers among 0.11, 0.98, 3/4, and 2/3.
Question (KO): 0.11, 0.98, 3/4, 2/3 중 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 1.09

Solution (Python):
var_a = 0.11
var_b = 0.98
var_c = 0.75
var_d = 0.6666666666666666
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 = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f + var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Comparison

Question (EN): Taehyung and Namjoon read 32 pages and 25 pages of fairy tales yesterday, respectively. Today Taehyung read 13 pages less than yesterday, but Namjoon read 14 pages more than yesterday. Which student read more fairy tales in two days?
Question (KO): 태형이와 남준이는 어제 동화책을 각각 32쪽, 25쪽 읽었습니다. 오늘 태형이는 어제보다 13쪽 적게 읽었는데, 남준이는 오늘 어제보다 14쪽이나 많이 읽었습니다. 이틀 동안 동화책을 더 많이 읽은 학생은 누구입니까?

Answer: Namjoon

Solution (Python):
var_a = 'Taehyung'
var_b = 'Namjoon'
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 = 32
var_d = 13
var_e = var_c - var_d
var_f = 32
var_g = var_e + var_f
var_h = 25
var_i = 14
var_j = var_h + var_i
var_k = 25
var_l = var_j + var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Arithmetic calculation

Question (EN): When 1231, 2311, 2131, 1312, 1123, and 3112 are arranged in order from largest to smallest, write the third largest number.
Question (KO): 1231, 2311, 2131, 1312, 1123, 3112를 큰 수부터 차례로 나열했을 때, 3번째로 큰 수를 쓰시오.

Answer: 2131

Solution (Python):
var_a = 1231
var_b = 2311
var_c = 2131
var_d = 1312
var_e = 1123
var_f = 3112
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 = 3
list_b=list_a.copy()
list_b.sort()
var_h = list_b[-var_g]
print(int(var_h))
Category: Correspondence

Question (EN): When you subtract 220 from a particular number and then multiply it by 4, you get 320. Find out the value of that particular number multiplied by 5 and then divided by 3.
Question (KO): 어떤 수에서 220을 빼고 4를 곱하여더니 320이 되었습니다. 어떤 수에 5배 한 뒤 3으로 나눈 값을 구하시오.

Answer: 500

Solution (Python):
var_a = 320
var_b = 4
var_c = var_a / var_b
var_d = 220
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 3
var_i = var_g / var_h
print(int(var_i))
Category: Geometry

Question (EN): There is a square piece of land with a side length of 4 kilometers (km). A rhombus-shaped park was created by connecting the points that divided the four sides of the land into two equally. Find the area of the park.
Question (KO): 한 변의 길이가 4킬로미터(㎞)인 정사각형 모양의 땅이 있습니다. 이 땅의 네 변을 각각 똑같게 둘로 나눈 점들을 이어 마름모 모양의 공원을 만들었습니다. 공원의 넓이를 구하시오.

Answer: 8

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

Question (EN): If A is the reciprocal of -0.4 and B is the reciprocal of +5/2, find the reciprocal of 3/A+2/B.
Question (KO): -0.4의 역수를 A, +5/2의 역수를 B라 할 때, 3/A+2/B의 역수를 구하시오.

Answer: 0.26

Solution (Python):
var_a = 1
var_b = 3
var_c = 1
var_d = -0.4
var_e = var_c / var_d
var_f = var_b / var_e
var_g = 2
var_h = 1
var_i = 2.5
var_j = var_h / var_i
var_k = var_g / var_j
var_l = var_f + var_k
var_m = var_a / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Geometry

Question (EN): How many vertices does the cube-shaped gift box have?
Question (KO): 정육면체 모양의 선물 상자의 꼭짓점의 개수는?

Answer: 8

Solution (Python):
var_a = 4
var_b = 2
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): If a circle with a circumference of 94.2 centimeters (cm) is drawn on the field and its diameter is 30 centimeters (cm), how many times the circumference of the circle is greater than the diameter?
Question (KO): 둘레는 94.2센티미터(㎝)인 원을 운동장에 그렸을 때, 지름이 30센티미터(㎝)이라면, 이 원의 둘레는 지름의 몇 배입니까?

Answer: 3.14

Solution (Python):
var_a = 94.2
var_b = 30
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Geometry

Question (EN): The area of a rectangle with the length all four sides being the same is 64/5 square centimeters (cm2). If the length of one diagonal is 64/9 centimeters (cm), what is the length of the other diagonal in cm (cm)?
Question (KO): 네 변의 길이가 모두 같은 사각형의 넓이가 64/5제곱센티미터(㎠)입니다. 한 대각선의 길이가 64/9센티미터(㎝)라면 다른 대각선의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 3.6

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

Question (EN): What is the average of the natural numbers from 12 to 53?
Question (KO): 12 부터 53 까지의 자연수의 평균은 얼마입니까?

Answer: 32.5

Solution (Python):
var_a = 12
var_b = 53
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)/len(list_a)
print('{:.2f}'.format(round(var_d+1e-10,2)))
Category: Possibility

Question (EN): There are 5 pens, with all different colors, including a red pen. When two of them are given to Seoyoon and one is given to Jiwoo, find the number of cases where the red pen is given to Seoyoon.
Question (KO): 빨간 펜을 포함하는 서로 모두 다른 색인 5개의 펜이 있다. 이 중 2개는 서윤이를 주고 1개는 지우를 줄 때, 빨간 펜을 서윤이를 주는 경우의 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a - var_b
var_d = 2
var_e = 1
var_f = var_d - var_e
var_g = 1
var_h = var_f + var_g
var_i = 1
var_c = int(var_c)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_c-i)
print(int(var_i))
Category: Comparison

Question (EN): Among 5.21, 2/3 3.21, 3.42, and 1/3, what is the product of the smallest number and the second smallest number?
Question (KO): 5.21, 2/3 3.21, 3.42, 1/3 중 첫 번째로 작은 수와 두 번째로 작은 수의 곱을 구하면 얼마입니까?

Answer: 0.22

Solution (Python):
var_a = 5.21
var_b = 2
var_c = 3
var_d = var_b / var_c
var_e = 3.21
var_f = 3.42
var_g = 1
var_h = 3
var_i = var_g / var_h
list_a= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
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_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_j = 1
list_b=list_a.copy()
list_b.sort()
var_k = list_b[var_j-1]
var_l = 2
list_c=list_a.copy()
list_c.sort()
var_m = list_c[var_l-1]
var_n = var_k * var_m
print('{:.2f}'.format(round(var_n+1e-10,2)))