philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): Find the area of a rectangle whose width and length differ by 6 centimeters (cm) and whose perimeter is 68 centimeters (cm).
Question (KO): 가로와 세로의 길이 차가 6센티미터(㎝)이고, 둘레의 길이는 68센티미터(㎝)인 직사각형의 넓이를 구하시오.

Answer: 280

Solution (Python):
var_a = 68
var_b = 2
var_c = var_a / var_b
var_d = 6
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 68
var_i = 2
var_j = var_h / var_i
var_k = 6
var_l = var_j - var_k
var_m = 2
var_n = var_l / var_m
var_o = 6
var_p = var_n + var_o
var_q = var_g * var_p
print(int(var_q))
Category: Correspondence

Question (EN): Hoseok subtracted 7 from a certain number to get 9. What is the result of multiplying this number by 3?
Question (KO): 호석은 어떤 수에서 7을 빼서 9를 얻었다. 이 수에 3을 곱한 결과는?

Answer: 48

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

Question (EN): Among Jungkook, Jimin, Yoongi, and Yuna, I'm trying to choose 2 people. How many options are there in total?
Question (KO): 정국, 지민, 윤기, 유나 중에서 2사람을 선택하려고 합니다. 선택할 수 있는 경우는 모두 몇 가지 입니까?

Answer: 6

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
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)
var_f = 2
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_e-i)
for i, elem in enumerate(range(var_f)):
    var_g = var_g / (i+1)
print(int(var_g))
Category: Correspondence

Question (EN): You had to subtract 36 from a number, but you mistakenly subtracted 63 and got 8 as an answer. Find the answer to the correct calculation.
Question (KO): 어떤 수에서 36을 빼야 하는데 잘못하여 63을 뺀 결과가 8이 나왔습니다. 바르게 계산한 결과를 구하시오.

Answer: 35

Solution (Python):
var_a = 8
var_b = 63
var_c = var_a + var_b
var_d = 36
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a box in the shape of a cube. If the sum of all the edges of the box is 144 centimeters (cm), how many centimeters (cm) is the length of one edge?
Question (KO): 정육면체 모양의 상자가 있습니다. 이 상자의 모든 모서리의 길이를 다 더했을 때 144센티미터(㎝)라면, 한 모서리의 길이는 몇 센티미터(㎝)일지 구하시오.

Answer: 12

Solution (Python):
var_a = 144
var_b = 12
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): If the sum of two consecutive natural numbers is 39, find the smallest of the two natural numbers.
Question (KO): 연속하는 두 자연수의 합이 39일 때, 두 자연수 중에 제일 작은 수를 구하시오.

Answer: 19

Solution (Python):
var_a = 39
var_b = 1
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 204 male students and 468 female students in (A) village, 334 male students and 516 female students in (B) village, 427 male students and 458 female students in (C) village, and 549 male students and 239 female students in (D) village. What is the difference between the total number of boys and total number of girls in your town?
Question (KO): (가) 마을에는 남학생이 204명, 여학생이 468명 있고, (나) 마을에는 남학생이 334명, 여학생이 516명 있고, (다) 마을에는 남학생이 427명, 여학생이 458명 있고, (라) 마을에는 남학생이 549명, 여학생이 239명 있습니다. 네 마을의 남학생 수와 여학생 수의 차는 몇 명입니까?

Answer: 167

Solution (Python):
var_a = 204
var_b = 334
var_c = 427
var_d = 549
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()
list_a = [float(i) for i in list_a]
var_e = sum(list_a)
var_f = 468
var_g = 516
var_h = 458
var_i = 239
list_b= []
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()
list_b = [float(i) for i in list_b]
var_j = sum(list_b)
var_k = var_e - var_j
var_l = abs(var_k)
print(int(var_l))
Category: Arithmetic calculation

Question (EN): Jinho went to the stationery store with 2,500 won and bought 5 erasers which cost 120 won each and 3 pencils that cost 350 won each. Find out the remaining money Jinho has after buying erasers and pencils.
Question (KO): 진호는 2500원을 가지고 문구점에 가서 120원짜리 지우개 5개를 사고 350원짜리 연필 3개를 샀습니다. 진호가 지우개와 연필을 사고 남은 돈이 얼마인지 구하시오.

Answer: 850

