philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): How many numbers not more than 100 whose number at tens place and ones place is different have 0, 1, 7, and 9?
Question (KO): 십의 자리 숫자와 일의 자리 숫자가 다른 100이하의 수 중 0, 1, 7, 9로 이루어진 수는 모두 몇 개인가?

Answer: 9

Solution (Python):
var_a = 0
var_b = 1
var_c = 7
var_d = 9
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 = [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 = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): The hundreds digit is 2, and the tens digit is 5. How many numbers satisfy the condition of three-digit numbers greater than 256?
Question (KO): 백의 자리 숫자는 2이고 십의 자리 숫자는 5입니다. 이를 만족하는 세 자리 수중 256보다 큰 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 2
var_b = 5
var_c = 'A'
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=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
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] = 0
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]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
var_e = 256
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Geometry

Question (EN): If the area of a triangular piece of paper folded in half is 7 square centimeter (cm2), what is the total area of the paper?
Question (KO): 삼각형 모양의 종이를 반으로 접었을 때의 넓이가 제곱센티미터(㎠)일 때, 전체 종이의 넓이는 얼마인지 구하시오.

Answer: 14

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

Question (EN): I'm trying to calculate probabilities. What is the probability of drawing a card with a number less than or equal to 9 when drawing one from the number cards 1, 3, 4, 6, 7, and 9?
Question (KO): 확률을 계산하려고 합니다. 숫자 카드 1, 3, 4, 6, 7, 9 중에서 한 장의 카드를 뽑을 때 9 이하의 수가 적힌 카드가 뽑힐 확률은?

Answer: 1

Solution (Python):
var_a = 1
var_b = 3
var_c = 4
var_d = 6
var_e = 7
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 = 9
list_b = []
for i in list_a:
    if i <= var_g:
        list_b.append(i)
var_h = len(list_b)
var_i = 1
var_j = 3
var_k = 4
var_l = 6
var_m = 7
var_n = 9
list_c= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_c.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_c.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_c.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_c.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_c.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_c.append(var_i)
list_c.reverse()
var_o = len(list_c)
var_p = var_h / var_o
print(int(var_p))
Category: Possibility

Question (EN): There are 3 different colored marbles. One is red, one is blue, one is yellow. Find the number of ways to choose two of these and put each of them in each of the boxes of the same shape.
Question (KO): 각기 다른 구슬 3개가 있습니다. 이 중 2개를 골라 같은 모양의 상자에 1개씩 넣는 경우의 수를 구하시오.

Answer: 3

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 = len(list_a)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
for i, elem in enumerate(range(var_e)):
    var_f = var_f / (i+1)
print(int(var_f))
Category: Correspondence

Question (EN): AB+31=54. What is B?
Question (KO): AB+31=54이 성립합니다. B는 무엇인가요?

Answer: 3

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

Question (EN): How many ways can the sum of the digits be 10 when 0, 1, 2, and 3 are used repeatedly to form a four-digit number?
Question (KO): 0, 1, 2, 3을 중복해서 사용하여 네자리 수를 만들때 각 자리숫자의 합이 10이 되는 경우의 수는 몇 가지인가?

Answer: 10

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
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.product(list_b, repeat=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]
list_c=[]
for i in list_b:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_c.append(var_f)
var_g = 10
var_h = 0
var_g = int(var_g)
for i in list_c:
    i = int(i)
    if i == var_g:
        var_h = var_h + 1
print(int(var_h))
Category: Arithmetic calculation

Question (EN): I bought 88 kilograms (kg) of tangerines and persimmons. The weight of a tangerine is 4 kg (kg) heavier than that of a persimmon. Find how many kilograms (kg) are all persimmons.
Question (KO): 귤과 감을 합하여 88킬로그램(㎏)을 샀습니다. 귤의 무게가 감의 무게보다 4킬로그램(㎏)이 더 무겁습니다. 감은 모두 몇 킬로그램(㎏)인지 구하세요.

Answer: 42

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

Question (EN): On a bridge over a river, there are street lights every 50 meters (m). If the total length of the bridge is 1650 meters (m) and there are also streetlights at the beginning and end of the bridge, what is the total number of streetlights on each side of the bridge?
Question (KO): 강의 다리 위에 가로등이 50미터(m) 간격으로 세워져 있습니다. 다리의 총 길이는 1650미터(m)이고, 다리의 처음과 끝에도 가로등이 세워져 있을 때, 다리의 양쪽에 세워진 가로등의 수는 모두 몇 개입니까?

Answer: 68

Solution (Python):
var_a = 1650
var_b = 50
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
var_f = 2
var_g = var_e * var_f
print(int(var_g))
Category: Geometry

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

Answer: 7

Solution (Python):
var_a = 10
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a cube with one edge 4 centimeters (cm) long. Suppose that the length and height of this cube are increased by 6 centimeters (cm), and the height is increased by an additional 5 centimeters (cm) to make a cuboid. What is the surface area of this shape? 
Question (KO): 한 모서리의 길이가 4센티미터(㎝)인 정육면체가 있다. 이 정육면체의 세로와 높이의 길이를 6센티미터(㎝) 늘리고, 높이를 5센티미터 추가로 늘려서 직육면체를 만들었다고 하자. 이렇게 만들어진 도형의 겉넓이는 몇인가?

