philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): All possible three-digit natural numbers were made by picking three out of the ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 and arranging them in a row. Among these, find the largest even number of no more than 300. 
Question (KO): 10개의 숫자 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 중 서로 다른 세 개를 택하여 일렬로 나열하여 만든 세 자리의 자연수 중 300 이하의 짝수 중 가장 큰 값을 구하시오.

Answer: 298

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
var_g = 6
var_h = 7
var_i = 8
var_j = 9
list_a= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_a.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
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_k = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_k))
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_l = 300
list_c = []
for i in list_b:
    if i <= var_l:
        list_c.append(i)
var_m = 2
list_d = []
var_m = int(var_m)
for i in list_c:
    i = int(i)
    if i % var_m == 0:
        list_d.append(i)
var_n = 1
list_e=list_d.copy()
list_e.sort()
var_o = list_e[-var_n]
print(int(var_o))
Category: Arithmetic calculation

Question (EN): We plan to build six houses at regular intervals in a city of 11.5 kilometers (km). If you build houses at both ends of the city, how many kilometers (km) apart should the houses be?
Question (KO): 집을 6채 일정한 간격으로 11.5킬로미터(㎞) 도시에 지으려고 합니다. 도시의 양 끝에도 집을 짓는다고 할 때 집과 집사이의 거리는 몇 킬로미터(㎞)이어야 하나요?

Answer: 2.3

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

Question (EN): Use the number cards 1 through 9 once each to create three-digit numbers. If these numbers are arranged from the largest to smallest, in what place would 964 come?
Question (KO): 1부터 9까지의 숫자 카드를 한 번씩 사용하여 세 자리 수를 만듭니다. 큰 수부터 차례로 늘어놓을 때, 964는 몇 번째 수입니까?

Answer: 18

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

Question (EN): An elephant train with a length of 15 meters (m) is running at 275 centimeters (cm) per second. If it took 48 seconds for this train to pass completely through the bridge, find the length in meters (m) of the bridge.
Question (KO): 길이가 15미터(m)인 코끼리 열차가 1초에 275센티미터(㎝)씩 달리고 있습니다. 이 열차가 다리를 완전히 통과하는 데 48초가 걸렸다면 다리의 길이는 몇 미터(m)인지 구하시오.

Answer: 117

Solution (Python):
var_a = 275
var_b = 100
var_c = var_a / var_b
var_d = 48
var_e = var_c * var_d
var_f = 15
var_g = var_e - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): The warehouse received 318 boxes on the first day, 312 boxes on the second day, and 180 and 162 boxes separately on the third day. What is the average number of boxes received per day by the third day?
Question (KO): 창고에 첫 째날에는 318개의 상자가 들어오고 둘 째날에는 312개의 상자가 들어오고 셋 째 날에는 180개와 162개가 나뉘어 들어왔습니다. 셋 째날까지 들어온 상자의 평균 개수는 몇 개입니까?

Answer: 324

Solution (Python):
var_a = 318
var_b = 312
var_c = var_a + var_b
var_d = 180
var_e = 162
var_f = var_d + var_e
var_g = var_c + var_f
var_h = 3
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): To make confetti, you are going to cut a strip of paper 0.3 cm (cm) at a time. How many centimeters (cm) of paper strips are left after making confetti from a 15.7 cm (cm) paper strip?
Question (KO): 종이 꽃가루를 만들기 위해 종이띠를 0.3센티미터(㎝)씩 자르려고 합니다. 종이띠 15.7센티미터(㎝)로 종이 꽃가루를 최대한 만들고 남는 종이띠는 몇 미터(㎝) 입니까?

Answer: 0.1

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

Question (EN): There are 4 boxes (A), (B), (C), and (D). Box (B) is smaller than box (D). Box is (A) larger than box (D). Box (B) is larger than box (C). Which box is the smallest in size?
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: Geometry

