philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are two fruit crates. The apple box is 3/5 kilograms (kg) and the orange box is 0.49 kilograms (kg). Which box is the heavier of the two?
Question (KO): 두 개의 과일 상자가 있습니다. 사과 상자는 3/5킬로그램(㎏), 귤 상자는 0.49킬로그램(㎏)으로 둘 중 더 무거운 상자는 무엇입니까?

Answer: apple

Solution (Python):
var_a = 'apple'
var_b = 'orange'
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 = 0.6
var_d = 0.49
list_b= []
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()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): There are magic pencil cases, in which writing materials become 10 times longer when put in a gold pencil case, and 1/100 times longer when put in a silver pencil case. Kihoon put the 13.5 centimeters (cm) pencil in and out of the gold pencil case 3 times and the silver pencil case 2 times. How long is Kihoon's pencil now in centimeters (cm)?
Question (KO): 마법 필통이 있습니다. 금색 필통에 필기구를 넣으면 길이가 10배가 되고, 은색 필통에 넣으면 길이가 1/100이 됩니다. 기훈이는 13.5센티미터(㎝)인 연필을 금색 주머니에 3번, 은색 주머니에 2번 넣었다 뺐습니다. 지금 기훈이의 연필은 몇 센티미터(㎝)입니까?

Answer: 1.35

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

Question (EN): You want to distribute 4 different ice creams to your friend. There are 4 friends: Kahi, Nahee, Dahee, and Rahee. How many cases are there?
Question (KO): 4개의 서로 다른 아이스크림을 친구에게 나누어주려고 한다. 친구는 가희, 나희, 다희, 라희 4명이 있다. 경우의 수는 몇 가지인가?

Answer: 24

Solution (Python):
var_a = 4
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)
print(int(var_c))
Category: Geometry

Question (EN): What is the side length in meters (m) of an equilateral triangle with a perimeter of 8 meters (m)?
Question (KO): 둘레의 길이가 8미터(m)인 정삼각형의 한 변의 길이는 몇 미터(m)입니까?

Answer: 2.67

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

Question (EN): Given 3, 4, and 6, find the number of three-digit numbers less than 450, using all the given numbers once.
Question (KO): 3, 4, 6이 주어졌을 때, 주어진 수를 한 번씩 모두 사용하여 450보다 작은 세 자리 수의 개수를 구하시오.

Answer: 3

Solution (Python):
var_a = 3
var_b = 4
var_c = 6
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 = 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]
var_e = 450
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: Possibility

Question (EN): Given the number cards 5, 7, and 8, how many total three-digit numbers can be formed by using all of them?
Question (KO): 숫자카드 5, 7, 8이 있을 때 한 장씩 모두 사용하여 만들 수 있는 세 자리 자연수는 총 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 5
var_b = 7
var_c = 8
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 = 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]
var_e = len(list_b)
print(int(var_e))
Category: Comparison

Question (EN): You want to divide 1 liter (L) of water and 4 liters (L) of water equally into bottles of the same shape and size. If 1 liter (L) of water is divided equally into 3 A bottles, and 4 liters (L) of water is equally divided into 5 B bottles, which bottle has more water, bottle A or bottle B?
Question (KO): 물 1리터(L)와 물 4리터(L)를 모양과 크기가 같은 병에 각각 똑같이 나누어 담으려고 합니다. 물 1리터(L)를 병 가 3개에, 물 4리터(L)를 병 나 5개에 남김없이 똑같이 나누어 담을 때, 병 가와 병 나 중 어느 병에 물이 더 많을까요?

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 = 1
var_d = 3
var_e = var_c / var_d
var_f = 4
var_g = 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: Arithmetic calculation

