philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): You want to create a three-digit number by using three from 0, 2, 4, and 6 and using them only once. Find the value of the sum of the largest and smallest possible numbers.
Question (KO): 0, 2, 4, 6 중에서 3개 뽑아 한 번씩만 사용하여 세 자리 수를 만들려고 합니다. 만들 수 있는 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 846

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
var_d = 6
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
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))
Category: Geometry

Question (EN): There is a trapezoid with an upper side of 12 centimeters (cm) and a lower side that is 4 centimeters (cm) longer than the upper side. If the height of this trapezoid is 10 centimeters (cm), how many square centimeters (cm2) is its area?
Question (KO): 윗변이 12센티미터(㎝)이고, 아랫변은 윗변보다 4센티미터(㎝) 더 긴 사다리꼴이 있습니다. 이 사다리꼴의 높이가 10센티미터(㎝)일 때 넓이는 몇 제곱센티미터입니까?

Answer: 140

Solution (Python):
var_a = 12
var_b = 12
var_c = 4
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 10
var_g = var_e * var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There are 35 female (a) animals at the zoo. The number of female animals is 7 less than the male animals. How many (a) animals are there in all?
Question (KO): 동물원에서 (가) 동물의 암컷 35마리를 기릅니다. 암컷은 수컷보다 7마리가 적습니다. (가) 동물은 모두 몇 마리 있습니까?

Answer: 77

Solution (Python):
var_a = 35
var_b = 35
var_c = 7
var_d = var_b + var_c
var_e = var_a + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The salt water concentration in a 200-gram (g) cup is 25%. Another cup containing 300 grams (g) contains 60 grams (g) of salt. What is the concentration of salt water when two cups of salt water are mixed?
Question (KO): 200그램(g)이 담긴 컵의 소금물 농도는 25%입니다. 300그램(g)이 담긴 다른 컵에는 소금 60그램(g)이 들어있습니다. 두 컵의 소금물을 섞었을 때 소금물의 농도는 몇 %가 될까요?

Answer: 22

Solution (Python):
var_a = 200
var_b = 25
var_c = 100
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 60
var_g = var_e + var_f
var_h = 200
var_i = 300
var_j = var_h + var_i
var_k = var_g / var_j
var_l = 100
var_m = var_k * var_l
print(int(var_m))
Category: Comparison

Question (EN): The students in Eunji's class stand in three lines with the same number of students in each line each time they do exercise (A). Eunji is always 3rd from the front and 6th from the back in a row. How many students are there in Eunji's class?
Question (KO): 은지네 반 학생들은 (가) 운동을 할 때마다 3줄로 서고, 각 줄마다 학생 수가 같습니다. 은지는 항상 어느 한 줄의 앞에서 3번째, 뒤에서 6번째에 섭니다. 은지네 반 학생은 모두 몇 명입니까?

Answer: 24

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

Question (EN): There are three different numbers A, B and C. Find A from the three-digit addition formula ABC+ABC+ABC=954.
Question (KO): 서로 다른 세 수 A, B, C가 있습니다. 세 자리 수끼리의 덧셈식 ABC+ABC+ABC=954에서 A를 구하시오.

Answer: 3

Solution (Python):
var_a = 'ABC+ABC+ABC=954'
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): Add 45 to a number, divide by 2, then divide by 2 again and add 45 to get 85. Find this number.
Question (KO): 어떤 수에 45를 더하고 2를 나눈 다음 다시 2로 나누고 45를 더한 값이 85이다. 어떤 수를 구하시오.

Answer: 115

Solution (Python):
var_a = 85
var_b = 45
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 = 45
var_i = var_g - var_h
print(int(var_i))
Category: Possibility

Question (EN): When 6 people A, B, C, D, E, and F are to be lined up in a line, find the number of ways to put C, D, E next to each other.
Question (KO): A, B, C, D, E, F 6명을 한 줄로 세울 때, C, D, E를 서로 이웃하게 하여 세우는 경우의 수를 구하시오.

Answer: 144

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
var_f = 'F'
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 = 'B'
var_h = 'C'
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_i = len(list_c)
var_j = len(list_c)
var_k = 1
var_i = int(var_i)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_i-i)
var_l = 'C'
var_m = 'D'
var_n = 'E'
list_d= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_d.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_d.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_d.append(var_l)
list_d.reverse()
var_o = len(list_d)
var_p = len(list_d)
var_q = 1
var_o = int(var_o)
var_p = int(var_p)
for i, elem in enumerate(range(var_p)):
    var_q = var_q * (var_o-i)
