philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): 30 students in Minju's class have their own attendance numbers from 1 to 30. Among the students in Minju's class, students who are 160 centimeters (cm) or taller are students 1, 3, 7, 10, 23, and 27, and students who weigh 50 kilograms (kg) or more are students 1, 9, 11, 20, and 23. How many students are 160 centimeters (cm) or taller or 50 kilograms (kg) or heavier?
Question (KO): 민주네 반 학생 30명은 1번부터 30번까지 자신의 출석 번호를 가지고 있습니다. 민주네 반 학생 중 키가 160센티미터(㎝) 이상인 학생은 1번, 3번, 7번, 10번, 23번, 27번 학생이고, 몸무게가 50킬로그램(㎏) 이상인 학생은 1번, 9번, 11번, 20번, 23번 학생일 때, 키가 160센티미터(㎝) 이상이거나 몸무게가 50킬로그램(㎏) 이상인 학생은 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 1
var_b = 3
var_c = 7
var_d = 10
var_e = 23
var_f = 27
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 = 1
var_h = 9
var_i = 11
var_j = 20
var_k = 23
list_b= []
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)
list_b.reverse()
list_c = list(set(list_a) | set(list_b))
var_l = len(list_c)
print(int(var_l))
Category: Correspondence

Question (EN): yellow and blue marbles are mixed in the box. There are a total of 913 marbles in the box, and the number of yellow marbles is 514. Find how many yellow marbles are more than blue marbles.
Question (KO): 박스 안에 노란색, 파란색 구슬이 섞여있습니다. 박스 안에 구슬이 총 913개가 있고, 노란색 구슬의 개수는 514개입니다. 노란색 구슬이 파란색 구슬보다 몇 개 더 많은지 구하시오.

Answer: 115

Solution (Python):
var_a = 514
var_b = 913
var_c = 514
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e))
Category: Geometry

Question (EN): Jaewoong lined up the students in the class in a square shape with 10 people on each row and column. How many students are at the perimeter?
Question (KO): 재웅이 반의 학생들을 가로와 세로 모두 10명씩 정사각형 모양으로 줄세웠습니다. 둘레에 있는 학생은 모두 몇 명인가요?

Answer: 36

Solution (Python):
var_a = 10
var_b = 4
var_c = var_a * var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are a total of 129 persimmons and tangerines. How many persimmons are there if there are 43 fewer persimmons than tangerines?
Question (KO): 감과 귤이 모두 합해서 129개 있습니다. 감이 귤보다 43개 더 적다면 감은 몇 개 있습니까?

Answer: 43

Solution (Python):
var_a = 129
var_b = 43
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a cuboid with a volume of 1380000000 cubic centimeters (cm3). What is the height of the cuboid in meters (m), if the surface area of its base is 115 square meters (m2)?
Question (KO): 부피가 1380000000세제곱센티미터(㎤)인 직육면체가 있습니다. 밑면의 표면적이 115제곱미터(㎡)인 경우 직육면체의 높이는 몇 미터(m)입니까?

Answer: 12

Solution (Python):
var_a = 1380000000
var_b = 100
var_c = 3
var_d = var_b ** var_c
var_e = var_a / var_d
var_f = 115
var_g = var_e / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): The car will spend 19 liters (l) of gas while traveling 9 kilometers (km). Find how many liters (l) of gas should be spent per 1 kilometer (km).
Question (KO): 기름 19리터(L)를 자동차는 9킬로미터(㎞)가는 동안 쓰려고 합니다. 1킬로미터(㎞)마다 써야할 기름은 몇 리터(L)인지 구하시오.

Answer: 2.11

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

Question (EN): If you divide the width of a rectangular wall by 30 centimeters (cm), it is divided by 8, and if you divide the height by 30 centimeters (cm), it is divided by 5. Find the size of the wall in square meters (m2).
Question (KO): 어떤 직사각형 모양의 벽의 가로의 길이를 30센티미터(㎝)로 나누면 8로 나누어떨어지고 세로의 길이를 30센티미터(㎝)로 나누면 5로 나누어 떨어진다. 벽의 크기는 몇 제곱미터(㎡)인지 구하시오.

