philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are two pies. Strawberry pie has a radius of 4 centimeters (cm), and pumpkin pie has a diameter of 10 centimeters (cm). Which of the two is the bigger pie?
Question (KO): 두 개의 파이가 있다. 딸기 파이는 반지름이 4센티미터(㎝)이고, 호박 파이는 지름이 10센티미터(㎝)이다. 둘 중 큰 파이는 무엇인가?

Answer: pumpkin

Solution (Python):
var_a = 'Strawberry'
var_b = 'pumpkin'
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 = 10
var_e = 2
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): Eunji ate 9 of the tangerines in the basket, and her mother put 5 more tangerines in the basket, and the number of tangerines in the basket increased to 20. How many tangerines were in the first basket?
Question (KO): 바구니에 있던 귤 중 9개를 은지가 먹고 어머니께서 5개의 귤을 바구니에 더 넣어주셨더니 바구니에 담긴 귤이 20개가 되었다. 처음 바구니에 있던 귤은 몇개인가?

Answer: 24

Solution (Python):
var_a = 20
var_b = 9
var_c = var_a + var_b
var_d = 5
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): You cannot draw a straight line between any three points. What is the number of line segments for these three points?
Question (KO): 어떤 세 점을 잇는 직선을 그릴 수 없습니다. 이 세 점에 대한 선분의 개수는 무엇입니까?

Answer: 3

Solution (Python):
var_a = 3
var_b = 2
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)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Hyosung drank 0.2 of the water he had in the morning and 0.35 of the remaining water at lunch. When 130 milliliters (ml) of water remained, find how many milliliters (ml) of water Hyosung had at first.
Question (KO): 효성이는 아침에 가진 물이 0.2만큼 마셨고 점심에 남은 물의 0.35만큼 마셨다. 남은 물이 130밀리리터(㎖)일 때, 효성이가 처음 가지고 있던 물은 몇 밀리리터(㎖)인지 구하시오.

Answer: 250

Solution (Python):
var_a = 130
var_b = 1
var_c = 0.35
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 1
var_g = 0.2
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): Find the volume of  the rectangular prism with a height of 5 centimeters (cm) and a base circumference of 16 centimeters (cm), where the base has the maximum area..
Question (KO): 높이가 5센티미터(㎝), 밑면 둘레가 16센티미터(㎝)인 직육면체 중 밑면의 넓이가 가장 넓은 것의 부피를 구하라.

Answer: 80

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

Question (EN): Jungkook collects the number that adds 3 to 6, and Yoongi collects 4. Who has the smaller number?
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: Geometry

Question (EN): The cabinet Hyejin bought to collect the figures is rectangular in shape with a width of 1.2 meters (m) and a length of 1.8 meters (m). Find the area of the cabinet in square meters (m2).
Question (KO): 혜진이가 피규어를 모으기 위해 산 장식장은 가로가 1.2미터(m), 세로가 1.8미터(m)인 직사각형 모양입니다. 장식장의 넓이는 몇 제곱미터(㎡)인지 구하시오.

Answer: 2.16

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

Question (EN): Of the 5 students, 3 are boys and 2 are girls. When 5 students are arranged in a row, find the case in which all male students stand in a row.
Question (KO): 5명의 학생 중 3명이 남학생이고 2명이 여학생이다. 5명을 1열로 세울 때, 남학생들이 모두 연속해서 서는 경우를 구하시오.

Answer: 36

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
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 = 'A'
var_g = 'C'
list_b= []
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()
list_c = list(set(list_a) - set(list_b))
var_h = len(list_c)
var_i = len(list_c)
var_j = 1
var_h = int(var_h)
var_i = int(var_i)
for i, elem in enumerate(range(var_i)):
    var_j = var_j * (var_h-i)
var_k = 'A'
var_l = 'C'
var_m = 'E'
list_d= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_d.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_d.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_d.append(var_k)
list_d.reverse()
var_n = len(list_d)
var_o = len(list_d)
var_p = 1
var_n = int(var_n)
var_o = int(var_o)
for i, elem in enumerate(range(var_o)):
    var_p = var_p * (var_n-i)
var_q = var_j * var_p
print(int(var_q))
Category: Possibility

Question (EN): There are 3 pairs of mandarin ducks. How many mandarin ducks are there in total?
Question (KO): 원앙 3쌍이 있습니다. 원앙은 총 몇 마리 인가요?

Answer: 6

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