Question (EN): When you walked around the school for the first time, you walked at 3 kilometers (km) per hour. For the second time, you walked 2 kilometers (km) more than the first time at the speed of 4 kilometers (km) per hour. If the walk took 4 hours in total, how much time would be taken for the first walk?
Question (KO): 학교를 돌 때 처음에는 시속 3킬로미터(㎞)로 걸었고, 두 번째는 그보다 2킬로미터(㎞) 더 걸은 대신 시속 4킬로미터(㎞)로 걸었다. 총 4시간이 걸렸다고 할 때, 처음 돌 때 걸린 시간은 얼마인가?

Answer: 2

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
var_n = 3
var_o = var_m / var_n
print(int(eval('{:.2f}'.format(round(var_o+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): We plan to plant street trees on both sides of the 1.08 kilometer (km) long road from beginning to end. How many street trees are needed to plant one tree every 13.5 meters (m)?
Question (KO): 길이가 1.08킬로미터(㎞)인 도로의 양쪽에 처음부터 끝까지 가로수를 심으려고 합니다. 13.5미터(m)마다 1그루씩 심으려면 가로수는 모두 몇 그루가 필요합니까?

Answer: 162

Solution (Python):
var_a = 1.08
var_b = 1000
var_c = var_a * var_b
var_d = 13.5
var_e = var_c / var_d
var_f = 1
var_g = var_e + var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Possibility

Question (EN): Among Jungkook, Jimin, Yoongi, Yuna, and Taehyung, the class president, vice president, and public relations officer will be selected. What is the total number of possible cases?
Question (KO): 정국, 지민, 윤기, 유나, 태형 중에서 반장, 부사장, 홍보 담당자를 선발 할 예정이다. 가능한 총 케이스 수는 얼마입니까?

Answer: 60

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
var_e = 'Taehyung'
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 = 3
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: Possibility

Question (EN): You want to choose two cards from the number cards with the numbers 8, 7, and 9 on them. Find how many possible cases there are.
Question (KO): 8, 7, 9이 적혀있는 숫자카드에서 2가지 카드를 고르려고 합니다. 가능한 경우의 수는 모두 몇 가지인지 구하시오.

Answer: 3

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

Question (EN): Minsu wants to save 100,000 won. If he saves 7,000 won per day, how many days will it take for him to reach his goal?
Question (KO): 민수는 100000원을 저축하려고 합니다. 하루에 7000원씩 저축을 한다고 할 때, 며칠 후에 목표량을 채울 수 있을까요?

Answer: 15

Solution (Python):
var_a = 100000
var_b = 7000
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))
Category: Arithmetic calculation

Question (EN): Jia and Yujun had 3 forks each, so there are 2 left. How many forks were there initially?
Question (KO): 지아와 유준이는 포크를 3개씩 가졌더니 2개가 남았습니다. 처음에 있던 포크는 몇 개 입니까?

Answer: 8

Solution (Python):
var_a = 2
var_b = 3
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e))
Category: Comparison

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

Answer: 7

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: Possibility

Question (EN): When you play a car game, you have to choose one character from three characters, and then one car from three cars. How many cases are there?
Question (KO): 자동차 게임을 할 때, 3명의 캐릭터 중 하나를 고르고, 다시 3개의 차 중 하나를 골라야 합니다. 경우의 수는 모두 몇 가지입니까?

Answer: 9

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

Question (EN): There is a box in the shape of a cube with a surface area of 864 square centimeters (cm2). How many centimeters (cm) is the length of one side of this box?
Question (KO): 정육면체 모양의 겉넓이가 864제곱센티미터(㎠)인 상자가 있습니다. 이 상자의 한 변의 길이는 몇 센티미터(㎝)일까요?

Answer: 12

Solution (Python):
var_a = 864
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I gave some ten 10 won coins to Yoongi, and there are 7 left. Find out how much he gave to Yoongi.
Question (KO): 10원짜리 동전 10개 중 몇개를 윤기에게 주었더니 7개가 남았습니다. 윤기에게 얼마를 주었는지 구하시오.

Answer: 30

Solution (Python):
var_a = 10
var_b = 10
var_c = 7
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e))
Category: Geometry

