philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Find the sum of the smallest and largest four-digit numbers that can be formed using all the number cards 0, 3, 4, and 8.
Question (KO): 숫자 카드 0, 3, 4, 8을 모두 사용하여 만들 수 있는 네 자리 수 중 가장 작은 수와 가장 큰 수의 합을 구하시오.

Answer: 11478

Solution (Python):
var_a = 0
var_b = 3
var_c = 4
var_d = 8
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[-var_h]
var_j = var_g + var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): If you have three numbers of 10, 11 and 12, what do you get for the difference between the largest number and the second largest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 큰 수와 2번째로 큰 수의 차는 얼마입니까?

Answer: 1

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 = 1
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]
var_h = var_e - var_g
print(int(var_h))
Category: Comparison

Question (EN): If you line up numbers that are less than or equal to 1.1 from among five numbers 1.4, 9/10, 1.2, 0.5, 13/10 and calculate the sum, what is the value?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 작거나 같은 숫자를 나열한뒤, 합을 계산하면 얼마입니까?

Answer: 1.4

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
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 = 1.1
list_b = []
for i in list_a:
    if i <= var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Geometry

Question (EN): If the perimeter of a regular octagon is 72 centimeters (cm), find the length of one side.
Question (KO): 정팔각형의 둘레가 72 센티미터(㎝) 일 때, 한 변의 길이를 구하시오.

Answer: 9

Solution (Python):
var_a = 72
var_b = 8
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): There are three natural numbers A, B, and C. When A is divided by 7, the quotient is B and the remainder is C. The quotient and remainder are equal in this equation. Find the largest number among A.
Question (KO): 세 자연수 A, B, C가 있습니다. A를 7로 나누면 몫은 B이고 나머지는 C가 됩니다. 이 식에서 몫과 나머지는 같습니다. A 중 가장 큰 수를 구하시오.

Answer: 48

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

Question (EN): On the way to school from home, Jinho takes a bus to travel 4 kilometers (km) and 436 meters (m), and walks 1999 meters (m). When he went back home in the same way, how many kilometers (km) did Jinho travel to and from school?
Question (KO): 진호는 집에서 학교를 가는 길에 버스를 타고는 4킬로미터(㎞) 436미터(m)를 이동하고, 걸어서는 1999미터(m)를 이동해 학교에 도착한다. 집으로 올때도 마찬가지일 때, 진호는 학교를 갔다오면서 몇 킬로미터(㎞)를 이동하였는가?

Answer: 12.87

Solution (Python):
var_a = 4
var_b = 436
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1999
var_g = 1000
var_h = var_f / var_g
var_i = var_e + var_h
var_j = 2
var_k = var_i * var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Geometry

Question (EN): A bowl has a volume of 36.488 milliliters (ml). If you pour 6.08 milliliters (ml) per second, how long will it take to fill the bowl?
Question (KO): 어떤 그릇의 부피가 36.488밀리리터(㎖)이다. 초 당 6.08밀리리터(㎖)를 부울 때, 그릇을 가득체우는데 얼마가 걸릴지 구하시오.

Answer: 6

Solution (Python):
var_a = 36.48
var_b = 6.08
var_c = var_a / var_b
print(int(eval('{:.2f}'.format(round(var_c+1e-10,2)))))
Category: Geometry

Question (EN): You have a square piece of paper with a side length of 10 centimeters (cm). How many right triangle-shaped pieces with a base of 1 centimeter (cm) and a hight of 3 centimeters (cm) can you cut out from this piece of paper?
Question (KO): 한 변의 길이가 10센티미터(㎝)인 정사각형 모양의 종이가 있습니다. 이 종이로 밑면이 1센티미터(㎝)이고 높이가 3센티미터(㎝)인 직각삼각형 모양의 조각을 최대한 몇 개나 오려낼 수 있겠습니까?

Answer: 66

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): There are balls A, B, and C of different sizes. A is three times bigger than B, and B is half the size of C. How many times the size of A than the size of C?
Question (KO): 크기가 다른 공 A, B, C가 있다. A는 B보다 3배 크고 B는 C의 1/2의 크기이다. A는 C의 크기의 몇 배인가?

