philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): 10's are 21, 1's are 8, 0.1's are 5, and 0.01's are 34 in a certain number. How much is this number?
Question (KO): 10 이 21 개, 1 이 8 개, 0.1 이 5 개, 0.01 이 34 개인 수는 얼마입니까?

Answer: 218.84

Solution (Python):
var_a = 10
var_b = 21
var_c = var_a * var_b
var_d = 1
var_e = 8
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 0.1
var_i = 5
var_j = var_h * var_i
var_k = var_g + var_j
var_l = 0.01
var_m = 34
var_n = var_l * var_m
var_o = var_k + var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Possibility

Question (EN): Given 3 number cards with 6, 3, and 8 written on them, find the sum of the largest and smallest three-digit numbers that can be formed by using each card only once.
Question (KO): 6, 3, 8이 각각 적힌 숫자 카드 3장이 있을 때, 각 카드를 딱 한 번씩만 사용하여 만들 수 있는 세 자리 수 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 1231

Solution (Python):
var_a = 6
var_b = 3
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): How many three-digit numbers are common multiples of 4 and 5?
Question (KO): 세 자리 수 중 4와 5의 공배수는 모두 몇 개 입니까?

Answer: 45

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 4
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 5
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Yewon ran at a speed of 180 meters (m) in 30 seconds. How many meters (m) did Yewon run in 1 minute?
Question (KO): 예원이는 30초에 180미터(m)를 달리는 빠르기로 달렸다. 1분 동안 예원이가 달린 거리는 몇 미터(m)인가?

Answer: 360

Solution (Python):
var_a = 1
var_b = 60
var_c = var_a * var_b
var_d = 30
var_e = var_c / var_d
var_f = 180
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): There is a number that is divisible by 5 and the resulting quotient is 4. Subtract 10 from that particular number, and then multiply by 3, and then subtract 18. What is the answer?
Question (KO): 5로 나누어떨어지고 5로 나눈 몫이 4인 어떤 수가 있다. 어떤 수에서 10을 빼고 3을 곱한 후 18을 뺀 값을 구하세요.

Answer: 12

Solution (Python):
var_a = 4
var_b = 5
var_c = var_a * var_b
var_d = 10
var_e = var_c - var_d
var_f = 3
var_g = var_e * var_f
var_h = 18
var_i = var_g - var_h
print(int(var_i))
Category: Correspondence

Question (EN): Subtracting 7/3 from a number equals 3/2. What is the result if you add 7/3 to that number?
Question (KO): 어떤 수에서 7/3을 빼면 3/2이다. 어떤 수에서 7/3을 더하면 얼마인지 구하시오.

Answer: 6.17

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

Question (EN): 63 is the result of mistakely adding 44 and subtracting 39 when you actually have to add 39 to this certain number and subtract 44. Find the result of the correct calculation.
Question (KO): 63은 어떤 수에 39를 더하고 44를 빼야하는데 실수로 44를 더하고 39를 빼서 구한 결과이다. 바르게 계산한 결과를 구하여라.

Answer: 53

Solution (Python):
var_a = 63
var_b = 44
var_c = var_a - var_b
var_d = 39
var_e = var_c + var_d
var_f = 39
var_g = var_e + var_f
var_h = 44
var_i = var_g - var_h
print(int(var_i))
Category: Possibility

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

Answer: 18

Solution (Python):
var_a = 5
var_b = 6
var_c = 4
var_d = 7
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]
list_d = []
var_g = int(var_g)
while var_g//10 > 0:
    list_d.append(var_g%10)
    var_g = var_g//10
list_d.append(var_g%10)
list_d = list_d[::-1]
list_d = [float(i) for i in list_d]
var_h = sum(list_d)
print(int(var_h))
Category: Comparison

Question (EN): Yoongi has 4, and Jungkook has a number that is the quotient of 6 divided by 3. Who has the bigger number?
Question (KO): 윤기는 4, 정국이는 6에서 3을 나눈 몫을 모았습니다. 더 큰 숫자를 가진 사람은 누구입니까?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 6
var_e = 3
var_f = var_d // var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Arithmetic calculation

