philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Find the sum of the even numbers from 1 to 10 that are less than or equal to 6.
Question (KO): 1부터 10까지의 짝수 중 6이하의 수의 총합을 구하시오.

Answer: 12

Solution (Python):
var_a = 1
var_b = 10
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = 6
list_b = []
for i in list_a:
    if i <= var_c:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_d = sum(list_b)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): How many four-digit numbers are divisible by the four numbers 2, 3, 8, and 9?
Question (KO): 4개의 수 2, 3, 8, 9로 나누어 떨어질 수 있는 네 자리 수는 모두 몇 개 있습니까?

Answer: 125

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
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 = 3
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = len(list_e)
print(int(var_h))
Category: Correspondence

Question (EN): Add a number to 52, multiply by 3, subtract 60, and divide by 8, and get 15.Find the number.
Question (KO): 52에 어떤 수를 더하여 3을 곱한 뒤 60을 빼고 8로 나누었더니 15가 되었습니다. 어떤 수를 구하시오.

Answer: 8

Solution (Python):
var_a = 15
var_b = 8
var_c = var_a * var_b
var_d = 60
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
var_h = 52
var_i = var_g - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): I bought 3 notebooks at a stationery store for 750 won. How much should I pay if I buy 9 copies of the same notebook?
Question (KO): 문구점에서 750원으로 공책 3권을 샀습니다. 같은 공책 9권을 산다면 얼마를 내야 합니까?

Answer: 2250

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

Question (EN): The sum of the lengths of all the edges of a regular prism is 256 centimeters (cm). The length of the base is 4 times the width, and the height is 3 times the width. What is the length of this rectangular prism in centimeters (cm)?
Question (KO): 어떤 직육면체의 모든 모서리의 길이의 합은 256센티미터(㎝)입니다. 밑면의 세로 길이는 가로 길이의 4배이고, 높이는 가로 길이의 3배입니다. 이 직육면체의 세로 길이는 몇 센티미터(㎝)입니까?

Answer: 32

Solution (Python):
var_a = 256
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = 3
var_f = var_d + var_e
var_g = 1
var_h = var_f + var_g
var_i = var_c / var_h
var_j = 4
var_k = var_i * var_j
print(int(var_k))
Category: Geometry

Question (EN): There is a fishbowl in the shape of a cuboid. When the length of each corner is 4 centimeters (cm), 6 centimeters (cm), and 15 centimeters (cm), find the volume of the fish tank.
Question (KO): 직육면체 모양의 어항이 있다. 각 모서리의 길이는 4센티미터(㎝), 6센티미터(㎝), 15센티미터(㎝)일 때, 어항의 부피를 구하시오.

Answer: 360

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

Question (EN): There is a six-digit number A15B94 that can be made with the single-digit numbers A and B. When this number is divisible by 99, find the value that can be B.
Question (KO): 한 자리 수 A, B로 만들 수 있는 여섯 자리 수 A15B94가 있습니다. 이 수가 99의 배수일 때 B가 될 수 있는 값을 구하시오.

Answer: 3

Solution (Python):
var_a = 'A15B94'
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 = 99
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 = 'A15B94'
var_d = 'B'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
var_e = 0
for elem in list_b:
    elem = str(elem)
    var_e = int(elem[unk_idx])
print(int(var_e))
Category: Correspondence

Question (EN): When a number is multiplied by 9 and then divided by 3, it is 27. Find the number.
Question (KO): 어떤 수에 9를 곱한 후 3으로 나누었더니 27이 됩니다. 어떤 수를 구하시오.

Answer: 9

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

Question (EN): Toys come in 6 boxes, 8 in each box. How many boxes are needed to pack 4 toys in a box?
Question (KO): 장난감이 한 상자에 8개씩 6상자에 들어 있습니다. 장난감을 한 상자에 4개씩 넣어서 포장하려면 상자는 몇 개 필요합니까?

Answer: 12

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

Question (EN): When two of the number cards 4, 5, and 6 are used once to form the smallest two-digit number, what is the number of unused cards?
Question (KO): 숫자 카드 4, 5, 6 중 2장을 한 번씩 모두 사용하여 가장 작은 두 자리 수를 만들 때, 사용하지 않는 카드의 숫자는 무엇입니까?

Answer: 6

Solution (Python):
var_a = 4
var_b = 5
var_c = 6
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 = 2
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]
list_d = []
var_f = int(var_f)
while var_f//10 > 0:
    list_d.append(var_f%10)
    var_f = var_f//10