Question (EN): Jihye holds a piece of colored paper in the shape of a square whose side is 14 centimeters (cm). When she cut it into rectangles that are 8 centimeters (cm) long and 2 centimeters (cm) wide. How many of these rectangular pieces of paper does she get at most?
Question (KO): 지혜는 한 변의 길이가 14센티미터(㎝)인 정사각형 모양의 색종이를 갖고 있습니다. 이 색종이를 가로가 8센티미터(㎝), 세로가 2센티미터(㎝)인 직사각형 모양으로 여러개 자르려고 합니다. 이러한 직사각형 모양의 종이 조각을 최대 몇 개 얻을 수 있습니까?

Answer: 12

Solution (Python):
var_a = 14
var_b = 2
var_c = var_a ** var_b
var_d = 8
var_e = 2
var_f = var_d * var_e
var_g = var_c // var_f
print(int(var_g))
Category: Geometry

Question (EN): Find how many centimeters (cm) is the length of one corner of a cube whose volume is 1 square centimeter (cm2) less than a cuboid whose base is 10 square centimeter (cm2) and whose height is 73 centimeters (cm).
Question (KO): 밑면의 넓이가 10제곱센티미터(㎠)이고 높이가 73센티미터(㎝)인 직육면체보다 부피가 1세제곱센티미터(㎤) 더 적은 정육면체의 한 모서리의 길이는 몇 센티미터(㎝)인지 구하세요.

Answer: 9

Solution (Python):
var_a = 10
var_b = 73
var_c = var_a * var_b
var_d = 1
var_e = var_c - var_d
var_f = 0.3333333333333333
var_g = var_e ** var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Geometry

Question (EN): There is a doll in the shape of a rectangular cuboid. The volume of this doll is 16 square centimeters (cm2). And, the side facing the floor is 6 centimeters (cm) wide and 7 centimeters (cm) long. Find the total surface area of this doll.
Question (KO): 직육면체 모양의 인형이 있습니다. 이 인형의 부피는 16세제곱센티미터(㎤)입니다. 그리고, 바닥에 접한 면의 가로는 6센티미터(㎝), 세로는 7센티미터(㎝)입니다. 이 인형의 전체 겉넓이를 구하시오

Answer: 93.9

Solution (Python):
var_a = 16
var_b = 7
var_c = var_a / var_b
var_d = 6
var_e = var_c / var_d
var_f = 7
var_g = 6
var_h = var_f + var_g
var_i = var_e * var_h
var_j = 7
var_k = 6
var_l = var_j * var_k
var_m = var_i + var_l
var_n = 2
var_o = var_m * var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Arithmetic calculation

Question (EN): The sum of 5 consecutive natural numbers is 180. Write the largest of these 5 numbers.
Question (KO): 5개의 연속된 자연수의 합이 180입니다. 이 5개의 수 중 가장 큰 수를 쓰시오.

Answer: 38

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

Question (EN): Yooseon wakes up in the morning and has a cold, so she decides to stop by the hospital and then go to school. It is 1 kilometer (km) 700 meters (m) from Yooseon’s house to the hospital, and the distance from the hospital to the school is 900 meters (m). How many meters (m) is the midway point of a distance starting from Yooseon's house, passing by the hospital and to the school, apart from of Yooseon's house?
Question (KO): 유선이는 아침에 일어났더니 감기 기운이 있어 병원에 들렀다 등교를 하기로 했습니다. 유선이네 집에서 병원까지는 1킬로미터(㎞) 700미터(m)이고, 병원에서 학교까지의 거리는 900미터(m)입니다. 유선이네 집에서 병원을 거쳐 학교까지 가는 거리의 중간 지점은 집에서부터 몇 미터(m)인지 구하시오.

Answer: 1300

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 700
var_e = var_c + var_d
var_f = 900
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Comparison

