philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): A is a single-digit natural number. Given the equation of the multiplication between single-digit numbers A×A×A=21A (21A is three-digit number), find A when A is a 1-digit number.
Question (KO): A는 한 자리 자연수입니다. 다음과 같이 한 자리 수끼리의 곱셈식 A×A×A=21A에서 A가 1의 자리 숫자일 때, A를 구하시오.

Answer: 6

Solution (Python):
var_a = 'A×A×A=21A'
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: Geometry

Question (EN): A rectangle and a square have the same area, and the sides of the rectangle are 9 centimeters (cm) and 16 centimeters (cm), respectively. In this case, find the length of one side of the square in centimeters (cm).
Question (KO): 어느 직사각형과 정사각형의 넓이는 같으며, 직사각형의 두 변은 각각 9센티미터(㎝), 16센티미터(㎝)입니다. 이 때, 정사각형 한 변의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 12

Solution (Python):
var_a = 9
var_b = 16
var_c = var_a * var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e))
Category: Comparison

Question (EN): Miran, Junga, and Minsu each had 6, 13, and 10 pieces of colored paper. Of the three people, who has the least number of colored paper?
Question (KO): 미란이, 정아, 민수는 각각 색종이를 6장, 13장, 10장씩 가지고 있었습니다. 세 사람 중 가지고 있는 색종이의 수가 가장 적은 사람은 누구입니까?

Answer: Miran

Solution (Python):
var_a = 'Miran'
var_b = 'Junga'
var_c = 'Minsu'
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 = 6
var_e = 13
var_f = 10
list_b= []
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()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Arithmetic calculation

Question (EN): You are going to glue together 20 sheets of colored tape, every 15.25 centimeters (cm) long, overlapping each other. How many centimeters (cm) do you have to overlap in order to make the total length of the spliced color tape 248 centimeters (cm)?
Question (KO): 길이가 15.25 센티미터(㎝) 인 색 테이프 20 장을 겹치게 이어 붙이려고 합니다. 이어 붙인 색 테이프의 전체 길이가 248 센티미터(㎝) 가 되도록 하려면 모두 몇 센티미터(㎝) 씩 겹치게 이어 붙여야 합니까?

Answer: 3

Solution (Python):
var_a = 15.25
var_b = 248
var_c = 15.25
var_d = var_b - var_c
var_e = 20
var_f = 1
var_g = var_e - var_f
var_h = var_d / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Possibility

Question (EN): Draw 3 of the number cards 1, 2, 3, and 4 and find the number of three-digit natural numbers that can be made.
Question (KO): 숫자 카드 1, 2, 3, 4 중 3장을 뽑아 만들 수 있는 세 자리 자연수의 개수를 구하시오.

Answer: 24

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
var_d = 4
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 = len(list_b)
print(int(var_f))
Category: Correspondence

Question (EN): You need to subtract 46 from a certain number, but mistakenly subtracted 64, and got 122. Find the result of the correct calculation.
Question (KO): 어떤 수에서 46을 빼야 하는데 잘못하여 64를 뺐더니 122가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 140

Solution (Python):
var_a = 122
var_b = 64
var_c = var_a + var_b
var_d = 46
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): You want to create a five-digit number using 7, 2, 5, 0, and 1 only once. Write the smallest number in this case.
Question (KO): 7, 2, 5, 0, 1을 한 번씩만 사용하여 다섯 자리 수를 만드려고 합니다. 이때 가장 작은 수를 쓰세요.

Answer: 10257

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

Question (EN): Some machines make one item per hour. Find how many units this machine makes if it runs non-stop for one year.
Question (KO): 어떤 기계는 시간당 1개씩 물품을 만든다. 이 기계를 1년 동안 쉬지않고 가동하면 몇 개를 만드는지 구하시오.

Answer: 8760

Solution (Python):
var_a = 24
var_b = 365
var_c = var_a * var_b
print(int(var_c))
Category: Correspondence

Question (EN): There are 901 candies in the bag. Candies were equally distributed among all students in the class. Each student received 53 candies, and nothing left. Find the total number of students in the class.
Question (KO): 주머니에 901개의 사탕이 있습니다. 사탕은 학급의 모든 학생들에게 균등하게 분배되었습니다. 각 학생은 53개의 사탕을 받았고 사탕은 하나도 남지 않았습니다. 수업의 총 학생 수를 구하십시오.

Answer: 17

Solution (Python):
var_a = 1
var_b = 53
var_c = 901
var_d = var_b / var_c
var_e = var_a / var_d
print(int(var_e))
Category: Comparison

Question (EN): Ji-Sung drank 9/25 liters (L) of milk and Young-pyo drank 0.41 liters (L). Who drank the most milk?
Question (KO): 지성이는 9/25리터(L)의 우유를 마셨고 영표는 0.41리터(L)를 마셨습니다. 우유를 가장 많이 마신 사람은?

