philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Kyungsoo's group of students did the long jump. When Kyungsoo jumped 2.3 meters (m), Younghee jumped 9/10 meters (m), Jinju jumped 1.8 meters (m), and Chanho jumped 2.5 meters (m), who came second?
Question (KO): 경수네 모둠 학생들은 멀리뛰기를 하였습니다. 경수가 2.3미터(m), 영희가 9/10미터(m), 진주가 1.8미터(m), 찬호가 2.5미터(m)를 뛰었을 때, 2등은 누구입니까?

Answer: Kyungsoo

Solution (Python):
var_a = 'Kyungsoo'
var_b = 'Younghee'
var_c = 'Jinju'
var_d = 'Chanho'
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.3
var_f = 0.9
var_g = 1.8
var_h = 2.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)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 2
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: Correspondence

Question (EN): If we divide this value by 2.5 and take away 10.5 and then multiply it by 0.3, we get 5.85. What is this number?
Question (KO): 2.5로 나눈 값에 10.5를 빼고 다시 0.3을 곱하면 5.85가 된다고 할 때, 이 수는 얼마입니까?

Answer: 75

Solution (Python):
var_a = 5.85
var_b = 0.3
var_c = var_a / var_b
var_d = 10.5
var_e = var_c + var_d
var_f = 2.5
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): What single digit number must be placed in A to make the equation 61A+B3=645?
Question (KO): 61A+B3=645라는 식이 성립하려면, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = '61A+B3=645'
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): There is a parallelogram that has a base of 3.6 and a height of 2.5 times the base. Find the area of this parallelogram.
Question (KO): 밑변이 3.6이고 높이가 밑변의 2.5배인 평행사변형이 있다. 평행사변형의 넓이를 구하시오.

Answer: 32.4

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

Question (EN): You want to create a two-digit number by drawing two different numbers from 7, 4, 0, 3, and 5. Find the difference between the third largest number and the third smallest number.
Question (KO): 7, 4, 0, 3, 5 중에서 서로 다른 숫자 2개를 뽑아 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에서 셋째로 큰 수와 셋째로 작은 수의 차를 구하시오.

Answer: 38

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

Question (EN): There are 108 marbles of red marbles, blue marbles and white marbles. The number of blue marbles is 1/3 of the red marbles and the number of white marbles is 1/2 of the blue marbles. Which color has the least number of marbles?
Question (KO): 108개의 빨간색 구슬, 파란색 구슬, 흰색 구슬이 있습니다. 파란색 구슬의 수는 빨간색 구슬의 1/3이고 흰색 구슬의 수는 파란색 구슬의 1/2입니다. 구슬의 수가 가장 적은 색은 무엇입니까?

Answer: white

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'white'
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
var_e = 0.3333333333333333
var_f = 0.3333333333333333
var_g = 0.5
var_h = var_f * var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Geometry

Question (EN): A rectangle 6 centimetres (cm) wide, 5 centimetres (cm) long and 4 centimetres (cm) high has been painted green on all sides. This rectangle is cut into 120 cubes, each 1 centimetre (cm) long. How many of the cubes have no coloured faces?
Question (KO): 가로가 6센티미터(㎝), 세로가 5센티미터(㎝), 높이가 4센티미터(㎝)인 직육면체의 모든 면에 초록색 물감을 칠하였습니다. 이 직육면체를 한 모서리의 길이가 1센티미터(㎝)인 정육면체 120개로 잘랐습니다. 색칠된 면이 없는 정육면체 조각은 몇 개입니까?

Answer: 24

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

Question (EN): How many meters (m) is the width of Jeong Su's field if it is a rectangle with an area of 143.2 square meters (m2) and the length of this field is 4 meters (m)?
Question (KO): 정수네 밭의 넓이가 143.2제곱미터(㎡)인 직사각형 모양이며, 이 밭의 세로가 4미터(m) 일 때, 가로는 몇 미터(m)입니까?

Answer: 35.8

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

Question (EN): A number multiplied by 8. 64 was added to the multiplied result. If the result of the calculation is 336, what is the number?
Question (KO): 어떤 수에 8을 곱했습니다. 곱한 결과에 64를 더했습니다. 계산의 결과가 336이라면 어떤 수는 얼마입니까?

Answer: 34

Solution (Python):
var_a = 336
var_b = 64
var_c = var_a - var_b
var_d = 8
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): There are three numbers A, B and C. A is 38 greater than 18. B is 26 less than A. C is the quotient of B divided by 3. Which number is the smallest?
Question (KO): 세 수 A, B, C가 있습니다. A는 18보다 38 큰 수입니다. B는 A보다 26 작은 수입니다. C는 B를 3으로 나눈 몫입니다. 가장 작은 수는 어느 것입니까?