Solution (Python):
var_a = 2500
var_b = 120
var_c = 5
var_d = var_b * var_c
var_e = 350
var_f = 3
var_g = var_e * var_f
var_h = var_d + var_g
var_i = var_a - var_h
print(int(var_i))
Category: Correspondence

Question (EN): We subtracted 50 from a certain number, divided it by 4, multiplied it by 3, and added 28. If the final result is 73, what is the certain number?
Question (KO): 어떤 수에서 50을 빼고 4로 나눈 결과를 3을 다시 곱하고 28을 더해주었습니다. 최종 결과가 73이라면 어떤 수는 얼마입니까?

Answer: 110

Solution (Python):
var_a = 73
var_b = 28
var_c = var_a - var_b
var_d = 3
var_e = var_c / var_d
var_f = 4
var_g = var_e * var_f
var_h = 50
var_i = var_g + var_h
print(int(var_i))
Category: Possibility

Question (EN): How many ways are there for you to buy 2 fruits out of apples, pears, melons, persimmons, and watermelons at the fruit store?
Question (KO): 과일 가게에서 사과, 배, 참외, 감, 수박 중 2가지의 과일을 사려고 할 때, 구매할 수 있는 방법은 모두 몇 가지입니까?

Answer: 10

Solution (Python):
var_a = 'apples'
var_b = 'pears'
var_c = 'melons'
var_d = 'persimmons'
var_e = 'watermelons'
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)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
print(int(var_h))
Category: Correspondence

Question (EN): When 13 is divided by 7, the quotient is 1 and the remainder is A. Find the value of A at this time.
Question (KO): 13을 7로 나눴더니 몫이 1이 되었고, 나머지는 A가 되었습니다. 이 때 A의 값을 구하시오.

Answer: 6

Solution (Python):
var_a = 13
var_b = 7
var_c = 1
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e))
Category: Possibility

Question (EN): Find the number of three-digit natural numbers that can be made by drawing three of the number cards 3, 5, 8, and 9.
Question (KO): 숫자 카드 3, 5, 8, 9 중 3장을 뽑아 만들 수 있는 세 자리 자연수의 개수를 구하시오.

Answer: 24

Solution (Python):
var_a = 3
var_b = 5
var_c = 8
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 = 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: Arithmetic calculation

Question (EN): Out of 15 chickens, there are only 3 hens. If there are 4 chicks fewer than the number of roosters, how many chicks are there?
Question (KO): 15마리의 닭 중 암탉은 3마리밖에 없습니다. 병아리의 수와 수탉에서 4마리 뺀 수가 같다면, 병아리는 몇 마리입니까?

Answer: 8

Solution (Python):
var_a = 15
var_b = 3
var_c = var_a - var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Students give their presentations taking turns. If Eunjeong's turn is at the 6th from the last, and the 7 students give presentations ahead of Eunjeong. How many students are there in total?
Question (KO): 발표가 진행되는 동안 학생들은 차례대로 발표를 합니다. 뒤에서 6번째는 은정, 7명의 학생은 은정이보다 뒤에서 발표한다. 총 몇 명의 학생이 발표합니까?

Answer: 13

Solution (Python):
var_a = 6
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): When the art teacher distributed 132.6 centimeters (cm) of ribbon tape to the students in equal lengths, each student received 13.26 centimeters (cm). If you give these students equal lengths of string of 0.064 meters (m), how many meters (m) of string will each student receive?
Question (KO): 미술 선생님이 리본 테이프 132.6센티미터(㎝)를 학생들에게 동일한 길이로 나누어 주었더니 한 학생당 13.26센티미터(㎝)를 받게 되었다. 이 학생들에게 0.064미터(m)의 끈을 동일한 길이로 나누어 준다면 한 학생당 몇 미터(m)의 끈을 받는지 구하시오.

Answer: 0.64

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

Question (EN): A pyramid has 14 edges. Find the number of vertices of this pyramid.
Question (KO): 어느 각뿔의 모서리는 14개입니다. 이 각뿔의 꼭짓점의 개수를 구하시오.

Answer: 8

Solution (Python):
var_a = 14
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): I was to subtract 36 from a number, but mistakenly subtracted 63, and got 24 as a result. Find out the right answer to the calculation.
Question (KO): 어떤 수에서 36을 빼야 하는데 잘못해서 63을 뺐더니 24가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 51

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