Answer: Young-pyo

Solution (Python):
var_a = 'Ji-Sung'
var_b = 'Young-pyo'
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 = 9
var_d = 25
var_e = var_c / var_d
var_f = 0.41
list_b= []
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_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Arithmetic calculation

Question (EN): One step of Yu-chan is 0.75 meters (m). If Yu-chan walked for 13 minutes by walking 70 steps per minute, find how many meters (m) he walked in total.
Question (KO): 유찬이의 한 걸음은 0.75미터(m)입니다. 유찬이가 1분에 70걸음씩 걸어서 13분 동안 걸었다면, 유찬이는 모두 몇 미터(m)를 걸은 것인지 구하시오.

Answer: 682.5

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

Question (EN): Jeonghwan wants to choose one of the four types of colored pencils and one of the three types of ballpoint pens. Find the number of ways you can choose.
Question (KO): 정환이는 색연필 4종류와 볼펜 3종류 중 각각 1개씩을 선택하려고 합니다. 이 때 선택할 수 있는 수는 몇 가지인지 구하세요.

Answer: 12

Solution (Python):
var_a = 4
var_b = 1
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)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
var_d = 3
var_e = 1
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
for i, elem in enumerate(range(var_e)):
    var_f = var_f / (i+1)
var_g = var_c * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): It is said that one person makes 8 origami cranes per hour. How many hours does it take 5 people to make 200 origami cranes?
Question (KO): 한 사람이 종이학을 1시간에 8개씩 만든다고 합니다. 5명이 종이학 200개를 만들려면 몇 시간이 걸립니까?

Answer: 5

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

Question (EN): How many two-digit numbers are multiples of 3?
Question (KO): 두 자리 수 중 3의 배수는 모두 몇 개 있습니까?

Answer: 30

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

Question (EN): If the length of the upper side is 6 centimeters (cm) shorter than the length of the lower side and the area of the trapezoid is 8 centimeters (cm) and the area is 72 cm (cm2), find the length of the upper side of the trapezoid.
Question (KO): 윗변의 길이가 아랫변의 길이보다 6 센티미터(㎝) 짧고, 높이가 8 센티미터(㎝)인 사다리꼴의 넓이가 72제곱센티미터(㎠)일 때, 이 사다리꼴의 윗변의 길이를 구하시오.

Answer: 6

Solution (Python):
var_a = 72
var_b = 2
var_c = var_a * var_b
var_d = 8
var_e = var_c / var_d
var_f = 6
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Geometry

Question (EN): If the rectangular parallelepiped's perimeter of the underlying face is 32 centimeters (cm), its width and length are the same, and its height of it is 9 centimeters (cm), what is the volume in cubic centimeters (cm3)?
Question (KO): 밑에 놓인 면의 둘레가 32센티미터(㎝)이고 가로와 세로의 길이가 같은 직육면체가 높이가 9센티미터(㎝)이면 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 576

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

Question (EN): What is the average of the odd numbers from 1 to 9 that are less than 6?
Question (KO): 1부터 9까지의 홀수 중 6미만인 수들의 평균은 얼마입니까?

Answer: 3

Solution (Python):
var_a = 1
var_b = 9
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)/len(list_b)
print(int(var_d))
Category: Correspondence

Question (EN): You want to divide a number by 4. If the answer when adding 42 incorrectly is 50, what is the correct calculation result?
Question (KO): 어떤 수에 4를 나누려고 합니다. 잘못하여 42를 더했을 때의 답이 50이라면 바르게 계산한 결과는 얼마일까요?

Answer: 2

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

Question (EN): The length of Siwon's ribbon is 8.8 meters longer than Seojun's. If Seojun cuts his own ribbon 4.3 meters (m) and gives it to Siwon, find out what the difference between the lengths of the two people's ribbons.
Question (KO): 시원이가 가진 리본의 길이가 서준이가 가진 리본의 길이보다 8.8미터(m)만큼 더 길다. 서준이가 시원이에게 자신이 가진 리본을 4.3미터(m)만큼 잘라서 주면 두 명이 가진 리본 길이의 차이는 얼마가 되는지 구하시오.

Answer: 17.4

Solution (Python):
var_a = 8.8
var_b = 4.3
var_c = var_a + var_b
var_d = 4.3
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): There are 3 triangular prisms. Find the sum of the number of non-side and side faces.
Question (KO): 삼각 기둥이 3개 있다. 옆면이 아닌 면의 개수와 옆면의 개수의 합을 구하시오.

Answer: 15

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