Question (EN): Jaehyun skipped 23 times and Seulgi jumped 19 times. Miran jumped rope 18 times in the first and 21 times in the second. In order for Jaehyun to jump rope more than Miran, at least how many times should he do in the second round?
Question (KO): 줄넘기를 재현이는 23번 했고, 슬기는 19번 했습니다. 미란이는 줄넘기를 1번째에 18번, 2번째에 21번 했습니다. 미란이보다 재현이가 줄넘기를 더 많이 하려면 2번째에는 적어도 몇 번을 해야 합니까?

Answer: 17

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

Question (EN): Yooseung, Shinyoung, and Seokgi did the long jump. Yooseung jumped 15/8 meters (m), Shinyoung 2 meters (m), and Seokgi 17/8 meters (m). Who jumped the furthest?
Question (KO): 유승, 신영, 석기는 멀리뛰기를 하였습니다. 유승이는 15/8미터(m), 신영이는 2미터(m), 석기는 17/8미터(m)를 뛰었습니다. 가장 멀리 뛴 사람은 누구입니까?

Answer: Seokgi

Solution (Python):
var_a = 'Yooseung'
var_b = 'Shinyoung'
var_c = 'Seokgi'
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.875
var_e = 2
var_f = 2.125
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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): 27 is subtracted from the quotient of a number divided by 46, which gives 46. Find the number.
Question (KO): 어떤 수를 46으로 나눈 몫에서 27을 뺐더니 46이 되었습니다. 어떤 수를 구하십시오.

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: Possibility

Question (EN): Choose two of the five numbers 0, 1, 2, 3, 4, and 5 to make a two-digit number. If you can use the same number multiple times, what is the sum of all possible numbers?
Question (KO): 다섯 개의 숫자 0, 1, 2, 3, 4 , 5 중에서 2개를 골라 두 자리의 수를 만들었다. 같은 수를 여러 번 사용해도 된다면, 만들 수 있는 모든 수들의 합은 얼마인가?

Answer: 975

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_g = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_g))
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_b = [float(i) for i in list_b]
var_h = sum(list_b)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): 17 more people got on the train with 82 people on it, and a few people got off. If 73 people were on the train, find how many people left the train.
Question (KO): 82명이 타고 있는 기차에 17명이 더 타고 몇 명이 내렸더니 73명이 되었습니다. 몇 명의 사람이 기차에서 내렸는지 구하시오.

Answer: 26

Solution (Python):
var_a = 82
var_b = 17
var_c = var_a + var_b
var_d = 73
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): When 3, 4, and 6 are given, find how many three-digit numbers using these three numbers exist, that is bigger than 450
Question (KO): 3, 4, 6이 주어졌을 때, 주어진 수를 한 번씩 모두 사용하여 450보다 큰 세 자리 수의 개수를 구하시오.

Answer: 3

Solution (Python):
var_a = 3
var_b = 4
var_c = 6
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 = 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]
var_e = 450
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: Comparison

Question (EN): Jungkook collected 6 divided by 3, and Yoongi collected 4. Who got the smaller number?
Question (KO): 정국이는 6에서 3을 나눈 몫 만큼 모았고, 윤기는 4를 모았습니다. 누가 더 작은 수를 모았습니까?

Answer: Jungkook

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

Question (EN): A box containing 10 apples of the same weight was weighed and found to be 3.1 kg (kg). After removing one apple from the box, it became 2.81 kilograms (kg). Find the weight in kilograms (kg) of the empty box.
Question (KO): 똑같은 무게의 사과 10개가 들어 있는 상자의 무게를 재었더니 3.1킬로그램(㎏)이었습니다. 이 상자에서 사과 1개를 빼낸 후 다시 무게를 재었더니 2.81킬로그램(㎏)이었습니다.빈 상자의 무게는 몇 킬로그램(㎏)인지 구해 보시오.

Answer: 0.2

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

