philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): The sum of the pocket money Yulgi and Gayeong have is 6,000 won. If you subtract the difference between the two people's pocket money from the sum of their pocket money, it's 4800 won. If Yulgi has more pocket money than Gayeong, how much pocket money does Yulgi have?
Question (KO): 율기와 가영이가 가지고 있는 용돈의 합은 6000원이고, 두 사람이 가지고 있는 용돈의 차를 용돈의 합에서 빼면 4800원입니다. 율기의 용돈이 가영이의 용돈보다 많다면 율기는 용돈을 얼마 가지고 있습니까?

Answer: 3600

Solution (Python):
var_a = 6000
var_b = 4800
var_c = 2
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e))
Category: Correspondence

Question (EN): Subtracting a certain number from 37 gives 24. What is the value of the certain number multiplied by 24?
Question (KO): 37에서 어떤 수를 빼면 24가 나온다. 어떤 수에 24를 곱하면 얼마인지 구하시오.

Answer: 312

Solution (Python):
var_a = 37
var_b = 24
var_c = var_a - var_b
var_d = 24
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): I am trying to find the sum of the 3 cards. When selecting cards from a box where 2 cards of 10, 30, and 50 each are contained, how many different sums can be possibly made?
Question (KO): 3장의 카드의 합을 구하려고 합니다. 10, 30, 50이 2장씩 들어 있는 상자에서 카드를 뽑을 때 서로 다른 합이 될 수 있는 경우는 모두 몇 가지입니까?

Answer: 20

Solution (Python):
var_a = 10
var_b = 30
var_c = 50
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 = var_d * var_e
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)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
print(int(var_h))
Category: Geometry

Question (EN): There is a rectangle with a length to width ratio of 0.875. Given that the width of this rectangle is 24 centimeters (cm), what is the area of the rectangle in square centimeters (cm2)?
Question (KO): 가로에 대한 세로의 비율이 0.875인 직사각형이 있습니다. 이 직사각형의 가로가 24센티미터(㎝)일 때 직사각형의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 504

Solution (Python):
var_a = 24
var_b = 0.875
var_c = var_a * var_b
var_d = 24
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): You are going to use all of the number cards 3, 6, and 9 once each to create three-digit numbers. How many three-digit numbers can you make?
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: Possibility

Question (EN): What is the value created by subtracting the remaining two numbers in order from the smallest two-digit number that can be made by picking two different numbers from 5,1,6,7?
Question (KO): 5, 1, 6, 7 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 가장 작은 두 자리 수에서 남은 두 수를 차례로 뺀 값은 얼마입니까?

Answer: 2

Solution (Python):
var_a = 5
var_b = 1
var_c = 6
var_d = 7
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 = 2
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]
list_e = []
var_i = int(var_i)
while var_i//10 > 0:
    list_e.append(var_i%10)
    var_i = var_i//10
list_e.append(var_i%10)
list_e = list_e[::-1]
list_e = [float(i) for i in list_e]
var_j = sum(list_e)
var_k = var_g - var_j
print(int(var_k))
Category: Geometry

Question (EN): What is the product of the number of vertices and the number of faces of a cube?
Question (KO): 정육면체의 꼭짓점의 수와 면의 수를 곱하면 얼마입니까?

Answer: 48

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a * var_b
print(int(var_c))
Category: Correspondence

Question (EN): A particular number divided by 23, minus 67 and multiplied by 2 is 102. Find out that particular number.
Question (KO): 어떤 수를 23으로 나눈 값에서 67을 뺀 후 2를 곱한 값이 102입니다. 어떤 수를 구하시오.

Answer: 2714

Solution (Python):
var_a = 102
var_b = 2
var_c = var_a / var_b
var_d = 67
var_e = var_c + var_d
var_f = 23
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): A certain number is multiplied by 7/12 resulting 42. What is the value when the certain number is multiplied by 11/18 and subtract 4?
Question (KO): 42는 어떤 수에 7/12를 곱한 값입니다. 어떤 수에 11/18을 곱하고 4를 뺀 수는 얼마입니까?

Answer: 40

Solution (Python):
var_a = 42
var_b = 1
var_c = 0.5833333333333334
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 0.6111111111111112
var_g = var_e * var_f
var_h = 4
var_i = var_g - var_h
print(int(var_i))
Category: Correspondence