Question (EN): The length of the base of the trapezoid is 25 centimeters (cm), and the length of the top side is (a) centimeters (cm). If the distance between the two sides is 13 centimeters (cm), and the area of this trapezoid is 286 square centimeters (cm2), what is the correct number for (a)?
Question (KO): 사다리꼴의 밑 변의 길이는 25센티미터(㎝)이고, 윗 변의 길이는 (가)센티미터(㎝)입니다. 두 변 사이의 거리는 13센티미터(㎝)이고, 이 사다리꼴의 넓이는 286제곱센티미터(㎠)라면, (가)에 알맞은 숫자는 무엇입니까?

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: Comparison

Question (EN): Hyunjeong stacked up 15 red boxes and Seulgi stacked up 20 yellow boxes. When the heights of one red box and one yellow box are 4.2 cm and 3.3 cm respectively, find out who stacked up the box the highest.
Question (KO): 현정이는 빨간 상자 15개를, 슬기는 노란 상자 20개를 높이 쌓았다 .빨간 상자, 노란 상자의 1개의 높이는 각각 4.2센티미터(㎝), 3.3센티미터(㎝) 일때 상자를 가장 높이 쌓은 사람인 누구인지 구하시오.

Answer: Seulgi

Solution (Python):
var_a = 'Hyunjeong'
var_b = 'Seulgi'
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 = 4.2
var_d = 15
var_e = var_c * var_d
var_f = 3.3
var_g = 20
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: Arithmetic calculation

Question (EN): 7/10 of the water remains in the 10 liter (L) bucket. How many liters (liters) of water do you need to fill in one bottle to divide the remaining water equally into 4 bottles?
Question (KO): 10리터(L)짜리 물통에 물이 7/10만큼 남아 있습니다. 남은 물을 물병 4개에 똑같이 나누어 담으려면 물병 한 개에 담아야 할 물은 몇 리터(L)인가요?

Answer: 1.75

Solution (Python):
var_a = 10
var_b = 0.7
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: Comparison

Question (EN): 20 students lined up in a single line. Eleven students are standing in front of Yoongi. How many students are standing behind Yoongi?
Question (KO): 20명의 학생들이 한 줄로 줄을 섰습니다. 윤기의 앞에 11명의 학생들이 서 있습니다. 윤기의 뒤에 서 있는 학생은 몇 명입니까?

Answer: 8

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

Question (EN): If 5 basketball teams play each other twice, how many games are there altogether?
Question (KO): 5개의 농구팀이 서로 두번씩 경기를 한다면 경기는 모두 몇 번있는가?

Answer: 20

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

Question (EN): Find the sum of the factors of 32.
Question (KO): 32의 약수들의 총합을 구하시오.

Answer: 63

Solution (Python):
var_a = 32
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))
list_a = [float(i) for i in list_a]
var_b = sum(list_a)
print(int(var_b))
Category: Possibility

Question (EN): There are nine number cards with numbers from 1 to 9 written on them. How many ways can you draw 3 of these cards so that the sum is 17?
Question (KO): 1부터 9까지의 숫자가 적힌 9장의 숫자 카드가 있다. 이 중에서 3장의 카드를 꺼내 합이 17이 되게 하는 방법은 모두 몇 가지인가?

Answer: 42

Solution (Python):
var_a = 1
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 17
var_g = 0
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Five years ago, the mother was four times the daughter's age. Eight years from this year, the sum of the ages of mother and daughter will be 71. How old is the mother this year?
Question (KO): 5년 전에 어머니 나이는 딸 나이의 4배였습니다. 올해부터 8년 후 어머니와 딸의 나이의 합은 71살이 됩니다. 올해 어머니의 나이는 몇 살입니까?

Answer: 41

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

Question (EN): When Hoseok bought 2 persimmons and 7 apples, how many fruits did Hoseok buy?
Question (KO): 호석이가 감 2개와 사과 7개를 샀을 때, 호석이가 산 과일의 수는 몇인가요?

Answer: 9

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

Question (EN): Find how many numbers from 1 to 12 are multiples of 3.
Question (KO): 1에서 12까지의 숫자 중 3의 배수는 모두 몇 개인지 구하세요.

Answer: 4