list_d.append(var_f%10)
list_d = list_d[::-1]
list_e = list(set(list_a) - set(list_d))
var_g = 1
var_h = list_e[var_g-1]
print(int(var_h))
Category: Comparison

Question (EN): The following is the long jump record of four people : Kyungsoo 2.3 meters (m), Younghee 9/10 meters (m), Jinju 1.8 meters (m), Chanho 2.5 meters (m). Who among these following people jumped the second furthest?
Question (KO): 다음은 네 사람의 멀리뛰기 기록이다. 경수 2.3미터(m), 영희 9/10미터(m), 진주 1.8미터(m), 찬호 2.5미터(m). 다음 중 두 번째로 멀리 뛴 사람을 구하시오.

Answer: Kyungsoo

Solution (Python):
var_a = 'Kyungsoo'
var_b = 'Younghee'
var_c = 'Jinju'
var_d = 'Chanho'
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.3
var_f = 0.9
var_g = 1.8
var_h = 2.5
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: Correspondence

Question (EN): When A is divided by B, the quotient is C and the remainder is 4. A, B, and C are natural numbers. If B and C are equal, find the smallest possible number of A.
Question (KO): A를 B로 나눴을 때 몫이 C, 나머지가 4 였습니다. A, B, C는 자연수 입니다. B와 C가 같을 때, 가능한 A 중 가장 작은 수를 구하시오.

Answer: 29

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

Question (EN): Minsu plans to go on a bicycle trip for 28 days. If he must travel a total distance of 82.04 kilometers (km) and the same distance a day, find how many kilometers (km) are required to take in one day.
Question (KO): 민수는 28일 동안 자전거 여행을 떠날 계획이다. 여행해야 하는 총 거리가 82.04킬로미터(㎞)이고 하루에 같은 거리를 여행하는 경우 하루에 몇킬로미터(㎞)를 여행해야 하는지 구하십시오.

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

Question (EN): There is an auditorium in the shape of a square with a side length of 14.25 meters (m). Find the area in square meters (m2) of this auditorium.
Question (KO): 한 변의 길이가 14.25미터(m)인 정사각형 모양의 강당이 있습니다. 이 강당의 넓이는 몇 제곱미터(㎡)인지 구하시오.

Answer: 203.06

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

Question (EN): You want to plant street trees on one side of a road that is 1500 meters (m) long at intervals of 25 meters (m). How many street trees do you need? (Note: trees are planted at the beginning and end of the road as well.)
Question (KO): 길이가 1500미터(m)인 도로의 한쪽에 25미터(m) 간격으로 가로수를 심으려고 합니다. 가로수는 몇 그루가 필요합니까? (단, 도로의 처음과 끝에도 나무를 심습니다.)

Answer: 61

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

Question (EN): Jihoon read 3 books this month, Taeyeon read 2 books, Dongyeop 5 books, Hanhae 3 books, and Kibum 1 book. How many of them have read 3 books this month?
Question (KO): 지훈이는 이번 달에 책을 3권 읽었고, 태연이는 2권, 동엽이는 5권, 한해는 3권, 기범이는 1권 읽었습니다. 이번 달에 책을 3권 읽은 친구는 몇 명입니까?

Answer: 3

Solution (Python):
var_a = 3
var_b = 2
var_c = 5
var_d = 3
var_e = 1
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 = 3
list_b = []
for i in list_a:
    if i >= var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 18 absent students are absent in Jungkook's school. If there are 848 male students and 49 fewer female students than male students, how many students came to school today?
Question (KO): 정국이네 학교에 18명의 학생이 결석했습니다. 남학생은 848명이고 여학생은 남학생보다 49명 더 적다고 할 때, 오늘 학교에 온 학생은 모두 몇 명입니까?

Answer: 1629

Solution (Python):
var_a = 848
var_b = 848
var_c = 49
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 18
var_g = var_e - var_f
print(int(var_g))
Category: Possibility

Question (EN): We want to create a three-digit natural number using the numbers 1, 2, and 3. When you can use the same number, find the sum of all numbers that can be made.
Question (KO): 숫자 1, 2, 3를 이용하여 세 자리 자연수를 만들고자 한다. 같은 수를 사용해도 될 때, 만들어지는 모든 수의 합을 구하여라.

Answer: 5994

Solution (Python):
var_a = 1
var_b = 2
var_c = 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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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_b = [float(i) for i in list_b]
var_e = sum(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): There are 45 chocolates 15 bags. 5 Find how many chocolates are in 5 bags.
Question (KO): 초콜릿 15 봉지에 초콜릿이 45개가 들어있습니다. 5 봉지에는 몇 개가 들어있는지 구하시오.