Question (EN): Dohyun's marbles can be put in 7 pockets with 16 each. Joohyun's marbles can be stored in 6 bags with 25 each. Find how many marbles Dohyun and Joohyun have in total.
Question (KO): 도현이가 가진 구슬은 16개씩 7개의 주머니에 담을 수 있습니다. 주현이가 가진 구슬은 25개씩 6개의 주머니에 담을 수 있습니다. 도현이와 주현이가 가진 구슬은 모두 몇 개인지 구하세요.

Answer: 262

Solution (Python):
var_a = 16
var_b = 7
var_c = var_a * var_b
var_d = 25
var_e = 6
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 250 kilograms (kg) of carrots in the supermarket and 2.5 times as many cucumbers as carrots. How many kilograms (kg) are there in both carrots and cucumbers?
Question (KO): 마트에 당근 250킬로그램(㎏)이 있고, 오이는 당근의 2.5배만큼 있습니다. 당근과 오이는 모두 몇 킬로그램(㎏) 있습니까?

Answer: 875

Solution (Python):
var_a = 250
var_b = 250
var_c = 2.5
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e))
Category: Geometry

Question (EN): In a right triangle, what is the length of the hypotenuse if the length of the non-hypotenuse side and the length of the other non-hypotenuse side are 5 and 12, respectively?
Question (KO): 어느 직각삼각형에서, 빗변이 아닌 한 변의 길이와 나머지 빗변이 아닌 한 변의 길이가 각각 5와 12일 때 빗변의 길이는?

Answer: 13

Solution (Python):
var_a = 12
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 = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Possibility

Question (EN): There are (Three digit number)/(two digit number) with the highest quotient were made by using 5, 9, 2, 7, and 3 number cards allowing duplicates. Find the remainder.
Question (KO): 5, 9, 2, 7, 3 수 카드를 중복을 사용하여 몫이 가장 큰 (세 자리 수)/(두 자리 수)를 만들었습니다. 나머지를 구하세요.

Answer: 9

Solution (Python):
var_a = 5
var_b = 9
var_c = 2
var_d = 7
var_e = 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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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 = 2
list_d = [str(i) for i in list_a]
list_d = list(itertools.product(list_d, repeat=var_i))
list_d = [''.join(num_list) for num_list in list_d]
list_d = [str_num for str_num in list_d if str_num[0] != '0']
list_d = [float(i) for i in list_d]
var_j = 1
list_e=list_d.copy()
list_e.sort()
var_k = list_e[var_j-1]
var_l = var_h % var_k
print(int(var_l))
Category: Arithmetic calculation

Question (EN): If the sum of the allowances received by the older brother and the younger brother is 12,000 won, and the older brother received 1,000 won more than the younger brother, how much money did the older brother receive?
Question (KO): 형과 동생이 받은 용돈의 합은 12000원이고, 형이 동생보다 1000원 더 받았다면, 형이 받은 용돈은 얼마인지 구하시오.

Answer: 6500

Solution (Python):
var_a = 12000
var_b = 1000
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 1000
var_g = var_e + var_f
print(int(var_g))
Category: Possibility

Question (EN): Yoongi and Yuna want to share the 7 loaves of bread. One person must eat at least 1 loaf of bread. How many ways are there to share bread?
Question (KO): 빵 7개를 윤기와 유나가 나누어 먹으려고 합니다. 한 사람은 적어도 1개의 빵을 먹어야 합니다. 빵을 나누어 먹는 방법은 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 7
var_b = 2
var_c = 1
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g))
Category: Comparison

Question (EN): Namjoon was the 12th to arrive at school, and Jimin arrived at school 3 people earlier than Namjoon. In what number did Jimin arrive?
Question (KO): 남준이는 학교에 12번째로 도착했고, 지민이는 남준이보다 3명 앞에서 먼저 학교에 도착했습니다. 지민이는 몇 번째로 도착했습니까?

Answer: 8

Solution (Python):
var_a = 12
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): The students of Saebyeol's school are going to have a wrestling match with each other once. How many students participated in the wrestling match if they had played 91 times?
Question (KO): 샛별이네 학교 학생들이 서로 한 번씩 씨름 경기를 하려고 합니다. 씨름 경기를 모두 91번 했다면 경기에 참여한 학생은 모두 몇 명입니까?

Answer: 14

