philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): Two cubes with one edge 5 cm (cm) long were placed in a line to make one cuboid. What is the volume of the cuboid made in cubic centimeters (cm3)?
Question (KO): 한 모서리의 길이가 5㎝인 정육면체 2개를 한 줄로 놓아 1개의 직육면체를 만들었습니다. 만들어진 직육면체의 부피는 몇 세제곱센티미터입니까?

Answer: 250

Solution (Python):
var_a = 5
var_b = 5
var_c = 2
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 5
var_g = var_e * var_f
print(int(var_g))
Category: Comparison

Question (EN): Nine people are standing in a line in order from shortest to tallest. Hoseok stands in the forefront. If you line up again in order from tallest to shortest, what number will Hoseok stand from the front?
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이가 가장 앞에 서 있습니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 호석이는 앞에서부터 몇 번째에 서게 됩니까?

Answer: 9

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

Question (EN): My father is 44 years old and my mother is 42 this year. How old is the father when the sum of the ages of the father and mother becomes 100?
Question (KO): 올해 아버지는 44살이고 어머니는 42살입니다. 아버지와 어머니의 나이 합이 100살이 될 때, 아버지 나이는 몇 살입니까?

Answer: 51

Solution (Python):
var_a = 44
var_b = 100
var_c = 44
var_d = 42
var_e = var_c + var_d
var_f = var_b - var_e
var_g = 2
var_h = var_f / var_g
var_i = var_a + var_h
print(int(var_i))
Category: Geometry

Question (EN): A square was made by arranging pieces of colored paper of the same size, 12 pieces in each width and 12 pieces in each length. How many colored papers are there in the border?
Question (KO): 크기가 같은 색종이를 가로 12개씩, 세로 12개씩 빈틈없이 늘어놓아 정사각형을 만들었습니다. 둘레에 놓인 색종이는 모두 몇 개일까요?

Answer: 44

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

Question (EN): Thirty pieces of tissue, each 25 centimeters (cm) long, were overlapped by 6 centimeters (cm) and attached in a long line. Find the total length in centimeters (cm) of 30 pieces of toilet paper attached.
Question (KO): 길이가 25센티미터(㎝)인 휴지 30개를 6센티미터(㎝)씩 겹쳐서 한 줄로 길게 이어 붙였습니다. 30개를 이어 붙인 휴지 전체 길이는 몇 센티미터(㎝)인지 구해 보시오.

Answer: 576

Solution (Python):
var_a = 25
var_b = 25
var_c = 6
var_d = var_b - var_c
var_e = 30
var_f = 1
var_g = var_e - var_f
var_h = var_d * var_g
var_i = var_a + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Hoseok has 2 candies of (A) and 5 candies of (B). How many candies does Hoseok have in all?
Question (KO): 호석이는 (가) 사탕 2개와 (나) 사탕 5개를 가지고 있습니다. 호석이가 가지고 있는 사탕은 모두 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 2
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): The number was supposed to be divided by 2.5, but it is divided by 2 and 2/5 by mistake, resulting in 15/32. What is the correct answer without mistakes?
Question (KO): 어떤 수를 2.5로 나누어야 할 것을 잘못하여 2와 2/5로 나누었더니 15/32가 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 0.45

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

Question (EN): There are 24 colored pencils, and red colored pencils makes 1/4 of the total. There are 6 more blue colored pencils than the red colored pencils, and the rest are all yellow colored pencils. Find what color pencils you have the most.
Question (KO): 색연필 24개가 있습니다. 빨간색 색연필은 전체의 1/4개 이며, 파란색 색연필은 빨간색 색연필보다 6개 더 많고, 나머지는 노란색 색연필입니다. 어떤 색의 색연필이 가장 많은지 구하시오.

Answer: blue

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 24
var_e = 0.25
var_f = var_d * var_e
var_g = 24
var_h = 0.25
var_i = var_g * var_h
var_j = 6
var_k = var_i + var_j
var_l = 24
var_m = 24
var_n = 0.25
var_o = var_m * var_n
var_p = 6
var_q = var_o + var_p
var_r = var_l - var_q
var_s = 24
var_t = 0.25
var_u = var_s * var_t
var_v = var_r - var_u
list_b= []
if "/" in str(var_v):
    var_v = eval(str(var_v))