Answer: 1.5

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

Question (EN): At a gimbap shop, a basic gimbap is 2,000 won, a tuna gimbap is 3,500 won, red pepper gimbap is 3,000 won, a beef gimbap is 4,000 won, and a rice gimbap is 3,500 won. Find out the number of types of gimbap that costs more than or equal to 3500 won.
Question (KO): 어느 김밥 가게에서 기본 김밥은 2000원, 참치 김밥은 3500원, 고추 김밥은 3000원, 소고기 김밥은 4000원, 누드 김밥은 3500원일 때 3500원 이상인 김밥은 몇 종류가 있습니까?

Answer: 3

Solution (Python):
var_a = 2000
var_b = 3500
var_c = 3000
var_d = 4000
var_e = 3500
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 = 3500
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: Geometry

Question (EN): A theater ticket is rectangular in shape, measuring 28 centimeters (cm) in perimeter and 6 centimeters (cm) in width. Find the area of this theater ticket.
Question (KO): 어느 연극 티켓은 직사각형 모양이며, 둘레가 28 센티미터(㎝), 가로가 6센티미터(㎝) 입니다. 이 연극 티켓의 넓이를 구하시오.

Answer: 48

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

Question (EN): I drew two parallel lines, then drew two parallel lines on top of them, and a square was drawn. If the base of this square is 9.51 centimeters (cm) and the height is 4.8 centimeters (cm), what is the area?
Question (KO): 평행한 선분 두 개를 긋고, 그 위에 다시 평행한 선분 두 개를 그었더니 사각형이 그려졌습니다. 이 사각형의 밑변이 9.51센티미터(㎝), 높이가 4.8센티미터(㎝)라면 넓이는 얼마인지 구하시오.

Answer: 45.65

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

Question (EN): Wooyoung spent 200 won more than half of the money he had at the first store and 300 won more than half of the remaining money at the second store, and was left with 350 won. How much money did Wooyoung have at first?
Question (KO): 우영이는 첫 번째 가게에서 가지고 있는 돈의 반보다 200원 많은 돈을 사용하였고 두 번째 가게에서 나머지 돈은 반보다 300원 많은 돈을 사용하였더니 350원이 남았습니다. 우영이가 처음 가지고 있던 돈은 얼마입니까?

Answer: 3000

Solution (Python):
var_a = 350
var_b = 300
var_c = var_a + var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 200
var_i = var_g + var_h
var_j = 1
var_k = 0.5
var_l = var_j - var_k
var_m = var_i / var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): How many four-digit numbers are multiples of all of 2, 3, 8, and 9?
Question (KO): 2의 배수, 3의 배수, 8의 배수, 9의 배수를 모두 만족하면서 네 자리 수인 것은 모두 몇 개 입니까?

Answer: 125

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
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 = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = len(list_e)
print(int(var_h))
Category: Comparison

Question (EN): If a box weighing 1 kg (kg) is estimated to be 1100 grams (g) for Dami and 850 grams (g) for Woosik, find out which of the two people has the closest estimate of the weight of the box.
Question (KO): 1킬로그램(㎏)의 상자를 다미는 1100그램(g)으로, 우식이는 850그램(g)으로 어림하였다면, 두 사람 중 상자의 무게를 가깝게 어림한 사람은 누구인지 구하시오.

Answer: Dami

Solution (Python):
var_a = 'Dami'
var_b = 'Woosik'
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 = 1000
var_d = 1100
var_e = var_c - var_d
var_f = abs(var_e)
var_g = 1000
var_h = 850
var_i = var_g - var_h
var_j = abs(var_i)
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[var_k-1]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Correspondence

Question (EN): A, B, and C are natural numbers. When A is divided by 9, the quotient is B and the remainder is C. If the remainder is 3 less than the quotient, choose the smallest number that can be A.
Question (KO): A, B, C는 자연수입니다. A를 9로 나누면 몫이 B고 나머지는 C입니다. 나머지가 몫보다 3만큼 작을때 A가 될 수 있는 수 중에 가장 작은 수를 고르세요.