Answer: 3.6

Solution (Python):
var_a = 30
var_b = 100
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 8
var_g = var_e * var_f
var_h = 5
var_i = var_g * var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): A 20 centimeters (cm) high fishbowl, with a square base and sides of 20 centimeters (cm) has been filled with water a height of 15 centimeters (cm). If you pour water into this fishbowl from a cube-shaped container with an edge of 10 centimeters (cm), how high in centimeters (cm) will the water rise compared to the height before you poured the water in? Find the answer, including the decimal point.
Question (KO): 한 변의 길이가 20센티미터(㎝)인 정사각형을 밑면으로 갖는 높이 20센티미터(㎝)의 어항에 높이 15센티미터(㎝)만큼의 물을 채워두었다. 이 어항에 한 모서리의 길이가 10센티미터(㎝)인 정육면체 모양의 통에 담겨있는 물을 붓게 되면 물의 높이는 몇 센티미터(㎝) 높아지는지 소수점을 포함하여 구하라.

Answer: 2.5

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

Question (EN): What is the smallest three-digit number that is a multiple of 5 and a multiple of 8 and a multiple of 2?
Question (KO): 5의 배수이면서 8의 배수이면서 2의 배수인 수 중 가장 작은 세 자리 수는 무엇입니까?

Answer: 120

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 = 5
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 = 8
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 = 2
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 1
list_e=list_d.copy()
list_e.sort()
var_h = list_e[var_g-1]
print(int(var_h))
Category: Correspondence

Question (EN): Yoongi wants to add a three-digit number and a two-digit number. Yoongi mistakenly thought the 9 in the unit digit of a three-digit number was 6, and by changing the tens and unit digits of a two-digit number, he mistakenly thought it was 23. When the sum obtained by Yoongi is 299, find the three-digit number.
Question (KO): 윤기는 세 자리 수와 두 자리 수의 덧셈을 하려 합니다. 윤기는 세 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았고, 두 자리 수의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 23이라고 잘못 보았습니다. 윤기가 구한 합은 299 일 때, 세 자리 수를 구하시오.

Answer: 279

Solution (Python):
var_a = 299
var_b = 23
var_c = var_a - var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Comparison

Question (EN): There are Sora, Heesu, and Jiyeon. Sora has cards with 4 and 6 written on them, Heesu has cards with 7 and 5 written on them, and Jiyeon has cards with 3 and 8 written on them. Who has the greatest sum of cards?
Question (KO): 소라, 희수, 지연이가 있다. 소라는 4와 6이 적힌 카드를, 희수는 7과 5가 적힌 카드를, 지연이는 3과 8이 적힌 카드를 가지고 있다. 카드의 합이 가장 큰 사람은 누구인가?

Answer: Heesu

Solution (Python):
var_a = 'Sora'
var_b = 'Heesu'
var_c = 'Jiyeon'
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 = 6
var_f = var_d + var_e
var_g = 7
var_h = 5
var_i = var_g + var_h
var_j = 3
var_k = 8
var_l = var_j + var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Arithmetic calculation

Question (EN): There are 48 roses. The red rose is 3/8 of the total. Yellow roses are 5/16 of the total. How many more red roses are there than yellow roses?
Question (KO): 장미가 48송이 있습니다. 빨간색 장미는 전체의 3/8입니다. 노란색 장미는 전체의 5/16입니다. 빨간색 장미는 노란색 장미보다 몇 송이 더 많습니까?

Answer: 3

Solution (Python):
var_a = 48
var_b = 0.375
var_c = var_a * var_b
var_d = 48
var_e = 0.3125
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Correspondence

