philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): The average weight of the 20 male students in Eugene's class is 42 kg, and the average weight of the 20 female students is 38 kg. What is the average weight of all the students in Eugene's class in kilograms (kg)?
Question (KO): 유진이네 반 남학생 20 명의 평균 몸무게는 42 킬로그램(㎏)이고, 여학생 20 명의 평균 몸무게는 38 킬로그램(㎏) 입니다. 유진이네 반 전체 학생들의 평균 몸무게는 몇 킬로그램(㎏) 입니까?

Answer: 40

Solution (Python):
var_a = 20
var_b = 42
var_c = var_a * var_b
var_d = 20
var_e = 38
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 20
var_i = 20
var_j = var_h + var_i
var_k = var_g / var_j
print(int(var_k))
Category: Geometry

Question (EN): All of the square-shaped tiles are lined up to make a larger square. If the number of tiles on the perimeter is 52, find the number of tiles on the outermost of one side.
Question (KO): 정사각형 모양의 타일을 빠짐없이 늘어놓아 더 큰 정사각형을 만들었습니다. 둘레에 놓인 타일의 개수가 52개라면 가장 바깥쪽의 한 변에 놓인 타일의 개수를 구하시오.

Answer: 14

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

Question (EN): Jimin's family runs an orchard. When picking apples, Jimin picked 7, Grandpa 13, younger brother 8, and younger sister 5. How many more apples did the person who picked the most apples pick than the person who picked the fewest?
Question (KO): 지민이네 가족은 과수원을 운영합니다. 사과를 따는데 지민이는 7개, 할아버지는 13개, 남동생은 8개, 여동생은 5개를 땄습니다. 사과를 가장 적게 딴 사람보다 가장 많이 딴 사람은 몇 개를 더 땄습니까?

Answer: 8

Solution (Python):
var_a = 8
var_b = 13
var_c = 7
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 = 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: Comparison

Question (EN): Find the number of numbers greater than or equal to 0.4 among 0.8, 1/2, and 0.3.
Question (KO): 0.8, 1/2, 0.3 중 0.4보다 크거나 같은 수의 개수를 구하시오.

Answer: 2

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 = len(list_b)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When Hyemi went to the game room, she went at 3 kilometers per hour (km). When she came back from the game room, she went through the mart, so she came at a speed of 4 km per hour on a 2 km (km) longer road. If the total time to go and return took 4 hours, how many kilometers did she walk to the game room?
Question (KO): 혜미는 게임방을 갈 때 시속 3킬로미터(㎞)로 갔다. 게임방에서 다시 돌아올 때 마트를 거치며 오느라 2킬로미터(㎞) 더 긴 길로 시속 4킬로미터(㎞)의 속도로 왔다. 가는 시간과 오는 시간을 합쳐보니 4시간이 걸렸다면, 게임방을 갈 때 몇 킬로미터(㎞)를 걸었는가?

Answer: 6

Solution (Python):
var_a = 4
var_b = 2
var_c = 4
var_d = var_b / var_c
var_e = var_a - var_d
var_f = 1
var_g = 3
var_h = var_f / var_g
var_i = 1
var_j = 4
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_e / var_l
print(int(eval('{:.2f}'.format(round(var_m+1e-10,2)))))
Category: Comparison

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

Answer: 0.5

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

Question (EN): Find the multiples of 3 of the numbers whose hundreds are 7 and whose ones are 3. How many numbers are there?
Question (KO): 백의 자리 숫자가 7, 일의 자리 숫자가 3인 수들 중 3의 배수는 몇 개인지 구하시오.

Answer: 3

Solution (Python):
var_a = 7
var_b = 'A'
var_c = 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=""
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 = 3
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 = len(list_c)
print(int(var_f))
Category: Correspondence

Question (EN): Adding 305 to a number and then dividing it by 16 results in 31. Find the number.
Question (KO): 어떤 수에 305를 더하고 다시 16으로 나누면 31이 됩니다. 어떤 수를 구하시오.