Answer: C

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
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 = 18
var_e = 38
var_f = var_d + var_e
var_g = 18
var_h = 38
var_i = var_g + var_h
var_j = 26
var_k = var_i - var_j
var_l = 18
var_m = 38
var_n = var_l + var_m
var_o = 26
var_p = var_n - var_o
var_q = 3
var_r = var_p / var_q
list_b= []
if "/" in str(var_r):
    var_r = eval(str(var_r))
list_b.append(var_r)
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_s = 1
list_c=list_b.copy()
list_c.sort()
var_t = list_c[var_s-1]
var_u = list_b.index(var_t)+1
var_v = list_a[var_u-1]
print(var_v)
Category: Geometry

Question (EN): If the coin's radius is 7 centimeters (cm), how many centimeters (cm) is the coin's diameter?
Question (KO): 동전의 반지름의 길이가 7센티미터(㎝)일 때, 동전의 지름의 길이는 몇 센티미터(㎝)인가요?

Answer: 14

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

Question (EN): He painted all the faces of a cube with an edge of 3 cm (cm) red. Then he cut this cube into 27 small cubes, each 1 cm (cm) long. How many of the small cubes have 3 faces painted red?
Question (KO): 한 모서리의 길이가 3㎝인 정육면체의 모든 면에 빨간색을 칠하였습니다. 그리고 이 정육면체를 한 모서리의 길이가 1㎝인 작은 정육면체 27개로 잘랐습니다. 3개의 면에 빨간색이 칠해져 있는 작은 정육면체 조각은 몇 개입니까?

Answer: 8

Solution (Python):
var_a = 8
print(int(var_a))
Category: Possibility

Question (EN): Seokjin, Taehyung, Namjoon, Yoojeong, and Yuna are standing in line to checkout. At this time, how many ways are there to line up so that the order of payment differs?
Question (KO): 석진, 태형, 남준, 유정, 유나가 계산을 하기 위해 줄을 서있습니다. 이 때, 계산을 하는 순서가 달라지게 줄을 서는 방법은 모두 몇 가지가 있습니까?

Answer: 120

Solution (Python):
var_a = 'Seokjin'
var_b = 'Taehyung'
var_c = 'Namjoon'
var_d = 'Yoojeong'
var_e = 'Yuna'
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = len(list_a)
var_g = 5
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
print(int(var_h))
Category: Comparison

Question (EN): Horses, cows, pigs, sheep, rabbits, and squirrels entered the pen in this order. Which animal took 4th place?
Question (KO): 말, 소, 돼지, 양, 토끼, 다람쥐 순으로 우리 안으로 들어갔습니다. 4위를 차지한 동물은?

Answer: sheep

Solution (Python):
var_a = 'Horses'
var_b = 'cows'
var_c = 'pigs'
var_d = 'sheep'
var_e = 'rabbits'
var_f = 'squirrels'
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 = 4
var_h = list_a[var_g-1]
print(var_h)
Category: Possibility

Question (EN): How many two-digit numbers can be made using two of the number cards 1, 2, and 7?
Question (KO): 1, 2, 7의 숫자 카드 중 2장을 사용하여 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 2
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 = 2
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 = len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): In one exhibition hall, there was not enough space to hang the work, so we decided to install a temporary wall. If the width of this wall is 5.4 meters (m) and the length is 2.5 meters (m), how many square meters (m2) will the area be?
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: Comparison

Question (EN): There is a box A that is 3 centimeters (cm) high and box B with 3.5 centimeters (cm) high. Taehyung stacked the boxes A and Yoongi stacked the boxes B. If Taehyung and Yoongi each stacked the boxes up to 16th and 14th floors, respectively, find out who stacked the boxes higher.
Question (KO): 높이가 3센티미터(㎝)인 (가) 상자와 높이가 3.5센티미터(㎝)인 (나) 상자가 있습니다. 태형이는 (가) 상자를 쌓았고 윤기는 (나) 상자를 쌓았습니다. 태형이와 윤기가 각각 상자를 16층, 14층으로 쌓았다면, 상자를 더 높이 쌓은 사람은 누구인지 구하시오.

Answer: Yoongi

Solution (Python):
var_a = 'Taehyung'
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 = 3
var_d = 16
var_e = var_c * var_d
var_f = 3.5
var_g = 14
var_h = var_f * var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): Yoongi is going to multiply a number by 7. But when he accidentally added 9, the result was 30. Find the correct calculation result.
Question (KO): 윤기는 어떤 수에 7을 곱하려고 합니다. 하지만 실수로 9를 더했더니 결과는 30이 되었습니다. 바르게 계산한 결과를 구하세요.

Answer: 147

Solution (Python):
var_a = 30
var_b = 9
var_c = var_a - var_b
var_d = 7
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): It took Minsu 10 days to complete 2/9 of the job. Find how many days it will take to complete 2/5 of the work.
Question (KO): 민수가 어떤 일의 2/9를 처리하는데 10일이 걸렸다. 그 일의 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: Possibility

