philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are numbers 0.8, 1/2, 0.9, and 1/3. Find the largest of the given numbers that are less than 0.6.
Question (KO): 0.8, 1/2, 0.9, 1/3의 숫자가 있다. 이 중 0.6보다 작은 숫자들 중 가장 큰 수를 구하시오.

Answer: 0.5

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.6
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]
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): How many total amounts can you pay with 4 500-won coins, 2 100-won coins, and 10 10-won coins? (However, the case where the payment amount is 0 won is excluded.)
Question (KO): 500원짜리 동전 4개, 100원짜리 동전 2개, 10원짜리 동전 10개를 가지고 지불할 수 있는 금액은 모두 몇 가지인지 구하시오. (단, 지불 금액이 0원인 경우는 제외한다.)

Answer: 154

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

Question (EN): Yoongi wants to add a four-digit number to 57. Yoongi confused 9 as a 6 in the units digit of a four-digit number. When the sum obtained by Yoongi is 1823, find the correct calculation result.
Question (KO): 윤기는 네 자리 수와 57의 덧셈을 하려 합니다. 윤기는 네 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 합은 1823 일 때, 바르게 계산한 결과를 구하시오.

Answer: 1826

Solution (Python):
var_a = 1823
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: Arithmetic calculation

Question (EN): Yoojung gave 5 notebooks she had at first to her older sister, and then gave half of the remaining ones to her younger sister. She counted the number of notebooks left at the end, and it was 4. How many notebooks did Yoojung have at first?
Question (KO): 유정이가 처음 가지고 있던 공책에서 5권을 언니에게 주고, 이후 남은 것의 반을 동생에게 주었습니다. 마지막에 남은 공책의 수를 세어 보았더니 4권이었습니다. 유정이가 처음에 가지고 있던 공책의 수는 몇 권일까요?

Answer: 13

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

Question (EN): There are four numbers A, B, C, and D. A is 19 less than D. C is 4 times A. C is 15 greater than B. If A is 3 multiplied by 3, what is the second largest number among A, B, C, and D?
Question (KO): 네 수 A, B, C, D가 있습니다. A는 D보다 19작은 수입니다. C는 A의 4배입니다. C는 B보다 15 큰 수입니다. A는 3에 3을 곱한 수일 때 A, B, C, D 중 2번째로 큰 수는 무엇입니까?

Answer: D

Solution (Python):
var_a = 'A'
var_b = 'C'
var_c = 'B'
var_d = 'D'
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
var_f = 3
var_g = var_e * var_f
var_h = 3
var_i = 3
var_j = 4
var_k = var_i * var_j
var_l = var_h * var_k
var_m = 9
var_n = 4
var_o = 19
var_p = var_n * var_o
var_q = var_m - var_p
var_r = 3
var_s = 3
var_t = 19
var_u = var_s * var_t
var_v = var_r + var_u
list_b= []
if "/" in str(var_v):
    var_v = eval(str(var_v))
list_b.append(var_v)
if "/" in str(var_q):
    var_q = eval(str(var_q))
list_b.append(var_q)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_w = 1
list_c=list_b.copy()
list_c.sort()
var_x = list_c[-var_w]
var_y = list_b.index(var_x)+1
var_z = list_a[var_y-1]
print(var_z)
Category: Geometry

Question (EN): There is a pyramid with a regular hexagon at the base and a side edge measuring 8 centimeters (cm). If the sum of the lengths of all the edges of this pyramid is 120 centimeters (cm), what is the length of one edge of the base in centimeters (cm)?
Question (KO): 밑면의 모양이 정육각형이고 옆면의 모서리의 길이가 8센티미터(㎝)인 각뿔이 있습니다. 이 각뿔의 모든 모서리의 길이의 합이 120센티미터(㎝)일 때, 밑면의 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 12

Solution (Python):
var_a = 120
var_b = 8
var_c = 6
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 6
var_g = var_e / var_f
print(int(var_g))
Category: Correspondence

Question (EN): Find the answer, including the decimal point, for the sum of the largest and smallest numbers with two decimals, which give 3.5 when rounded off from two decimal places.
Question (KO): 소수 2번째 자리에서 반올림하면 3.5가 되는 소수 두 자리 수 중 가장 큰 수와 가장 작은 수의 합을 소수점을 포함하여 답을 구하시오.

Answer: 6.99

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