Answer: 191

Solution (Python):
var_a = 31
var_b = 16
var_c = var_a * var_b
var_d = 305
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): When you divide a certain number by 10, you get 6. Find the result of subtracting 15 from the number.
Question (KO): 어떤 수에서 10을 나누었더니 6이 되었습니다. 어떤 수에 15를 뺀 결과를 구하시오.

Answer: 45

Solution (Python):
var_a = 6
var_b = 10
var_c = var_a * var_b
var_d = 15
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Hanbyul and Seulgi run around the park. During the same period, Hanbyul ran 1/100 of 10.2 kilometers (km), and Seulgi ran 100 meters (m). Who ran more?
Question (KO): 한별과 슬기는 공원을 뛰어다닌다. 같은 기간 한별은 10.2킬로미터(㎞)를 100분의 1만큼, 슬기는 100미터(m)를 달렸다. 누가 더 많이 달렸는가?

Answer: Hanbyul

Solution (Python):
var_a = 'Hanbyul'
var_b = 'Seulgi'
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 = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 100
var_g = var_e / var_f
var_h = 100
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)
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: Geometry

Question (EN): There is a dice with one edge  20 centimeters (cm) long. Find the surface area of this dice.
Question (KO): 어떤 주사위는 한 모서리의 길이가 20센티미터(㎝)입니다. 이 주사위의 겉넓이를 구하시오.

Answer: 2400

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

Question (EN): Among the numbers of 2.8, 2.3, 5, and 4.3, find the product of the smallest number and the largest number.
Question (KO): 2.8, 2.3, 5, 4.3 수가 있을 때, 가장 작은 수와 가장 큰 수의 곱을 구하시오.

Answer: 11.5

Solution (Python):
var_a = 2.8
var_b = 2.3
var_c = 5
var_d = 4.3
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[var_e-1]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = var_f * var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): You want to paint each face of the pentagonal prism with a different color. How many people do you need if each person paints one side?
Question (KO): 오각기둥의 각 면에 서로 다른 색을 칠하려고 합니다. 한 사람당 한 면을 색칠한다고 할 때, 필요한 사람은 모두 몇 사람입니까?

Answer: 7

Solution (Python):
var_a = 2
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): Yoongi wants to subtract 57 from a four-digit number. Yoongi has mistaken 9 for 6 in the unit place of a four-digit number. When the difference Yoongi gets is 1819, find the correct result.
Question (KO): 윤기는 네 자리 수와 57의 뺄셈을 하려 합니다. 윤기는 네 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 차는 1819 일 때, 바르게 계산한 결과를 구하시오.

Answer: 1822

Solution (Python):
var_a = 1819
var_b = 57
var_c = var_a + var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
var_h = 57
var_i = var_g - var_h
print(int(var_i))
Category: Possibility

Question (EN): I'm trying to seat three second-graders and two first-graders on five chairs in a row. Find the case where two first-graders are seated consecutively.
Question (KO): 5개의 1열로 있는 의자에 2학년 3명과 1학년 2명을 앉히려고 한다. 1학년 2명을 연속해서 앉히는 경우를 구하시오.

Answer: 48

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 = 'C'
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)
var_j = 'C'
var_k = 'D'
list_d= []
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_d.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_d.append(var_j)
list_d.reverse()
var_l = len(list_d)
var_m = len(list_d)
var_n = 1
var_l = int(var_l)
var_m = int(var_m)
for i, elem in enumerate(range(var_m)):
    var_n = var_n * (var_l-i)
var_o = var_i * var_n
print(int(var_o))
Category: Possibility

Question (EN): Make a four-digit number by using the number cards from 0 to 9 once. Find the difference between the 2nd largest number and the 2nd smallest number.
Question (KO): 0부터 9까지의 숫자 카드를 한 번씩 사용하여 네 자리 수를 만듭니다. 이 수 중 2번째 큰 수와 2번째 작은 수의 차를 구하시오.