list_b.append(var_v)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_w = 1
list_c=list_b.copy()
list_c.sort()
var_x = list_c[-var_w]
var_y = list_b.index(var_x)+1
var_z = list_a[var_y-1]
print(var_z)
Category: Correspondence

Question (EN): 6/11 of a number is 48. What is 1/8 of the number?
Question (KO): 어떤 수의 6/11은 48입니다. 어떤 수의 1/8은 얼마인지 구해 보시오.

Answer: 11

Solution (Python):
var_a = 48
var_b = 0.5454545454545454
var_c = var_a / var_b
var_d = 0.125
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): If we round 7A7 up to the tens place, we get a value of 730. Find the right value for A.
Question (KO): 7A7을 십의 자리까지 올림하면 730의 값을 얻습니다. A에 알맞은 값을 구하시오.

Answer: 2

Solution (Python):
var_a = '7A7'
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 = 730
list_b = []
for i in list_a:
    if i <= var_b:
        list_b.append(i)
var_c = 730
var_d = 10
var_e = var_c - var_d
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = '7A7'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Geometry

Question (EN): What is the volume, in cubic centimeters (cm3), of the largest cube you can make by cutting a rectangular cuboid block of wood that is 15 centimeters (cm) wide, 12 centimeters (cm) long, and 8 centimeters (cm) high?
Question (KO): 가로가 15센티미터(㎝), 세로가 12센티미터(㎝), 높이가 8센티미터(㎝)인 직육면체 모양의 나무토막을 잘라서 만들 수 있는 가장 큰 정육면체의 부피는 몇 세제곱센티미터입니까?

Answer: 512

Solution (Python):
var_a = 15
var_b = 12
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 = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-1]
var_f = 3
var_g = var_e ** var_f
print(int(var_g))
Category: Correspondence

Question (EN): There is a number obtained by adding 45 to 159, dividing this by 3, and adding 32. Divide this number by 12 to find the value.
Question (KO): 어떤 수는 159에서 45를 더하고 3으로 나눈 뒤 32를 더하여 나온 수 입니다. 이 수를 12로 나눈 값을 구하시오.

Answer: 8.33

Solution (Python):
var_a = 159
var_b = 45
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
var_f = 32
var_g = var_e + var_f
var_h = 12
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): Find the number of diagonals that can be drawn from one vertex of a dodecagon.
Question (KO): 십이각형의 한 꼭짓점에서 그을 수 있는 대각선의 개수를 구하시오.

Answer: 9

Solution (Python):
var_a = 12
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Find the remainder when 28 is divided by 10.02.
Question (KO): 28을 10.02으로 나누었을 때의 나머지를 구하시오.

Answer: 7.96

Solution (Python):
var_a = 28
var_b = 10.02
var_c = var_a % var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Comparison

Question (EN): There are four whales of (a), (b), (c), and (d). (a) Whales are faster than (b) whales. (b) Whales are faster than (c) whales. (c) Whales are slower than (d) whales. (d) Whales are faster than (a) whales. Which whale is the slowest?
Question (KO): (가), (나), (다), (라) 4마리의 고래가 있습니다. (가) 고래는 (나) 고래보다 빠릅니다. (나) 고래는 (다) 고래보다 빠릅니다. (다) 고래는 (라) 고래보다 느립니다. (라) 고래는 (가) 고래보다 빠릅니다. 가장 느린 고래는 어느 고래입니까?

Answer: (c)

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 = '(b)'
var_g = '>'
var_h = '(b)'
var_i = '(c)'
var_j = '>'
var_k = '(c)'
var_l = '(d)'
var_m = '<'
var_n = '(d)'
var_o = '(a)'
var_p = '>'
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_b.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
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_q = len(list_c)
var_r = list_c[var_q-1]
print(var_r)
Category: Arithmetic calculation

Question (EN): You went to the bank with 25 checks for 1 million won and 8 checks for 100,000 won and put them in your bank account. If there was no money in the account before then, how much money is in the account now?
Question (KO): 은행에 100만 원짜리 수표 25장, 10만 원짜리 수표 8장을 들고 가서 통장에 넣었습니다. 그 전에 통장에 돈이 없었다면 현재 통장에 들어있는 돈은 얼마입니까?