Question (EN): How many odd numbers are there when you press 2 of the 5 buttons which are 0, 1, 2, 3, and 4 on the calculator to create a two-digit integer?
Question (KO): 계산기에 0, 1, 2, 3, 4의 수가 각각 적힌 5개의 버튼 중 2개를 눌러 두 자리 정수를 만들 때 홀수는 모두 몇 개인지 구하시오

Answer: 6

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_g = 2
list_c = []
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if i % var_g == 0:
        list_c.append(i)
list_d = list(set(list_b) - set(list_c))
var_h = len(list_d)
print(int(var_h))
Category: Geometry

Question (EN): A quadrilateral has a pair of parallel sides. The length of one of the parallel sides is 25 centimeters (cm), and the distance between the two sides is 13 centimeters (cm). If the area of this rectangle is 286 square cm (cm2), find the length of the side that is not 25 centimeters (cm) in centimeters (cm).
Question (KO): 한 쌍의 변이 평행한 사각형이 있습니다. 서로 평행한 변들 중 한 변의 길이는 25센티미터(㎝)이고, 두 변 사이의 거리는 13센티미터(㎝)이며, 이 사각형의 넓이가 286제곱센티미터(㎠)라면, 서로 평행한 변들 중 길이가 25센티미터(㎝)가 아닌 변의 길이는 몇 센티미터(㎝)일지 구하시오.

Answer: 19

Solution (Python):
var_a = 286
var_b = 13
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
var_f = 25
var_g = var_e - var_f
print(int(var_g))
Category: Correspondence

Question (EN): Add 8 to a certain number and multiply by 3 to get 36. Find this particular number.
Question (KO): 어떤 수에 8을 더하고 3을 곱하면 36입니다. 어떤 수를 구하시오.

Answer: 4

Solution (Python):
var_a = 36
var_b = 3
var_c = var_a / var_b
var_d = 8
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When there are 57 boys and 82 girls on the playground, the number of female students is 13 more than male students plus teachers. How many teachers are there in the playground?
Question (KO): 운동장에 남학생이 57명, 여학생이 82명 있습니다. 여학생은 남학생과 선생님을 합한 것보다 13명 더 많이 있습니다. 운동장에 있는 선생님의 수는 몇 명입니까?

Answer: 12

Solution (Python):
var_a = 82
var_b = 13
var_c = var_a - var_b
var_d = 57
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): A number is divisible by 5 and the quotient is 96. What is the result of adding 17 to the number and then multiplying by 69?
Question (KO): 어떤 수는 5로 나누어떨어지고 몫은 96이다. 어떤 수에 17을 더한 다음 69를 곱한 값은 얼마인지 구하시오.

Answer: 34293

Solution (Python):
var_a = 5
var_b = 96
var_c = var_a * var_b
var_d = 17
var_e = var_c + var_d
var_f = 69
var_g = var_e * var_f
print(int(var_g))
Category: Geometry

Question (EN): If the lengths of the two sides of a parallelogram are 10 centimeters (cm) and 7 centimeters (cm), how many centimeters (cm) is the sum of the lengths of the four sides?
Question (KO): 평행사변형의 두 변의 길이가 각각 10 센티미터(㎝), 7 센티미터(㎝)일 때 네 변의 길이의 합은 몇 센티미터(㎝)일까요?

Answer: 34

Solution (Python):
var_a = 10
var_b = 7
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Which number from 2 to 5 is less than 4?
Question (KO): 2와 5사이의 수 중, 4보다 작은 수는 무엇입니까?

Answer: 3

Solution (Python):
var_a = 2
var_b = 1
var_c = var_a + var_b
var_d = 5
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = 4
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
var_i = 1
var_j = list_b[var_i-1]
print(int(var_j))
Category: Possibility

Question (EN): Find the difference between the smallest number and the third smallest number you can make by using all the stones 1, 6, and 8 once each to make a three-digit number.
Question (KO): 1, 6, 8이 적힌 돌맹이를 각 한번씩 모두 사용하여 세 자리 수를 만들 때, 만들 수 있는 가장 작은 수와 세 번째로 작은 수의 차이를 구하시오.

Answer: 450

Solution (Python):
var_a = 1
var_b = 6
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = 3
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: Comparison