Solution (Python):
var_a = 1
var_b = 12
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
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 = len(list_b)
print(int(var_e))
Category: Possibility

Question (EN): Find the number of cases of selecting 9 balls using at least 1 of each of the 3 different balls and allowing duplicates.
Question (KO): 서로 다른 3개의 공을 각각 1개 이상씩 뽑으면서 중복을 허용하여 9개를 뽑는 경우의 수를 구하시오.

Answer: 28

Solution (Python):
var_a = 3
var_b = 9
var_c = var_a + var_b
var_d = 3
var_e = 1
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 1
var_i = var_g - var_h
var_j = 9
var_k = 3
var_l = 1
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: Arithmetic calculation

Question (EN): There was juice in the fridge. Of this, the father drank 1/6 of the total, and the mother drank the remaining 2/5. After Hyo-geun drank 2/3 of the remaining juice from father and mother, if the amount of juice remaining was 120 milliliters (ml), how many milliliters (ml) of juice was initially in the refrigerator?
Question (KO): 냉장고에 주스가 있었습니다. 이 중에서 아버지가 전체의 1/6을 마시고, 나머지 2/5를 어머니가 마셨습니다. 아버지와 어머니가 마시고 남은 주스의 2/3을 효근이가 마시고 난 후, 남은 주스의 양이 120밀리리터(㎖)였다면 처음에 냉장고에 있었던 주스의 양은 몇 밀리리터(㎖)입니까?

Answer: 720

Solution (Python):
var_a = 120
var_b = 1
var_c = 0.16666666666666666
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 1
var_g = 0.4
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 1
var_k = 0.6666666666666666
var_l = var_j - var_k
var_m = var_i / var_l
print(int(eval('{:.2f}'.format(round(var_m+1e-10,2)))))
Category: Correspondence

Question (EN): The five-digit number AB40C is a multiple of 45. Think of five-digit numbers like this. How many can you find?
Question (KO): 다섯 자리 수 AB40C은 45의 배수이다. 이러한 다섯 자리 수는 모두 몇 가지인지 구하여라.

Answer: 20

Solution (Python):
var_a = 'AB40C'
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 = 45
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 = len(list_b)
print(int(var_c))
Category: Correspondence

Question (EN): I'm going to pack 90 beads, but there should be no beads left after packing them. Find how many can fit in one package.
Question (KO): 90개의 구슬을 몇 개씩 포장하려하는데 포장하고 남는 구슬이 없어야 한다. 한 개의 포장에 들어갈 수 있는 수의 개수를 구하시오.

Answer: 12

Solution (Python):
var_a = 90
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 = len(list_a)
print(int(var_b))
Category: Geometry

Question (EN): Seokjun drew a rhombus by connecting the dots in the middle of each side of a square with a circumference of 96 centimeters (cm). What is the area, in square centimeters (cm2), of the rhombus you drew?
Question (KO): 석준이는 둘레가 96센티미터(㎝)인 정사각형의 각 변의 한가운데 점을 이어 마름모를 그렸습니다. 그린 마름모의 넓이는 몇 제곱센티미터입니까?

Answer: 288

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

Question (EN): Streetlights are to be erected at intervals of 4 meters (m) from start to finish on both sides of a road that is 260 meters (m) long. Find how many streetlights you need.
Question (KO): 길이가 260미터(m)인 도로의 양쪽에 처음부터 끝까지 4미터(m) 간격으로 가로등을 세우려고 합니다. 필요한 가로등은 모두 몇 개인지 구해 보시오.

Answer: 132

Solution (Python):
var_a = 260
var_b = 4
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): Seongjae's class is made up of 7 groups, with 6 students in each group. 14 bundles of 105 sheets of colored paper were distributed equally to Seongjae's classmates, and there were 84 sheets left. How many pieces of colored paper were handed out to each person?
Question (KO): 성재네 반 학생은 한 모둠에 6명씩 7모둠입니다. 한 묶음에 105장인 색종이 14묶음을 성재네 반 학생들에게 똑같이 나누어 주었더니 84장이 남았습니다. 한 사람에게 나누어 준 색종이는 몇 장입니까?

