philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): How many four-digit numbers are greater than 3200 and less than 4300?
Question (KO): 네 자리 수 중, 3200보다 크고 4300보다 작은 것은 몇 개인지 구하시오.

Answer: 1099

Solution (Python):
var_a = 3200
var_b = 1
var_c = var_a + var_b
var_d = 4300
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = len(list_a)
print(int(var_h))
Category: Geometry

Question (EN): The perimeter of a rectangle is 16 centimeters (cm), and its width is 2 centimeters (cm) longer than its length. What is the length of the width of this rectangle?
Question (KO): 어떤 직사각형의 둘레의 길이가 16 센티미터(㎝)이며, 가로의 길이는 세로의 길이보다 2 센티미터(㎝)만큼 길다. 이 직사각형의 가로의 길이는 얼마인가?

Answer: 5

Solution (Python):
var_a = 16
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
var_h = 2
var_i = var_g + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There are 58 cucumbers in the mart. The numbers of cucumbers are 24 more than carrots and 49 less than tomatoes. The number of radishes equals the number of carrots. How many cucumbers, carrots, tomatoes, and radishes are in the supermarket in total?
Question (KO): 마트에 오이가 58개 있습니다. 오이는 당근보다 24개 많고, 토마토보다 49개 적습니다. 무의 수는 당근의 수와 같습니다. 마트에 있는 오이, 당근, 토마토, 무는 모두 몇 개입니까?

Answer: 233

Solution (Python):
var_a = 58
var_b = 58
var_c = 24
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 58
var_g = 49
var_h = var_f + var_g
var_i = var_e + var_h
var_j = 58
var_k = 24
var_l = var_j - var_k
var_m = var_i + var_l
print(int(var_m))
Category: Correspondence

Question (EN): Insoo had to multiply a certain number by 1.36, but he mistakenly divided it and submitted 0.5 as an answer. If he calculated it correctly, what is the answer?
Question (KO): 인수는 수학 문제를 풀다 1.36을 곱해야 하는데 잘못하여 나누어서 0.5를 정답으로 제출하였습니다. 계산을 제대로 했다면 답이 얼마입니까?

Answer: 0.92

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

Question (EN): There is a caterpillar that travels 4 meters (m) in 2 minutes and a cicada larva that travels 4 meters (m) in 3 minutes at a constant speed. If this cicada larva, 24 meters (m) ahead of the caterpillar, sets off in the same direction at the same time, find out how many minutes later will the caterpillar and the cicada larva meet.
Question (KO): 일정한 빠르기로 2분에 4미터(m)를 가는 송충이와 3분에 4미터(m)를 가는 굼벵이가 있습니다. 이 굼벵이가 송충이보다 24미터(m)앞에서 동시에 같은 방향으로 출발했다면 몇 분 후에 송충이와 굼벵이가 만나는지 구해보시오.

Answer: 36

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

Question (EN): Multiplying a certain number by 9 and adding 1 is the same as multiplying that number by 10 and subtracting 100. Let the number be A, what is the remainder when A is divided by 7?
Question (KO): 한 숫자에 9를 곱하고 1을 더한 것은, 그 숫자에 10을 곱하고 100을 뺀 것과 같다. 그 숫자를 A라고 할 때, A를 7로 나눈 나머지를 구하시오.

Answer: 3

Solution (Python):
var_a = 1
var_b = 100
var_c = var_a + var_b
var_d = 10
var_e = 9
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 7
var_i = var_g % var_h
print(int(var_i))
Category: Geometry

Question (EN): A large square-shaped piece of paper is made from several small square-shaped pieces of paper. There were 20 small square-shaped pieces of paper left, so I tried to increase each side by 1 row, and 9 small pieces of paper were short. How many small square-shaped pieces of paper are there in total?
Question (KO): 큰 정사각형 모양의 종이는 작은 정사각형 모양의 종이 여러 장으로 만들어졌다. 작은 정사각형 종이가 20장 남아서 가로 한 변과 세로 한 변을 1열씩 늘리려고 하였더니 9개의 작은 종이가 부족하였다. 작은 정사각형 종이는 총 몇 장인가?

Answer: 216

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

Question (EN): What is the largest five-digit number divisible by both 3 and 4?
Question (KO): 숫자 3, 4로 나누어 떨어질 수 있는 다섯 자리 수 중 가장 큰 수는 무엇입니까?

Answer: 99996

Solution (Python):
var_a = 10000
var_b = 99999
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 = 4
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 = 1
list_d=list_c.copy()
list_d.sort()
var_g = list_d[-var_f]
print(int(var_g))
Category: Correspondence