Question (EN): Seunghwa took an express bus and a general bus to travel to Chuncheon, and arrived in Chuncheon, 120 kilometers (km) away, in 1 hour and 50 minutes. At first, she used the express bus, and later took the general bus for 1 hour and 10 minutes. This general bus used 6 liters of gasoline to travel 40.8 kilometers, and if Seunghwa used 14 liters of gasoline while taking the general bus, how many kilometers (km) Seunghwa moved by express bus for 1 minute? (The time and distance to transfer from the express bus to the bus are not considered.)
Question (KO): 승화는 춘천으로 여행을 가기 위해서 고속버스와 버스를 이용하였고, 120킬로미터(㎞) 떨어진 춘천에 1시간 50분 만에 도착하였습니다. 처음엔 고속버스를 이용하였고 나중에는 1시간 10분 동안 버스를 탔습니다. 이 버스는 40.8킬로미터(㎞)를 가는 데 6리터(L)의 휘발유를 사용하였고, 승화가 버스를 타고 있는 동안 14리터(L)의 휘발유를 사용했다면, 승화가 고속버스를 이용하여 1분 동안 이동한 거리는 몇 킬로미터(㎞)입니까? (고속버스에서 버스로 갈아타기 위한 시간과 거리는 고려하지 않습니다.)

Answer: 0.62

Solution (Python):
var_a = 120
var_b = 40.8
var_c = 6
var_d = var_b / var_c
var_e = 14
var_f = var_d * var_e
var_g = var_a - var_f
var_h = 1
var_i = 60
var_j = var_h * var_i
var_k = 50
var_l = var_j + var_k
var_m = 1
var_n = 60
var_o = var_m * var_n
var_p = 10
var_q = var_o + var_p
var_r = var_l - var_q
var_s = var_g / var_r
print('{:.2f}'.format(round(var_s+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Three numbers 10, 11 and 12 are given. What is the product of the 3rd largest and the 2nd largest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 3번째로 큰 수와 2번째로 큰 수의 곱은 얼마입니까?

Answer: 110

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
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=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = var_e * var_g
print(int(var_h))
Category: Geometry

Question (EN): Hyejin tries to connect six pieces of paper in the shape of a square with a side length of 30 centimeters (cm) by gluing them together. When gluing was done, they overlapped each other by 7 centimeters (cm). How many square centimeters (cm²) is the area of the connected papers?
Question (KO): 혜진이는 한 변의 길이가 30센티미터(㎝)인 정사각형 모양의 6장의 종이를 풀로 붙여 한 줄로 이으려고 합니다. 이을 때 7센티미터(㎝)씩 겹치게 되었습니다. 이어진 종이의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 4350

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

Question (EN): Minyoung and her friends are standing in a line in order of height. Minyoung is 2nd on the tall side and 4th on the short side. How many people are in line?
Question (KO): 민영이와 친구들이 키가 큰 순서대로 한 줄로 서 있습니다. 민영이는 키가 큰 쪽에서 2번째이고, 작은 쪽에서 4번째입니다. 줄을 서 있는 사람은 모두 몇 명입니까?

Answer: 5

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Chanyeol decided to present a bouquet of carnations to his parents for Parents' Day. There are three types of carnations: red, pink, and white. When making a bouquet with a total of five carnations, find the number of possible bouquets to include at least one of each type.
Question (KO): 찬열이는 어버이날을 맞아 부모님께 카네이션 꽃다발을 선물하기로 했습니다. 카네이션은 빨간색, 분홍색, 하얀색, 세 종류가 있고 총 다섯 송이로 꽃다발을 만들 때, 한 종류 당 최소 한 송이씩은 포함되게 하려면 만들 수 있는 꽃다발의 경우의 수를 구하시오.

Answer: 6

Solution (Python):
var_a = 1
var_b = 3
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.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_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 = 5
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: Correspondence

Question (EN): Yoongi is trying to subtract 7 from a number. But when I accidentally added 9, the result was 30. Find the correct calculation result.
Question (KO): 윤기는 어떤 수에 7을 빼려고 합니다. 하지만 실수로 9를 더했더니 결과는 30이 되었습니다. 바르게 계산한 결과를 구하세요.

Answer: 14

Solution (Python):
var_a = 30
var_b = 9
var_c = var_a - var_b
var_d = 7
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): While Yoongi was subtracting the four-digit number from the two-digit number, he mistook the one-digit number 9 for the four-digit number as 2, and then changed the ones-digit number and the tens-digit number for the two-digit number to get 23. From this, Yoongi got -1299, what is the four-digit number?
Question (KO): 윤기는 두 자리 수에서 네 자리 수를 빼던 중, 네 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았고, 두 자리 수의 일의 자리 숫자와 십의 자리 숫자를 바꾸어 23이라고 잘못 보았습니다. 이때, 윤기가 구한 차가 -1299라고 하면, 네 자리 수는 무엇인가요?

Answer: 1279

Solution (Python):
var_a = 23
var_b = 1299
var_c = var_a - var_b
var_d = 2
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): A school has 41 students in the third grade, and there are 3 more boys than girls. How many male students are there?
Question (KO): 어느 학교의 3학년 학생 수는 41명이고, 남학생은 여학생보다 3명이 더 많습니다. 남학생은 몇 명입니까?

Answer: 22

Solution (Python):
var_a = 41
var_b = 3
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 3
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You used all 15,000 won to buy 12 pencils for 1,000 won and ballpoint pens for 1,300 won. How many pencils have you purchased?
Question (KO): 15000원을 모두 사용하여 1000원짜리 연필과 1300원짜리 볼펜을 모두 12자루 샀습니다. 구매한 연필은 몇 자루입니까?

Answer: 2

Solution (Python):
var_a = 1300
var_b = 12
var_c = var_a * var_b
var_d = 15000
var_e = var_c - var_d
var_f = 1300
var_g = 1000
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): Consider a triangle with one side measuring 20/9 centimeters (cm) with all the same length. If all sides of a pentagon, which has the same perimeter as this triangle, have the same length, what is the length of one side?
Question (KO): 한 변의 길이가 20/9센티미터(㎝)이고 세 변의 길이가 모두 같은 삼각형이 있습니다. 이 삼각형과 둘레가 같은 오각형의 모든 변의 길이가 같다면, 한 변의 길이는 얼마일지 구하시오.