Answer: 33

Solution (Python):
var_a = 105
var_b = 14
var_c = var_a * var_b
var_d = 84
var_e = var_c - var_d
var_f = 6
var_g = 7
var_h = var_f * var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Street trees are to be planted every 6.4 meters (m) on one side of a road with a length of 268.8 meters (m). Find the number of trees needed if you plant trees at both the beginning and end of the road.
Question (KO): 길이가 268.8미터(m)인 도로의 한쪽에 6.4미터(m) 간격으로 가로수를 심으려고 합니다. 도로의 처음과 끝에 모두 나무를 심는다면 나무는 몇 그루 필요합니까??

Answer: 43

Solution (Python):
var_a = 268.8
var_b = 6.4
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a rectangular prism that has all its edges the same length. If the sum of the lengths of all the edges of this square prism is 72 centimeters (cm), how many centimeters (cm) is the length of one edge?
Question (KO): 모서리의 길이가 모두 같은 사각기둥이 있습니다. 이 사각기둥의 모든 모서리의 길이의 합이 72센티미터(㎝)일 때 한 모서리의 길이는 몇 센티미터(㎝)인지 구해 보세요.

Answer: 6

Solution (Python):
var_a = 72
var_b = 4
var_c = 3
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If the length of the long rod is 14/15 meters (m), and it is 1/10 meter (m) longer than the short rod, how many meters (m) is the sum of the lengths of the long rod and the short rod?
Question (KO): 긴 낚시대의 길이는 14/15미터(m)이고, 짧은 낚시대보다 1/10미터(m) 길다면, 긴 낚시대와 짧은 낚시대의 길이의 합은 몇 미터(m)일까요?

Answer: 1.77

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

Question (EN): How many numbers between 0.8, 1/2 are less than or equal to 0.4?
Question (KO): 0.8, 1/2 중에서 0.4보다 작거나 같은 수는 몇 개입니까?

Answer: 0

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

Question (EN): The vase is placed 5th from the right and 4th from the left on one level of a shelf. The number of vases on each floor is the same, and there are 10 shelves. If the flower shop has a total of 1600 vases, how many shelves are there in total?
Question (KO): 꽃병은 어느 선반의 한 층의 오른쪽에서 5번째, 왼쪽에서 4번째에 놓여 있습니다. 각 층마다 놓여 있는 꽃병의 수는 같고 선반은 10층 입니다. 꽃 가게에 꽃병이 총 1600개가 있을 때, 선반은 모두 몇 개 입니까?

Answer: 20

Solution (Python):
var_a = 1600
var_b = 5
var_c = 4
var_d = var_b + var_c
var_e = 1
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_a // var_h
print(int(var_i))
Category: Comparison

Question (EN): 20 students are waiting for the bus. If 11 people came before Yoongi, how many people came later than Yoongi?
Question (KO): 20명의 학생들이 버스를 기다리고 있습니다. 윤기보다 먼저 온 사람은 11명이라면 윤기보다 늦게 온 사람은 몇 명입니까?

Answer: 8

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

Question (EN): There are 7 packs of pencils. There are 3 fewer pencils than colored pencils. If there are 10 pencils in a pack of pencils, how many colored pencils are there?
Question (KO): 연필이 7묶음 있습니다. 연필이 색연필 보다 3자루 더 적습니다. 연필 1묶음에 10자루일 때 색연필은 몇 자루인지 구하시오

Answer: 73

Solution (Python):
var_a = 7
var_b = 10
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Su-hee's height is 1 meter (m) 35 centimeters (cm), and when Su-hee grows by 9 centimeters (cm), she will be the same height as her brother. Express the height in meters (m) of Su-hee's brother as a decimal number.
Question (KO): 수희의 키는 1미터(m) 35센티미터(㎝)이고, 수희가 9센티미터(㎝)를 자라면 오빠와 키가 같아진다고 합니다. 수희의 오빠의 키는 몇 미터(m)인지 소수로 나타내시오.

Answer: 1.44