Answer: 8851

Solution (Python):
var_a = 0
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 4
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]
var_e = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 2
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f - var_h
var_j = abs(var_i)
print(int(var_j))
Category: Geometry

Question (EN): How many faces of a regular octahedron meet at one vertex?
Question (KO): 직육면체에서, 어느 한 모서리와 한 점에서 만나는 면의 수를 구하면 모두 몇 개 인가요?

Answer: 4

Solution (Python):
var_a = 4
print(int(var_a))
Category: Geometry

Question (EN): If all eight sides of a figure are the same in length and the perimeter of the figure is 23.6 centimeters (cm), what is the length of one side in cm (cm)?
Question (KO): 여덟 개의 변으로 이루어진 도형의 모든 변의 길이가 같고, 이 도형의 둘레가 23.6센티미터(㎝)라면 한 변의 길이는 몇 센티미터(㎝)일지 구하시오.

Answer: 2.95

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

Question (EN): You sold 1249 candies on Day 1. On Day 2, you sold 328 more candies than Day 1. On day 3, you sold 275 more candies than Day 2, leaving 367 left. How many candies were there at the beginning?
Question (KO): 사탕을 1번째 날 1249개 팔았습니다. 2번째 날은 1번째 날보다 328개 더 팔았습니다. 3번째 날은 2번째 날보다 275개 더 팔았더니 367개 남았습니다. 처음에 있던 사탕은 몇 개인지 구하시오.

Answer: 5045

Solution (Python):
var_a = 367
var_b = 1249
var_c = var_a + var_b
var_d = 1249
var_e = 328
var_f = var_d + var_e
var_g = var_c + var_f
var_h = 1249
var_i = 328
var_j = var_h + var_i
var_k = 275
var_l = var_j + var_k
var_m = var_g + var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): Taehyung's uncle is 17 years older than Taehyung. Four years later, the sum of Taehyung's age and his uncle's age is 43 years old. How old is Taehyung this year?
Question (KO): 태형이의 삼촌 나이는 태형이보다 17살 더 많습니다. 4년 후 태형이의 나이와 삼촌의 나이의 합이 43살이 됩니다. 올해 태형이의 나이는 몇 살입니까?

Answer: 9

Solution (Python):
var_a = 43
var_b = 4
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 17
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Heeju's school has 500 students. Among them, 289 students like ramen and 337 students like bread. If there are 56 students who do not like both ramen and bread, find how many students like both ramen and bread.
Question (KO): 희주네 학교 학생은 500명입니다. 이 중에서 라면을 좋아하는 학생은 289명이고, 빵을 좋아하는 학생은 337명입니다. 라면과 빵을 둘 다 좋아하지 않는 학생이 56명일 때, 라면과 빵을 모두 좋아하는 학생은 몇 명인지 구해보시오.

Answer: 182

Solution (Python):
var_a = 289
var_b = 337
var_c = var_a + var_b
var_d = 500
var_e = 56
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 19 tangerines and some persimmons in the basket. How many persimmons are there if the total number of tangerines and persimmons is 37 in the basket?
Question (KO): 바구니 안에 귤이 19개, 감이 몇 개 들어 있습니다. 바구니 안에 들어 있는 귤과 감이 모두 37개라면 감은 몇 개입니까?

Answer: 18

Solution (Python):
var_a = 37
var_b = 19
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): Some trees lose 1 meter (m) of growth each year. If a tree's full growth is 91 meters (m), find the length the tree grew in the first year.
Question (KO): 어떤 나무는 1년마다 자라는 길이가 1미터(m)씩 줄어든다. 어떤 나무의 다자란 크기가 91미터(m)일 때, 첫번째 년도에 이 나무가 자란 길이를 구하시오.

Answer: 13

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//(10**(var_f-1)))*10**(var_f-1))