Answer: 1.33

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

Question (EN): Eunji solved 12 questions in the exam A and 15 questions in the exam B. She got 8 questions wrong in exam A, and got 2 more questions wrong in exam B than in exam A. How many questions did Eunji get right in both exams in total?
Question (KO): 은지는 (가) 시험 12문제와 (나) 시험 15문제를 풀었습니다. (가) 시험은 8문제를 틀렸고, (나) 시험은 (가 시험보다 2문제를 더 많이 틀렸습니다. 은지가 (가) 시험과 (나) 시험에서 맞춘 문제는 모두 몇 문제인지 구하시오

Answer: 9

Solution (Python):
var_a = 4
var_b = 15
var_c = 12
var_d = 4
var_e = var_c - var_d
var_f = 2
var_g = var_e + var_f
var_h = var_b - var_g
var_i = var_a + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Find the product of the quotients of two divisions 46.2 / 7 and 1.8 / 0.6.
Question (KO): 두 나눗셈 46.2 / 7, 1.8 / 0.6의 몫의 곱을 구해보세요

Answer: 18

Solution (Python):
var_a = 46.2
var_b = 7
var_c = var_a // var_b
var_d = 1.8
var_e = 0.6
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g))
Category: Geometry

Question (EN): Miho has a square-shaped piece of land with a side measuring 6 meters (m). Each side of this land was increased by 1 meter (m), so that he got more piece of land. By how many square meters (m2) did the area of the land increase?
Question (KO): 미호는 한 변의 길이가 6미터(m)인 정사각형 모양의 땅을 가지고 있습니다. 이 땅의 각 변을 1미터(m)씩 늘려 새 땅을 갖게 되었습니다. 새 땅은 몇 제곱미터(㎡)의 넓이만큼 더 늘어났습니까?

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): Minjun grew 0.2 meters (m) last year and 1/10 meter (m) this year. If Minjun's height was 1.1 meters (m) on January 1 last year, how tall is Minjun's height in meters (m) now?
Question (KO): 민준이는 작년 한 해 동안 0.2미터(m) 컸고 올해 한 해 동안 1/10미터(m)가 컸습니다. 작년 1월 1일에 민준이의 키가 1.1미터(m)였다면, 민준이의 현재 키는 몇 미터(m)입니까?

Answer: 1.4

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

Question (EN): There are five numbers: 10, 11, 12, 13, and 14. What is the sum of the smallest number and the second smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 작은 수와 2번째로 작은 수의 합은 얼마입니까?

Answer: 21

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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 = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g + var_i
print(int(var_j))
Category: Possibility

Question (EN): Write a number that can fit in the hundredth place when using the given number cards 7, 5, and 2 once to make a number greater than 520 and less than 710.
Question (KO): 주어진 숫자 카드 7, 5, 2를 한 번 사용하여 520보다 크고 710보다 작은 수를 만들 때 백 자리에 들어갈 수 있는 수를 쓰십시오.

Answer: 5

Solution (Python):
var_a = 7
var_b = 5
var_c = 2
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 520
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 710
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = 1
var_h = list_d[var_g-1]
list_e = []
var_h = int(var_h)
while var_h//10 > 0:
    list_e.append(var_h%10)
    var_h = var_h//10
list_e.append(var_h%10)
list_e = list_e[::-1]
var_i = 1
var_j = list_e[var_i-1]
print(int(var_j))