var_r = var_k * var_q
print(int(var_r))
Category: Possibility

Question (EN): I am trying to draw one out of 0, 1, 3, and 5 to make a 3-digit number. Add the largest and smallest possible numbers.
Question (KO): 3자리 숫자를 만들기 위해 0, 1, 3, 5 중에서 하나씩 뽑으려고 합니다. 만들 수 있는 수 중에서 가장 큰 수와 가장 작은 수를 뽑아서 더하시오.

Answer: 634

Solution (Python):
var_a = 0
var_b = 1
var_c = 3
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
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))
Category: Possibility

Question (EN): There are 1 green ball and 3 indistinguishable yellow balls. How many different ways can you place these 4 balls in a row?
Question (KO): 초록색 공 1개와 구분이 되지 않는 노란색 공 3개가 있습니다. 이 공 4개를 서로 다르게 한 줄로 놓는 방법은 모두 몇 가지 입니까?

Answer: 4

Solution (Python):
var_a = 1
var_b = 3
var_c = var_a + var_b
var_d = 1
var_e = 3
var_f = var_d + var_e
var_g = 1
var_c = int(var_c)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_c-i)
var_h = 3
var_i = 3
var_j = 1
var_h = int(var_h)
var_i = int(var_i)
for i, elem in enumerate(range(var_i)):
    var_j = var_j * (var_h-i)
var_k = var_g / var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): When there are four numbers 10, 11, 12, and 13, which number is the second largest?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중 2번째로 큰 수는 무엇입니까?

Answer: 12

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
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 = 2
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
print(int(var_f))
Category: Possibility

Question (EN): The four toy trains are numbered 7, 6, 8, and 5. When you put them in order to make a four-digit number, what is the sum of the third largest number and the third smallest number you can make?
Question (KO): 장난감 기차 4개에 7, 6, 8, 5가 적혀 있습니다. 이를 차례로 놓아 네 자리 수를 만들 때, 민들 수 있는 세 번째 큰 수와 세 번째 작은 수의 합은 얼마입니까?

Answer: 14443

Solution (Python):
var_a = 7
var_b = 6
var_c = 8
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 = len(list_a)
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))
Category: Comparison

Question (EN): There are the same number of cars in each row. Red cars are in the 14th row from the front, 19th row from the left, 11th row from the back, and 16th row from the right. How many cars are there in total?
Question (KO): 각 줄마다 있는 자동차의 수는 같습니다. 빨간색 자동차는 앞에서 14번째 줄, 왼쪽에서 19번째 열, 뒤에서 11번째 줄, 오른쪽에서 16번째 열일때 자동차는 모두 몇 대입니까?

Answer: 816

Solution (Python):
var_a = 19
var_b = 16
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 14
var_g = 11
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: Comparison

Question (EN): Minji has 0.74 meters (m), Seungyeon has 13/20 meters (m), and Hyesu has 4/5 meters (m) of colored tape. Who has the longest colored tape?
Question (KO): 민지는 0.74미터(m), 승연은 13/20미터(m), 혜수는 4/5미터(m)의 색 테이프를 가지고 있다. 누가 가장 긴 색 테이프를 가지고 있습니까?

Answer: Hyesu

Solution (Python):
var_a = 'Minji'
var_b = 'Seungyeon'
var_c = 'Hyesu'
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.74
var_e = 13
var_f = 20
var_g = var_e / var_f
var_h = 4
var_i = 5
var_j = var_h / var_i
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
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_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Geometry

Question (EN): You are going to cut a rectangular wooden plank which is 112 centimeters (cm) wide and 63 centimeters (cm) long to make square wooden planks with a side length of 7 centimeters (cm). How many can you make in total?
Question (KO): 가로가 112센티미터(㎝), 세로가 63센티미터(㎝)인 직사각형 모양의 나무판자를 잘라 한 변의 길이가 7센티미터(㎝)인 정사각형 모양의 나무판자 조각을 만들려고 합니다. 모두 몇 개를 만들 수 있습니까?

Answer: 144

Solution (Python):
var_a = 112
var_b = 7
var_c = var_a // var_b
var_d = 63
var_e = 7
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g))
Category: Comparison

