philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are two straps with a difference of 72 centimeters (cm). When I put these two in a row and measured the length, I got 3 meters (m) and 48 centimeters (cm). Find the length of the longer string.
Question (KO): 72센티미터(㎝)의 차이가 나는 두 끈이 있습니다. 이 둘을 일렬로 놓고 길이를 재 보니 3미터(m) 48센티미터(㎝)가 나왔습니다. 길이가 긴 끈의 길이는 얼마인지 구하시오

Answer: 210

Solution (Python):
var_a = 3
var_b = 100
var_c = var_a * var_b
var_d = 48
var_e = var_c + var_d
var_f = 72
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
var_j = 72
var_k = var_i + var_j
print(int(var_k))
Category: Correspondence

Question (EN): Suppose that the number multiplied by 15 minus 7 is 48. Find what the number is.
Question (KO): 어떤 수에 15에서 7을 뺀 값을 곱하면 48이 됩니다. 어떤 수를 구하세요.

Answer: 6

Solution (Python):
var_a = 48
var_b = 15
var_c = 7
var_d = var_b - var_c
var_e = var_a / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the remainder when divided by the smallest number and the second smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 가장 작은 수와 2번째로 작은 수로 나눈 나머지는 얼마입니까?

Answer: 10

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

Question (EN): There is a regular pentagon with a perimeter of 23.4 centimeters (cm). How many centimeters (cm) is one side of this regular pentagon?
Question (KO): 둘레가 23.4센티미터(㎝)인 정오각형이 있습니다. 이 정오각형의 한 변은 몇 센티미터(㎝)입니까?

Answer: 4.68

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

Question (EN): The four-digit number 7A2B is divisible by the least common multiple of 2, 3, and 5, and A and B represent different numbers. Find the largest of these four-digit numbers.
Question (KO): 네 자리 수 7A2B는 2, 3, 5의 최소공배수로 나누어 떨어지고 A와 B는 서로 다른 숫자를 나타냅니다. 이러한 네 자리 수 중 가장 큰 수를 구하시오

Answer: 7920

Solution (Python):
var_a = '7A2B'
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 = 2
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 = 3
list_c = []
var_c = int(var_c)
for i in list_b:
    i = int(i)
    if i % var_c == 0:
        list_c.append(i)
var_d = 5
list_d = []
var_d = int(var_d)
for i in list_c:
    i = int(i)
    if i % var_d == 0:
        list_d.append(i)
var_e = 1
list_e=list_d.copy()
list_e.sort()
var_f = list_e[-var_e]
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Seoyeon has 4 blocks with numbers on them. Find the sum of the numbers on two blocks that maximize the difference between the numbers written in the block. The blocks are numbered 1, 3, 7, and 9.
Question (KO): 서연이는 숫자가 적힌 블럭 4개를 가지고 있다. 블럭에 적힌 수의 차를 가장 크게 하는 2개의 합을 구하여라. 블럭에는 1, 3, 7, 9가 적혀있다.

Answer: 10

Solution (Python):
var_a = 1
var_b = 3
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There were 34 people on the bus. At this stop, 11 people got off and 24 people got on. How many people are on the bus right now?
Question (KO): 버스 안에 사람이 34명 있었습니다. 이번 정류장에서 11명이 내리고 24명이 탔습니다. 지금 버스 안에 있는 사람은 모두 몇 명입니까?

Answer: 47

Solution (Python):
var_a = 34
var_b = 11
var_c = var_a - var_b
var_d = 24
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): A number plus 14, multiply by 14, subtract by 24, and divide by 24 equals 13. If the calculation proceeds in order, find the initial number.
Question (KO): 어떤 수에 14를 더한 후 14를 곱하고, 24를 뺀 값을 24로 나누면 13이 됩니다. 어떤 수를 구하시오.

Answer: 10

Solution (Python):
var_a = 13
var_b = 24
var_c = var_a * var_b
var_d = 24
var_e = var_c + var_d
var_f = 14
var_g = var_e / var_f
var_h = 14
var_i = var_g - var_h
print(int(var_i))
Category: Comparison

Question (EN): Find how many three-digit numbers with 2 in the hundreds digit and 5 in the tens digit are 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: Arithmetic calculation

Question (EN): Minyoung bought the same number of candies at 60 won each with the money he could buy same number of candies at 90 won each, and he had 270 won left. Find how much money Minyoung had.
Question (KO): 민영이는 1개에 90원짜리 사탕을 몇 개 살 수 있는 돈으로 1개에 60원짜리 사탕을 같은 수만큼 샀더니 270원이 남았습니다. 민영이가 가지고 있던 돈은 얼마인지 구하시오.