Solution (Python):
var_a = 91
var_b = 2
var_c = var_a * var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 1
var_g=int(((var_e+9*10**(var_f-2))//(10**(var_f-1)))*10**(var_f-1))

print(int(var_g))
Category: Comparison

Question (EN): 20 students lined up in a single line. Jungkook is standing right in front of Yoongi, and 11 students are standing behind him. How many students are standing in front of Yoongi?
Question (KO): 20명의 학생들이 한 줄로 줄을 섰습니다. 윤기의 앞에는 정국이가 서있고, 정국이 뒤에는 11명의 학생들이 서 있습니다. 윤기의 앞에 서 있는 학생은 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
var_f = 1
var_g = var_e - var_f
print(int(var_g))
Category: Comparison

Question (EN): There are three numbers 0.8, 1/2, and 0.9. Which of the numbers less than or equal to 2 is the largest?
Question (KO): 3개의 숫자 0.8, 1/2, 0.9가 있습니다. 2보다 작거나 같은 수 중 가장 크거나 같은 숫자는 얼마인가요?

Answer: 0.9

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 = 2
list_b = []
for i in list_a:
    if i <= var_d:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Comparison

Question (EN): There are 7 numbers: 1.7, 1/5, 1/5, 1, 3/5, 3/8, and 1.4. When comparing sizes and writing them in order from largest to smallest, what is the fourth number?
Question (KO): 1.7, 1/5, 1/5, 1, 3/5, 3/8, 1.4 등 7개의 숫자가 있습니다. 크기를 비교하여 가장 큰 것부터 순서대로 쓸 때 네 번째 숫자는 무엇입니까?

Answer: 0.6

Solution (Python):
var_a = 1.7
var_b = 1
var_c = 5
var_d = var_b / var_c
var_e = 1
var_f = 5
var_g = var_e / var_f
var_h = 1
var_i = 3
var_j = 5
var_k = var_i / var_j
var_l = 3
var_m = 8
var_n = var_l / var_m
var_o = 1.4
list_a= []
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_a.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_a.append(var_n)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_a.append(var_k)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_p = 4
list_b=list_a.copy()
list_b.sort()
var_q = list_b[-var_p]
print('{:.2f}'.format(round(var_q+1e-10,2)))
Category: Possibility

Question (EN): Five white balls are placed next to each other, and you want to color each white ball with one red, one blue, and two yellow. In how many different ways are the colored balls placed differently?
Question (KO): 다섯 개의 흰 공이 나란히 놓여 있고, 흰 공을 빨간 공 1개, 파란 공 1개, 노란 공 2개로 색칠하려고 한다. 색칠 된 공들의 색깔 배치가 서로 다른 경우는 모두 몇가지인가?

Answer: 60

Solution (Python):
var_a = 5
var_b = 4
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 = 2
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): A figure has a side length of 7 centimeters (cm) and 3 sides in total. What is the perimeter of this shape in centimeters (cm)?
Question (KO): 한 변의 길이가 7센티미터(㎝)이며 변이 총 3개인 도형이 있습니다. 이 도형의 둘레는 몇 센티미터(㎝)입니까?

Answer: 21

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

Question (EN): When you add 5 to a number, you get 9. Find the number
Question (KO): 어떤 수에 5를 더했더니 9가 되었습니다. 어떤 수를 구하시오.

Answer: 4

Solution (Python):
var_a = 9
var_b = 5
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It is said that it takes 6.12 liters (L) of paint to paint a wall. How much is left after painting all the walls with 33.5 liters (L) of paint?
Question (KO): 담을 칠하는 데 페인트 6.12리터(L)가 필요하다고 합니다. 페인트 33.5리터(L)로 담을 모두 칠하고 남는 양은 얼마입니까?

Answer: 2.9

Solution (Python):
var_a = 33.5
var_b = 6.12
var_c = var_a % var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Arithmetic calculation

Question (EN): What is the remainder when dividing the largest number between 14 and 105 inclusive by the smallest number?
Question (KO): 14 이상 105 이하인 자연수 중에서 가장 큰 수를 가장 작은 수로 나눈 나머지는 얼마입니까?

Answer: 7

Solution (Python):
var_a = 105
var_b = 14
var_c = var_a % var_b
print(int(var_c))
Category: Correspondence

Question (EN): There are total 821 numbers of chicks and chickens in the coop. If there are 267 chicks, find how many more chickens there are than chicks.
Question (KO): 닭장 안에 병아리와 닭을 모두 합쳐 821마리가 있다. 병아리가 267마리일 때, 닭이 병아리보다 몇 마리 더 많은지 구하시오.

Answer: 287

Solution (Python):
var_a = 821
var_b = 267
var_c = var_a - var_b
var_d = 267
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): I need to add 479 to a certain number, but I mistakenly subtracted 749, so I got 280. Find the result of the correct calculation.
Question (KO): 어떤 수에 479를 더해야 하는데 잘못하여 749를 뺐더니 280이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 1508