Question (EN): There are 17 (a) objects and  some (b) objects. If you add (a) object and (b) object, there are 35 in total. How many (b) objects do you have?
Question (KO): (가) 물건 17개와 (나) 물건 몇 개가 있습니다. (가) 물건과 (나) 물건을 합치면 모두 35개입니다. (나) 물건은 몇 개 있습니까?

Answer: 18

Solution (Python):
var_a = 35
var_b = 17
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): Each of the three boxes contains 16 pieces of bread A, each weighing 200 grams (g). There are also two boxes containing 12 pieces of bread B, each weighing 250 grams (g). If the empty boxes weigh the same, which bread is contained in one box whose weight is heavier?
Question (KO): 3개의 상자는 각각 1개당 무게가 200그램(g)인 단팥빵 16개를 담고 있다. 또한 1개당 250그램(g)의 소라빵을 12개 담은 상자가 2개도 있다. 빈 상자의 무게가 같을 시 한 상자의 무게가 더 무거운 상자에 포함된 빵은 무엇인가요?

Answer: A

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 = 200
var_d = 16
var_e = 3
var_f = 3
var_g = var_e / var_f
var_h = var_d * var_g
var_i = var_c * var_h
var_j = 250
var_k = 12
var_l = 2
var_m = 2
var_n = var_l / var_m
var_o = var_k * var_n
var_p = var_j * var_o
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
list_b.reverse()
var_q = 1
list_c=list_b.copy()
list_c.sort()
var_r = list_c[-var_q]
var_s = list_b.index(var_r)+1
var_t = list_a[var_s-1]
print(var_t)
Category: Comparison

Question (EN): Taehyung, Minju, Sangmin, Yoonjung, and Yoojung entered the finish line in that order. Who entered first?
Question (KO): 태형, 민주, 상민, 윤정, 유정이 차례로 결승선에 진입했다. 가장 먼저 입장한 사람은?

Answer: Taehyung

Solution (Python):
var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjung'
var_e = 'Yoojung'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): Jungkook wants to equally distribute 15 sheets of colored paper to 3 friends. How many sheets of colored paper do they get each?
Question (KO): 정국이는 3명의 친구에게 15개의 색종이를 균일하게 나누어주려고 합니다. 각각 몇 개의 색종이를 받습니까?

Answer: 5

Solution (Python):
var_a = 15
var_b = 3
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): What number is 1/3 when you add -5/12 to it?
Question (KO): 어떤 수에 -5/12를 더하면 1/3일 때, 어떤 수를 구하시오.

Answer: 0.75

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

Question (EN): Jimin wanted to add a particular number to 34. If the result of dividing 96 by that particular number was 6, find the correct result. 
Question (KO): 지민이는 34에 어떤 수를 더하려고 합니다. 실수로 96에 어떤 수를 나눴을 때의 결과가 6이라면 바르게 계산한 결과를 구하세요.

Answer: 50

Solution (Python):
var_a = 34
var_b = 96
var_c = 6
var_d = var_b / var_c
var_e = var_a + var_d
print(int(var_e))
Category: Correspondence

Question (EN): 6 is a number added 3 to the number. What number is it that is 5 greater than the number?
Question (KO): 6은 어떤 수에 3을 더한 숫자입니다. 어떤 수보다 5 큰 숫자는 얼마인가요?

Answer: 8

Solution (Python):
var_a = 6
var_b = 3
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): In the calculation of subtracting a two-digit number from a four-digit number, I mistook the number in the units place of the four-digit number for 5, and I made an error and understood the two-digit number as 84 because I confused the numbers in the tens place with the units place. The result of this calculation was 1781. If the number in the units place of a four-digit number was originally 9, what would be the correct result?
Question (KO): 네 자리 수에서 두 자리 수를 빼는 계산에서 네 자리 수의 일의 자리 숫자는 5로 계산하고, 두 자리 수의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 84로 계산했더니 1781이 되었습니다. 네 자리 수의 일의 자리 숫자가 원래 9였다면, 바르게 계산한 결과는 얼마입니까?

Answer: 1821

Solution (Python):
var_a = 1781
var_b = 9
var_c = 5
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 84
var_g = 48
var_h = var_f - var_g
var_i = var_e + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Jungkook's weight is 154 grams (g) heavier than 54 kilograms (kg). Write Jungkook's weight in kilograms (kg)
Question (KO): 정국의 몸무게는 54킬로그램(㎏)보다 154그램(g) 무겁습니다. 유정이의 몸무게를 킬로그램(㎏)로 써보시오