Question (EN): A is a number of 6 bundles with 1000 and 36 bundles with 100. If B is counted by jumping twice from 876 to 197 smaller, subtract B from A to find the value.
Question (KO): A는 1000개씩 묶음이 6개, 100개씩있는 묶음이 36개인 수입니다. B는 876에서 197씩 작아지도록 2번 뛰어서 센 수라면, A에서 B를 뺀 값을 구하시오.

Answer: 9118

Solution (Python):
var_a = 1000
var_b = 6
var_c = var_a * var_b
var_d = 100
var_e = 36
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 876
var_i = 197
var_j = 2
var_k = var_i * var_j
var_l = var_h - var_k
var_m = var_g - var_l
print(int(var_m))
Category: Correspondence

Question (EN): Subtracting 7 from a particular number gives you 2. Find out that particular number.
Question (KO): 어떤 수에서 7을 뺐더니 2가 되었습니다. 어떤 수를 구하시오.

Answer: 9

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

Question (EN): When the 8.8 centimeters (cm) long block of wood was overlapped by 0.5 centimeters (cm), the total length of the connected block was 282.7 centimeters (cm). How many pieces of wood are there in total?
Question (KO): 길이가 8.8 센티미터(㎝) 인 나무토막을 0.5 센티미터(㎝) 씩 겹치게 이었더니 이은 나무토막 전체 길이가 282.7 센티미터(㎝) 였습니 다. 이은 나무토막은 모두 몇 장입니까?

Answer: 34

Solution (Python):
var_a = 282.7
var_b = 8.8
var_c = var_a - var_b
var_d = 8.8
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 1
var_i = var_g + var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2)))))
Category: Correspondence

Question (EN): You were supposed to add 2 to a number, but mistakenly subtracted 2, thereby getting 6. Find the number should be.
Question (KO): 어떤 수에 2를 더해야 하는데 잘못하여 2를 뺐더니 6이 되었습니다. 어떤 수를 구하시오.

Answer: 8

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

Question (EN): There were 23 candies. Yuna ate a few of them, and there were 7 left. How many candies did Yuna eat?
Question (KO): 사탕이 23개 있었습니다. 그 중에서 유나가 몇 개를 먹었더니 7개가 남았습니다. 유나가 먹은 사탕은 몇 개입니까?

Answer: 16

Solution (Python):
var_a = 23
var_b = 7
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You are going to make candy necklaces for 134 first-year students who entered Suyeong's school this year. Each candy necklace costs 7 candies. How many bags of 28 candies per bag should I buy at least?
Question (KO): 수영이네 학교에 올해 입학한 1학년 학생 134명에게 사탕 목걸이를 만들어 주려고 합니다. 사탕 목걸이 한 개에 사탕이 7개씩 필요합니다. 한 봉지에 28개씩 들어있는 사탕을 적어도 몇 봉지 사야 합니까?

Answer: 34

Solution (Python):
var_a = 134
var_b = 7
var_c = var_a * var_b
var_d = 28
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: Possibility

Question (EN): How many red balls are there when 4 yellow balls are placed inside a box containing 3 red balls, 2 blue balls, and 5 yellow balls?
Question (KO): 빨간 공 3개, 파란 공 2개, 노란 공 5개가 담겨져 있는 상자에서 노란 공 4개를 넣었을 때 때, 빨간 공은 몇 개 있습니까?

Answer: 3

Solution (Python):
var_a = 3
print(int(var_a))
Category: Possibility

Question (EN): You want to divide 40 pencils equally into several bins. How many ways are there to divide the pencils? (However, there are more than one barrel.)
Question (KO): 연필 40자루를 여러 개의 통에 똑같이 나누어 담으려고 합니다. 연필을 나누어 담는 방법은 모두 몇 가지일까요? (단, 통은 1개보다 많습니다.)

Answer: 7

Solution (Python):
var_a = 40
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 1
list_b= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_b.append(var_b)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Correspondence

Question (EN): A is a number which consists of 20 groups of 100 and 87 groups of 10. B is a number which is counted by jumping 3 times, increasing from 278 to 365. Find the value of A+B.
Question (KO): A는 100개씩 묶음이 20개, 10개씩 묶음이 87개인 수입니다. B는 278에서 365씩 커지게 3번 뛰어서 센 수입니다. A+B의 값을 구하시오.

Answer: 4243

Solution (Python):
var_a = 100
var_b = 20
var_c = var_a * var_b
var_d = 10
var_e = 87
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 278
var_i = 365
var_j = 3
var_k = var_i * var_j
var_l = var_h + var_k
var_m = var_g + var_l
print(int(var_m))
Category: Comparison