Question (EN): The total weight of one lion, one tiger, and one panda is 106 kilograms (kg) and 600 grams (g). A panda weighs 7 kilograms (kg) and 700 grams (g) less than a tiger, and a tiger weighs 4.8 kilograms (kg) less than a lion. How many kilograms (kg) does one lion weigh?
Question (KO): 사자 한 마리, 호랑이 한 마리, 판다 한 마리의 몸무게의 합은 106킬로그램(㎏) 600그램(g)입니다. 판다는 호랑이보다 7킬로그램(㎏) 700그램(g) 덜 나가고, 호랑이는 사자보다 4.8킬로그램(㎏) 덜 나갑니다. 사자 한 마리의 몸무게는 몇 킬로그램(㎏)입니까?

Answer: 41.3

Solution (Python):
var_a = 106
var_b = 600
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 7
var_g = 700
var_h = 1000
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e + var_j
var_l = 4.8
var_m = 2
var_n = var_l * var_m
var_o = var_k + var_n
var_p = 3
var_q = var_o / var_p
print('{:.2f}'.format(round(var_q+1e-10,2)))
Category: Comparison

Question (EN): Yoongi is playing a game of throwing basketballs with his 20 friends. If 11 students scored less than Yoongi, how many students scored more than Yoongi?
Question (KO): 윤기는 20명의 친구들과 함께 농구공 많이 넣기 놀이를 하고 있습니다. 11명의 학생들이 윤기보다 공을 못 넣었을 때, 윤기보다 공을 많이 넣은 학생은 몇 명입니까?

Answer: 8

Solution (Python):
var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): A group of people wants to eat 2/5 of a watermelon per person. How many watermelons are needed to feed 10 people?
Question (KO): 한 사람당 수박을 2/5통씩 먹으려고 합니다. 10명이 먹기 위해서는 수박을 몇 통 사야 합니까?

Answer: 4

Solution (Python):
var_a = 0.4
var_b = 10
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You have a candle that is 25 centimeters (cm) long. If this candle burns 1.75 centimeters (cm) in 10 minutes, how many minutes after lighting will it be 11 centimeters (cm) long?
Question (KO): 길이가 25센티미터(㎝)인 양초가 있습니다. 이 양초가 10분에 1.75센티미터(㎝)씩 탄다면 불을 붙인지 몇 분 후에 양초의 길이가 11센티미터(㎝)가 되겠습니까?

Answer: 80

Solution (Python):
var_a = 25
var_b = 11
var_c = var_a - var_b
var_d = 1.75
var_e = 10
var_f = var_d / var_e
var_g = var_c / var_f
print(int(var_g))
Category: Comparison

Question (EN): Which of 0.8, 1/2, 0.9, 1/3 is the smallest number greater than 0.7?
Question (KO): 0.8, 1/2, 0.9, 1/3 중에서 0.7보다 큰 수 중 가장 작은 수는 무엇인가요?

Answer: 0.8

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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.7
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): Yeonjeong and Donghun started skating in opposite directions at the same time on a skating rink with a circumference of 3 km (km). If Yeonjeong skates at a speed of 100 meters (m) per minute and Donghun skates at a speed of 150 meters (m) per minute, find the two meet again for the first time in a few minutes.
Question (KO): 연정이와 동훈이는 스케이트를 타고, 둘레가 3킬로미터(㎞)인 스케이트장에서 동시에 서로 반대 방향으로 출발하였다. 연정이는 매분 100미터(m)의 속력으로, 동훈이는 매분 150미터(m)의 속력으로 스케이트를 타면 몇 분 후에 처음으로 두 사람이 다시 만나는지 구하여라

Answer: 12

Solution (Python):
var_a = 3
var_b = 100
var_c = 1000
var_d = var_b / var_c
var_e = 150
var_f = 1000
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): A and B are two different natural numbers. When A is divided by 7, the quotient is 15 and the remainder is B. Find A when B is the smallest possible number.
Question (KO): A, B는 서로 다른 두 자연수입니다. A를 7로 나누면 몫은 15, 나머지는 B입니다. B가 될 수 있는 수 중에 가장 작은 수 일때 A를 구하시오.

Answer: 105

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