Answer: 25800000

Solution (Python):
var_a = 100
var_b = 10000
var_c = var_a * var_b
var_d = 25
var_e = var_c * var_d
var_f = 10
var_g = 10000
var_h = var_f * var_g
var_i = 8
var_j = var_h * var_i
var_k = var_e + var_j
print(int(var_k))
Category: Geometry

Question (EN): What is the total number of vertices in a tetrahedron?
Question (KO): 정사면체에서 꼭짓점의 수는 모두 몇개인가요?

Answer: 4

Solution (Python):
var_a = 3
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Jungkook has the number 6 minus 3, Yoongi collected 4, and Yuna collected 5. Who has the smallest number?
Question (KO): 정국에는 6에서 3을 뺀 수만큼 모았고, 윤기는 4, 유나는 5를 모았습니다. 누가 가장 작은 수를 가지고 있나요?

Answer: Jungkook

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
var_c = 'Yuna'
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 = 6
var_e = 3
var_f = var_d - var_e
var_g = 4
var_h = 5
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_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_i = 1
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)
Category: Correspondence

Question (EN): When the older brother is 10, the younger brother is 7 years old, and when the younger brother is 5 years old, the mother is 32 years old. Find the sum of the ages of the younger brother and mother when the older brother is 12 years old.
Question (KO): 형이 10살일 때 동생은 7살이고, 동생이 5살일 때 어머니는 32살입니다. 형이 12살일 때 동생과 어머니의 나이의 합을 구하시오.

Answer: 45

Solution (Python):
var_a = 12
var_b = 7
var_c = 10
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 12
var_g = 7
var_h = 10
var_i = var_g - var_h
var_j = var_f + var_i
var_k = 32
var_l = 5
var_m = var_k - var_l
var_n = var_j + var_m
var_o = var_e + var_n
print(int(var_o))
Category: Comparison

Question (EN): I listed the numbers of 2.38, 2.83, and 2.401 in descending order. What number comes in the second?
Question (KO): 2.38, 2.83, 2.401을 큰 순서대로 늘어놓았습니다. 두 번째로 올 수는 무엇인가요?

Answer: 2.4

Solution (Python):
var_a = 2.38
var_b = 2.83
var_c = 2.401
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 = 2
list_b=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): There is a rectangle with a length of 5.4 centimeters (cm) and an area of 48.6 square centimeters (cm2). How many centimeters (cm) is the width of this rectangle?
Question (KO): 세로가 5.4 센티미터(㎝) , 넓이가 48.6 제곱센티미터(㎠)인 직사각형이 있습니다. 이 직사각형의 가로는 몇 센티미터(㎝) 입니까?

Answer: 9

Solution (Python):
var_a = 48.6
var_b = 5.4
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): Two-digit number that is a multiple of 6 and 9 has a remainder of 1 when divided by 7. Find this two digit number.
Question (KO): 6과 9의 배수이면서 7로 나누었을때 나머지가 1인 어떤 두자리수가 있다. 이 두자리 수를 구하시오.

Answer: 36

Solution (Python):
var_a = 10
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
var_e = 9
var_f = var_e * var_d / math.gcd(int(var_e), int(var_d))
var_g = 0
list_b = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_a:
    i = int(i)
    if i%var_f == var_g:
        list_b.append(i)
var_h = 7
var_i = 1
list_c = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_b:
    i = int(i)
    if i%var_h == var_i:
        list_c.append(i)
var_j = 1
var_k = list_c[var_j-1]
print(int(var_k))
Category: Correspondence

Question (EN): There are one-digit numbers A and B. 757AB384 is a multiple of 357. Find the value of B.
Question (KO): 한 자리 수 A, B가 있습니다. 757AB384는 357의 배수입니다. B의 값을 구하시오.

Answer: 5

Solution (Python):
var_a = '757AB384'
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 = 357
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = '757AB384'
var_d = 'B'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
var_e = 0
for elem in list_b:
    elem = str(elem)
    var_e = int(elem[unk_idx])
print(int(var_e))
Category: Comparison