Question (EN): Minyoung has 13 bread and Eunji has 21. Who has more bread?
Question (KO): 빵을 민영이는 13개, 은지는 21개 가지고 있습니다. 빵을 더 많이 가지고 있는 사람은 누구입니까?

Answer: Eunji

Solution (Python):
var_a = 'Minyoung'
var_b = 'Eunji'
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 = 13
var_d = 21
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: Geometry

Question (EN): You are going to cut a rectangular paper that is 54 centimeters (cm) long and 20 centimeters (cm) wide to make three equal-sized squares. How many centimeters (cm) must each side be to make the largest square?
Question (KO): 가로가 54센티미터(㎝), 세로가 20센티미터(㎝)인 직사각형 모양의 종이를 잘라서 크기가 같은 정사각형 3개를 만들려고 합니다. 가장 큰 정사각형을 만들려면 한 변의 길이를 몇 센티미터(㎝)로 해야합니까?

Answer: 18

Solution (Python):
var_a = 54
var_b = 3
var_c = var_a // var_b
var_d = 20
var_e = 3
var_f = var_d // var_e
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
list_a.reverse()
var_g = 1
list_b=list_a.copy()
list_b.sort()
var_h = list_b[-var_g]
print(int(var_h))
Category: Correspondence

Question (EN): When you divide a number by 11, the result is 2. What is a number multiplied by 6?
Question (KO): 어떤 수에서 11을 나누었더니 결과가 2가 되었습니다. 어떤 수에 6을 곱하면?

Answer: 132

Solution (Python):
var_a = 2
var_b = 11
var_c = var_a * var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): It is said that when steaming dumplings, they are steamed by placing them in a checkerboard arrangement, 3 horizontally and 3 vertically, on a plate. How many plates are needed to steam 18 dumplings?
Question (KO): 만두를 찔 때 한 판에 가로 3개, 세로 3개씩 바둑판 배열로 올려놓고 찐다고 한다. 18개의 만두를 찌기 위해선 몇 개의 판이 필요한가?

Answer: 2

Solution (Python):
var_a = 18
var_b = 3
var_c = var_a / var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): You want to multiply a number by 12. If the answer when mistakenly dividing this number by 14 is 42, what is the correct result?
Question (KO): 어떤 수에 12를 곱하려고 합니다. 잘못하여 14를 나눴을 때의 답이 42라면 바르게 계산한 결과는 얼마일까요?

Answer: 7056

Solution (Python):
var_a = 42
var_b = 14
var_c = var_a * var_b
var_d = 12
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 5 snails and 2 frogs in the pond. How many snails and frogs are in the pond?
Question (KO): 달팽이 5마리와 개구리 2마리가 연못에 있습니다. 연못에 있는 달팽이와 개구리는 몇 마리 일까요?

Answer: 7

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

Question (EN): Red bags contain 10 marbles, and blue bags contain 50 marbles, and yellow bags contain 100 marbles, and there are total 12 bags. If the total number of marbles is 500 and the number of red and blue bags is the same, how many yellow bags are there?
Question (KO): 10개의 구슬이 담긴 빨간 주머니, 50개의 구슬이 담긴 파란 주머니, 100개의 구슬이 담긴 노란 주머니가 총 12개 있습니다. 총 구슬의 개수는 500개 이며 빨간 주머니와 파란 주머니의 개수는 같다고 할 때, 노란 주머니의 개수는 몇 개 입니까?

Answer: 2

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

Question (EN): 172 pencils were to be distributed to students, but the pencils that should have been distributed equally to 4 classes were distributed equally to more classes by mistake, resulting in 28 fewer pencils per class than the amount originally planned to be given. If the pencils are distributed equally and 7 pencils are remaining, find out how many classes the pencils are divided into.
Question (KO): 172개의 연필을 학생들에게 나누어 주는데 4개 반에 똑같이 나누어 주어야 할 연필을 잘못하여 더 많은 반에 똑같이 나누어주었더니, 원래 반마다 나누어주었어야 하는 연필의 양보다 28개가 더 적게 나누어 주게 되었다. 연필을 똑같이 나누어 주고 7개가 남았다면 연필을 몇 개의 반에 나누어 준 것인지 구하시오.

Answer: 11

Solution (Python):
var_a = 172
var_b = 7
var_c = var_a - var_b
var_d = 172
var_e = 4
var_f = var_d / var_e
var_g = 28
var_h = var_f - var_g
var_i = var_c / var_h
print(int(var_i))
Category: Geometry