Answer: 54.15

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

Question (EN): You were supposed to subtract 40 from a certain number, but you accidentally added 21 and the result was 52. What is the answer to the corrected calculation?
Question (KO): 40을 어떤 수에 빼야 할 것을 잘못하여 21을 어떤 수에 더한 결과는 52가 나옵니다. 바르게 계산하면 얼마인가요?

Answer: 9

Solution (Python):
var_a = 52
var_b = 21
var_c = var_a - var_b
var_d = 40
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a rectangular vacant lot with the width and length of 36 meters (m) and 72 meters (m), respectively. Find the maximum number of boxes that can be stored in this clearing, whose base is a rectangle measuring 3 meters (m) wide and 4 meters (m) long.
Question (KO): 가로와 세로의 길이가 각각 36미터(m), 72미터(m)인 직사각형 모양의 공터가 있습니다. 이 공터에 가로가 3미터(m), 세로가 4미터(m)인 직사각형을 밑면으로 하는 박스를 최대 몇 개 보관 할수 있는지 구하시오.

Answer: 216

Solution (Python):
var_a = 36
var_b = 3
var_c = var_a // var_b
var_d = 72
var_e = 4
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g))
Category: Comparison

Question (EN): There are pharmacies every 22.75 meters (m) on one side of the 364 meters (m) long road, and shops every 45.5 meters (m) on the other side. Which are more on this road, pharmacies or shops?
Question (KO): 길이가 364 미터(m) 인 도로의 한쪽에는 약국이 22.75 미터(m) 간격으로, 다른 한쪽에는 편의점이 45.5 미터(m) 간격으로 있습니다. 이 도로에는 약국과 편의점 중 어느 것을 더 많이 있을까요?

Answer: pharmacies

Solution (Python):
var_a = 'pharmacies'
var_b = 'shops'
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 = 364
var_d = 22.75
var_e = var_c / var_d
var_f = 364
var_g = 45.5
var_h = var_f / var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): The four arithmetic operations were carried out using only the number 5 up to a certain number. What is the number if you first add 5, then multiply by 5, then subtract 5, then divide by 5 to get 5?
Question (KO): 어떤 수에 숫자 5만을 가지고 사칙연산을 수행했습니다. 먼저 5를 더하고 5를 곱한 이후, 5를 빼주고 다시 5로 나눠주었을 때 5가 되었다면 어떤 수는 얼마입니까?

Answer: 1

Solution (Python):
var_a = 5
var_b = 5
var_c = var_a * var_b
var_d = 5
var_e = var_c + var_d
var_f = 5
var_g = var_e / var_f
var_h = 5
var_i = var_g - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The mart sold all 12 boxes of apples in 4 days. If each crate contained 25 apples, find the average number of apples that were sold per day.
Question (KO): 마트에서 사과 12상자를 4일 만에 전부 팔았습니다. 각 상자당 사과가 25개씩 들어 있었다면, 하루에 판매된 평균 사과 수를 구하시오.

Answer: 75

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

Question (EN): Woojin spends 1/3 of the day sleeping, 3/4 of the remaining time studying, and 1/4 of the rest of the time playing computer games. How many hours does Woojin spend playing computer games in a day?
Question (KO): 우진이는 하루의 1/3은 잠을 자고 그 나머지의 3/4은 공부를 하고 그 나머지의 1/4은 컴퓨터 게임을 합니다. 우진이가 하루 중 컴퓨터 게임을 하는 시간은 몇 시간입니까?

Answer: 1

Solution (Python):
var_a = 24
var_b = 1
var_c = 0.3333333333333333
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 1
var_g = 0.75
var_h = var_f - var_g
var_i = var_e * var_h
var_j = 0.25
var_k = var_i * var_j
print(int(var_k))
Category: Comparison

Question (EN): Taehee jumped rope 23 times yesterday and 14 times more today. Jihoon jumped rope 35 times yesterday and 19 fewer times today than yesterday. Who skipped more ropes yesterday and today combined?
Question (KO): 태희는 줄넘기를 어제는 23번 했고 오늘은 어제보다 14번 더 많이 했습니다. 지훈이는 줄넘기를 어제는 35번 했고 오늘은 어제보다 19번 더 적게 했습니다. 어제와 오늘 합해서 줄넘기를 더 많이 한 사람은 누구입니까?