Question (EN): If AB82-9C9=493D and A, B, C, D are different numbers, find A.
Question (KO): 네 자리 수와 세 자리 수의 뺄셈식 AB82-9C9=493D이고 A, B, C, D가 서로 다른 수일 때, A를 구하시오

Answer: 5

Solution (Python):
var_a = 'AB82-9C9=493D'
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): The sum of the legs of chickens and pigs in Yumi's farm is 48. If there are 9 pigs on the farm, how many chickens are there?
Question (KO): 유미네 농장에 있는 닭과 돼지의 다리 수의 합은 48개입니다. 농장에 돼지가 9마리 있다면 닭은 몇 마리인지 구하시오.

Answer: 6

Solution (Python):
var_a = 48
var_b = 4
var_c = 9
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): There is a piece of colored paper in the shape of a square with sides of 20 centimeters (cm). I divided the length of each side into thirds and cut them out with small pieces of colored paper. Find the area of the newly created small colored paper to two decimal places.
Question (KO): 한 변이 20센티미터(㎝)인 정사각형 모양의 색종이가 있습니다. 각 변의 길이를 3등분하여 작은 색종이로 오려냈습니다. 새롭게 만들어진 작은 색종이의 넓이를 소수점 둘째 자리까지 구하시오.

Answer: 44.44

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

Question (EN): There are 4 cells in front of you in which you can place numbers. The sum of each number multiplied by 1, 0.1, and 0.001 respectively is displayed. When 4, 2, and 7 is placed in that order, what is the number 0.05 greater than 100 times the number dsplayed on the monitor?
Question (KO): 앞에 숫자를 놓을 수 있는 4개의 칸이 있습니다. 각 칸에 놓인 숫자에 1, 0.1, 0.001을 곱하여 더한 값을 나타냅니다. 차례대로 4, 2, 7을 놓았을 때, 화면에 등장한 수의 100배보다 0.05 큰 수는 얼마입니까?

Answer: 420.75

Solution (Python):
var_a = 1
var_b = 4
var_c = var_a * var_b
var_d = 0.1
var_e = 2
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 0.001
var_i = 7
var_j = var_h * var_i
var_k = var_g + var_j
var_l = 100
var_m = var_k * var_l
var_n = 0.05
var_o = var_m + var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Correspondence

Question (EN): The five digit number 3A3B3 is a multiple of 33. How many possible Bs are there?
Question (KO): 다섯 자리 수 3A3B3은 33의 배수이다. 가능한 B는 몇 개입니까?

Answer: 10

Solution (Python):
var_a = '3A3B3'
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 = 33
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 = '3A3B3'
var_d = 'B'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You folded the crane using 12 sheets of colored paper, and at the end, only 9 sheets left. Find how many sheets were prepared at the beginning.
Question (KO): 12장의 색종이를 사용하여 학을 접었더니 9장이 남았습니다. 처음에 있던 색종이는 몇 장입니까?

Answer: 21

Solution (Python):
var_a = 12
var_b = 9
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): A square-shaped piece of colored paper was cut into several rectangles measuring 5 centimeters (cm) wide and 7 centimeters (cm) long. What is the minimum length in centimeters (cm) of one side of the square?
Question (KO): 어떤 정사각형 모양의 색종이를 가로가 5센티미터(㎝), 세로가 7센티미터(㎝)인 직사각형 여러 개로 조각을 내었습니다. 이 때 정사각형 한 변의 최소 길이는 몇 센티미터(㎝)입니까?

Answer: 35

Solution (Python):
var_a = 5
var_b = 7
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Correspondence

Question (EN): You had to add 48 to a number, but you mistakenly subtract it, and the result was 52. Find the result of the correct calculation.
Question (KO): 어떤 수에 48을 더해야 하는데 잘못하여 뺐더니 52가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 148

Solution (Python):
var_a = 52
var_b = 48
var_c = var_a + var_b
var_d = 48
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the number of diagonals in an 18-sided figure with all side lengths and all angles equal in measure.
Question (KO): 모든 변의 길이와, 모든 각의 크기가 같고 변이 18개인 도형의 대각선 개수를구하시오.

