philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Use the three numbers written on cards: 3, 4, and 7 to create a three-digit number. At this time, find the smallest value among the numbers where 4 is in the tens. (However, you cannot use number cards repeatedly.)
Question (KO): 세 장의 숫자카드 3, 4, 7을 사용하여 세자리 수를 만든다. 이때 4가 십의 자리에 오는 수들 중 가장 작은 값을 구하시오.(단, 숫자카드를 중복 사용할 수 없다.)

Answer: 347

Solution (Python):
var_a = 3
var_b = 4
var_c = 7
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 = 10
var_f = 4
list_c = [] 
var_e = int(var_e)
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if (i//var_e)%10 == var_f:
        list_c.append(i)
var_g = 1
list_d=list_c.copy()
list_d.sort()
var_h = list_d[var_g-1]
print(int(var_h))
Category: Possibility

Question (EN): Using the number cards 1, 6, and 8 all once, find the sum of the second largest three-digit number and the third smallest three-digit number.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 두 번째로 큰 세 자리 수와 세 번째로 작은 세 자리수의 합을 구하시오.

Answer: 1434

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 = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Correspondence

Question (EN): Hyunjoong participated in the long march through national land. Hyunjoong walked 1/2 of the total distance until yesterday, and 1/3 of the remaining distance today. If the remaining distance after today is 12 kilometers (km), how many kilometers (km) does Hyunjoong walk in the long march in total?
Question (KO): 현중이는 국토대장정에 참가했습니다. 현중이는 전체 거리의 1/2을 어제까지 걸었고, 오늘 남은 길이의 1/3을 걸었습니다. 오늘 이후 남은 거리가 12킬로미터(㎞)라고 할 때, 현중이가 국토대장정에서 걷는 총 거리는 몇 킬로미터(㎞)입니까?

Answer: 36

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

Question (EN): Using 3 of 4, 8, 1, and 2, what is the third smallest number whose tens place is 2?
Question (KO): 4, 8, 1, 2 중 3개를 사용하여 십의 자리 숫자가 2인 세 번째로 작은 수는 무엇입니까?

Answer: 421

Solution (Python):
var_a = 4
var_b = 8
var_c = 1
var_d = 2
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 = [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 = 10
var_g = 2
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[var_h-1]
print(int(var_i))
Category: Geometry

Question (EN): Using all of the wire, not overlapping, a regular pentagon with sides of 16 centimeters (cm) was made. How many centimeters (cm) should each side be to make the largest regular octagon with this wire?
Question (KO): 철사를 겹치지 않게 모두 사용하여 한 변의 길이가 16센티미터(㎝)인 정오각형을 한 개 만들었습니다. 이 철사로 가장 큰 정팔각형을 만들려면 한 변의 길이를 몇 센티미터(㎝)로 해야 합니까?

Answer: 10

Solution (Python):
var_a = 16
var_b = 5
var_c = var_a * var_b
var_d = 8
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): If you form a three-digit number using three different numbers among 5, 2, 8 and 0, how many numbers are there that are greater than or equal to 550 and less than or equal to 850?
Question (KO): 550이상 850이하의, 5, 2, 8, 0 중 다른 숫자 3개로 이루어진 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 5
var_b = 2
var_c = 8
var_d = 0
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 = [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 = 550
list_c = []
for i in list_b:
    if i > var_f:
        list_c.append(i)
var_g = 850
list_d = []
for i in list_c:
    if i < var_g:
        list_d.append(i)
var_h = len(list_d)
print(int(var_h))
Category: Geometry

Question (EN): If an equilateral triangle is formed using wire that is 8 meters (m) long, how many meters (m) is the length of one side of the triangle?
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: Arithmetic calculation

Question (EN): Doyoung's school has 1260 students. 7/18 of Doyoung's school students gathered in the auditorium, and 6/11 of the students who was not in the auditorium are in the classroom. How many students are there in the classroom?
Question (KO): 도영이네 학교 학생 수는 1260명입니다. 도영이네 학교 학생의 7/18은 강당에 모였고 강당에 모이지 않은 학생 중 6/11은 교실에 있습니다. 교실에 있는 학생은 모두 몇 명인가요?

Answer: 420

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

Question (EN): There are a triangle with a length of a base of 10 centimeters (cm) and a height of 11 centimeters (cm), a square with a side of 8 centimeters (cm), and a circle with a diameter of 8 centimeters (cm). Which figure has the largest area when the pi of a circle is calculated as 3.1?
Question (KO): 밑변의 길이가 10센티미터(㎝), 높이가 11센티미터(㎝)인 삼각형, 한 변의 길이가 8센티미터(㎝)인 정사각형, 지름이 8센티미터(㎝)인 원이 있습니다. 원주율을 3.1로 계산할 때 넓이가 가장 넓은 도형은 어느 것입니까?

Answer: square

Solution (Python):
var_a = 'triangle'
var_b = 'square'
var_c = 'circle'
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 = 10
var_e = 11
var_f = var_d * var_e
var_g = 2
var_h = var_f / var_g
var_i = 8
var_j = 2
var_k = var_i ** var_j
var_l = 8
var_m = 2
var_n = var_l / var_m
var_o = 2
var_p = var_n ** var_o
var_q = 3.1
var_r = var_p * var_q
list_b= []
if "/" in str(var_r):
    var_r = eval(str(var_r))
list_b.append(var_r)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
list_b.reverse()
var_s = 1
list_c=list_b.copy()
list_c.sort()
var_t = list_c[-var_s]
var_u = list_b.index(var_t)+1
var_v = list_a[var_u-1]
print(var_v)
Category: Geometry

Question (EN): If the surface area of the cube is 864 square centimeters (cm2), find how many centimeters (cm) are the length of one side of the cube.
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: Geometry

Question (EN): Marbles of the same size are arranged in a regular arrangement without gaps to form a square with 36 marbles around it. How many marbles are on the outermost of one side?
Question (KO): 크기가 같은 구슬을 빈틈없이 규칙적으로 늘어놓아 둘레에 놓인 구슬의 개수가 36개인 정사각형을 만들었습니다. 가장 바깥쪽의 한 변에 놓인 구슬의 개수는 몇 개입니까?

Answer: 10

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

Question (EN): You have 32 aluminum bats at home. There are 5 fewer aluminum bats than wooden bats, and 3 more gloves than aluminum bats. How many wooden bats, aluminum bats and gloves do you have at home in total?
Question (KO): 집에 알루미늄배트가 32개 있습니다. 나무배트보다 알루미늄배트가 5개 적고, 글러브가 알루미눔배트보다 3개 많습니다. 집에있는 나무배트, 알루미눔배트, 글러브는 모두 몇 개입니까?

Answer: 104

Solution (Python):
var_a = 32
var_b = 32
var_c = 5
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 32
var_g = 3
var_h = var_f + var_g
var_i = var_e + var_h
print(int(var_i))
Category: Correspondence

Question (EN): It is said that dividing 5 and 4/9 by 7 is equal to multiplying the number by 5. Find the number rounding to two decimal places.
Question (KO): 5와 4/9를 7로 나눈 값이 어떤 수에 5를 곱한 값과 같다고 한다. 어떤 수가 얼마인지 소수 2번째 자리까지 나타내어 보세요.

Answer: 0.16

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

Question (EN): This year, Yujeong is 12 years old and her mother is 42 years old. In what year was her mother's age 4 times her age?
Question (KO): 올해 유정이는 12살이고 어머니는 42살입니다. 몇 년 전에 어머니 나이가 유정이 나이의 4배였습니까?

Answer: 2

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

Question (EN): Hoseok paid 7 1,000 won bills, 4 100 won coins, and 5 10 won coins while shopping item (a) at the mart. What is the price of the item (a) that Hoseok bought at the mart?
Question (KO): 호석이는 마트에서 (가) 물건을 사면서 1,000원짜리 지폐 7장, 100원짜리 동전 4개, 10원짜리 동전 5개를 냈습니다. 호석이가 마트에서 산 (가) 물건의 값은 얼마입니까?

Answer: 7450

Solution (Python):
var_a = 1000
var_b = 7
var_c = var_a * var_b
var_d = 100
var_e = 4
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 10
var_i = 5
var_j = var_h * var_i
var_k = var_g + var_j
print(int(var_k))
Category: Correspondence

Question (EN): Dividing 82.04 by a certain number results in 28. What is the value of the certain number?
Question (KO): 82.04를 어떤 숫자로 나누면 28이 됩니다. 어떤 숫자의 값은 얼마인가요?

Answer: 2.93

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

Question (EN): If the weights of Hanbyul and Hansol are added together, it is 88 kilograms (kg), and if Hanbyul weighs 4 kilograms (kg) more than Hansol, find out how many kilograms (kg) Hansol weighs.
Question (KO): 한별이와 한솔이의 몸무게를 더하면 88킬로그램(㎏)이고, 한별이가 한솔이보다 4킬로그램(㎏) 더 나간다면 한솔이의 몸무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 42

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

Question (EN): I had to add a number to 36 but I made a mistake and subtracted a number from 63 and it became 70. Find out how much it is if you calculate it correctly.
Question (KO): 36에 어떤 수를 더해야 할 것을 잘못하여 63에 어떤 수를 뺐더니 70이 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 29

Solution (Python):
var_a = 36
var_b = 63
var_c = 70
var_d = var_b - var_c
var_e = var_a + var_d
print(int(var_e))
Category: Comparison

Question (EN): When 7 flowers (a), (b), (c), (d), (e), (f), and (g) were planted in order, what is the name of the 5th flower planted?
Question (KO): (가), (나), (다), (라), (마), (바), (사) 꽃을 순서대로 심었을 때, 5번째로 심은 꽃의 이름은 무엇입니까?

Answer: (e)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
var_c = '(c)'
var_d = '(d)'
var_e = '(e)'
var_f = '(f)'
var_g = '(g)'
list_a= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
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_h = 5
var_i = list_a[var_h-1]
print(var_i)
Category: Correspondence

Question (EN): The five-digit number A835B is divisible by 12. Find the difference between the largest and the smallest five-digit number if numbers are put in A and B.
Question (KO): 다섯 자리 수 A835B은 12로 나누어 떨어진다. A, B에 알맞은 숫자를 넣어 만든 다섯 자리 수 중에서 가장 큰 수와 가장 작은 수와의 차를 구하여라.

Answer: 69996

Solution (Python):
var_a = 'A835B'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_a) == len(str(int(temp))):
        new_elem = int(temp)
        list_a.append(new_elem)
var_b = 12
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = 1
list_c=list_b.copy()
list_c.sort()
var_d = list_c[-var_c]
var_e = 1
list_d=list_b.copy()
list_d.sort()
var_f = list_d[var_e-1]
var_g = var_d - var_f
print(int(var_g))
Category: Comparison

Question (EN): Seokjin and Taehyung each had 10 pieces of drawing paper. Seokjin used 5 pieces and Taehyung used 4 pieces. Who has more drawing paper left?
Question (KO): 석진이와 태형이는 도화지를 각각 10장씩 가지고 있었습니다. 석진이는 5장을 사용했고 태형이는 4장을 사용했습니다. 남은 도화지는 누가 더 많습니까?

Answer: Taehyung

Solution (Python):
var_a = 'Seokjin'
var_b = 'Taehyung'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 10
var_d = 5
var_e = var_c - var_d
var_f = 10
var_g = 4
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: Comparison

Question (EN): The distance from the farm to the house is 396 meters (m), and the distance from the farm to the field is 0.389 kilometers (km). Which is closer to the farm between the house and the field?
Question (KO): 농장에서 집까지의 거리는 396미터(m)이고, 농장에서 밭까지의 거리는 0.389킬로미터(㎞)입니다. 집과 밭 중 농장과 더 가까운 곳은?

Answer: field

Solution (Python):
var_a = 'house'
var_b = 'field'
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 = 396
var_d = 0.389
var_e = 1000
var_f = var_d * var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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): You are given four numbers: 10, 11, 12, and 13. What is the remainder when the second largest number is divided by the smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 2번째로 큰 수를 가장 작은 수로 나눈 나머지는 얼마입니까?