Answer: 540

Solution (Python):
var_a = 270
var_b = 90
var_c = 60
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 60
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): You originally planned to subtract 1264 from a number, but you mistakenly subtracted 2152. What is the difference between the correct and incorrect answers?
Question (KO): 어떤 수에서 1264를 빼어야 하는데 잘못하여 2152를 빼었습니다. 바르게 계산한 답과 잘못 계산한 답의 차는 얼마입니까?

Answer: 888

Solution (Python):
var_a = 2152
var_b = 1264
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): In two-digit multiplication, the digit 5 in the tens place of this number was incorrectly considered to be 3, resulting in a computed value of 1485. If the correct value is 2385, write the smaller of the two 2-digit numbers.
Question (KO): 두 자리 수 곱셈에서 곱하는 수의 십의 자리 숫자 5를 3으로 잘못 보고 계산한 값이 1485가 되었습니다. 바르게 계산한 값이 2385일 때, 2개의 두 자리 수 중 더 작은 수를 쓰시오.

Answer: 53

Solution (Python):
var_a = 1485
var_b = 2385
var_c = var_a - var_b
var_d = 3
var_e = 5
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_c / var_h
var_j = 2385
var_k = 1485
var_l = 2385
var_m = var_k - var_l
var_n = 3
var_o = 5
var_p = var_n - var_o
var_q = 10
var_r = var_p * var_q
var_s = var_m / var_r
var_t = var_j / var_s
list_a= []
if "/" in str(var_t):
    var_t = eval(str(var_t))
list_a.append(var_t)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
list_a.reverse()
var_u = 1
list_b=list_a.copy()
list_b.sort()
var_v = list_b[-var_u]
print(int(var_v))
Category: Arithmetic calculation

Question (EN): There are 120 liters (L) of water in the water tank. When you open the faucet in this water tank, 4 liters (L) of water flow out per minute. A few minutes after opening the faucet, 20 liters (L) of water remained in the water tank. Find how many minutes the faucet was left open.
Question (KO): 물 탱크에 120리터(L) 만큼의 물이 있다. 이 물탱크에 수도꼭지를 열면 분 당 4리터(L)의 물이 흘러나온다. 수도꼭지를 열고 몇 분이 지났을 때, 물탱크 안에 20리터(L)의 물이 남아있었습니다. 몇 분 동안 수도꼭지를 열어 두었는지 구하시오.

Answer: 25

Solution (Python):
var_a = 120
var_b = 20
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a milk carton in the shape of a cube. When all of these milk cartons were unfolded, the area was 600. Find the volume of this milk carton.
Question (KO): 정육면체 모양의 우유통이 있습니다. 이 우유통을 모두 펼쳤더니 넓이가 600이었습니다. 이 우유통의 부피를 구하시오.

Answer: 1000

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

Question (EN): When you collected 96 marbles in the bag, 5 groups came out, and the remainder was 17. What is the number of marbles multiplied by 69?
Question (KO): 주머니 속의 구슬을 96개씩 모아두었더니 5묶음이 나오고 나머지가 17이었습니다. 구슬의 개수에 69를 곱하면 얼마일까요?

Answer: 34293

Solution (Python):
var_a = 5
var_b = 96
var_c = var_a * var_b
var_d = 17
var_e = var_c + var_d
var_f = 69
var_g = var_e * var_f
print(int(var_g))
Category: Possibility

Question (EN): How many 3-digit integers can be made by drawing 3 out of 4 marbles numbered 2, 3, 4, 5?
Question (KO): 2, 3, 4, 5의 숫자가 각각 적힌 4개의 구슬 중 3개를 뽑아서 만들 수 있는 세 자리 정수의 개수는?

Answer: 24

Solution (Python):
var_a = 2
var_b = 3
var_c = 4
var_d = 5
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 = len(list_b)
print(int(var_f))
Category: Correspondence

Question (EN): When you add 36 to a certain number, you get 71. What is the value when you add 10 to that certain number?
Question (KO): 36을 어떤 수에 더했더니 결과가 71이 나왔습니다. 어떤 수에 10을 더하면 얼마일까요?

Answer: 45