Answer: 600

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

Question (EN): Find the value when 166.08 is divided by 4 twice.
Question (KO): 166.08을 4로 두 번 나누었을 때 나오는 값을 구하시오.

Answer: 10.38

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

Question (EN): When people in the park form 4 lines of 8 people to do gymnastics, find how many people are doing gymnastics in the park in total.
Question (KO): 공원에 사람들이 체조를 하기 위해 8명씩 4줄을 설 때, 공원에 체조를 하고 있는 사람은 모두 몇 명인지 구하시오.

Answer: 32

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

Question (EN): What is the area of the largest rectangle with a perimeter of 52 centimeters (cm)?
Question (KO): 둘레가 52센티미터(㎝)인 사각형 중 넓이가 가장 큰 사각형의 넓이는 얼마입니까?

Answer: 169

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

Question (EN): There are three numbers 10, 11, and 12. What is the value of the multiplication of the largest number and the smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 큰 수와 가장 작은 수의 곱은 얼마입니까?

Answer: 120

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
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]
var_f = 1
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e * var_g
print(int(var_h))
Category: Comparison

Question (EN): Choose the 2nd smallest number among 5, 8, 4, 3, and 2.
Question (KO): 5, 8, 4, 3, 2 중에서 2번째로 작은 수를 고르세요.

Answer: 3

Solution (Python):
var_a = 5
var_b = 8
var_c = 4
var_d = 3
var_e = 2
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=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): It takes 0.84 meters (m) of ribbon tape to make one ribbon. If 50 centimeters (cm) remain after making 10 ribbons with the ribbon tape that Yujin has, find the length in meters (m) of the ribbon tape that Yujin had at first.
Question (KO): 리본 한 개를 만들기 위해 리본 테이프 0.84미터(m)를 사용합니다. 유진이가 가지고 있는 리본 테이프로 리본을 10개 만들었더니 50센티미터(㎝)가 남았다면, 유진이가 처음에 가지고 있던 리본 테이프의 길이는 몇 미터(m)일지 구하시오.

Answer: 8.9

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

Question (EN): In the final exam, Yooncheol scored 80 in Korean, 94 in Mathematics, 82 in Social studies, 76 in English, and 100 in Science. How many subjects did he score less than 80?
Question (KO): 윤철이는 기말고사에서 국어 80점, 수학 94점, 사회 82점, 영어 76점, 과학 100점을 받았습니다. 80점보다 점수가 낮은 과목은 몇 과목입니까?

Answer: 1

Solution (Python):
var_a = 80
var_b = 94
var_c = 82
var_d = 76
var_e = 100
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 = 80
list_b = []
for i in list_a:
    if i < var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): The average score for Korean, English, and science is 95 points, and if math scores are included, the average score falls by 3 points. What is math score?
Question (KO): 국어, 영어, 과학의 평균 점수는 95점이고 수학 점수를 포함하면 평균 점수가 3점 떨어진다. 수학 점수는 몇 점인가?

Answer: 83

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

Question (EN): Yujeong and Eunji live on the 17th and 25th floor of the apartment, respectively. Who lives on the higher floor?
Question (KO): 유정, 은지는 각각 17층, 25층 아파트에 산다. 더 높은 층에는 누가 사는가?

Answer: Eunji

Solution (Python):
var_a = 'Yujeong'
var_b = 'Eunji'
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 = 17
var_d = 25
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Correspondence

Question (EN): You want to multiply 20 by some number. you mistakenly subtracted some number from 40, and the result was 52. What is the correct calculation result?
Question (KO): 20에 어떤 수를 곱하려고 합니다. 잘못하여 40에 어떤 수를 뺐더니 결과는 52가 되었습니다. 바르게 계산한 결과는 얼마일까요?

Answer: -240

Solution (Python):
var_a = 20
var_b = 40
var_c = 52
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Rounding down the three-digit number A27 to the nearest hundred gives 200. Get a single-digit number A.
Question (KO): 세 자리수 A27을 백의 자리에서 버림하면 200이 됩니다. A를 구하시오.

Answer: 2

