philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): What is the sum of all integers less than 30 that are multiples of 5 or even numbers?
Question (KO): 30이하의 자연수 중에서 5의 배수이거나 짝수인 수를 모두 더하면 얼마인가?

Answer: 285

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 = 5
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 = 1
var_f = 30
list_c = []
if var_e%2!=0:
    for i in range(var_e+1, var_f+1, 2):
        list_c.append(i)
else:
    for i in range(var_e, var_f+1, 2):
        list_c.append(i)
list_d = list(set(list_b) | set(list_c))
list_d = [float(i) for i in list_d]
var_g = sum(list_d)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Seokjin's mother gave birth to Seokjin at the age of 32. If his uncle is 3 years younger than his mother, find out how old his uncle is when Seokjin turns 12.
Question (KO): 어머니는 32살에 석진이를 낳으셨습니다. 외삼촌은 어머니보다 3살 어립니다. 석진이가 12살이 되는 해에 외삼촌은 몇 살인지 구하시오.

Answer: 41

Solution (Python):
var_a = 12
var_b = 32
var_c = var_a + var_b
var_d = 3
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Yoongi bought a supplement containing 200 pills and took 12 pills every day for two weeks. How many pills are left?
Question (KO): 윤기는 200알이 들어있는 영양제를 사서 매일 12알씩 2주일 동안 먹었습니다. 남은 영양제는 몇 알입니까?

Answer: 32

Solution (Python):
var_a = 200
var_b = 12
var_c = 2
var_d = var_b * var_c
var_e = 7
var_f = var_d * var_e
var_g = var_a - var_f
print(int(var_g))
Category: Possibility

Question (EN): I am trying to create a three-digit number using 0, 1, 3, and 5. If each number can be used only once, find out the sum of the smallest number and the largest possible number.
Question (KO): 세 자리 수를 0, 1, 3, 5을 사용하여 만들려고 합니다. 각 수는 한번씩 사용이 가능하다면 만들 수 있는 가장 큰 수에서 가장 작은 수를 더한 값을 구하여라

Answer: 634

Solution (Python):
var_a = 0
var_b = 1
var_c = 3
var_d = 5
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 = 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]
var_j = var_g + var_i
print(int(var_j))
Category: Correspondence

Question (EN): When a natural number A is divided by a natural number B, the quotient is 28 and the remainder is 4. Find the smallest number that can be A.
Question (KO): 자연수 A를 자연수 B로 나누면 몫이 28이고 나머지가 4입니다. A가 될 수 있는 숫자 중에 가장 작은 수를 구하시오.

Answer: 144

Solution (Python):
var_a = 4
var_b = 1
var_c = var_a + var_b
var_d = 28
var_e = var_c * var_d
var_f = 4
var_g = var_e + var_f
print(int(var_g))
Category: Possibility

Question (EN): Write the smallest three-digit number that can be formed by drawing three different numbers from 0, 3, 5, and 6.
Question (KO): 0, 3, 5, 6 중에서 서로 다른 숫자 3개를 뽑아 만들 수 있는 세 자리 수 중에서 가장 작은 수를 쓰시오.

Answer: 305

Solution (Python):
var_a = 0
var_b = 3
var_c = 5
var_d = 6
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
print(int(var_g))
Category: Comparison

Question (EN): Yoongi collected 7, Jungkook 6, Yuna 9, and Yoojung 8. Who has the 2nd largest number?
Question (KO): 윤기는 7, 정국은 6, 유나는 9, 유정은 8만큼 모았습니다. 2번째로 큰 숫자를 가진 사람은 누구입니까?

Answer: Yoojung

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
var_d = 'Yoojung'
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 = 7
var_f = 6
var_g = 9
var_h = 8
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
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_i = 2
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: Geometry

Question (EN): I am going to make a draw by cutting a rectangular piece of paper measuring 63 centimeters (cm) wide and 42 centimeters (cm) long. Find how many centimeters (cm) the length of one side of the lottery paper should be in order to make the lottery paper square and minimize the number of people who won the lottery.
Question (KO): 가로 63센티미터(㎝), 세로 42센티미터(㎝)의 직사각형 모양의 종이를 잘라 뽑기를 만들려고 합니다. 뽑기의 모양을 정사각형으로 하고, 뽑기에 당첨된 인원이 최소가 되도록 하기 위해서는 뽑기의 한 변의 길이가 몇 센티미터(㎝)가 되어야 하는지 구하시오.

Answer: 21