Solution (Python):
var_a = 71
var_b = 36
var_c = var_a - var_b
var_d = 10
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): It took 10 minutes to go 15.5 kilometers (km) by car driven by Hyun-soo's father. How many kilometers (km) he can go in 46 minutes at this speed?
Question (KO): 현수네 아버지가 운전하는 자동차로 15.5킬로미터(㎞)를 가는 데에 10분이 걸렸습니다. 이와 같은 빠르기로 46분을 달리면 몇 킬로미터(㎞)를 갈 수 있습니까?

Answer: 71.3

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

Question (EN): The average math score of 5 students in the competition class was 81.6. Calculating the average without the highest score is said to be 6 points lower than the average without the lowest score. Let's say that the scores of the other 3 people excluding the highest and lowest, are 88, 84, and 76. Find the lowest score.
Question (KO): 경시반 학생 5명이 수학 시험을 친 결과 평균 점수가 81.6점이었다. 가장 높은 점수를 빼고 평균을 내면 가장 낮은 점수를 빼고 평균을 낸 것보다 6점이 낮다고 한다. 가장 높은 점수와 가장 낮은 점수를 제외한 나머지 3명의 점수가 88점, 84점, 76점이라고 할 때, 가장 낮은 점수를 구하여라.

Answer: 68

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: Arithmetic calculation

Question (EN): You want to place 6 flagpoles on the street at regular intervals. The length of the street is 11.5 meters (m), and it is said that there are flagpoles at both ends. How many meters (m) should the distance between flagpoles be?
Question (KO): 깃대 6개를 일정한 간격으로 거리위에 꽂으려고 합니다. 거리의 길이는 11.5미터(m)이며 양끝에도 깃대를 꼽는다고 합니다. 깃대와 깃대 사이의 거리는 몇 미터(m)로 해야 하나요?

Answer: 2.3

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

Question (EN): Jungwook ran 3.97 kilometers (km), and Yongun ran 4028 meters (m). Who ran the longer distance?
Question (KO): 정욱이는 3.97킬로미터(㎞) 달리고, 용운이는 4028미터(m)를 달렸습니다. 누가 더 긴 거리를 달렸습니까?

Answer: Yongun

Solution (Python):
var_a = 'Jungwook'
var_b = 'Yongun'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 3.97
var_d = 4028
var_e = 1000
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: Correspondence

Question (EN): When 2 times 2 plus the number is equal to 6, what number is it?
Question (KO): 어떤 수에서 2의 2배만큼 더하면 6이 된다. 어떤 수는 얼마인가?

Answer: 2

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

Question (EN): Thick books are 14/15 centimeters (cm) thick, and thin books are 1/10 centimeters (cm) thinner than thick books. Find the sum of the thicknesses of the two books in centimeters (cm).
Question (KO): 두꺼운 책의 두께는 14/15센티미터(㎝)이고, 얇은 책의 두께는 두꺼운 책의 두께보다 1/10센티미터(㎝) 더 얇습니다. 이때 두 책의 두께의 합은 몇 센티미터(㎝)인지 구하시오.

Answer: 1.77

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

Question (EN): Multiplying 107.8 by some number gives 9.8. Find out what the number is.
Question (KO): 107.8 을 어떤 수로 곱하였더니 9.8 이 되었습니다. 어떤 수는 얼마인지 구하시오.

Answer: 0.09

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

Question (EN): Some numbers are in between 5 and 9 and are single-digits greater than 7. Find which number satisfies the condition.
Question (KO): 어떤 수는 5와 9 사이에 있고, 7보다 큰 한 자리 수입니다. 어떤 수를 구하시오.

Answer: 8

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a + var_b
var_d = 9
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = 7
list_b = []
for i in list_a:
    if i > var_h:
        list_b.append(i)
var_i = 1
var_j = list_b[var_i-1]
print(int(var_j))
Category: Geometry

Question (EN): Make each square and rectangle from two pieces of wire of 52 centimeters (cm) long. If the width of the rectangle is 15 centimeters (cm), what is the difference between the areas of the two figures?
Question (KO): 길이가 52센티미터(㎝)인 철사 2개로 각각 정사각형과 직사각형을 만듭니다. 직사각형의 가로가 15센티미터(㎝)이면 두 도형의 넓이 차가 얼마인지 구하시오.

Answer: 4

Solution (Python):
var_a = 52
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 52
var_g = 2
var_h = var_f / var_g
var_i = 15
var_j = var_h - var_i
var_k = 15
var_l = var_j * var_k
var_m = var_e - var_l
var_n = abs(var_m)
print(int(var_n))
Category: Arithmetic calculation

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