Answer: 2

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 = 2
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f % var_h
print(int(var_i))
Category: Geometry

Question (EN): I drew the largest circle that can be drawn on a square-shaped playground. Assuming pi as 3.1, if the area of this field is 400 square meters (m2), what is the area of the circle?
Question (KO): 정사각형 모양 운동장에서 그릴 수 있는 가장 큰 원을 그렸다. 이 운동장의 넓이가 400제곱미터(㎡)이고, 원주율을 3.1라면, 원의 넓이는 얼마입니까?

Answer: 310

Solution (Python):
var_a = 3.1
var_b = 400
var_c = 0.5
var_d = var_b ** var_c
var_e = 2
var_f = var_d / var_e
var_g = 2
var_h = var_f ** var_g
var_i = var_a * var_h
print(int(var_i))
Category: Comparison

Question (EN): Horses, Cows, Pigs, Sheep, Rabbits, and Squirrels entered the fence in that order. What's the 4th animal?
Question (KO): 울타리 안에 말, 소, 돼지, 양, 토끼, 다람쥐 순서로 들어갔습니다. 4번째에 들어간 동물은 무엇입니까?

Answer: Sheep

Solution (Python):
var_a = 'Horse'
var_b = 'Cow'
var_c = 'Pig'
var_d = 'Sheep'
var_e = 'Rabbit'
var_f = 'Squirrel'
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 = 4
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): When Jungkook divided, the quotient was 29 and the remainder was 77. However, this was the result of misreading and calculating by changing the tens and ones digits of the correct divisor 59. Find the sum of the correctly calculated quotient and remainder.
Question (KO): 정국이가 나눗셈을 하였더니 몫은 29이고 나머지는 77가 나왔습니다. 하지만 이는 나누는 수 59의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 잘못 보고 계산한 결과였습니다. 바르게 계산한 몫과 나머지의 합을 구하시오.