Solution (Python):
var_a = 1
var_b = 35
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 9
var_g = 100
var_h = var_f / var_g
var_i = var_e + var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): You have a rectangle with a perimeter of 54 centimeters (cm). At this time, the horizontal length is 3 centimeters (cm) longer than the vertical length. Find the horizontal length.
Question (KO): 둘레의 길이가 54 센티미터(㎝)인 직사각형이 있다. 이 때, 가로의 길이가 세로의 길이보다 3 센티미터(㎝) 더 길다. 가로의 길이를 구하시오.

Answer: 15

Solution (Python):
var_a = 54
var_b = 2
var_c = var_a / var_b
var_d = 3
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 3
var_i = var_g + var_h
print(int(var_i))
Category: Geometry

Question (EN): You have a cookie in the shape of a regular hexagon with an area of 81.12 square centimeters (cm2). If 6 friends divide the cookie into equal parts and eat it, find the area in square centimeters (cm2) of the cookie eaten by one person.
Question (KO): 넓이가 81.12제곱센티미터(㎠)인 정육각형 모양의 쿠키가 있습니다. 이 쿠키를 6명의 친구가 등분하여 나누어 먹었다면, 한 명이 먹은 쿠키의 넓이는 몇 제곱센티미터(㎠)일지 구하시오.

Answer: 13.52

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

Question (EN): I climbed the mountain at 2 kilometers per hour (km), and when I came down, I walked 2 kilometers (km) further than when I went up, at 3 kilometers (km) per hour, and it took 4 hours. What is the distance of climbing down the mountain?
Question (KO): 등산을 하는데 올라갈 때는 시속 2 킬로미터(㎞)로, 내려올 때는 올라갈 때보다 2 킬로미터(㎞) 더 먼 길을 시속 3 킬로미터(㎞)로 걸어내려 왔더니, 4시간이 걸렸다. 내려온 거리는 얼마인가?

Answer: 6

Solution (Python):
var_a = 2
var_b = 4
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 = var_e / var_h
var_j = 3
var_k = var_i * var_j
print(int(var_k))
Category: Geometry

Question (EN): There is a square with a side of 6 centimeters (cm). By how many square centimeters (cm2) does the area of the square increase if the length of each side of the square is increased by 1 centimeter (cm)?
Question (KO): 한 변의 길이가 6센티미터(㎝)인 정사각형이 있습니다. 정사각형의 네 변의 길이를 각각 1 센티미터(㎝) 씩 늘이면 정사각형의 넓이는 몇 제곱센티미터(㎠) 늘어납니까?

Answer: 13

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a + var_b
var_d = 2
var_e = var_c ** var_d
var_f = 6
var_g = 2
var_h = var_f ** var_g
var_i = var_e - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Using 0.14 liters (L) of gasoline, you can travel 1 kilometer (km). How many liters (l) of gasoline do you need to travel 2 hours 30 minutes at 93.6 kilometers (km) in 1 hour?
Question (KO): 휘발유 0.14리터(L)를 이용하면 1킬로미터(㎞)를 이동할 수 있습니다. 1시간에 93.6킬로미터(㎞)씩 2시간 30분을 이동하기 위해선 휘발유가 몇 리터(L) 필요할까요?

Answer: 32.76

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

Question (EN): Hyuna walks 7000 meters (m) in an hour. Express as an integer of how many hours Hyuna must walk to reach 100000 meters (m).
Question (KO): 현아는 1시간에 7000미터(m)를 걷습니다. 현아가 100000미터(m)를 걸으려면 적어도 몇 시간을 걸어야 할 지 정수로 나타내세요.

Answer: 15

Solution (Python):
var_a = 100000
var_b = 7000
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))
Category: Correspondence

Question (EN): If 34 plus a certain number minus 53 is 28, what number is that?
Question (KO): 34과 어떤 수를 더한 값에 53을 빼면 28일 때, 어떤 수는 얼마입니까?

Answer: 47

Solution (Python):
var_a = 28
var_b = 53
var_c = var_a + var_b
var_d = 34
var_e = var_c - var_d
print(int(var_e))