Answer: 22

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 = 2
list_b=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 2
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): 5 balls are placed side by side. (e) ball is placed to the right of (c) and (e) to the left of (d). To the right of (a) is the ball (c), and to the left of (b) is the ball (d). Find the ball that is placed on the far left.
Question (KO): 공 5개를 나란히 놓았습니다. (마) 공은 (다) 공의 오른쪽 옆에, (마)는 (라)의 왼쪽 옆에 놓여있습니다. (가)의 오른쪽 옆에는 (다) 공이, (나)의 왼쪽 옆에는 (라) 공을 놓았습니다. 가장 왼쪽에 놓여진 공은 무엇인지 구하시오.

Answer: (a)

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 = '(e)'
var_g = '(c)'
var_h = '>'
var_i = '(e)'
var_j = '(d)'
var_k = '<'
var_l = '(c)'
var_m = '(a)'
var_n = '>'
var_o = '(d)'
var_p = '(b)'
var_q = '<'
list_b= []
if "/" in str(var_q):
    var_q = eval(str(var_q))
list_b.append(var_q)
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_b.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
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)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
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_r = len(list_c)
var_s = list_c[var_r-1]
print(var_s)
Category: Geometry

Question (EN): You can make a cuboid by attaching three cubes, each of which has a side of 6 centimeters (cm) long. How much did the surface area after pasting decrease compared to before pasting?
Question (KO): 한 모서리의 길이가 6센티미터(㎝)인 정육면체 3개를 이어붙여서 하나의 직육면체를 만들 수 있습니다. 붙이고 난 후의 겉넓이는 붙이기 전에 비해서 얼마나 줄어들었습니까?

Answer: 288

Solution (Python):
var_a = 3
var_b = 6
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 18
var_g = 6
var_h = var_f * var_g
var_i = 6
var_j = 6
var_k = var_i * var_j
var_l = var_h + var_k
var_m = 6
var_n = 6
var_o = var_m * var_n
var_p = var_l + var_o
var_q = 2
var_r = var_p * var_q
var_s = var_e - var_r
print(int(var_s))
Category: Possibility

Question (EN): There is a chicken pizza set menu in which you can choose one of four kinds of chicken and one of three kinds of pizza. When Eunsung and Sungmin are ordering the set menus, what is the number of cases in which they order only one same kind of menu among pizza and chicken?
Question (KO): 4종류의 치킨과 3종류의 피자 중에서 각각 1종류씩을 선택할 수 있는 치킨피자세트 메뉴가 있다. 은성과 성민이 이 세트 메뉴를 주문할 때, 치킨과 피자 중에서 어느 하나만 서로 같은 것을 주문하는 경우의 수는?

Answer: 60

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

Question (EN): When all the students were lined up in a square, there were 36 students left out. I extended the line in width and length by one column but there were still three people left. How many students are there? 
Question (KO): 전교생을 정사각형으로 줄세워서 보니 36명이 남았습니다. 가로 한 열과 세로 한 열을 1열씩 늘려서 줄세웠더니 아직도 3명이 남았습니다. 전교생은 모두 몇 명일까요?

Answer: 292

Solution (Python):
var_a = 36
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = var_g ** var_h
var_j = 36
var_k = var_i + var_j
print(int(var_k))
Category: Possibility

Question (EN): You have 2 chances to draw from the basket. How many ways exist to draw a fruit from a basket containing 1 apple, 1 peach, 1 pear, 1 melon, and 1 strawberry while also considering the order of draw?
Question (KO): 바구니에서 뽑을 수 있는 기회는 2번입니다. 바구니 속에 사과, 복숭아, 배, 참외, 딸기가 각각 1개씩 들어가있는 바구니에서 차례를 고려하여 과일을 뽑는다면, 가능한 경우의 수는 몇 가지입니까?

Answer: 20

Solution (Python):
var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
var_d = 'melon'
var_e = 'strawberry'
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = len(list_a)
var_g = 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)
print(int(var_h))
Category: Comparison

Question (EN): Which number is less than or equal to 0.8, 1/2, 0.3 and greater than or equal to 0.4?
Question (KO): 0.8, 1/2, 0.3에서 0.4보다 크거나 같은 수 중 가장 작거나 같은 수는?

Answer: 0.5

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.3
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.4
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-1]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Correspondence

Question (EN): Subtracting 7 from a number gives 9 as a result. What is the result of the number being multiplied by 5?
Question (KO): 7을 어떤 수에서 뺐더니 결과로 9를 얻었습니다. 5를 어떤 수에 곱하면?

Answer: 80

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a + var_b
var_d = 5
var_e = var_c * var_d
print(int(var_e))