Question (EN): If the amount of gasoline in the oil canister is 13 milliliters (ml) lighter than 54 liters (L), what is the amount of gasoline in the oil canister in liters (L)?
Question (KO): 기름통에 들어있는 휘발유의 양이 54리터(L)보다 13밀리리터(㎖) 가벼울 때, 기름통에 들어있는 휘발유의 양을 리터(L)로 구한다면 얼마입니까?

Answer: 53.99

Solution (Python):
var_a = 54
var_b = 13
var_c = 1000
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): If you can make a number with two decimal digits that is made by using the numbers 3, 8, 2, and 7 once, write the third smallest number.
Question (KO): 3, 8, 2, 7의 숫자가 적힌 4 장의 카드를 모두 한 번씩 사용하여 소수 두 자리 수를 만들 때 세 번째로 작은 수를 쓰시오.

Answer: 27.38

Solution (Python):
var_a = 3
var_b = 8
var_c = 2
var_d = 7
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 = 4
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-1]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the quotient of the largest number divided by the next largest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 큰 수와 그 다음으로 큰 수로 나눈 몫은 얼마입니까?

Answer: 1

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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 = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = var_g // var_i
print(int(var_j))
Category: Possibility

Question (EN): Find the smallest number that can be made by using all the number cards 0, 2, 4, 6, 8 and 9 only once.
Question (KO): 0, 2, 4, 6, 8, 9 수 카드를 모두 한 번씩만 사용하여 만들 수 있는 가장 작은 수를 찾으시오

Answer: 204689

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
var_d = 6
var_e = 8
var_f = 9
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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = 1
list_c=list_b.copy()
list_c.sort()
var_i = list_c[var_h-1]
print(int(var_i))
Category: Possibility

Question (EN): How many two-digit numbers are there which are made up of 1 and 4 and, when flipped, become other numbers?
Question (KO): 두 자리수 중 1과 4로 이루어져 있고, 뒤짚었을 때 다른 수가 되는 것은 모두 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 1
var_b = 4
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = len(list_b)
print(int(var_d))
Category: Comparison

Question (EN): Hoseok had 576 marbles, and Yoongi had 352. If Hoseok gives Yoongi 100 marbles, who has more marbles?
Question (KO): 호석이는 구슬을 576개 가지고 있고, 윤기는 352개 가지고 있습니다. 호석이가 윤기에게 구슬을 100개 주었을 때, 누가 더 구슬을 많이 가지고 있습니까?

Answer: Hoseok

Solution (Python):
var_a = 'Hoseok'
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 = 576
var_d = 100
var_e = var_c - var_d
var_f = 352
var_g = 100
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: Geometry

Question (EN): Miae made a square with a side of 20 centimeters (cm) using wire. Using a wire of the same length as this one, Taehee made a rectangle wide 14 centimeters (cm). How many centimeters (cm) is the length of the rectangle Taehee made?
Question (KO): 미애는 철사를 사용하여 한 변이 20센티미터(㎝)인 정사각형을 1개 만들었습니다. 이 철사와 똑같은 길이의 철사를 사용하여 태희는 가로가 14센티미터(㎝)인 직사각형을 만들었습니다. 태희가 만든 직사각형의 세로의 길이는 몇 센티미터(㎝)입니까?

Answer: 26

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

Question (EN): A barrel contains 12 liters (L) and 400 milliliters (㎖) of petroleum, and B barrel contains 7600 milliliters (㎖) of petroleum. How many liters (L) must be moved from A barrel to B barrel to equalize the amount of petroleum in A barrel and B barrel?
Question (KO): (가) 통에 석유 12리터(L) 400밀리리터(㎖), (나) 통에 석유 7600밀리리터(㎖)가 들어 있습니다. (가) 통과 (나) 통에 들어 있는 석유의 양이 같아지려면 (가) 통에서 (나) 통으로 몇 리터(L)를 옮기면 됩니까?

Answer: 2.4