Question (EN): How many of 0.8, 1/2, and 0.9 are greater than 0.4?
Question (KO): 0.8, 1/2, 0.9 중에서 0.4보다 큰 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.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 = 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): The red, yellow and blue bags contain a number of books. The total weight of the books in the three bags is 1 kilogram (kg) and 200 grams (g). If you move a 200 gram (g) book from a blue bag to a yellow bag and a 100 gram (g) book to a red bag, the books in the three bags will weigh the same. Find the sum of the weights of the books that were originally in the red bag.
Question (KO): 빨간색, 노란색, 파란색 가방에 책이 여러 권씩 들어있습니다. 세 가방 안에 들어있는 책의 무게의 합은 1킬로그램(㎏) 200그램(g)입니다. 파란색 가방에 들어있는 200그램(g)짜리 책 한 권을 노란색 가방으로 옮기고, 100그램(g)짜리 책 한권을 빨간색 가방으로 옮긴다면, 세 가방 안에 들어있는 책의 무게는 같아진다고 합니다. 빨간색 가방에 처음 들어있던 책의 무게의 합을 구하시오.

Answer: 300

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 200
var_g = var_e - var_f
var_h = 100
var_i = var_g - var_h
var_j = 3
var_k = var_i / var_j
print(int(var_k))
Category: Possibility

Question (EN): From the four types of marbles - red, blue, yellow, and green, find the number of cases in which you select 21 balls allowing overlaps but draw 3 or more balls from each color.
Question (KO): 빨간색, 파란색, 노란색, 초록색 네 종류의 구슬에서 중복을 허용하여 21개를 택하되, 각 공을 3개 이상 뽑는 경우의 수를 구하시오.

Answer: 220

Solution (Python):
var_a = 4
var_b = 21
var_c = var_a + var_b
var_d = 4
var_e = 3
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 1
var_i = var_g - var_h
var_j = 21
var_k = 4
var_l = 3
var_m = var_k * var_l
var_n = var_j - var_m
var_o = 1
var_i = int(var_i)
var_n = int(var_n)
for i, elem in enumerate(range(var_n)):
    var_o = var_o * (var_i-i)
for i, elem in enumerate(range(var_n)):
    var_o = var_o / (i+1)
print(int(var_o))
Category: Comparison

Question (EN): When there are 4 numbers of 0.8, 1/2, 0.5, and 1/3, how many of them are less than or equal to 3?
Question (KO): 총 4개의 숫자 0.8, 1/2, 0.5, 1/3이 있습니다. 이 중 3보다 작거나 같은 수는 몇 개 일까요?

Answer: 4

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.5
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 = 3
list_b = []
for i in list_a:
    if i <= var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Geometry

Question (EN): An oil drum in the shape of a cuboid with a height of 5 meters (m) and 20 centimeters (cm) and two sides of the bottom each measuring 6 meters (m), 40 centimeters (cm), and 9 meters (m), is filled with oil. We're going to split it up into several barrels of oil into a oil drum with a volume of 1 cubic meter (m3). Find at least how many oil drums you need.
Question (KO): 높이가 5미터(m) 20센티미터(㎝)이고, 밑면의 두 변이 각각 6미터(m) 40센티미터(㎝), 9미터(m)인 직육면체 모양의 기름통에 기름이 가득 차있습니다. 부피가 1세제곱미터(㎥)인 기름통 여러 개에 모두 나누어 담으려고 합니다. 기름통은 적어도 몇 개 필요한지 구해보시오.

Answer: 300

Solution (Python):
var_a = 6
var_b = 40
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 9
var_g = var_e * var_f
var_h = 5
var_i = 20
var_j = 100
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_g * var_l
var_n = 1
var_o = var_m / var_n
var_p = 1
var_q=int(((var_o+9*10**(var_p-2))//(10**(var_p-1)))*10**(var_p-1))

print(int(var_q))
Category: Comparison

Question (EN): Jungkook collects the number 6 minus 3, and Yoongi collects 4. Whose number is smaller?
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): Yoojeong gave Eunji 8 of the marbles she had at first, and there are 24 left. How many marbles did Yoojeong have before giving them to Eunji?
Question (KO): 유정이가 처음 가지고 있던 구슬 중 8개를 은지에게 주었더니 24개가 남았습니다. 은지에게 구슬을 주기 전 유정이가 가지고 있던 구슬은 몇 개 입니까?

Answer: 32

Solution (Python):
var_a = 24
var_b = 8
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): I have a rectangular piece of cloth. If the length of this cloth is 150 centimeters (cm) and the area is 3 square meters (m2), how many centimeters (cm) is the width?
Question (KO): 직사각형 모양의 천이 있습니다. 이 천의 세로 길이가 150센티미터(㎝)이고 넓이는 3제곱미터(㎡)라면 가로의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 200