Question (EN): The four-digit number A56B is divisible by 36. How many numbers fit for A?
Question (KO): 네 자리 수 A56B은 36으로 나누어 떨어진다. A에 알맞은 숫자는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 'A56B'
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 = 36
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 = 'A56B'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are boxes with 20 pairs of shoes in each box. There are 5 times more (B) shoes than (A) shoes and there are 8 boxes of (A) shoes. How many more pairs of (B) shoes do you have than (A) shoes?
Question (KO): 각 상자에 20켤레의 신발이 들어있는 상자들이 있습니다. (나) 신발이 (가) 신발보다 5배 많고 (가) 신발이 8상자 있습니다. (나) 신발은 (가) 신발보다 몇 켤레 더 많습니까?

Answer: 640

Solution (Python):
var_a = 8
var_b = 5
var_c = var_a * var_b
var_d = 8
var_e = var_c - var_d
var_f = 20
var_g = var_e * var_f
print(int(var_g))
Category: Geometry

Question (EN): Find the length of the base of a triangle with an area of 36 square centimeters (cm2) and a height of 8 centimeters (cm) .
Question (KO): 넓이가 36제곱센티미터(㎠)이며 높이가 8센티미터(㎝)인 삼각형의 밑변의 길이를 구하세요.

Answer: 9

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

Question (EN): How many natural numbers greater than 200 are formed by using the natural numbers 0, 1, 3, 5, and 6 without overlapping?
Question (KO): 자연수 0, 1, 3, 5, 6을 겹치지 않게 이용하여 세 자리 자연수를 만들 때, 200보다 큰 자연수는 몇 개인가?

Answer: 36

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

Question (EN): Given the natural numbers from 12 to 53, find the average of these numbers.
Question (KO): 12부터 53까지의 자연수가 있을 때, 이 수들의 평균을 구하시오.

Answer: 32.5

Solution (Python):
var_a = 12
var_b = 53
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)/len(list_a)
print('{:.2f}'.format(round(var_d+1e-10,2)))
Category: Comparison

Question (EN): Customers stand in a line at the restaurant. If 8 people are standing in front of the person at the end of the line, how many customers are all in line?
Question (KO): 식당에 손님들이 한 줄로 서 있습니다. 맨 뒤에 줄을 선 사람 앞에 8명이 서 있을 때, 줄을 서 있는 손님은 모두 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 8
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): What is the sum of all three-digit numbers with 1 in the hundreds place?
Question (KO): 백의 자리가 1인 세 자리 수를 모두 합하면 얼마입니까?

Answer: 14950

Solution (Python):
var_a = 1
var_b = 'A'
var_c = 'B'
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=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
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_d):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_d
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): The equation A45+2B3=418 makes sense. What number should go in B?
Question (KO): 등식 A45+2B3=418이 성립한다고 합니다. B에 들어가야 하는 숫자는 무엇인가요?

Answer: 7

Solution (Python):
var_a = 'A45+2B3=418'
var_b = 'B'
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 a certain two-digit number is divided by 13, the remainder is 2. What is the largest possible number that can be the number?
Question (KO): 어떤 두 자리 수를 13으로 나누었더니 나머지가 2였습니다. 어떤 수가 될 수 있는 수 중 가장 큰 수는 무엇입니까?

Answer: 93

Solution (Python):
var_a = 10
var_b = 99
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 13
var_e = 2
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
    var_e = var_e + var_d
for i in list_a:
    i = int(i)
    if i%var_d == var_e:
        list_b.append(i)
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print(int(var_g))
Category: Correspondence

Question (EN): There is a number that becomes 748 when subtracted 36 and multiplied by 22. What is this number?
Question (KO): 36을 뺀 값에 22를 곱하면 748이 되는 수가 있습니다. 이 수는 무엇입니까?

Answer: 70

Solution (Python):
var_a = 748
var_b = 22
var_c = var_a / var_b
var_d = 36
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): You want to make a rectangle that is different from each other by attaching all 210 squares that has a side length of 2 centimeters (cm). If the rectangle has the same shape when rotated, it is regarded as the same one. How many ways can you think of?
Question (KO): 한 변의 길이가 2센티미터(㎝)인 정사각형 210개를 모두 붙여서 서로 다른 직사각형을 만들려고 합니다. 만든 직사각형을 돌렸을 때 같은 모양이면 한 가지로 봅니다. 만드는 방법은 모두 몇 가지입니까?

Answer: 8