Solution (Python):
var_a = 63
var_b = 42
var_c = math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Box (A) is full when you put four box (B) in it, and box (B) becomes full when you put six box (C) in it. How many box (C) should you put in box (A) to make it full?
Question (KO): (가) 상자는 (나) 상자를 4개 넣으면 꽉 차고, (나) 상자는 (다) 상자를 6개 넣으면 꽉 찹니다. (가) 상자는 (다) 상자를 몇 개 넣으면 꽉 찹니까?

Answer: 24

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

Question (EN): 169 is 108 greater than a certain number. What number is 125 greater than the certain number?
Question (KO): 169는 어떤 수보다 108 큰 수이다. 어떤 수보다 125 큰 수는 얼마인가?

Answer: 186

Solution (Python):
var_a = 169
var_b = 108
var_c = var_a - var_b
var_d = 125
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): There are three bottles, A, B, and C, each with different sizes. 7 bottles of A and 3 bottles of B have the same capacity, and 1 bottle of B and 5 bottles of C are the same. How many bottles of C are equal to 21 bottles of A?
Question (KO): 들이가 서로 다른 A, B, C 3개의 병이 있습니다. A병 7개와 B병 3개의 들이는 같고, B병 1개의 들이와 C병 5개의 들이는 같습니다. A병 21개의 들이는 C병 몇 개의 들이와 같습니까?

Answer: 45

Solution (Python):
var_a = 21
var_b = 7
var_c = var_a / var_b
var_d = 3
var_e = var_c * var_d
var_f = 1
var_g = var_e / var_f
var_h = 5
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The TV license fee is 30 won per 10 seconds. If Mingyu watched TV for 2 minutes and 40 seconds, how much would the license fee be?
Question (KO): 티비 수신료는 10초당 30원입니다. 민규가 2분 40초 동안 티비를 봤다면 수신료는 얼마입니까?

Answer: 480

Solution (Python):
var_a = 2
var_b = 60
var_c = var_a * var_b
var_d = 40
var_e = var_c + var_d
var_f = 10
var_g = var_e / var_f
var_h = 30
var_i = var_g * var_h
print(int(var_i))
Category: Comparison

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

Answer: 0.5

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.7
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Possibility

Question (EN): Find the number of two-digit integers that can be made by drawing 2 cards from 5 cards each containing the numbers 0, 1, 2, 3, and 4.
Question (KO): 0, 1, 2, 3, 4의 수가 각각 적힌 5장의 카드에서 2장을 뽑아 만들 수 있는 두 자리의 정수의 개수를 구하시오.

Answer: 16

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 = len(list_b)
print(int(var_g))
Category: Geometry

Question (EN): Find how many diagonals are in a hendecagon.
Question (KO): 십일각형의 모든 대각선의 개수를 구하시오.

Answer: 44

Solution (Python):
var_a = 11
var_b = 11
var_c = 3
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: Geometry

Question (EN): To decorate the tree, you made several triangles using wire. The length of the wire was 84 centimeters (cm) before the decoration, and the wire became 12 centimeters (cm) at the end. Given that each triangle had a side length of 1 centimeter (cm), how many triangles can be made?
Question (KO): 트리를 꾸미기 위해 철사를 이용해 삼각형을 여러 개 만들었습니다. 트리를 꾸미기 전의 철사 길이는 84센티미터(㎝)였고, 트리를 완성한 후의 철사 길이는 12센티미터(㎝)이며, 삼각형 하나의 한 변의 길이는 1센티미터(㎝)일 때 몇 개의 삼각형을 만들었습니까?

Answer: 24

Solution (Python):
var_a = 84
var_b = 12
var_c = var_a - var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
print(int(var_g))
Category: Comparison

Question (EN): The distance from the house to the stationery store is 11/20 kilometers (km), and from the house to the pharmacy is 0.53 kilometers (km). Which is longer, the distance from your house to the stationery store or the distance from your house to the pharmacy?
Question (KO): 집에서 문구점까지의 거리는 11/20킬로미터(㎞)이고, 집에서 약국까지는 0.53킬로미터(㎞)입니다. 집에서 문구점까지의 거리와 집에서 약국까지의 거리 중 어느 곳이 더 멉니까?

Answer: stationery