Answer: 27

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

Question (EN): 6 friends and Yuna are standing in a line. If there are 2 friends in front of Yuna, find how many friends are behind Yuna.
Question (KO): 6명의 친구와 유나가 한 줄로 서 있습니다. 유나의 앞에 2명의 친구가 있다면 유나의 뒤에는 몇 명의 친구가 있는지 구하시오.

Answer: 4

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

Question (EN): The red tape is 11/6 meters (m), the blue tape is 7/4 meters (m), and the yellow tape is 13/8 meters (m). Which tape is the longest?
Question (KO): 빨간색 테이프가 11/6미터(m), 파란색 테이프가 7/4미터(m), 노란색 테이프가 13/8미터(m) 있습니다. 길이가 가장 긴 테이프는 어느 것입니까?

Answer: red

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
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.8333333333333333
var_e = 1.75
var_f = 1.625
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: Geometry

Question (EN): There is an octagon-shaped gift box. If the box's perimeter is 72 centimeters (cm), what is the side length in centimeters (cm)?
Question (KO): 팔각형 모양의 선물 상자가 있습니다. 상자의 둘레가 72센티미터(㎝)일 때, 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 9

Solution (Python):
var_a = 72
var_b = 8
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): How many apples are left when you equally distribute 40 apples to as many as possible to 7 people?
Question (KO): 사과 40개를 7명에게 최대한 많이 똑같이 나누어 주었을 때, 남는 사과는 몇 개입니까?

Answer: 5

Solution (Python):
var_a = 40
var_b = 7
var_c = var_a % var_b
print(int(var_c))
Category: Correspondence

Question (EN): Sangjun has 10 more than 1/4 of the books on economics, 5 less than 3/5 of the remaining books on social science, and 12 of the remaining books are on science. If Sangjun has 13 books that are not related to economics, society, or science, how many books does Sangjun have?
Question (KO): 상준이는 경제 분야에 전체 책 중 1/4보다 10권 많게 가지고 있고, 나머지 책 중 3/5보다 5개 적게 사회 분야의 책을 가지고 있고, 그 나머지 중 12권은 과학 분야의 책이다. 상준이가 경제, 사회, 과학 분야가 아닌 책이 13권 있을 때, 상준이가 가지고 있는 책은 모두 몇 권인가?

Answer: 80

Solution (Python):
var_a = 13
var_b = 12
var_c = var_a + var_b
var_d = 5
var_e = var_c - var_d
var_f = 1
var_g = 0.6
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 10
var_k = var_i + var_j
var_l = 1
var_m = 0.25
var_n = var_l - var_m
var_o = var_k / var_n
print(int(var_o))
Category: Possibility

Question (EN): How many three-digit numbers contain all of 3, 6, and 9?
Question (KO): 세 자리 수 중 3, 6, 9가 모두 들어있는 것은 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 6
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 = 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): Jinsu tried to kick jegi twice, and he kicked 15 each in the first and second. Hoseok has kicked 48 times in total. How many times should Jinsu kick on the third try, in order to kick more than Hoseok?
Question (KO): 진수는 제기차기를 2번 시도했는데, 첫 번째와 두 번째에 각각 15번씩을 찼습니다. 호석이는 제기를 모두 48번 찼는데, 진수가 호석이보다 제기를 더 많이 차기 위해서는 세번째 시도에 적어도 몇 번을 차야만 합니까?

Answer: 19

Solution (Python):
var_a = 48
var_b = 15
var_c = 15
var_d = var_b + var_c
var_e = var_a - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the difference between the largest number and the smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 큰 수와 가장 작은 수의 차는 얼마입니까?

Answer: 4

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

Question (EN): How many ways can you buy 2 different fruits out of Apples, Peaches, Pears, and Melons?
Question (KO): 사과, 복숭아, 배, 참외 중에서 2가지의 서로 다른 과일을 사는 경우는 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 'Apple'
var_b = 'Peach'
var_c = 'Pear'
var_d = 'Melon'
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: Arithmetic calculation