Answer: 48

Solution (Python):
var_a = 95
var_b = 29
var_c = var_a * var_b
var_d = 77
var_e = var_c + var_d
var_f = 59
var_g = var_e // var_f
var_h = 95
var_i = 29
var_j = var_h * var_i
var_k = 77
var_l = var_j + var_k
var_m = 59
var_n = var_l % var_m
var_o = var_g + var_n
print(int(var_o))
Category: Geometry

Question (EN): A rectangular bill is 28 centimeters (cm) in perimeter and 6 centimeters (cm) in width. Find the area of this bill.
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: Possibility

Question (EN): I'm trying to make a number with only 3, 9, 5, and 8. If each number can only be used once, what is the sum of largest two-digit number and the remaining two numbers?
Question (KO): 3, 9, 5, 8만을 가지고 숫자를 만드려고 합니다. 각 숫자는 한번씩만 사용할 수 있을 때, 가장 큰 수와, 남은 두 수를 더하면 얼마입니까?

Answer: 106

Solution (Python):
var_a = 3
var_b = 9
var_c = 5
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 = 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]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
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: Possibility

Question (EN): We want to find the difference between the largest three-digit number and the third largest three-digit number using all three number magnets once. Given a magnet with 1, 6, and 8 on it, what is the answer?
Question (KO): 숫자 자석 세 개를 한 번씩 모두 사용하여 가장 큰 세 자리수와 세 번째로 큰 세 자리수의 차를 구하고자 합니다. 1, 6, 8이 그려진 자석이 있을 때, 답은 얼마입니까?

Answer: 180

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 = len(list_a)
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]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[-var_g]
var_i = var_f - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the remainder when the 3rd smallest number is divided by and the 2nd smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 3번째로 작은 수와 2번째로 작은 수로 나눈 나머지는 얼마입니까?

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 = 3
list_b=list_a.copy()
list_b.sort()
var_f = list_b[var_e-1]
var_g = 2
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f % var_h
print(int(var_i))
Category: Possibility

Question (EN): You are trying to write natural numbers from 1 to 30. How many times should the number 2 be written in all?
Question (KO): 1부터 30까지 자연수를 쓰려고 합니다. 숫자 2는 모두 몇 번 써야 합니까?

Answer: 13

Solution (Python):
var_a = 1
var_b = 30
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 = 2
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): How many edges are there in a regular octahedron?
Question (KO): 정팔면체에서 모서리는 모두 몇 개 일까요?

Answer: 12

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

Question (EN): There is a cuboid. Find the number of faces that meet at one vertex of this cuboid.
Question (KO): 어떤 직육면체가 있습니다. 이 직육면체의 한 꼭짓점에서 만나는 면의 개수를 구하시오.

Answer: 3

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