Answer: 15

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 5
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If the sum of two consecutive even numbers is 46, find the larger of the two even numbers.
Question (KO): 연속하는 두 짝수의 합이 46일 때 두 짝수 중 큰 수를 구하시오.

Answer: 24

Solution (Python):
var_a = 46
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): You want to write an even number less than or equal to 100. How many times do you write the number 0 in all?
Question (KO): 100보다 작거나 같은 짝수를 쓰려고 합니다. 숫자 0은 모두 몇번 써야 합니까?

Answer: 26

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

Question (EN): There are three bowls A, B, and C containing food in a refrigerator. Bowl C has more food than bowl B, and bowl B has more food than bowl A. When the bowl with the least amount of food is emptied first, which bowl is emptied first?
Question (KO): 냉장고에 음식이 담긴 A, B, C 그릇이 들어있습니다. C 그릇에는 B 그릇보다 많은 음식이 담겨있고, B 그릇에는 A 그릇보다 많은 음식이 담겨있습니다. 가장 적은 음식이 담겨있는 그릇을 먼저 비울 때, 먼저 비워지는 그릇은 무엇일까요?

Answer: A

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
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 = 'B'
var_e = 'A'
var_f = '>'
var_g = 'C'
var_h = 'B'
var_i = '>'
list_b= []
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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_j = len(list_c)
var_k = list_c[var_j-1]
print(var_k)
Category: Arithmetic calculation

Question (EN): If each person wants to eat 2/5 pizzas, how many pizzas you should buy to share it with 10 people?
Question (KO): 한 사람당 피자를 2/5판씩 먹으려고 한다면, 10명이 먹기 위해서는 피자를 몇 판 시켜야 합니까?

Answer: 4

Solution (Python):
var_a = 0.4
var_b = 10
var_c = var_a * var_b
print(int(var_c))
Category: Possibility

Question (EN): Jungkook wants to buy different fruits and give a present to Jimin and Yoongi. If the fruit shop sells apples, peaches, pears, and melons, how many number of ways are there for him to give a gift?
Question (KO): 정국이는 서로 다른 과일을 구매해서 지민과 윤기에게 선물하려고 합니다. 과일 가게에서 판매하는 과일이 사과, 복숭아, 배, 참외라면 선물할 수 있는 경우의 수는 모두 몇 가지입니까?

Answer: 12

Solution (Python):
var_a = 'apples'
var_b = 'peaches'
var_c = 'pears'
var_d = 'melons'
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 = len(list_a)
var_f = 2
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_e-i)
print(int(var_g))
Category: Geometry

Question (EN): You cannot draw a straight line between certain three points. How many semi-straight line can you make with these three points?
Question (KO): 어떤 세 점을 잇는 직선을 그릴 수 없습니다. 이 세 점으로 만들 수 있는 반직선의 개수는 무엇입니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 2
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
print(int(var_c))
Category: Possibility

Question (EN): Find the sum of the largest and smallest of the two-digit numbers that can be formed by drawing two different numbers from 3, 5, 7, and 8.
Question (KO): 3, 5, 7, 8 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 두 자리 수 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 122

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

Question (EN): How many boxes are needed to store 27 notebooks in 9 boxes?
Question (KO): 공책 27권을 한 상자에 9권씩 나눠 담기 위해서는 상자가 몇 개 필요한지 구하시오.

Answer: 3

Solution (Python):
var_a = 27
var_b = 9
var_c = var_a // var_b
print(int(var_c))
Category: Possibility

Question (EN): You want to create a three-digit number by picking three different numbers from 0, 1, 2, 3, and 5. How many three-digit numbers can you make?
Question (KO): 0, 1, 2, 3, 5 중 서로 다른 3개의 숫자를 뽑아서 세 자리 수를 만들려고 합니다. 만들 수 있는 세 자리 수는 모두 몇 개입니까?

Answer: 48

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 5
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 = 3
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: Arithmetic calculation

Question (EN): Gyuri had 1.6 kg (kg) of plums. She gave 0.8 kg (kg) to Sungmin and 0.3 kg (kg) to Dongju. How many remaining kilograms (kg) of plums does Gyuri have?
Question (KO): 규리에게 자두가 1.6킬로그램(㎏) 있었습니다. 성민이에게 0.8킬로그램(㎏) 나눠주고 동주에게 0.3킬로그램(㎏) 나눠줬습니다. 규리에게 남은 자두는 몇 킬로그램(㎏)입니까?