print(int(var_g))
Category: Arithmetic calculation

Question (EN): If you put 12 apples in a box, you get 55 boxes. If you put 15 apples in each box, how many boxes will there be?
Question (KO): 사과를 한 상자에 12개씩 담으면 55상자가 됩니다. 이 사과를 한 상자에 15개씩 담으면 몇 상자가 될까요?

Answer: 44

Solution (Python):
var_a = 12
var_b = 55
var_c = var_a * var_b
var_d = 15
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: Geometry

Question (EN): How many faces are there in the pentahedron?
Question (KO): 오면체에서 면은 모두 몇개인가요?

Answer: 5

Solution (Python):
var_a = 5
print(int(var_a))
Category: Arithmetic calculation

Question (EN): If you put 18 candies in each of the 5 boxes, there is a shortage of 3 candies. If you put the equal amount of candies into 6 boxes, what is the maximum number of candies in one box?
Question (KO): 5개의 상자에 각각 사탕을 18개씩 담으면 사탕 3개가 남는다고 할 때, 6개의 상자에 사탕을 똑같이 나누어 담는다면 한 상자에 들어있는 사탕의 최대 개수는 몇 개 입니까?

Answer: 15

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

Question (EN): There is the expression 691-6A7=4. Find the number that goes into A
Question (KO): 식 691-6A7=4이 있습니다. A에 들어가야 하는 숫자를 구하시오

Answer: 8

Solution (Python):
var_a = '691-6A7=4'
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: Arithmetic calculation

Question (EN): You want to cut a loaf of bread that is 150 centimeters (cm) long by 1.5 centimeters (cm). How many pieces can be cut?
Question (KO): 길이가 150센티미터(㎝)인 빵을 1.5센티미터(㎝) 씩 자르려고 합니다. 빵을 모두 몇 개로 자를 수 있습니까?

Answer: 100

Solution (Python):
var_a = 150
var_b = 1.5
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): There is a calculator that only works with four buttons: 2, 3, 7, and 9. When making a four-digit number on the calculator by pressing the button without duplication, find the second largest number that can be made.
Question (KO): 2, 3, 7, 9 네 개의 버튼만 작동하는 계산기가 있습니다. 버튼을 한 번씩 눌러서 계산기에 수를 표현할 때, 표현할 수 있는 수 중 두 번째로 큰 수를 구하시오.

Answer: 9723

Solution (Python):
var_a = 2
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 = 4
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 = 2
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print(int(var_g))
Category: Comparison

Question (EN): There are five numbers 1.4, 9/10, 1.1, 0.5, and 13/10. How many of these numbers are greater than 0.9?
Question (KO): 5개의 수 1.4, 9/10, 1.1, 0.5, 13/10이 있습니다. 이 중에서 0.9보다 큰 수는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.1
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 0.9
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You want to share 1/6 of 16 kilograms (kg) peanuts with your friends. If one person eats 4/15 kilograms (kg), how many people can eat?
Question (KO): 16킬로그램(㎏) 땅콩 1/6을 친구들과 나누어 먹으려고 한다. 한 사람이 4/15킬로그램(㎏)씩 먹는다고 하면 몇 명이 먹을 수 있나요?

Answer: 10

Solution (Python):
var_a = 16
var_b = 6
var_c = var_a / var_b
var_d = 0.26666666666666666
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): Each box contains 3 balls. If you have 2 boxes, what is the total number of balls?
Question (KO): 1개의 상자에는 3개의 공이 들어 있습니다. 2개의 상자를 가지고 있을 때 전체 공의 개수는?

Answer: 6

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

Question (EN): How many pairs of parallel faces are there in a cube?
Question (KO): 정육면체에서 서로 평행한 면은 모두 몇 쌍 있습니까?