Question (EN): An electronic device worth 800,000 won is discounted and sold for 450,000 won. I bought a few of these electronic devices, and thanks to the discount, I spent 16.45 million won less. Find how many electronic gadgets I have bought.
Question (KO): 80만원인 전자기기가 할인하여 45만원에 판다. 이 전자기기를 몇 개 샀더니 할인 덕분에 1645만원 더 적은 금액을 사용하였다. 전자기기를 몇 개 샀는지 구하시오.

Answer: 47

Solution (Python):
var_a = 1645
var_b = 80
var_c = 45
var_d = var_b - var_c
var_e = var_a / var_d
print(int(var_e))
Category: Geometry

Question (EN): You made 5 identical rectangles by cutting a square-shaped paper whose side is 40 centimeters (cm) long. How many centimeters (cm) is the length of the shorter side of a rectangle when it has the largest area?
Question (KO): 한 변의 길이가 40센티미터(㎝)인 정사각형 모양의 종이를 잘라 똑같은 모양의 직사각형을 5개 만들었습니다. 이 직사각형의 넓이가 가장 클 때, 직사각형의 짧은 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 8

Solution (Python):
var_a = 40
var_b = 5
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the quotient of the largest number divided by the next largest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 가장 큰 수와 그 다음으로 큰 수로 나눈 몫은 얼마입니까?

Answer: 1

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]
var_g = 2
list_c=list_a.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = var_f // var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The two people decided to meet at an amusement park. Person A came at 3 kilometers (km) per hour, person B came at 4 kilometers (km) per hour. The distance between person B and the amusement park is 2 kilometers (km) longer than the distance between person A and the amusement park. If the two people took 4 hours together, what is the distance between the amusement park and Person B's house?
Question (KO): 두 사람이 놀이 공원에서 만나기로 했다. A사람은 시속 3킬로미터(㎞)로 왔고, B사람은 시속 4킬로미터(㎞)로 왔다. B사람과 놀이 공원까지의 거리가 A사람과 놀이공원까지의 거리보다 2킬로미터(㎞) 더 길다. 둘이 합쳐 4시간이 걸렸다면, 놀이 공원과 B사람 집 사이의 거리는?

Answer: 8

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 = 2
var_o = var_m + var_n
print(int(var_o))
Category: Correspondence

Question (EN): Yoongi wants to divide a certain number by 7. But he accidentally subtracted 5 and the result was 30. Find the correct calculation result.
Question (KO): 윤기는 어떤 수에 7을 나누려고 합니다. 하지만 실수로 5를 뺐더니 결과는 30이 되었습니다. 바르게 계산한 결과를 구하세요.

Answer: 5

Solution (Python):
var_a = 30
var_b = 5
var_c = var_a + var_b
var_d = 7
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): When a particular number is multiplied by 15, the result is 45. What will you get when you subtract 1 from that particular number?
Question (KO): 어떤 수에 15를 곱했더니 결과가 45가 되었습니다. 어떤 수에서 1을 빼면 얼마입니까?

Answer: 2

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): You have 2 candies of different flavors and 3 chocolates of different colors. When you can only eat one, how many cases are there?
Question (KO): 서로 다른 맛의 사탕 2개와 색깔이 다른 초콜릿 3개가 있습니다. 하나만 먹을 수 있을 때, 몇 가지 경우가 있습니까?

Answer: 5

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

Question (EN): Among the 40 students, the average score excluding Jimin and Jungkook's scores is 79. If Jimin and Jungkook scored 98 and 100 respectively, what is the average score of Jimin's class?
Question (KO): 40명의 학생 중 지민, 정국이의 점수를 제외한 평균 점수는 79점이다. 지민, 정국이 98, 100점일때 지민이네 반 평균 점수는 몇 점인가?

Answer: 80