Solution (Python):
var_a = 'A27'
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 = 200
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 200
var_d = 100
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = 'A'
var_a = str(var_a)
var_f = str(var_f)
unk_idx = var_a.index(var_f)
var_g = 0
for elem in list_c:
    elem = str(elem)
    var_g = int(elem[unk_idx])
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If you mix 200 grams (g) of salt water with a concentration of 25% and 300 grams (g) of salt water in which 60 grams (g) of salt are dissolved, what is the concentration of the salt water?
Question (KO): 농도가 25%인 소금물 200그램(g)과 소금이 60그램(g) 녹아있는 소금물 300그램(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: Geometry

Question (EN): How many centimeters (cm) is the width of a rectangle whose area is 28/3 square centimeter (cm2) and its length is 14/5 centimeters (cm)?
Question (KO): 넓이가 28/3제곱센티미터(㎠)이고, 세로가 14/5센티미터(㎝)인 직사각형의 가로는 몇 센티미터(㎝)입니까?

Answer: 3.33

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

Question (EN): If you write down all odd numbers that are less than 100 and that are multiples of 3 on a piece of paper, how many times do you have to write the number 1?
Question (KO): 100이하인 홀수이면서 3의 배수인 수를 모두 종이에 적으면, 숫자 1을 몇 번 적어야 하는지 구하시오.

Answer: 4

Solution (Python):
var_a = 1
var_b = 100
list_a = []
if var_a%2==0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = 3
list_b = []
var_c = int(var_c)
for i in list_a:
    i = int(i)
    if i % var_c == 0:
        list_b.append(i)
var_d=""
for i in list_b:
    i = str(i)
    var_d = var_d + i
list_c = []
var_d = int(var_d)
while var_d//10 > 0:
    list_c.append(var_d%10)
    var_d = var_d//10
list_c.append(var_d%10)
list_c = list_c[::-1]
var_e = 1
var_f = 0
var_e = int(var_e)
for i in list_c:
    i = int(i)
    if i == var_e:
        var_f = var_f + 1
print(int(var_f))
Category: Arithmetic calculation

Question (EN): When writing the numbers from 1 to 125, find how many times the number 2 is written.
Question (KO): 1부터 125까지 수를 쓸 때, 숫자 2는 모두 몇 번 쓰는지 구하시오.

Answer: 29

Solution (Python):
var_a = 1
var_b = 125
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
    list_b.append(var_d%10)
    var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 2
var_f = 0
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i == var_e:
        var_f = var_f + 1
print(int(var_f))
Category: Correspondence

Question (EN): 8 is the result of accidentally adding 12 to a certain number and then dividing by 8. If the original calculation was to subtract 12 and multiply by 9, what is the correct value?
Question (KO): 8은 어떤 수에서 실수로 12를 더한 뒤 8로 나눈 결과입니다. 본래 하려던 계산은 12를 빼고 9를 곱하는 것이었다면, 바르게 계산한 값은 얼마입니까?

Answer: 360

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

Question (EN): What is the smallest number in 1.4, 9/10, 1.2, 0.5, and 13/10 after listing the numbers greater than 1.1?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 큰 숫자를 나열한뒤, 가장 작은 숫자를 구하면 얼마입니까?

Answer: 1.2

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
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.1
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Possibility

Question (EN): If there are 5 members A, B, C, D, and E, find the number of cases in which one representative and two deputies are selected.
Question (KO): A, B, C, D, E 5명이 있을 때, 대표 1명과 부대표2명을 뽑는 경우의 수를 구하시오.

Answer: 11

Solution (Python):
var_a = 5
var_b = 1
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
var_d = 5
var_e = 1
var_f = var_d - var_e
var_g = 2
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)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
var_i = var_c + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Jimin had 33 notebooks. My father bought 7 more notebooks and my mother bought 14 more. How many more notebooks does Jimin have than at first?
Question (KO): 지민이는 공책 33권을 가지고 있었습니다. 아버지가 공책 7권을 더 사주고 어머니가 14권을 더 사주었습니다. 지민이가 가진 공책은 처음보다 몇 권 더 많아졌습니까?

Answer: 21

Solution (Python):
var_a = 33
var_b = 7
var_c = var_a + var_b
var_d = 14
var_e = var_c + var_d
var_f = 33
var_g = var_e - var_f
print(int(var_g))
Category: Geometry

Question (EN): 5.9 centimeters (cm) and 3 centimeters (cm) are the lengths of the two sides of the rectangle. Find the area of this rectangle.
Question (KO): 5.9센티미터(㎝), 3센티미터(㎝)는 직사각형의 두 변의 길이입니다. 이 직사각형의 넓이를 구하시오.

Answer: 17.7

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

Question (EN): The blue box and the red box contain balls. After moving 152 balls from the red box to the blue box, the number of balls in the red box is 346 more than the number of balls in the blue box. Find the difference between the number of balls in the two boxes before moving the balls.
Question (KO): 파란 상자와 빨간 상자에 공이 담겨있다. 빨간 상자의 공을 파란 상자로 152개 옮겼더니 빨간 상자 안의 공의 개수가 파란 상자의 공의 개수 보다 346개 많다고 한다. 공을 옮기기 전에는 두 상자의 공의 개수 차이가 몇 개인지 구하시오.

Answer: 650

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

Question (EN): There is a banner 20 meters (m) long. I'm thinking of fixating this banner with nails. Nails were driven 1 meter (m) apart from both ends of the banner, and the remaining nails were nailed in at regular intervals. A total of 7 nails were used. Find the distance between one nail and another.
Question (KO): 20미터(m) 길이의 현수막이 있다. 이 현수막을 못으로 고정시킬 생각이다. 현수막 양쪽 끝에서부터 1미터(m) 띄워서 못을 박고 사이에 일정한 간격으로 못을 박았더니 총 7개의 못을 사용하였다. 못과 못 사이의 간격을 구하시오.

Answer: 3

Solution (Python):
var_a = 20
var_b = 1
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 7
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))