Question (EN): You want to create a two-digit number by drawing two different numbers from 7, 4, 0, 3, and 5. Find the product of the third largest number and the third smallest number.
Question (KO): 7, 4, 0, 3, 5 중에서 서로 다른 숫자 2개를 뽑아 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에서 셋째로 큰 수와 셋째로 작은 수의 곱을 구하시오.

Answer: 2555

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

Question (EN): A number multiplied by 6 and divided by 1.5 equals 3.8. Find a number.
Question (KO): 어떤 수에 6을 곱하고 1.5로 나눈 값이 3.8이라고 한다. 어떤 수를 구하시오.

Answer: 0.95

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

Question (EN): The seven digits 0, 1, 2, 3, 4, 5, and 6 are used once to form a seven-digit number. If this number is a multiple of 55, find the third smallest of this number.
Question (KO): 일곱 개의 숫자 0, 1, 2, 3, 4, 5, 6을 한 번씩 사용하여 일곱 자리 수를 만들었다. 이 수가 55의 배수일 때, 세 번째로 작은 수를 구하여라.

Answer: 1062435

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
var_g = 6
list_a= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
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_h = 7
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_h))
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_i = 55
list_c = []
var_i = int(var_i)
for i in list_b:
    i = int(i)
    if i % var_i == 0:
        list_c.append(i)
var_j = 3
list_d=list_c.copy()
list_d.sort()
var_k = list_d[var_j-1]
print(int(var_k))
Category: Geometry

Question (EN): What is the length of the radius of the circumcircle of a right triangle with sides 10 centimeters (cm), 8 centimeters (cm), and 6 centimeters (cm), respectively?
Question (KO): 세 변의 길이가 각각 10 센티미터(㎝), 8 센티미터(㎝), 6 센티미터(㎝)인 직각삼각형의 외접원의 반지름의 길이는?

Answer: 5

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

Question (EN): As Yoojung gave 7 candies to her older sister and 6 to her younger sister, there were 15 left on hand. Find number of candies Yoojung had at first.
Question (KO): 유정이는 가지고 있던 사탕 중에서 언니에게 7개를 주고 동생에게 6개를 주었더니 15개가 남았습니다. 처음에 유정이가 가지고 있던 사탕은 몇 개입니까?

Answer: 28

Solution (Python):
var_a = 15
var_b = 6
var_c = var_a + var_b
var_d = 7
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): A pumpkin weighs 2 kilograms (kg) and 9/10 kilograms (kg), and a watermelon weighs 41/10 kilograms (kg). Which is heavier, pumpkin or watermelon?
Question (KO): 호박의 무게는 2킬로그램(㎏)과 9/10킬로그램(㎏)이고 수박의 무게는 41/10킬로그램(㎏)입니다. 호박과 수박 중 어느 것이 더 무겁습니까?

Answer: watermelon

Solution (Python):
var_a = 'pumpkin'
var_b = 'watermelon'
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 = 2
var_d = 9
var_e = 10
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 41
var_i = 10
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)
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: Arithmetic calculation

Question (EN): Sangheon is 1.56 meters (m) tall. Chiho is 0.14 meters (m) shorter than Sangheon, and Nara is 0.27 meters (m) taller than Chiho. How tall is Nara in meters (m)?
Question (KO): 상헌이의 키는 1.56 미터(m) 입니다. 치호는 상헌이보다 0.14 미터(m) 작고 나라는 치호보다 0.27 미터(m) 크다고 합니 다. 나라의 키는 몇 미터(m)입니까?

Answer: 1.69

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

Question (EN): Subtract 29 from this number and add 64 to get 76. Find the number.
Question (KO): 어떤 수에서 29를 빼고 64를 더했더니 76이 되었습니다. 어떤 수를 구하시오.

Answer: 41

Solution (Python):
var_a = 76
var_b = 64
var_c = var_a - var_b
var_d = 29
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

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

Answer: Yoongi

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): A and B are different single-digit numbers. Find the value of A+B that correspond to the following multiplication equation AB×6=BBB.
Question (KO): A, B는 서로 다른 한 자리 수입니다. 다음 곱셈식 AB×6=BBB에서 A+B의 값을 구하시오.

Answer: 11

Solution (Python):
var_a = 'AB×6=BBB'
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]
var_d = 'AB×6=BBB'
var_e = 'B'
ans_dict = dict()
var_d = var_d.replace('×','*')
var_d = var_d.replace('x','*')
var_d = var_d.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_d):
    if v in variable_candi:
        ans_dict[v] = 1
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]))
    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_d):
        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_f = ans_dict[var_e]
var_g = var_c + var_f
print(int(var_g))