Solution (Python):
var_a = 'stationery'
var_b = 'pharmacy'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 0.55
var_d = 0.53
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): You are trying to make the length of the tape for Minyoung and Yoojung the same. Minyoung has 17 meters (m) and 48 centimeters (cm), and Yoojung has 850 centimeters (cm). How much tape should Minyoung give to Yoojung?
Question (KO): 민영이와 유정이가 가지고 있는 테이프의 길이를 같게 하려고 합니다. 민영이는 17미터(m) 48센티미터(㎝) 가지고 있고 유정이는 850센티미터(㎝) 가지고 있습니다. 민영이는 유정이에게 테이프를 얼마나 주어야할까요?

Answer: 449

Solution (Python):
var_a = 17
var_b = 100
var_c = var_a * var_b
var_d = 48
var_e = var_c + var_d
var_f = 850
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Comparison

Question (EN): There are 4 marbles (A), (B), (C), (D). Marble (B) is smaller than marble (D) and bigger than marble (C). If marble (A) is bigger than marble (D), find the smallest marble.
Question (KO): (가), (나), (다), (라) 4개의 구슬이 있다. (나) 구슬은 (라)구슬보다 작고, (다) 구슬보다 크다. (가) 구슬은 (라) 구슬보다 클 때, 가장 작은 구슬을 구하여라.

Answer: (C)

Solution (Python):
var_a = '(A)'
var_b = '(B)'
var_c = '(C)'
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 = '(B)'
var_f = '(D)'
var_g = '<'
var_h = '(A)'
var_i = '(D)'
var_j = '>'
var_k = '(B)'
var_l = '(C)'
var_m = '>'
list_b= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
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()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Arithmetic calculation

Question (EN): When the bus carrying 32 passengers arrived at the bus stop, 13 passengers got off and 19 passengers got on. How many people are left on the bus?
Question (KO): 32명이 타고 있는 버스가 정류장에 도착하자 13명이 내리고 19명이 탔습니다. 버스에 남아 있는 사람은 몇 명일까요?

Answer: 38

Solution (Python):
var_a = 32
var_b = 19
var_c = var_a + var_b
var_d = 13
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Write the smallest of the five-digit numbers that are divided into 2, 3, or 5.
Question (KO): 다섯 자리 수 중에서 2, 3, 5로 나누어떨어지는 수 중 가장 작은 수를 쓰시오.

Answer: 10020

Solution (Python):
var_a = 10000
var_b = 10000
var_c = 10
var_d = var_b * var_c
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_a, var_f + 1, var_g)]
var_h = 2
list_b = []
var_h = int(var_h)
for i in list_a:
    i = int(i)
    if i % var_h == 0:
        list_b.append(i)
var_i = 3
list_c = []
var_i = int(var_i)
for i in list_b:
    i = int(i)
    if i % var_i == 0:
        list_c.append(i)
var_j = 5
list_d = []
var_j = int(var_j)
for i in list_c:
    i = int(i)
    if i % var_j == 0:
        list_d.append(i)
var_k = 1
list_e=list_d.copy()
list_e.sort()
var_l = list_e[var_k-1]
print(int(var_l))
Category: Correspondence

Question (EN): When a number is divided by 6, the quotient is 124 and the remainder is 4. What is the remainder when you add 24 to this number and divide it by 8?
Question (KO): 숫자를 6으로 나누면 몫은 124이고 나머지는 4입니다. 숫자에 24를 더하고 8로 나누면 얼마입니까?

Answer: 4

Solution (Python):
var_a = 124
var_b = 6
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 24
var_g = var_e + var_f
var_h = 8
var_i = var_g % var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You are attaching posters measuring 30 centimeters (cm) in width and 20 centimeters (cm) in height to the wall. 15 posters are to be attached horizontally in succession, overlapping each other by 2 centimeters (cm). Find the minimum width of the wall in centimeters (cm) to attach all the posters. 
Question (KO): 벽에 가로가 30센티미터(㎝), 세로가 20센티미터(㎝)인 포스터를 붙힌다. 포스터를 가로로 연속해서 15장을 붙히는데 2센티미터(㎝)씩 겹쳐서 붙힌다. 포스터를 모두 붙히려면 벽의 가로가 최소 몇 센티미터(㎝) 이상이어야 하는지 구하시오.

Answer: 422

Solution (Python):
var_a = 30
var_b = 15
var_c = var_a * var_b
var_d = 15
var_e = 1
var_f = var_d - var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i))
Category: Correspondence

Question (EN): A3+31=54 is true. What is A?
Question (KO): A3+31=54이 성립합니다. A는 무엇인가요?

Answer: 2

Solution (Python):
var_a = 'A3+31=54'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
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] = 1
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]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Arithmetic calculation