Answer: 135

Solution (Python):
var_a = 18
var_b = 18
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Possibility

Question (EN): There are 3 geese inside the fence. If all geese are given more than 2 bamboos, how many ways are there to distribute 20 bamboos?
Question (KO): 울타리 안에 3마리의 거위가 있습니다. 만약 거위들에게 모두 2개 이상의 대나무를 준다고 한다면, 대나무 20개를 나누어 주는 방법은 몇 가지인지 구하시오.

Answer: 120

Solution (Python):
var_a = 3
var_b = 20
var_c = var_a + var_b
var_d = 3
var_e = 2
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 1
var_i = var_g - var_h
var_j = 20
var_k = 3
var_l = 2
var_m = var_k * var_l
var_n = var_j - var_m
var_o = 1
var_i = int(var_i)
var_n = int(var_n)
for i, elem in enumerate(range(var_n)):
    var_o = var_o * (var_i-i)
for i, elem in enumerate(range(var_n)):
    var_o = var_o / (i+1)
print(int(var_o))
Category: Geometry

Question (EN): What is the total number of diagonals that can be drawn in a hexagon?
Question (KO): 육각형에서 그을 수 있는 대각선의 총 개수는?

Answer: 9

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

Question (EN): A is a single digit number. Rounding 73A94 to the nearest thousand gives it 74000. Find the number of all possible numbers in A.
Question (KO): A는 한 자리 수입니다. 73A94를 백의 자리에서 반올림하면 74000을 얻을 수 있습니다. A가 될 수 있는 모든 숫자의 개수를 구하시오.

Answer: 5

Solution (Python):
var_a = '73A94'
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 = 74000
var_c = 500
var_d = var_b + var_c
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
var_e = 74000
var_f = 500
var_g = var_e - var_f
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = '73A94'
var_i = 'A'
var_h = str(var_h)
var_i = str(var_i)
unk_idx = var_h.index(var_i)
list_d = []
for elem in list_c:
    elem = str(elem)
    list_d.append(int(elem[unk_idx]))
list_d = list(set(list_d))
var_j = len(list_d)
print(int(var_j))
Category: Arithmetic calculation

Question (EN): When Seokjin was doing a division, he misread the tens digit and units digit of the divisor 65 as the opposite to get the quotient of division 25, and the remainder also 25. Find the sum of the correctly calculated quotient and remainder.
Question (KO): 석진이는 나눗셈을 하는 과정에서 나누는 수 65의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 잘못 보고 계산하였더니 계산한 몫과 나머지가 각각 25이었습니다. 바르게 계산한 몫과 나머지의 합을 구하시오.

Answer: 81

Solution (Python):
var_a = 56
var_b = 25
var_c = var_a * var_b
var_d = 25
var_e = var_c + var_d
var_f = 65
var_g = var_e // var_f
var_h = 56
var_i = 25
var_j = var_h * var_i
var_k = 25
var_l = var_j + var_k
var_m = 65
var_n = var_l % var_m
var_o = var_g + var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): There are 12 white rabbits and 9 black rabbits. If 8 of them are females, how many male rabbits are there?
Question (KO): 12마리의 흰색 토끼와 9마리의 검은색 토끼가 있습니다. 그중에서 8마리가 암컷 토끼일 때 수컷 토끼는 몇 마리입니까?

Answer: 13

Solution (Python):
var_a = 12
var_b = 9
var_c = var_a + var_b
var_d = 8
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Jungkook has 3 boxes with 2 balls in them. How many balls does Jungkook have?
Question (KO): 정국이는 2개 공이 들어 있는 상자 3개를 가지고 있습니다. 정국이가 가지고 있는 공의 개수는?

Answer: 6