Answer: 3

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It is said that 140 U.S. dollars can be exchanged for 158,760 Korean won. What is the exchange rate of Korean money to the United States' money?
Question (KO): 현경이가 가진 돈은 158760원이고 정연이가 가진 돈은 140원입니다. 현경이가 가진 돈은 정연이가 가진 돈의 몇 배인지 구하세요.

Answer: 1134

Solution (Python):
var_a = 158760
var_b = 140
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): 3 years ago, the sum of the ages of the mother and son was 49, and this year, when the mother is 4 times the age of the son, how old is the son this year?
Question (KO): 3년 전에는 어머니와 아들의 나이의 합이 49살이고 올해는 어머니의 나이가 아들의 4배일 때, 아들은 올해 몇 살 먹었습니까?

Answer: 11

Solution (Python):
var_a = 49
var_b = 3
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
var_f = 1
var_g = 4
var_h = var_f + var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): If the length of one radius of a circle is 2, what is the length of the other radius?
Question (KO): 한 원의 한 반지름의 길이가 2일 때, 다른 한 반지름의 길이는?

Answer: 2

Solution (Python):
var_a = 2
print(int(var_a))
Category: Arithmetic calculation

Question (EN): Find the value of the smaller number when the difference between the two numbers is 28 and the larger number plus 13 is twice the smaller number plus 13.
Question (KO): 두 수의 차이가 28이고 큰 수에 13을 더한 값이 작은 수에 13을 더한 값에 두배일 때, 작은 수의 값을 구하시오.

Answer: 15

Solution (Python):
var_a = 13
var_b = 28
var_c = 13
var_d = var_b - var_c
var_e = 2
var_f = var_d * var_e
var_g = var_a + var_f
var_h = 2
var_i = 1
var_j = var_h - var_i
var_k = var_g / var_j
var_l = 28
var_m = var_k - var_l
print(int(var_m))
Category: Geometry

Question (EN): You have a piece of paper in the shape of a triangle with an area of 46 square centimeters (cm2). If the base is 10 centimeters (cm), what is its height in centimeters (cm)?
Question (KO): 넓이가 46제곱센티미터(㎠)인 삼각형 모양의 종이가 있습니다. 이 종이의 밑변이 10센티미터(㎝)라면 높이는 몇 센티미터(㎝)인지 구하시오.

Answer: 9.2

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

Question (EN): At one Wang mathematical academy, 120 students took the A Mathematical Education Evaluation. If there were 36 more students who received certificates than those who did not receive certificates, how many students received certificates?
Question (KO): 어느 왕수학 학원에서 킬로미터(㎞)A 수학학력평가에 120명이 응시하였습니다. 이 중 상장을 받은 학생이 상장을 받지 못한 학생보다 36명이 더 많았다면 상장을 받은 학생은 몇 명입니까?

Answer: 78

Solution (Python):
var_a = 120
var_b = 36
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 36
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You want to install flower beds at intervals of 6.4 meters (m) along the wall of a school whose length is 268.8 meters (m). How many flower beds would be needed if flower beds are also installed at the both ends of the school walls?
Question (KO): 길이가 268.8미터(m)인 학교의 벽면을 따라 6.4미터(m) 간격으로 화단을 설치하려고 합니다. 학교의 벽면 양쪽 끝에 모두 화단을 설치할 때 필요한 화단의 개수는 몇 개입니까?

Answer: 43

Solution (Python):
var_a = 268.8
var_b = 6.4
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 28 erasers in total. Among them, Yeonju received 1/4 of the eraser and Minji received 3/7 of them. What is the number of remaining erasers?
Question (KO): 지우개가 총 28개 있습니다. 그 중에서 연주는 1/4만큼 지우개를 받았고 민지는 3/7만큼 지우개를 받았습니다. 남은 지우개의 개수는 몇 개입니까?

Answer: 9

Solution (Python):
var_a = 28
var_b = 1
var_c = 0.25
var_d = var_b - var_c
var_e = 0.42857142857142855
var_f = var_d - var_e
var_g = var_a * var_f
print(int(var_g))