Solution (Python):
var_a = 210
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)
var_c = 2
var_d = var_b / var_c
var_e = 1
var_f=int(((var_d+9*10**(var_e-2))//(10**(var_e-1)))*10**(var_e-1))

print(int(var_f))
Category: Comparison

Question (EN): 15 students stand in a line. If Namjoon is the 7th person from the left, what about from the right side?
Question (KO): 학생 15명이 한 줄로 서 있습니다. 남준이가 왼쪽에서 7번째라면 오른쪽에서는 몇 번째입니까?

Answer: 9

Solution (Python):
var_a = 15
var_b = 7
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): The three students, Yoongi, Jungkook and Yuna, have the numbers 7, 6, and 9 respectively. Who has the 2nd largest number?
Question (KO): 세 명의 학생 윤기, 정국, 유나는 각각 7, 6, 9만큼의 숫자를 가지고 있습니다. 2번째로 큰 숫자를 가진 사람은 누구입니까?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'and'
var_d = 'Yuna'
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
list_b= []
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_h = 2
list_c=list_b.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = list_b.index(var_i)+1
var_k = list_a[var_j-1]
print(var_k)
Category: Possibility

Question (EN): How many three-digit numbers contain all of 4, 2, and 5?
Question (KO): 세 자리 숫자 중 4, 2, 5가 모두 들어있는 수는 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 4
var_b = 2
var_c = 5
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 = len(list_b)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 6000 red and blue marbles together. If you subtract the difference between the red marbles and the blue marbles from the sum of the red marbles and the blue marbles, you get 4800. If there are more blue marbles than red marbles, how many blue marbles are there?
Question (KO): 빨간 구슬과 파란 구슬을 합쳐서 6000개 있다. 빨간 구슬과 파란 구슬의 차를 빨간 구슬과 파란 구슬의 합에서 빼면 4800개 이다. 파란 구슬이 빨간 구슬보다 많다면 파란 구슬은 몇 개인지 구하시오.

Answer: 3600

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

Question (EN): There are 60 fruits in the fruit basket. There are 32 bananas, 10 apples and 5 pears. If there are bananas, apples, pears, and tangerines in the fruit basket, how many tangerines are there?
Question (KO): 과일 바구니에 과일이 60개 있습니다. 바나나가 32개, 사과가 10개, 배가 5개 있습니다. 과일바구니에 과일의 종류가 바나나, 사과, 배, 귤이 있을 경우 귤은 몇 개가 있나요?

Answer: 13

Solution (Python):
var_a = 60
var_b = 32
var_c = var_a - var_b
var_d = 10
var_e = var_c - var_d
var_f = 5
var_g = var_e - var_f
print(int(var_g))
Category: Correspondence

Question (EN): There are 84.6 grams (g) of ketchup. If you put the same amount of ketchup on 12 hot dogs so that there are no leftovers, find how many grams (g) of ketchup you need to put on each hot dog.
Question (KO): 케찹이 84.6그램(g)이 있다. 핫도그 12개에 똑같은 양의 케첩을 뿌려 남는 것이 없게 하면 핫도그 하나 당 몇 그램(g)의 케찹을 뿌려야하는지 구하시오.

Answer: 7.05

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

Question (EN): On one side of the two-arm scale, there is one weight weighing 0.5 kilograms (kg) and two weights weighing 0.3 kilograms (kg). How many kilograms (kg) must a book weigh in order to make the scale horizontal when this book is placed on the other side?
Question (KO): 양팔 저울의 한쪽에는 0.5킬로그램(㎏)짜리 추 한 개와 0.3킬로그램(㎏)짜리 추 2개가 있습니다. 다른 쪽에 책 한 권을 올려두었을 때 저울이 수평이 되려면 책 한 권은 몇 킬로그램(㎏)이어야 합니까?

Answer: 1.1

Solution (Python):
var_a = 0.5
var_b = 0.3
var_c = 2
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): A dozen means 12. Jungkook initially had 17 pencils, but his mother bought a few more, bringing the total number of pencils to 2 dozen. How many additional pencils did the mother buy?
Question (KO): 연필 1타는 12자루입니다. 정국이가 처음에 가진 연필은 17자루였는데 어머니께서 연필을 몇 자루 더 사주셔서 총 가지고 있는 연필의 수가 2타가 되었습니다. 어머니께서 추가로 구매해주신 연필은 몇 자루입니까?

Answer: 7

Solution (Python):
var_a = 2
var_b = 12
var_c = var_a * var_b
var_d = 17
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): My mother and father bought me 7 more and 14 more notebooks, respectively. If Jimin had 33 notebooks at first, how many more notebooks does she have than at first?
Question (KO): 어머니와 아버지가 각각 공책 7권과 14권을 더 사주셨습니다. 처음에 지민이가 공책을 33권 가지고 있었다고 할 때, 처음보다 공책의 수가 몇 권 더 많아졌습니까?

Answer: 21

Solution (Python):
var_a = 33
var_b = 7
var_c = var_a + var_b
var_d = 14
var_e = var_c + var_d
var_f = 33
var_g = var_e - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): How many common multiples of 16 and 24 exist between 1 to 200?
Question (KO): 1에서 200까지의 자연수 중에서 16과 24의 공배수는 모두 몇 개 있습니까?

Answer: 4

Solution (Python):
var_a = 1
var_b = 200
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 16
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 = 24
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
list_d = list(set(list_b) & set(list_c))
var_f = len(list_d)
print(int(var_f))
Category: Correspondence