Answer: 0.5

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

Question (EN): There are total 240 marbles of yellow and blue marbles. How many yellow marbles are there if there are 2 fewer blue marbles than yellow marbles?
Question (KO): 노란 구슬과 파란 구슬이 모두 240개 있습니다. 파란 구슬이 노란 구슬보다 2개 적다면 노란 구슬은 몇 개입니까?

Answer: 121

Solution (Python):
var_a = 240
var_b = 2
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): It takes 30 minutes to collect 6/11 liters (l) of sap from a tree. How many minutes does it take to collect 8 liters (l) of sap from the same tree?
Question (KO): 나무에서 6/11리터(L)의 수액을 채취하는 데 30분이 걸립니다. 같은 나무의 수액을 8리터(L) 채취하는 데 걸리는 시간은 몇 분인가요?

Answer: 440

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

Question (EN): Jungkook can travel 2.7 kilometers (km) per hour. How many hours will it take Jimin to travel 4.86 kilometers (km) at the same speed?
Question (KO): 정국이는 한 시간 동안 2.7킬로미터(㎞)를 갈 수 있습니다. 지민이가 같은 빠르기로 4.86킬로미터(㎞)를 가는 데 몇 시간이 걸리겠습니까?

Answer: 1.8

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

Question (EN): There are 45 apples. There are 21 more apples than pears. If there are 18 more tangerines than pears, how many tangerines are there?
Question (KO): 사과가 45개 있습니다. 사과는 배보다 21개 많습니다. 귤이 배보다 18개 더 많다면 귤은 몇 개입니까?

Answer: 42

Solution (Python):
var_a = 45
var_b = 21
var_c = var_a - var_b
var_d = 18
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You want to cut a ribbon into 0.82 meter (m) each in order to make ribbon loops. Make a loop with 53.73 meters (m) of ribbon and find how many millimeters (mm) of this ribbon are left.
Question (KO): 리본 고리를 만들기 위해 리본을 0.82미터(m)씩 자르려고 합니다. 리본 53.73미터(m)로 고리를 만들고 남는 리본은 몇 밀리미터(㎜)인지 구하시오.

Answer: 430

Solution (Python):
var_a = 53.73
var_b = 0.82
var_c = var_a % var_b
var_d = 1000
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Possibility

Question (EN): You want to create a three-digit number using five different single-digit numbers. How many ways are there to have different digits?
Question (KO): 서로 다른 한 자리 수 5개를 이용하여 세 자리 수를 만들고자 한다. 각 자리수가 모두 다른 경우는 몇 가지인가?

Answer: 60

Solution (Python):
var_a = 1
var_b = 5
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]
var_e = len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): Wrapping paper was attached to the outer surface of a cuboid measuring 6 centimeters (cm) wide, 5 centimeters (cm) long, and 4 centimeters (cm) high. When this cuboid is cut into 120 cubes with a volume of 1 cubic centimeter (cm3), find the number of cubes without wrapping paper attached.
Question (KO): 가로 6센티미터(㎝), 세로 5센티미터(㎝), 높이 4센티미터(㎝)인 직육면체의 겉면에 포장지를 빈틈없이 붙였습니다. 이 직육면체를 부피가 1세제곱센티미터(㎤)인 정육면체 120개로 잘랐을 때, 포장지가 붙어있지 않은 정육면체 조각의 개수를 구하시오.

Answer: 24

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a - var_b
var_d = 5
var_e = 2
var_f = var_d - var_e
var_g = var_c * var_f
var_h = 4
var_i = 2
var_j = var_h - var_i
var_k = var_g * var_j
print(int(var_k))
Category: Possibility

Question (EN): There are 4 different pairs of pants and 2 skirts. You want to wrap 3 of these in 3 different wrapping paper. How many cases can be made?
Question (KO): 서로 다른 바지 4벌과 치마 2벌이 있다. 이 중 3벌을 뽑아 각자 다른 포장지 3개에 각각 포장하고 싶다. 몇 가지 경우가 생길 수 있는가?

Answer: 720

Solution (Python):
var_a = 4
var_b = 2
var_c = var_a + var_b
var_d = 3
var_e = 1
var_c = int(var_c)
var_d = int(var_d)
for i, elem in enumerate(range(var_d)):
    var_e = var_e * (var_c-i)
var_f = 3
var_g = 3
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
var_i = var_e * var_h
print(int(var_i))