Question (EN): There are 4 points on a line and 1 point not on a line. Find the number of straight lines that can be made by joining any two of these points.
Question (KO): 어떤 직선 위에 있는 점 4개와 직선 위에 있지 않은 점 1개가 있다. 이 중 두 점을 연결하여 만들수있는 직선의 개수를 구하시오.

Answer: 5

Solution (Python):
var_a = 4
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Yujeong arranged colored balls in a row on the desk. If she puts red, blue, yellow, purple, and white balls in order, what color is the first ball?
Question (KO): 유정은 책상 위에 색색의 공을 일렬로 늘어놓았다. 빨간색, 파란색, 노란색, 보라색, 흰색 공을 차례로 놓으면 첫 번째 공은 무슨 색입니까?

Answer: red

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
var_d = 'purple'
var_e = 'white'
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: Geometry

Question (EN): In art class, Junseo made a rhombus with an area of 80 square centimeters (cm2) with colored paper. If the length of one diagonal of the rhombus created by Junseo is 16 centimeters (cm), how many centimeters (cm) is the length of the other diagonal?
Question (KO): 준서는 미술 시간에 색도화지로 넓이가 80제곱센티미터(㎠)인 마름모를 만들었습니다. 준서가 만든 마름모의 한 대각선의 길이가 16 센티미터(㎝)일 때 다른 대각선의 길이는 몇 센티미터(㎝)일까요?

Answer: 10

Solution (Python):
var_a = 80
var_b = 2
var_c = var_a * var_b
var_d = 16
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): I divided some pieces of colored paper equally among 6 people, and each person got 7 pieces, leaving 3 pieces. How many sheets of colored paper were there at first?
Question (KO): 색종이 몇 장을 6사람에게 똑같이 나누어 주었더니 한 사람에게 7장씩 갖게 되고 3장이 남았습니다. 처음에 있던 색종이는 몇 장이었습니까?

Answer: 45

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

Question (EN): Seven classes are going to play soccer. If every class plays every other class once, find the total number of matches.
Question (KO): 7개 반이 축구 시합을 하려고 합니다. 모든 반이 다른 반과 한 번씩 경기를 할 때, 경기의 총 횟수를 구하시오.

Answer: 21

Solution (Python):
var_a = 7
var_b = 7
var_c = 1
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Eunji bought a notebook with half of her pocket money she received from her uncle yesterday. Today, she received 550 won from her mother, so the total is 1,000 won. How much money did she get from your uncle?
Question (KO): 은지는 어제 삼촌에게 받은 용돈의 반으로 공책을 샀습니다. 오늘 어머니에게 용돈 550원을 받아 모두 1,000원이 되었습니다. 삼촌에게 받은 용돈은 얼마입니까?

Answer: 900

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

Question (EN): A school has 124 more boys than girls. If the total number of students in the school is 1250, how many girls are there?
Question (KO): 어느 학교의 남학생 수는 여학생 수 보다 124명 더 많다. 학교의 총 학생 수가 1250명 일 때, 여학생은 몇 명인지 구하시오

Answer: 563

Solution (Python):
var_a = 1250
var_b = 124
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a rectangle with an area of 108 square centimeters (cm2) and a small rectangle with a width ratio of 8:7 and a height ratio of 9:4. Find the area of the small rectangle.
Question (KO): 넓이가 108제곱센티미터(㎠)인 직사각형과, 이 직사각형과 가로의 비가 8:7, 세로의 비가 9:4인 작은 직사각형이 있습니다. 작은 직사각형의 넓이를 구하시오.

Answer: 42

Solution (Python):
var_a = 108
var_b = 8
var_c = var_a / var_b
var_d = 7
var_e = var_c * var_d
var_f = 9
var_g = var_e / var_f
var_h = 4
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): There are one square and one rectangle with the same area. A side of a square is 5 centimeters (cm), and a side of a rectangle is 4 centimeters (cm). Find the length of the other side of the rectangle.
Question (KO): 넓이가 같은 정사각형과 직사각형이 있습니다. 정사각형의 한 변의 길이가 5센티미터(㎝), 직사각형의 한 변의 길이는 4센티미터(㎝)입니다. 이때 직사각형의 다른 한 변의 길이를 구하시오.

Answer: 6.25

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

Question (EN): If you buy 350 won milk and 500 won water and give 1000 won, how much change do you have to get?
Question (KO): 350원짜리 우유와 500원 짜리 물을 사고 1000원을 줬을 때 받아야할 거스름돈은 얼마입니까?