Question (EN): After multiplying a decimal by 10, moving the decimal point three places to the left equals 0.375. Find the original decimal number including the decimal point.
Question (KO): 어떤 소수를 10배만큼 커지게 한 후, 소수점을 왼쪽으로 세 칸 옮기면 0.375가 됩니다. 원래의 소수를 소수점을 포함하여 구하시오.

Answer: 37.5

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

Question (EN): 230 students were each given 15 pieces of colored paper. Find the number of pieces of colored paper distributed.
Question (KO): 230명의 학생에게 색종이를 15개씩 나누어 주었다. 나누어 준 색종이의 개수는 몇 개인지 구하시오.

Answer: 3450

Solution (Python):
var_a = 230
var_b = 15
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Each box contains 100 marbles. How many marbles are in all 10 boxes?
Question (KO): 상자 한 개에 구슬이 100개씩 들어 있습니다. 상자 10개에는 구슬이 모두 몇 개 들어 있습니까?

Answer: 1000

Solution (Python):
var_a = 100
var_b = 10
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There is a truck that runs at a constant speed of 2.1 kilometers (km) in 1 minute, and a taxi that runs at a constant speed of 10.5 kilometers (km) in 4 minutes. Find how many times the truck is faster than the taxi.
Question (KO): 일정한 빠르기로 1분에 2.1킬로미터(㎞)를 달리는 트럭과 4분에 10.5킬로미터(㎞)를 달리는 택시가 있습니다. 트럭은 택시보다 몇 배 더 빠른지 구하시오.

Answer: 0.8

Solution (Python):
var_a = 2.1
var_b = 1
var_c = var_a / var_b
var_d = 10.5
var_e = 4
var_f = var_d / var_e
var_g = var_c / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Correspondence

Question (EN): If a number is multiplied by 6, it is 72. Hoseok wants to add 8 to the number. Write down what Hoseok gets.
Question (KO): 어떤 수에 6을 곱하면 72가 됩니다. 호석이는 어떤 수에 8을 더하고자 합니다. 올바른 결과값을 구하시오.

Answer: 20

Solution (Python):
var_a = 72
var_b = 6
var_c = var_a / var_b
var_d = 8
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): Nine people stand in a line in order from shortest to tallest. Hoseok is standing 4th from the front. If you line up again in order from the tallest to the shortest, what number will Hoseok stand from the back?
Question (KO): 사면체의 면은 모두 몇 개인가요?

Answer: 4

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

Question (EN): Round up the smallest 4-digit number to the hundreds place made from using 4 number cards 7, 9, 3, and 6 with overlapping allowed.
Question (KO): 7, 9, 3, 6 수 카드 4장을 중복 사용하여 만들 수 있는 가장 작은 네 자리 수를 올림하여 백의 자리까지 나타내어 보세요.

Answer: 3400

Solution (Python):
var_a = 7
var_b = 9
var_c = 3
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 = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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]
var_h = 3
var_i=int(((var_g+9*10**(var_h-2))//(10**(var_h-1)))*10**(var_h-1))

print(int(var_i))
Category: Geometry

Question (EN): There is a large box in the shape of a cuboid which is 30 centimeters (cm) wide, 20 centimeters (cm) long, and 5 cm (cm) high, and a small cuboid-shaped box 6 centimeters (cm) wide, 4 centimeters (cm) long, and 1 cm (cm) high. Find how many times is the larger box than the smaller box.
Question (KO): 가로 30 센티미터(㎝) , 세로 20 센티미터(㎝) , 높이 5센티미터(㎝) 인 직육면체 모양의 큰 상자와 이 상자에 가로 6센티미터(㎝), 세로 4센티미터(㎝), 높이 1센티미터(㎝) 인 직육면체 모양의 작은 상자가 있다. 큰 상자가 작은 상자보다 몇 배 더 큰지 구하시오.

Answer: 125

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

Question (EN): The length of the string that Minju has is 6.704 meters (m) and the length of the string that Daehyun has is 6.74 meters (m). Who has the longer string?
Question (KO): 민주가 가지고 있는 끈의 길이는 6.704미터(m)이고 대현이가 가지고 있는 끈의 길이는 6.74미터(m)입니다. 누가 가지고 있는 끈이 더 깁니까?

Answer: Daehyun

Solution (Python):
var_a = 'Minju'
var_b = 'Daehyun'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 6.704
var_d = 6.74
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): It is said that charging 9 mobile phones consumes 19 kWh. How many kWh does it take to charge one mobile phone?
Question (KO): 휴대폰 9개를 충전하는데 19kWh가 소모된다고 합니다. 휴대폰 하나를 충전하는데는 몇 kWh가 소모되나요?

Answer: 2.11

Solution (Python):
var_a = 19
var_b = 9
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))