Question (EN): Among 5.21, 2/3, 3.21, 3.42, and 1/3, find the product of the smallest 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 = 0.6666666666666666
var_c = 3.21
var_d = 3.42
var_e = 0.3333333333333333
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]
var_h = 2
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): When 6AB+3=691, find A.
Question (KO): 6AB+3=691일 때, A를 구하시오.

Answer: 8

Solution (Python):
var_a = '6AB+3=691'
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: Arithmetic calculation

Question (EN): My mother is 42 years old this year, and my father is 44 years old. How old is the father in the year when the sum of their ages is 100?
Question (KO): 어머니는 올해 42살이고, 아버지는 44살입니다. 두 분의 나이를 합한 값이 100이 되는 해에 아버지의 나이는 몇 살입니까?

Answer: 51

Solution (Python):
var_a = 44
var_b = 100
var_c = 44
var_d = 42
var_e = var_c + var_d
var_f = var_b - var_e
var_g = 2
var_h = var_f / var_g
var_i = var_a + var_h
print(int(var_i))
Category: Geometry

Question (EN): When the bottles were arranged in a square, there were 36 bottles left. I increased the width and height of the square by one column each, and there were still 3 bottles left out. How many bottles are there in total?
Question (KO): 음료수를 정사각형으로 정렬하니 36캔이 남았습니다. 가로와 세로를 1열 씩 늘렸더니 아직도 3캔이 남았습니다. 음료수는 모두 몇 캔일까요?

Answer: 292

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

Question (EN): Yoongi had 4 apples, Yuna had 5 apples, and Jungkook had 6 apples, but he ate 3. Who has the most apples?
Question (KO): 윤기가 가진 사과가 4개, 유나가 가진 사과가 5개, 정국이는 6개의 사과의 사과를 가지고 있었지만 3개를 먹었습니다. 누가 가장 많은 사과를 가지고 있나요?

Answer: Yuna

Solution (Python):
var_a = 'Yoongi'
var_b = 'Yuna'
var_c = 'Jungkook'
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 = 4
var_e = 5
var_f = 6
var_g = 3
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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)
Category: Possibility

Question (EN): There are three chicken restaurants, two pizza restaurants, and two Chinese restaurants near Minsu's house. When ordering delivery food from 3 of these places at the same time, find the number of cases.
Question (KO): 민수네 집 근처에는 치킨집이 3곳, 피자집이 2곳, 중국집이 2곳이 있다. 이 중 3곳에서 배달음식을 동시에 주문할 때, 주문하는 경우의 수를 구하시오.

Answer: 35

Solution (Python):
var_a = 3
var_b = 2
var_c = var_a + var_b
var_d = 2
var_e = var_c + var_d
var_f = 3
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))
Category: Possibility

Question (EN): Use the all number cards 1, 6, and 8 once and find the third largest three-digit number.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 세 번째 큰 세 자리 수를 구하시오.

Answer: 681

Solution (Python):
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]
print(int(var_f))
Category: Geometry

Question (EN): The width of the square paper is 8 centimeters (cm). If the perimeter is 40 centimeters (cm), how long is the length?
Question (KO): 네모난 종이의 가로 길이가 8센티미터(㎝)이다. 둘레가 40센티미터(㎝)이면 세로의 길이는 얼마인가?

Answer: 12

Solution (Python):
var_a = 40
var_b = 2
var_c = var_a / var_b
var_d = 8
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You want to give dolls to students in a class. When 4 dolls were given to each student, 3 dolls were left, and when 5 dolls were given, 6 dolls were in short. How many dolls did you have?
Question (KO): 한 반에 있는 학생들에게 인형을 주려고 한다. 한 명당 4개씩 주니 3개의 인형이 남았고, 5개씩 주니 6개가 부족했다. 주려고 한 인형은 모두 몇 개인가?

Answer: 39

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

Question (EN): There is a pentagon whose all sides have the same length. If one side of this pentagon is 15 centimeters (cm) long, how many centimeters (cm) is the sum of all the side lengths?
Question (KO): 변의 길이가 모두 같은 오각형이 있습니다. 이 오각형의 한 변의 길이가 15센티미터(㎝)라면, 모든 변의 길이의 합은 몇 센티미터(㎝)인지 구하시오.

Answer: 75

Solution (Python):
var_a = 15
var_b = 5
var_c = var_a * var_b
print(int(var_c))