Solution (Python):
var_a = 12
var_b = 400
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 7600
var_g = 1000
var_h = var_f / var_g
var_i = var_e - var_h
var_j = 2
var_k = var_i / var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Taehyung is trying to divide 21/11 liters (L) of water into 7/11 liters (L) per cup, and Hoseok is trying to divide 8/17 liters (L) of water into 2/17 liters (L) per cup. How many cups will Taehyung and Hoseok need in order to divide all the water they each have into the cups?
Question (KO): 태형이는 물 21/11리터(L)를 한 컵에 7/11리터(L)씩 나누어 담고, 호석이는 물 8/17리터(L)를 한 컵에 2/17리터(L)씩 나누어 담으려고 합니다. 태형이와 호석이가 각자 가지고 있는 물을 남김없이 컵에 나누어 담으려면 컵은 모두 몇 개 필요합니까?

Answer: 7

Solution (Python):
var_a = 1.9090909090909092
var_b = 0.6363636363636364
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

var_f = 0.47058823529411764
var_g = 0.11764705882352941
var_h = var_f / var_g
var_i = 1
var_j=int(((var_h+9*10**(var_i-2))//(10**(var_i-1)))*10**(var_i-1))

var_k = var_e + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There were 3 kilograms (kg) and 300 grams (g) of strawberries. Among them, I gave 1 kilogram (kg) 900 grams (g) to a friend. How many grams (g) of strawberries are left?
Question (KO): 딸기가 3 킬로그램(㎏) 300 그램(g) 있었습니다. 그중에서 1 킬로그램(㎏) 900 그램(g)을 친구에게 주었습니다. 남은 딸기는 몇 그램(g)일까요?

Answer: 1400

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

Question (EN): The three students, Yoongi, Jungkook and Yuna, have the numbers 7, 6, and 9 respectively. Who has the smallest number?
Question (KO): 세 명의 학생 윤기, 정국, 유나는 각각 7, 6, 9만큼의 숫자를 가지고 있습니다. 가장 작은 숫자를 가진 사람은 누구입니까?

Answer: Jungkook

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 7
var_e = 6
var_f = 9
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Arithmetic calculation

Question (EN): Suppose that street trees are planted on the road that is 2575 meters (m) long at intervals of 25 meters (m). How many street trees will be planted? (However, trees are also planted at the beginning and end of the road.)
Question (KO): 길이가 2575미터(m)인 도로의 한쪽에 25미터(m) 간격으로 가로수를 심으려고 합니다. 도로 한쪽에 심을 가로수는 몇 그루입니까? (단, 도로의 처음과 끝에도 가로수를 심습니다.)

Answer: 104

Solution (Python):
var_a = 2575
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Jungkook, who had 6 apples, received 3 more. When Yoongi has 4 apples, who has fewer apples?
Question (KO): 6개의 사과를 가지고 있던 정국이는 3개의 사과를 더 받았습니다. 윤기는 4개의 사과를 가지고 있을 때, 누가 더 사과를 적게 가지고 있습니까?

Answer: Yoongi

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 6
var_d = 3
var_e = var_c + var_d
var_f = 4
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Correspondence

Question (EN): When you divide a particular number by 10, you get 6. What number do you get when you subtract 15 from that particular number?
Question (KO): 어떤 수를 10으로 나누었더니 6이 되었습니다. 어떤 수에서 15를 빼면?

Answer: 45

Solution (Python):
var_a = 6
var_b = 10
var_c = var_a * var_b
var_d = 15
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Eunbi and Jaeyeon practiced running every day for five days. If Eunbi ran a total of 4.3 kilometers (km) for 5 days and Jaeyeon ran 900 meters (m) every day, find out who would have run more.
Question (KO): 은비와 재연이는 5일 동안 매일 달리기 연습을 하였습니다. 은비는 5일 동안 총 4.3킬로미터(㎞)를 뛰었고, 재연이는 하루에 900미터(m)씩 매일 뛰었다면, 누가 더 많이 뛰었을지 구하시오.

Answer: Jaeyeon

Solution (Python):
var_a = 'Eunbi'
var_b = 'Jaeyeon'
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.3
var_d = 1000
var_e = var_c * var_d
var_f = 900
var_g = 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)
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): 6A5+10B=748. What is A?
Question (KO): 6A5+10B=748입니다. A는 얼마인가요?

Answer: 4

Solution (Python):
var_a = '6A5+10B=748'
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: Comparison