Question (EN): Dongkyun, Youngtak, and Seunghwan have snacks. If Dongkyun has more cookies than Youngtak and Seunghwan has more than Dongkyun, who has the most cookies?
Question (KO): 동균, 영탁, 승환은 과자를 가지고 있습니다. 동균이가 영탁이보다 더 많고 승환이 동균이보다 더 많다면 누가 쿠키를 가장 많이 가지고 있을까요?

Answer: Seunghwan

Solution (Python):
var_a = 'Dongkyun'
var_b = 'Youngtak'
var_c = 'Seunghwan'
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 = 'Dongkyun'
var_e = 'Youngtak'
var_f = '>'
var_g = 'Seunghwan'
var_h = 'Dongkyun'
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)
Category: Arithmetic calculation

Question (EN): Jimin planted 6 flowers, Seokjin planted 14 flowers, Minyoung planted 9 flowers, and Taehyung planted 15 flowers. How many more flowers did the person who planted the most plants than the person who planted the second least?
Question (KO): 꽃을 지민이는 6송이, 석진이는 14송이, 민영이는 9송이, 태형이는 15송이를 심었습니다. 꽃을 가장 많이 심은 사람은 2번째로 적게 심은 사람보다 몇 송이 더 많이 심었습니까?

Answer: 6

Solution (Python):
var_a = 6
var_b = 14
var_c = 9
var_d = 15
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))
Category: Geometry

Question (EN): There is a rectangular wall. If the width of this wall is 5.4 meters (m) and the length is 2.5 meters (m), what is the area in square meters (m2)?
Question (KO): 직사각형 모양의 담벼락이 있습니다. 이 담벼락의 가로 길이는 5.4미터(m)이고, 세로 길이는 2.5미터(m)일 때 넓이는 몇 제곱미터(㎡)인지 구하시오.

Answer: 13.5

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

Question (EN): Jimin had 27 books. His father bought 8 more books and his mother bought 12 more books. How many books does Jimin have now compared to the beginning?
Question (KO): 지민이는 책을 27권 가지고 있었습니다. 아버지가 책을 8권 더 사주고 어머니가 12권을 더 사주셨습니다. 지민이가 가진 책은 처음보다 몇 권 더 많아졌습니까?

Answer: 20

Solution (Python):
var_a = 8
var_b = 12
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): Adding 36 to a number gives 71. How much is a number plus 10?
Question (KO): 어떤 수에 36을 더했더니 결과가 71이 나왔습니다. 어떤 수에 10을 더하면?

Answer: 45

Solution (Python):
var_a = 71
var_b = 36
var_c = var_a - var_b
var_d = 10
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): Adding 19 to A gives 47. How much is A?
Question (KO): A에 19를 더했더니 47이 되었습니다. A는 얼마입니까?

Answer: 28

Solution (Python):
var_a = 47
var_b = 19
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are 12 frogs inside the pond and 6 frogs outside the pond. How many frogs are there in all?
Question (KO): 연못 안에 있는 개구리는 12마리, 연못 밖에 있는 개구리는 6마리입니다. 개구리는 모두 몇 마리 있습니까?

Answer: 18

Solution (Python):
var_a = 12
var_b = 6
var_c = var_a + var_b
print(int(var_c))
Category: Possibility

Question (EN): If 2, 6, and 9 are used only once to form a three-digit number, what is the largest number?
Question (KO): 2, 6, 9를 한 번만 사용하여 세 자리 수를 만들었을 때, 가장 큰 수는 얼마인가?

Answer: 962

Solution (Python):
var_a = 2
var_b = 6
var_c = 9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 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))
Category: Arithmetic calculation

Question (EN): A mobile can be made with 4 millimetres (mm) of wire. After making several mobiles of the same size using 117.6 millimetres (mm) of wire, how many centimetres (cm) of wire are left?
Question (KO): 철사 4밀리미터(㎜)로 모빌을 1개 만들 수 있습니다. 철사 117.6밀리미터(㎜)로 같은 크기의 모빌을 여러개 만든 후 남은 철사는 몇 센티미터(㎝)입니까?

Answer: 0.16

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

Question (EN): If Jeong-hyeok's age is 1 year less than 1/4 of his uncle's age and his uncle's age is 5 years less than 5 times Jeong-hyeok's age, how old is Jeong-hyeok?
Question (KO): 정혁이의 나이는 삼촌의 나이의 1/4보다 1살이 적고 삼촌의 나이는 정혁이의 나이의 5배보다 5살이 적을 때, 정혁이의 나이는 몇 살입니까?