Answer: Taehee

Solution (Python):
var_a = 'Taehee'
var_b = 'Jihoon'
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 = 23
var_d = 23
var_e = 14
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()
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
var_g = 35
var_h = 35
var_i = -19
list_c= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_c.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_c.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_c.append(var_g)
list_c.reverse()
list_c = [float(i) for i in list_c]
var_j = sum(list_c)
list_d= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_d.append(var_j)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_d.append(var_f)
list_d.reverse()
var_k = 1
list_e=list_d.copy()
list_e.sort()
var_l = list_e[-var_k]
var_m = list_d.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Geometry

Question (EN): There is a square piece of land with sides measuring 200 meters (m). What is the area of this land?
Question (KO): 한 변이 200미터(m)인 정사각형 모양의 땅이 있습니다. 이 땅의 넓이는 얼마입니까?

Answer: 40000

Solution (Python):
var_a = 200
var_b = 2
var_c = var_a ** var_b
print(int(var_c))
Category: Possibility

Question (EN): What is the second greatest number with 3 in the tens place using 3 numbers out of 4, 3, 1, 7, and 9?
Question (KO): 4, 3, 1, 7, 9 중 3개를 사용하여 십의 자리 숫자가 3인 두 번째 큰 수는 무엇입니까?

Answer: 934

Solution (Python):
var_a = 4
var_b = 3
var_c = 1
var_d = 7
var_e = 9
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 = 10
var_h = 3
list_c = [] 
var_g = int(var_g)
var_h = int(var_h)
for i in list_b:
    i = int(i)
    if (i//var_g)%10 == var_h:
        list_c.append(i)
var_i = 2
list_d=list_c.copy()
list_d.sort()
var_j = list_d[-var_i]
print(int(var_j))
Category: Geometry

Question (EN): The surface area of one cube is 150 square centimeters (cm2). In this case, find the sum of the lengths of all the edges of the cube.
Question (KO): 한 정육면체의 겉넓이는 150제곱센티미터(㎠)이다. 이 때, 정육면체의 모든 모서리 길이의 합은 얼마인지 구하시오.

Answer: 60

Solution (Python):
var_a = 150
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 4
var_g = 3
var_h = var_f * var_g
var_i = var_e * var_h
print(int(var_i))
Category: Comparison

Question (EN): There are five people: A, B, C, D, E, and F. Their average pocket money is 2,300 won, the average of A and B is 3,000 won, the average of B and C is 2,100 won, and the average of C and D is 2,750 won. And A gets 800 won more than B. How much D's pocket money is?
Question (KO): 가, 나, 다, 라, 마 다섯 사람이 있다. 이들의 평균 용돈은 2300원이고, 가가와 나나의 평균은 3000원, 나나와 다다의 평균은 2100원, 다다와 라라의 평균은 2750원이다. 그리고 가가는 나나보다 800원 더 많이 받는다. 라라의 용돈을 얼마인가?

Answer: 3900

Solution (Python):
var_a = 2750
var_b = 2
var_c = var_a * var_b
var_d = 2100
var_e = 2
var_f = var_d * var_e
var_g = 3000
var_h = 2
var_i = var_g * var_h
var_j = 800
var_k = var_i - var_j
var_l = 2
var_m = var_k / var_l
var_n = var_f - var_m
var_o = var_c - var_n
print(int(var_o))
Category: Comparison

Question (EN): The distances from Seungheon's house to the library, park, and clothing store are 1.912 kilometers (km), 876 meters (m), and 1.054 kilometers (km), respectively. Which is the second closest to the house?
Question (KO): 승헌이네 집에서부터 도서관, 공원, 옷가게까지의 거리가 각각 1.912 킬로미터(㎞), 876 미터(m), 1.054 킬로미터(㎞) 입니다.집에서 두 번째로 가까운 곳은 어디인지 답을 구해 보세요.

Answer: clothing

Solution (Python):
var_a = 'library'
var_b = 'park'
var_c = 'clothing'
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.912
var_e = 876
var_f = 1000
var_g = var_e / var_f
var_h = 1.054
list_b= []
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_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_i = 2
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)