Solution (Python):
var_a = 3
var_b = 100
var_c = 2
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 150
var_g = var_e / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): At Eunji's school, class (A) planted 35 trees, class (B) planted 6 more trees than class (A), and class (C) planted 3 less trees than class (A). What is the average number of trees planted by three classes (A), (B), and (C)?
Question (KO): 은지네 학교에서 나무를 심는데 (가) 반은 35그루를 심었고, (나) 반은 (가) 반보다 6그루 더 많이 심었고, (다) 반은 (가) 반보다 3그루 더 적게 심었습니다. (가), (나), (다) 세 반이 심은 평균 나무 수는 몇 그루입니까?

Answer: 36

Solution (Python):
var_a = 35
var_b = 35
var_c = 6
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 35
var_g = 3
var_h = var_f - var_g
var_i = var_e + var_h
var_j = 3
var_k = var_i / var_j
print(int(var_k))
Category: Correspondence

Question (EN): 4 out of 40 dolls are defective. When you send the non-defective remainder out to four stores equally, how many should you send per store?
Question (KO): 40개의 인형 중 4개가 불량품이다. 불량품이 아닌 정상품들을 다른 네 곳의 가게로 동일한 개수를 보낼 때, 한 가게에 몇 개씩 보내야 하는가?

Answer: 9

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

Question (EN): Jinsu has 125 dice, each with an edge of 2 centimeters (cm). If these dice are stacked to form a cube, what is the volume of the cube?
Question (KO): 진수는 한 모서리가 2센티미터(㎝)인 주사위를 125개 가지고 있습니다. 이 주사위를 쌓아 정육면체 모양을 만들었을 때, 이 쌓아 만든 정육면체의 부피는 얼마입니까?

Answer: 1000

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

Question (EN): When you mistakenly add 30 which should have been multiplied to by number, you get 86. Find out how much it is if you calculate it correctly.
Question (KO): 어떤 수에 30을 곱해야 할 것을 잘못하여 더했더니 86이 되었습니다. 바르게 계산하면 얼마인지 구해 보시오.

Answer: 1680

Solution (Python):
var_a = 86
var_b = 30
var_c = var_a - var_b
var_d = 30
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The car ran through the school zone at 27 kilometers per hour (km) for 50 seconds. How many meters (m) did the car move?
Question (KO): 자동차가 어린이 보호 구역을 시속 27킬로미터(㎞)로 50초 동안 달렸습니다. 자동차가 달린 거리는 몇 미터(m)입니까?

Answer: 375

Solution (Python):
var_a = 27
var_b = 1000
var_c = var_a * var_b
var_d = 60
var_e = 2
var_f = var_d ** var_e
var_g = var_c / var_f
var_h = 50
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): When Hyung-wook's father is 32 years old, Hyung-wook is 5 years old, and when Hyung-wook is 7 years old, Hyung-wook's elder brother is 10 years old. Find the sum of the ages of Hyung-wook and his father when Hyung-wook's elder brother is 12 years old.
Question (KO): 형욱이의 아버지가 32살일 때 형욱이는 5살이고, 형욱이가 7살일 때 형욱이의 형은 10살입니다. 형이 12살일 때 형욱이와 아버지의 나이의 합을 구하시오.

Answer: 45

Solution (Python):
var_a = 12
var_b = 7
var_c = 10
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 12
var_g = 7
var_h = 10
var_i = var_g - var_h
var_j = var_f + var_i
var_k = 32
var_l = 5
var_m = var_k - var_l
var_n = var_j + var_m
var_o = var_e + var_n
print(int(var_o))
Category: Geometry

Question (EN): The base of a pyramid with A sides is an octagon. What number fits in A?
Question (KO): 옆면이 A개인 각뿔의 밑면은 팔각형입니다. A는?

Answer: 8

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

Question (EN): How many packs of candies are there if you pack 98 of them in 7 packs?
Question (KO): 98개의 사탕을 7개씩 나누어 포장하면 몇 묶음이 나오는지 구하시오.

Answer: 14

Solution (Python):
var_a = 98
var_b = 7
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): What is the smallest number that can be formed by using natural numbers 2 and 4?
Question (KO): 두 자연수 2,4를 모두 이용하여 만들 수 있는 수 중 가장 작은 수는 얼마입니까?

Answer: 24