Answer: 9

Solution (Python):
var_a = 0.25
var_b = 5
var_c = var_a * var_b
var_d = 1
var_e = var_c + var_d
var_f = 0.25
var_g = 5
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: Geometry

Question (EN): How many circles with a radius of 2 centimeters (cm) can be drawn on a piece of paper that is 20 centimeters (cm) wide and 16 centimeters (cm) long?
Question (KO): 가로가 20센티미터(㎝)이고, 세로가 16센티미터(㎝)인 직사각형 모양의 종이에 반지름이 2센티미터(㎝)인 원을 겹치지 않게 그리면 몇 개까지 그릴 수 있습니까?

Answer: 20

Solution (Python):
var_a = 20
var_b = 2
var_c = 2
var_d = var_b * var_c
var_e = var_a // var_d
var_f = 16
var_g = 2
var_h = 2
var_i = var_g * var_h
var_j = var_f // var_i
var_k = var_e * var_j
print(int(var_k))
Category: Geometry

Question (EN): In a cube-shaped box, how many edges are there?
Question (KO): 정육면체 모양의 상자에서, 모서리의 개수는?

Answer: 12

Solution (Python):
var_a = 4
var_b = 3
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): There are 4 numbers: 0.8, 1/2, 0.5, and 1/3. What is the sum of all numbers less than or equal to 3?
Question (KO): 총 4개의 숫자 0.8, 1/2, 0.5, 1/3이 있습니다. 이 중 3보다 작거나 같은 수를 모두 더하면 얼마인가요?

Answer: 2.13

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

Question (EN): To make a ribbon loop, you want to cut the ribbons into 0.82 kilometers (km) long pieces. Find the length of the remaining ribbon length after making ribbon loops out of 53.73 kilometers (km) of ribbon.
Question (KO): 리본 고리를 만들기 위해 리본을 0.82킬로미터(㎞)씩 자르려고 합니다. 리본 53.73킬로미터(㎞)로 고리를 만들고 남는 리본은 몇 미터(m)인지 구하시오.

Answer: 430

Solution (Python):
var_a = 53.73
var_b = 0.82
var_c = var_a % var_b
var_d = 1000
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): In two-digit addition, the digit 9 in the ones place of the number added was incorrectly viewed as 2. Also, when the number 3 in the tens place of the number being added was mistakenly calculated as 6, the value was 119. Find the result of the correct calculation.
Question (KO): 두 자리 수끼리의 덧셈에서 더해지는 수의 일의 자리 숫자 9를 2로 잘못 보았습니다. 또 더하는 수의 십의 자리 숫자 3을 6으로 잘못 보고 계산하였더니 그 값이 119가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 96

Solution (Python):
var_a = 119
var_b = 1
var_c = 9
var_d = 2
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
var_h = 10
var_i = 3
var_j = 6
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_g + var_l
print(int(var_m))
Category: Geometry

Question (EN): 54 square-shaped pieces of colored paper were attached to dice with a side of 12 centimeters (cm) and then there was no empty space. Find the length of one side of this colored paper.
Question (KO): 한 모서리의 길이가 12센티미터(㎝)인 주사위에 남는 공간이 없이 정사각형 모양의 색종이를 붙였더니 54장이 되었습니다. 이 색종이의 한 변의 길이를 구하시오.

Answer: 4

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

Question (EN): A farmer raises 49 chickens and 37 ducks on a farm. The combined number of ducks and rabbits is 9 more than the number of chickens. How many rabbits are there?
Question (KO): 농장에서 닭 49마리와 오리 37마리를 기릅니다. 오리와 토끼의 수를 합하면 닭보다 9마리 많습니다. 토끼는 몇 마리입니까?

Answer: 21

Solution (Python):
var_a = 49
var_b = 9
var_c = var_a + var_b
var_d = 37
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): The amount of paint used to paint a sphere with a radius of 3 centimeters (cm) equals the amount of paint used to paint a circle. Find the radius of the circle.
Question (KO): 반지름이 3센티미터(㎝)인 구를 칠하는데 사용되는 페인트와 어떤 원을 칠하는데 사용되는 페인트의 양이 같다. 원의 반지름을 구하시오.

Answer: 6

Solution (Python):
var_a = 4
var_b = 3
var_c = 2
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 0.5
var_g = var_e ** var_f
print(int(var_g))