Solution (Python):
var_a = 280
var_b = 749
var_c = var_a + var_b
var_d = 479
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the number of common divisors of 32 and 24.
Question (KO): 32와 24의 공약수의 개수를 구하시오.

Answer: 4

Solution (Python):
var_a = 32
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 24
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) & set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Possibility

Question (EN): There are number cards with the natural numbers from 1 to 9 written on them. How many ways can there that makes a total of 19 when taking 3 cards out?
Question (KO): 1부터 9까지의 자연수가 적힌 숫자 카드가 있습니다. 이 중 3개를 빼서 더했을 때 19를 만드는 방법은 모두 몇 가지입니까?

Answer: 30

Solution (Python):
var_a = 1
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 19
var_g = 0
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))
Category: Correspondence

Question (EN): I mistakenly subtracted 46 from a number that should have been multiplied by 46, and I got 27. How much do you get when you calculate it correctly?
Question (KO): 어떤 수에 46을 곱해야 할 것을 잘못하여 뺐더니 27이 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 3358

Solution (Python):
var_a = 27
var_b = 46
var_c = var_a + var_b
var_d = 46
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Using string, a square with a side of 20 centimeters (cm) was made. Using the same string, a rectangle wide 14 centimeters (cm) was made. Find the length of the height of this rectangle.
Question (KO): 실을 사용하여 한 변이 20센티미터(㎝)인 정사각형을 만들었습니다. 똑같은 실을 사용하여 가로의 길이가 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: Comparison

Question (EN): The bank, school, stationery store, convenience store, and park are the closest in that order. What is the 5th closest building?
Question (KO): 은행, 학교, 문구점, 편의점, 공원 순으로 거리가 가깝습니다. 5번째로 거리가 가까운 건물은 무엇인가요?

Answer: park

Solution (Python):
var_a = 'bank'
var_b = 'school'
var_c = 'stationery'
var_d = 'convenience'
var_e = 'park'
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 = 5
var_g = list_a[var_f-1]
print(var_g)
Category: Comparison

Question (EN): When I compared the sizes of box (a) and box (b), box (a) was larger than box (b). Between two boxes (a) and (b), which one is the smaller one?
Question (KO): (가) 상자와 (나) 상자의 크기를 비교했더니, (가) 상자가 (나) 상자보다 컸습니다. (가), (나) 2개의 상자 중 크기가 작은 상자는 무엇입니까?

Answer: (b)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
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 = '(a)'
var_d = '(b)'
var_e = '>'
list_b= []
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)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_f = len(list_c)
var_g = list_c[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): The average of the three numbers A, B, and C is 130. When you look for an average of those 3 numbers and D, you get 126. Find what D is.
Question (KO): 세 수 A, B, C의 평균은 130입니다. 여기에 수 D를 더 넣어서 평균을 구했더니 126이 되었습니다. D를 구하시오.

Answer: 114

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

Question (EN): Jinho has a number that is the sum of 1 multiplied by 4, 0.1 multiplied by 2, and 0.001 multiplied by 7. Younghee has a number that is 100 multiplied by Jinho's number. If Jungsoo has a number that is 0.05 greater than Younghee's number, express Jungsoo's number in a decimal number.
Question (KO): 진호는 1을 4배, 0.1을 2배, 0.001을 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: Possibility

Question (EN): There are 5 people A, B, C, D, and E. When 5 people are lined up, find the number of ways to put A at the front.
Question (KO): A, B, C, D, E 5명이 있다. 5명을 한 줄로 세울 때, A를 맨 앞에 세우는 경우의 수를 구하시오.

Answer: 24

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
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 = 'A'
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_g = len(list_c)
var_h = len(list_c)
var_i = 1
var_g = int(var_g)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_g-i)
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Jung-min is jumping rope with Yeon-jun. Jung-min can do 256 in 4 minutes and Jimin can do 111 in 3 minutes. If Jung-min and Jimin did jumping rope for 3 minutes, find the sum of the number of times they jumped rope.
Question (KO): 정민이는 연준이와 함께 줄넘기를 하고 있습니다. 정민이는 4분에 256개를 할 수 있고 지민이는 3분동안 111개를 할 수 있습니다. 3분동안 정민이와 지민이가 줄넘기를 했다면 두 사람의 줄넘기 횟수의 합을 구하세요.

Answer: 303

Solution (Python):
var_a = 256
var_b = 3
var_c = 4
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 111
var_g = var_e + var_f
print(int(var_g))