Question (EN): Prize winning numbers are 5 numbers. Their average is 81.6, and the average excluding the hightest number is 6 points smaller than the average excluding the lowest number. When the middle three numbers are 88, 84, and 76, find the highest number. 
Question (KO): 상품 당첨 번호는 5개의 수이다. 이들의 평균은 81.6이고, 5개 중 가장 높은 것을 뺀 나머지의 평균은 가장 낮은 것을 뺀 나머지의 평균보다 6이 낮다. 중간 3개의 숫자가 88, 84, 76일 때 가장 높은 수를 구하라.

Answer: 92

Solution (Python):
var_a = 81.6
var_b = 5
var_c = var_a * var_b
var_d = 88
var_e = 84
var_f = var_d + var_e
var_g = 76
var_h = var_f + var_g
var_i = var_c - var_h
var_j = 6
var_k = 4
var_l = var_j * var_k
var_m = var_i + var_l
var_n = 2
var_o = var_m / var_n
print(int(var_o))
Category: Correspondence

Question (EN): If the six-digit number 7ABABA is a multiple of 6, find possible numbers that can be made.
Question (KO): 여섯 자리 수 7ABABA가 6의 배수일 때, 이러한 여섯 자리 수는 모두 몇 가지나 되는지 구하여라.

Answer: 15

Solution (Python):
var_a = '7ABABA'
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 = 6
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 = len(list_b)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It takes 4 days to process 240 kilograms (kg) of rice with the (A) machine. How many days does it take to process 1920 killograms (kg) of the same rice with the (A) machine?
Question (KO): (가) 기계로 240킬로그램(㎏)의 쌀을 가공하는 데 4일이 걸립니다. (가) 기계로 같은 쌀 1920킬로그램(㎏)을 가공하려면 며칠이 걸립니까?

Answer: 32

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

Question (EN): Taehyung walks 114 meters (m) in 1 minute, and Minyoung walks 79 meters (m) in 1 minute. If Taehyung and Minyoung walk at the same pace for an hour, how many meters (m) will Taehyung walk more than Minyoung?
Question (KO): 태형이는 1분 동안 114미터(m)를 걷고, 민영이는 1분 동안 79미터(m)를 걷습니다. 태형이와 민영이가 같은 빠르기로 1시간 동안 걷는다면, 태형이는 민영이보다 몇 미터(m) 더 많이 걷겠습니까?

Answer: 2100

Solution (Python):
var_a = 114
var_b = 79
var_c = var_a - var_b
var_d = 1
var_e = var_c * var_d
var_f = 60
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Yoongi's aunt is 38 years old. Yoongi is 23 years younger than his aunt. Hoseok is 4 years younger than Yoongi. What is the sum of Yoongi and Hoseok's ages?
Question (KO): 이모의 나이는 38살입니다. 윤기의 나이는 이모 나이보다 23살 더 적습니다. 호석이의 나이는 윤기 나이보다 4살 더 적습니다. 윤기와 호석이의 나이의 합은 몇 살입니까?

Answer: 26

Solution (Python):
var_a = 38
var_b = 23
var_c = var_a - var_b
var_d = 38
var_e = 23
var_f = var_d - var_e
var_g = 4
var_h = var_f - var_g
var_i = var_c + var_h
print(int(var_i))
Category: Possibility

Question (EN): I am trying to make a three-digit number by picking three different numbers. Given the numbers 1, 2, 6, 7, and 8, what is the difference between the largest number and the smallest number?
Question (KO): 서로 다른 숫자 3개를 뽑아 세자리 수를 만들려 한다. 주어진 숫자가 1, 2, 6, 7, 8일때 가장 큰 수에서 가장 작은 수를 뺀 값은 얼마인가?

Answer: 750

Solution (Python):
var_a = 1
var_b = 2
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 = 3
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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 1
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: Geometry

Question (EN): You have a square with a perimeter of 17.8 centimeters (cm). How many centimeters (cm) is one side of this figure?
Question (KO): 둘레가 17.8 센티미터(㎝) 인 정사각형이 있습니다. 이 도형의 한 변은 몇 센티미터(㎝) 입니까?

Answer: 4.45

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