Solution (Python):
var_a = 2
var_b = 4
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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[var_d-1]
print(int(var_e))
Category: Geometry

Question (EN): Donggeon drew a triangle with a base of 3 centimeters (cm) and a height of 6.02 centimeters (cm), and Jihye drew a triangle with a base of 3 centimeters (cm) and a height of 2 centimeters (cm). How many times the width of the triangle drawn by Donggeon is the width of the triangle drawn by Jihye?
Question (KO): 동건이는 밑변이 3센티미터(㎝) 이고 높이가 6.02 센티미터(㎝) 인 삼각형을 그렸으며, 지혜는 밑변이 3센티미터(㎝) 이고 높이가 2센티미터(㎝) 인 삼각형을 그렸습니다. 동건이가 그린 삼각형의 넓이는 지혜가 그린 삼각형의 넓이의 몇 배입니까?

Answer: 3.01

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

Question (EN): 1250 coins are scattered on the floor. If the number of coins with heads is 124 more than the number of coins with tails, find the number of coins with tails.
Question (KO): 동전 1250개가 바닥에 널려있다. 앞면인 동전의 수가 뒷면인 동전의 수보다 124개 더 많을 때, 뒷면인 동전의 개수를 구하시오.

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

Question (EN): Misoo and Joohee are trying to deliver a total of 2 liters (L) and 100 milliliters (㎖) of milk. How many milliliters (ml) of milk must Misoo deliver if Misoo delivers 200 milliliters (ml) more milk than Joohee does?
Question (KO): 미수와 주희가 총 2리터(L) 100밀리리터(㎖)의 우유를 나눠서 배달하려고 합니다. 미수가 주희보다 200밀리리터(㎖) 더 많이 배달하려면 미수는 몇 밀리리터(㎖)의 우유를 배달해야 합니까?

Answer: 1150

Solution (Python):
var_a = 2
var_b = 1000
var_c = var_a * var_b
var_d = 100
var_e = var_c + var_d
var_f = 200
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): I am trying to make a number from 1 to 300. How many of the number cards from 0 to 9 must contain the number 3?
Question (KO): 1부터 300까지의 수를 만드려고 합니다. 0부터 9까지의 숫자 카드 중 숫자 3은 모두 몇 장 있어야 하는지 구하시오.

Answer: 61

Solution (Python):
var_a = 1
var_b = 300
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
    list_b.append(var_d%10)
    var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 3
var_f = 0
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i == var_e:
        var_f = var_f + 1
print(int(var_f))
Category: Geometry

Question (EN): There are two types of letter paper. Letter A is a rectangle with a width of 6 centimeters (cm) and a length of 9 centimeters (cm) long, and letter paper B is a square shape with a width of 8 centimeters (cm) and a length of 8 centimeters (cm) long. If both letter papers are decorated with stickers of the same size around the perimeter, which one has more stickers?
Question (KO): 두 종류의 편지지가 있습니다. 편지지 A는 가로 6센티미터(㎝), 세로 9센티미터(㎝)인 직사각형 모양이고, 편지지 B는 가로 8센티미터(㎝), 세로 8센티미터(㎝)인 정사각형 모양입니다. 두 편지지 모두 같은 크기의 스티커를 편지지 둘레를 따라 붙여 꾸민다고 할 때 어느 편지지에 스티커를 더 많이 붙이게 됩니까?

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 = 6
var_d = 9
var_e = var_c + var_d
var_f = 8
var_g = 8
var_h = var_f + var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): I had to multiply a number by 7 but mistakenly divided it by 6 instead to get 12. What is the correctly calculated value?
Question (KO): 어떤 수에 7을 곱해야 할 것을 잘못하여 6을 나눈 결과는 12가 되었습니다. 바르게 계산한 결과는 얼마인가요?

Answer: 504

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

Question (EN): You need to multiply a number by 5 and then add 14, but you mistakenly subtracted 5 and added 14, getting 39 as an answer. Find the sum of the correctly calculated and incorrectly calculated values.
Question (KO): 어떤 수에 5를 곱하고 14를 더해야 하는데 잘못하여 5를 빼고 14를 더했더니 39가 되었습니다. 바르게 계산한 값과 틀리게 계산한 값의 합은 얼마인지 구하시오.

Answer: 203

Solution (Python):
var_a = 39
var_b = 14
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 14
var_i = var_g + var_h
var_j = 39
var_k = var_i + var_j
print(int(var_k))