Solution (Python):
var_a = 2
var_b = 3
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are chocolates with five numbers written on them: 25, 17, 21, 34, and 32. Among them, the older brother ate the chocolate with the largest number written on it, and the younger brother ate the chocolate with the smallest number written on it. What is the difference between the numbers written on the chocolates the two of them ate?
Question (KO): 25, 17, 21, 34, 32의 다섯 개의 숫자가 적혀져 있는 초콜릿이 있다. 이 중 가장 큰 수가 적힌 초콜릿을 형이 먹고, 가장 작은 수가 적혀 있는 초콜릿은 동생이 먹었다. 두 사람이 먹은 초콜릿에 적혀 있던 수의 차이는 얼마인가?

Answer: 17

Solution (Python):
var_a = 25
var_b = 17
var_c = 21
var_d = 34
var_e = 32
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 = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g - var_i
print(int(var_j))
Category: Comparison

Question (EN): Jungkook has 0.8 written on his card, Yoongi has 1/2 written on his card, and Yoojeong has 0.9 written on her card. Find the number of people who have numbers less than or equal to 0.3 written on their cards.
Question (KO): 정국이는 0.8, 윤기는 1/2, 유정이는 0.9의 숫자카드를 갖고 있습니다. 0.3보다 작거나 같은 숫자카드를 가지고 있는 사람은 몇 명입니까?

Answer: 0

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 0.3
list_b = []
for i in list_a:
    if i <= var_d:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Possibility

Question (EN): The house has 3 blue cards and 5 yellow cards. What is the total number of cases when you give one of the cards to your cousin? However, all cards are distinguishable.
Question (KO): 집에 파란 카드가 3개, 노란 카드가 5개 있습니다. 하나를 사촌 동생에게 주려고 할 때, 경우의 수는 총 몇 가지입니까? 단, 모든 카드는 구별할 수 있습니다.

Answer: 8

Solution (Python):
var_a = 3
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Possibility

Question (EN): You want to form a two-digit number by picking two different numbers from 0, 3, 5, 7, and 8. What is the sum of the largest number and the smallest number?
Question (KO): 0, 3, 5, 7, 8 중에서 서로 다른 숫자 2개를 뽑아서 두자리 숫자를 만드려고 합니다. 그중에서 가장 큰 수와 가장 작은 수를 더하면 얼마입니까?

Answer: 117

Solution (Python):
var_a = 0
var_b = 3
var_c = 5
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 = 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 = 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: Possibility

Question (EN): What is the smallest three-digit number that can be formed by using the five different numbers 3, 0, 2, 5, and 7 only once?
Question (KO): 서로 다른 다섯 개의 수 3, 0, 2, 5, 7을 한 번씩만 사용하며 만들 수 있는 세 자리 수 중에서 가장 작은 수는 무엇입니까?

Answer: 203

Solution (Python):
var_a = 3
var_b = 0
var_c = 2
var_d = 5
var_e = 7
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-1]
print(int(var_h))
Category: Comparison

Question (EN): Eunseol divided 28 candies equally into 4 pockets, and Sujeong split 18 candies equally into 3 pockets. Who among Eunseol and Sujeong has fewer candies in one pocket?
Question (KO): 은설이는 사탕 28개를 주머니 4개에 똑같이 나누어 담았고, 수정이는 사탕 18개를 주머니 3개에 똑같이 나누어 담았습니다. 은설이와 수정이 중에서 주머니 한 개에 들어있는 사탕이 더 적은 사람은 누구인지 구하시오.

Answer: Sujeong

Solution (Python):
var_a = 'Eunseol'
var_b = 'Sujeong'
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 = 28
var_d = 4
var_e = var_c / var_d
var_f = 18
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)
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): How much water is needed to fill a cube-shaped container with one side 7 centimeters (cm) long?
Question (KO): 한 모서리의 길이가 7센티미터(㎝)인 정육면체 모양의 통에 물을 가득 채우려면 얼마만큼이 필요한가?

Answer: 343

Solution (Python):
var_a = 7
var_b = 3
var_c = var_a ** var_b
print(int(var_c))