Question (EN): When writing numbers from 1 to 125, find out how many times all the numbers 2 are written.
Question (KO): 1부터 125까지 수를 차례대로 적을 때, 숫자 2는 모두 몇 번 쓰는지 구하시오.

Answer: 29

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

Question (EN): It is said that street trees are planted on both sides of the road at intervals of 25 meters (m). The length of the road is 2575 meters (m) and trees are also planted at the beginning and end of the road. How many trees are needed in total?
Question (KO): 25미터(m) 간격으로 도로 양쪽에 가로수를 심는다고 합니다. 도로의 길이는 2575미터(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: Comparison

Question (EN): Find the number of numbers greater than 0.4 among 0.8, 1/2, and 0.3.
Question (KO): 0.8, 1/2, 0.3 중 0.4보다 큰 수의 개수를 구하시오.

Answer: 2

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.3
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: Geometry

Question (EN): Some cubes have edges of 5 centimeters (cm). In the middle of all the faces of this cube, I tried to dig out a cube shape with an edge length of 1 centimeter (cm), but I accidentally forgot to dig one out. Find the volume in cubic centimeters (cm3) of this shape.
Question (KO): 어떤 정육면체는 모서리가 5센티미터(㎝)이다. 이 정육면체의 모든 면 한가운데에서 모서리의 길이가 1센티미터(㎝)인 정육면체 모양을 파내려고 했는데, 실수로 하나는 깜빡하고 파내지 못했다. 이 도형의 부피는 몇 세제곱센티미터(㎤)인지 구하라.

Answer: 120

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d ** var_e
var_g = 5
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i))
Category: Geometry

Question (EN): A rectangle has a sum of 4 sides equal to 38 centimeters (cm). If the long side of this rectangle is 12 centimeters (cm), how many centimeters (cm) is the short side?
Question (KO): 네 변의 길이의 합이 38 센티미터(㎝) 인 직사각형이 있습니다. 이 직사각형의 긴 변의 길이가 12센티미터(㎝) 이면, 짧은 변의 길이는 몇 센티미터(㎝) 입니까?

Answer: 7

Solution (Python):
var_a = 38
var_b = 2
var_c = var_a / var_b
var_d = 12
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Yoojung collected 5 and 8, and Yuna collected 7 and 9. Who has the greatest sum of numbers?
Question (KO): 유정이는 5, 8을 모았고, 유나는 7과 9를 모았습니다. 모은 수의 합이 큰 사람은 누구인가요?

Answer: Yuna

Solution (Python):
var_a = 'Yoojung'
var_b = 'Yuna'
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 = 5
var_d = 8
var_e = var_c + var_d
var_f = 7
var_g = 9
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: Geometry

Question (EN): Create a cube using string, and the volume of the cube at its largest is 3375 cubic centimeters (cm3). Find the length of the string.
Question (KO): 끈을 이용하여 정육면체를 만들고 정육면체의 넓이가 가장 클 때의 부피는 3375세제곱센티미터(㎤)입니다. 끈의 길이를 구하십시오.

Answer: 180

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

Question (EN): There are buttons with two numbers written on them. The difference between the numbers on the buttons is 480. When you divide the larger number by the smaller number, you get a quotient of 4 and a remainder of 30. Find what the larger number is.
Question (KO): 앞에 두 숫자가 적힌 버튼이 있습니다. 두 버튼에 적힌 숫자의 차는 480이고, 적힌 수 중 큰 수를 작은 수로 나누면 몫이 4, 나머지가 30이 나옵니다. 적혀있는 수 중 큰 수는 얼마입니까?

Answer: 630

Solution (Python):
var_a = 480
var_b = 30
var_c = var_a - var_b
var_d = 4
var_e = 1
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 4
var_i = var_g * var_h
var_j = 30
var_k = var_i + var_j
print(int(var_k))
Category: Comparison

Question (EN): The five students, Yoongi, Jungkook, Yuna, Yoojung, and Taehyung, each have the numbers 7, 6, 9, 8, and 10. Who has the smallest number?
Question (KO): 다섯 명의 학생 윤기, 정국, 유나, 유정, 태형은 각각 7, 6, 9, 8, 10만큼의 숫자를 가지고 있습니다. 제일 작은 숫자를 가진 사람은 누구입니까?

Answer: Jungkook

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
var_d = 'Yoojung'
var_e = 'Taehyung'
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 7
var_g = 6
var_h = 9
var_i = 8
var_j = 10
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
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)