Answer: 150

Solution (Python):
var_a = 1000
var_b = 350
var_c = var_a - var_b
var_d = 500
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): If there is a box in the shape of a regular dodecahedron, how many sides can be counted?
Question (KO): 정십이면체 모양의 상자가 있습니다. 이 상자의 면의 개수는?

Answer: 12

Solution (Python):
var_a = 12
print(int(var_a))
Category: Correspondence

Question (EN): There is a train from Seoul to Busan. 300 people more than two-fifths of the first boarded people got off at the first station, and 200 people less than one-half of the remaining people got off at the second station. All the rest of the people got off at Busan. If the number of people who got off at Busan is 800 in total, how many people were on board in the beginning?
Question (KO): 서울에서 부산까지 가는 기차가 있다. 처음 탄 인원의 2/5보다 300명 많은 인원이 첫번째 역에서 내렸고 남은 사람의 1/2보다 200명 적은 인원이 두번째 역에서 내렸다. 나머지 인원은 전부 부산에서 내렸고 부산에서 내린 인원이 총 800명 일 때, 처음 탄 인원은 몇 명인지 구하시오.

Answer: 2500

Solution (Python):
var_a = 800
var_b = 200
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 = 300
var_i = var_g + var_h
var_j = 1
var_k = 0.4
var_l = var_j - var_k
var_m = var_i / var_l
print(int(var_m))
Category: Geometry

Question (EN): There is a prism with 21 corners. If the top of this prism overlaps exactly with the bottom when it is lowered to the floor, how many vertices does this prism have?
Question (KO): 21개의 모서리로 이루어진 각기둥이 있습니다. 이 각기둥의 윗면을 그대로 바닥으로 내렸을 때 밑면과 정확히 포개어진다면, 이 각기둥의 꼭짓점은 몇 개입니까?

Answer: 14

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

Question (EN): The sum of the lengths of the four sides of a parallelogram ABCD is 14 centimeters (cm). If the length of side AD is 5 centimeters (cm), how many centimeters (cm) is the length of side AB?
Question (KO): 평행사변형 ㄱㄴㄷㄹ의 네 변의 길이의 합은 14 센티미터(㎝)입니다. 변 ㄱㄹ의 길이가 5 센티미터(㎝)일 때, 변 ㄱㄴ의 길이는 몇 센티미터(㎝)일까요?

Answer: 2

Solution (Python):
var_a = 14
var_b = 2
var_c = var_a / var_b
var_d = 5
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You want to plant street trees at intervals of 25 meters (m) on both sides of a road that is 2575 meters (m) long. How many street trees will be planted on both sides of the road? (However, trees are also planted at the beginning and end of the road.)
Question (KO): 길이가 2575미터(m)인 도로의 양쪽에 25미터(m) 간격으로 가로수를 심으려고 합니다. 도로 양쪽에 심을 가로수는 몇 그루입니까? (단, 도로의 처음과 끝에도 가로수를 심습니다.)

Answer: 208

Solution (Python):
var_a = 2575
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
var_f = 2
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): I bought a piece of gum for 350 won and a protractor for 500 won and paid 1,000 won. How much change should I get?
Question (KO): 350원짜리 껌 한 개와 500원짜리 각도기 한 개를 사고 1000원을 냈습니다. 받아야 할 거스름돈은 얼마입니까?

Answer: 150

Solution (Python):
var_a = 1000
var_b = 350
var_c = var_a - var_b
var_d = 500
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If the sum of three consecutive even numbers is 1194, what is the largest even number?
Question (KO): 연속된 짝수 3개의 합이 1194일 때, 가장 큰 짝수는 얼마입니까?

Answer: 400

Solution (Python):
var_a = 1194
var_b = 0
var_c = 3
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = var_e * var_f
var_h = 2
list_a = [i for i in range(var_b, var_g + 1, var_h)]
list_a = [float(i) for i in list_a]
var_i = sum(list_a)
var_j = var_a - var_i
var_k = 3
var_l = var_j / var_k
var_m = 3
var_n = 1
var_o = var_m - var_n
var_p = 2
var_q = var_o * var_p
var_r = var_l + var_q
print(int(var_r))
Category: Possibility

Question (EN): How many multiples of 9 are there less than 80?
Question (KO): 80보다 작은 수 중에서 9의 배수는 모두 몇 개일까요?

Answer: 8

Solution (Python):
var_a = 1
var_b = 80
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
var_f = 9
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))