Solution (Python):
var_a = 40
var_b = 2
var_c = var_a - var_b
var_d = 79
var_e = var_c * var_d
var_f = 98
var_g = var_e + var_f
var_h = 100
var_i = var_g + var_h
var_j = 40
var_k = var_i / var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): A rice container contains 12 kilograms (kg) and 400 grams (g) of rice, and B rice container contains 7600 grams (g) of rice. How many kilograms (kg) must be moved from A to B to equalize the amount of rice in the two rice containers?
Question (KO): (가) 쌀통에는 쌀이 12킬로그램(㎏) 400그램(g) 있고, (나) 쌀통에는 쌀이 7600그램(g) 들어있습니다. 두 쌀통에 들어있는 쌀의 양이 같아지려면 (가) 통에서 (나) 통으로 몇 킬로그램(㎏)을 옮겨야 합니까?

Answer: 2.4

Solution (Python):
var_a = 12
var_b = 400
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 7600
var_g = 1000
var_h = var_f / var_g
var_i = var_e - var_h
var_j = 2
var_k = var_i / var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Comparison

Question (EN): The number of pages of two books is different by 10, and dividing the number of pages of one book by 2 equals the number of pages of the other book. Find the number of pages of the shorter book.
Question (KO): 책 두 권의 장수의 차이는 10장이고, 한 책의 장수를 2로 나누면 다른 한 책의 장수가 됩니다. 짧은 책의 장수를 구하시오

Answer: 10

Solution (Python):
var_a = 10
var_b = 1
var_c = 1
var_d = 2
var_e = var_c / var_d
var_f = var_b - var_e
var_g = var_a / var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Comparison

Question (EN): There is a red tissue and a blue tissue. If the red tissue is 12 centimeters (cm) longer than the blue tissue, and twice the length of the red tissue equals three times the length of the blue tissue, find the length of the blue tissue.
Question (KO): 빨간 휴지와 파란 휴지가 있습니다. 빨간 휴지가 파란 휴지보다 12센티미터(㎝)더 길고, 빨간 휴지 길이의 2배가 파란 휴지 길이의 3배와 같을 때, 파란 휴지의 길이를 구하시오.

Answer: 24

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

Question (EN): When 52.5 grams (g) of sweet potatoes are divided by 5 grams (g) per person, find how many kilograms (kg) of sweet potatoes are left after sharing.
Question (KO): 고구마 52.5그램(g)을 한 사람 당 5그램(g)씩 나누어 줄 때, 나누어 주고 남는 고구마는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0

Solution (Python):
var_a = 52.5
var_b = 5
var_c = var_a % var_b
var_d = 1000
var_e = var_c / var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Comparison

Question (EN): Eight students stand in a line to borrow books. How many students are standing between the student standing 1st from the front and the student standing 4th from the back?
Question (KO): 책을 빌리기 위해 8명의 학생들이 한 줄로 서 있습니다. 앞에서 1번째에 서 있는 학생과 뒤에서 4번째에 서 있는 학생 사이에는 모두 몇 명의 학생이 서 있습니까?

Answer: 3

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

Question (EN): There are 5 apples, 4 bananas and 6 grapes. How many fruits are there in total?
Question (KO): 사과가 5개, 바나나가 4개, 포도가 6개 있습니다. 과일은 모두 몇 개 있습니까?

Answer: 15

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

Question (EN): How many numbers from 8 to 21 are there?
Question (KO): 8부터 21까지의 수는 모두 몇 개입니까?

Answer: 14

Solution (Python):
var_a = 8
var_b = 21
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = len(list_a)
print(int(var_d))
Category: Correspondence

Question (EN): If you multiply the number of white stones among 48 stones by 4 and divide it by 37, the quotient is 2 and the remainder is 26. Find the number of black stones.
Question (KO): 48개의 바둑돌 중 흰 바둑돌의 개수에 4를 곱한 뒤 37로 나누면 몫이 2 이고 나머지가 26이다. 검은 바둑돌의 개수를 구하여라.

Answer: 23

Solution (Python):
var_a = 48
var_b = 37
var_c = 2
var_d = var_b * var_c
var_e = 26
var_f = var_d + var_e
var_g = 4
var_h = var_f / var_g
var_i = var_a - var_h
print(int(var_i))