philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Minjeong put a red ball, a blue ball, an orange ball, and a black ball in order. What is the color of the third ball?
Question (KO): 민정이는 주머니에 빨간색 공, 파란색 공, 주황색 공, 검은색 공을 순서대로 집어 넣었습니다. 3번째로 넣은 공의 색깔은 무슨 색입니까?

Answer: orange

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'orange'
var_d = 'black'
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
var_f = list_a[var_e-1]
print(var_f)
Category: Possibility

Question (EN): Find the fourth smallest four-digit number with using all 4 number cards of 0, 1, 4, and 8 once whose ones digit is 8, and then find the sum of each digit.
Question (KO): 4개의 숫자 카드 0, 1, 4, 8을 한 번씩 사용하여 일의 자리 숫자가 8인 네 번째로 작은 네 자리 수를 구한 후, 각 자리 수의 합을 구하시오.

Answer: 13

Solution (Python):
var_a = 0
var_b = 1
var_c = 4
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
var_g = 8
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = 4
list_d=list_c.copy()
list_d.sort()
var_i = list_d[var_h-1]
list_e = []
var_i = int(var_i)
while var_i//10 > 0:
    list_e.append(var_i%10)
    var_i = var_i//10
list_e.append(var_i%10)
list_e = list_e[::-1]
list_e = [float(i) for i in list_e]
var_j = sum(list_e)
print(int(var_j))
Category: Possibility

Question (EN): Find the sum of the second smallest three-digit number and the third smallest three-digit number formed by using all odd numbers from 1 to 5 once.
Question (KO): 1이상 5이하의 홀수를 한 번씩 모두 사용하여 만든 두 번째로 작은 세 자리 수와 세 번째로 작은 세 자리수의 합을 구하시오.

Answer: 468

Solution (Python):
var_a = 1
var_b = 5
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = 2
list_c=list_b.copy()
list_c.sort()
var_e = list_c[var_d-1]
var_f = 3
list_d=list_b.copy()
list_d.sort()
var_g = list_d[var_f-1]
var_h = var_e + var_g
print(int(var_h))
Category: Geometry

Question (EN): What is the surface area in square centimeters (cm2) of a cube with one edge of 8 centimeters (cm)?
Question (KO): 한 모서리가 8센티미터(㎝)인 정육면체의 겉넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 384

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

Question (EN): Students sit in groups of seven, and there are nine groups in each class. If there are 13 classes in this school, how many students are there?
Question (KO): 학생들은 한 조마다 7명씩 앉아있고, 각 반에는 9개의 조가 있다. 이 학교에 13개의 반이 있을 때, 학생은 모두 몇 명인지 구하시오.

Answer: 819

Solution (Python):
var_a = 13
var_b = 9
var_c = var_a * var_b
var_d = 7
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You can make one hotteok with 6.64 grams (g) of dough. Find how many hotteoks you can make when you have 212.48 grams (g) of dough.
Question (KO): 반죽 6.64그램(g)으로 호떡 하나를 만들 수 있습니다. 212.48그램(g)의 반죽을 만들었을 때 이 반죽으로 만들 수 있는 호떡은 몇 개인지 구하세요.

Answer: 32

Solution (Python):
var_a = 212.48
var_b = 6.64
var_c = var_a // var_b
print(int(var_c))
Category: Possibility

Question (EN): How many edges are there on a face of a tetrahedron?
Question (KO): 정사면체에서 면에 있는 변의 개수는 모두 몇개인가요?

Answer: 3

Solution (Python):
var_a = 3
print(int(var_a))
Category: Geometry

Question (EN): What is the perimeter of an equilateral triangle with a side of 14/8 centimeters (cm), in centimeters (cm)?
Question (KO): 한 변의 길이가 14/8센티미터(㎝)인 정삼각형의 둘레의 길이는 몇 센티미터(㎝)입니까?

Answer: 5.25

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

Question (EN): The distance from Ga-eul's house to the taekwondo gym is 150 meters (m) farther than 3 kilometers (km), and the distance to the piano academy is 3095 meters (m). Which one is farther away from Ga-eul's house between taekwondo gym and piano academy?
Question (KO): 가을이네 집에서 태권도장까지의 거리는 3킬로미터(㎞)보다 150미터(m) 더 멀고, 피아노학원까지의 거리는 3095미터(m)입니다. 태권도장과 피아노학원 중에서 가을이네 집에서 더 먼 곳은 어느 곳입니까?

Answer: taekwondo

Solution (Python):
var_a = 'taekwondo'
var_b = 'piano'
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 = 3
var_d = 1000
var_e = var_c * var_d
var_f = 150
var_g = var_e + var_f
var_h = 3095
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)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Geometry

Question (EN): How many centimeters (cm) must one side of a rectangle with a perimeter of 32 centimeters (cm) be to be the rectangle the largest?
Question (KO): 둘레가 32인 사각형이 가장 넓으려면 한 변의 길이가 몇 센티미터(㎝)이어야 합니까?

Answer: 8

Solution (Python):
var_a = 32
var_b = 4
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): A cube has an edge that is 12 centimeters (cm) long. I have glued 54 pieces of square paper on this cube without overlapping, and there is no empty space. Find the length of one side of this square paper.
Question (KO): 어떤 정육면체는 한 모서리의 길이가 12센티미터(㎝)입니다. 이 정육면체에 정사각형 모양의 종이를 겹치지 않게 54장 붙였더니 남는 공간이 없었습니다. 이 종이의 한 변의 길이를 구하시오.

Answer: 4

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
var_f = 54
var_g = var_e / var_f
var_h = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Correspondence

Question (EN): Find the number of divisors of 90.
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: Possibility

Question (EN): What is the sum of the largest and smallest eight-digit numbers that can be formed by using four numbers(4, 0, 2, 6) twice?
Question (KO): 4,0,2,6 숫자 4개를 두 번씩 사용하여 만들 수 있는 여덟 자리 수 중에서 가장 큰 수와 가장 작은 수를 더하면 얼마입니까?

Answer: 86466666

Solution (Python):
var_a = 4
var_b = 4
var_c = 0
var_d = 0
var_e = 2
var_f = 2
var_g = 6
var_h = 6
list_a= []
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_i = 8
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_i))
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_j = 1
list_c=list_b.copy()
list_c.sort()
var_k = list_c[-var_j]
var_l = 1
list_d=list_b.copy()
list_d.sort()
var_m = list_d[var_l-1]
var_n = var_k + var_m
print(int(var_n))
Category: Comparison

Question (EN): There are a total of three numbers: 0.8, 1/2, and 0.5. What is the largest out of these numbers that is less than 2?
Question (KO): 총 3개의 숫자 0.8, 1/2, 0.5이 있습니다. 이 중 2보다 작은 수 중 가장 큰 수를 구하면 무엇인가요?

Answer: 0.8

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.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 = 2
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Arithmetic calculation

Question (EN): I made a mistake when giving out candies, so I gave them to 5 people instead of 6. I intended to give 18 candies to each person, but I was 3 candies short. If I had given these candies to 6 people, how many would each person have?
Question (KO): 사탕을 6명에게 똑같이 나누어 주어야 할 것을 잘못하여 5명에게 똑같이 나누어 주었더니 한 사람당 18개씩 주고 3개가 모자랐습니다. 이 사탕을 6명에게 똑같이 나누어 주면 한 사람당 최대한 몇 개씩 가지게 됩니까?

Answer: 16

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

Question (EN): Taehyung is the 6th shortest student in the class, and Seokjin stands right in front of him when they line up in ascending order. In what position will Seokjin's height be in ordinal number?
Question (KO): 태형이는 교실에서 6번째로 키가 작고, 석진이의 바로 다음으로 키가 작습니다. 석진이는 몇 번째로 키가 작습니까?

Answer: 5

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): Jungkook is going to the mart to pick out snacks. If you are trying to choose 5 snacks out of 20, how many ways are possible to choose them?
Question (KO): 정국이는 마트에 가서 과자를 고르려고 합니다. 20가지의 과자들 중 5개의 과자를 고르려고 한다면 과자를 고르는 방법은 몇 가지인가요?

Answer: 42504

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

Question (EN): There are three numbers 0.8, 1/2, and 0.9. How many numbers are less than or equal to 3?
Question (KO): 3개의 숫자 0.8, 1/2, 0.9가 있습니다. 3보다 작거나 같은 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = []
for i in list_a:
    if i <= var_d:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Comparison

Question (EN): There are numbers 0.8, 1/2, and 0.9. Find the sum of all numbers greater than 0.3.
Question (KO): 0.8, 1/2, 0.9의 숫자가 있다. 이 중 0.3보다 큰 숫자들의 합을 구하시오.

Answer: 2.2

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 0.3
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): The largest equilateral triangle was created by using a 78 centimeters (cm) long string. How many centimeters (cm) is one side of this equilateral triangle?
Question (KO): 길이가 78센티미터(㎝)인 끈을 이용해 가장 큰 정삼각형을 만들었습니다. 이 정삼각형의 한 변은 몇 센티미터(㎝)입니까?

Answer: 26

Solution (Python):
var_a = 78
var_b = 3
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): When 4 friends shake hands with each other once, how many handshakes are made in total?
Question (KO): 4명의 친구가 서로 다른 사람들과 한번씩 악수를 할때 악수는 총 몇번 이루어 집니까?

Answer: 3

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

Question (EN): When 63 is divided by A, the quotient and remainder are B and C, respectively. A, B, and C are natural numbers. If the quotient and the remainder are equal, find the largest number among the divisors A.
Question (KO): 63을 A로 나누었을 때, 몫과 나머지는 각각 B와 C가 됩니다. A, B, C는 자연수 입니다. 몫과 나머지가 같은 경우, 나누는 수 A 중 가장 큰 수를 구하시오.

Answer: 62

Solution (Python):
var_a = 63
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a cube-shaped gift box. If the area of the wrapping paper used to wrap this gift box without overlapping is 600, find the volume of this gift box.
Question (KO): 정육면체 모양의 선물 상자가 있습니다. 이 선물 상자를 겹치지 않고 포장하는데 사용한 포장지의 넓이가 600일때, 이 선물 상자의 부피를 구하시오.

Answer: 1000

Solution (Python):
var_a = 600
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 3
var_g = var_e ** var_f
print(int(var_g))
Category: Correspondence

Question (EN): 2A3-36=197 is true. How much is A?
Question (KO): 2A3-36=197입니다. A는 얼마인가요?

Answer: 3

Solution (Python):
var_a = '2A3-36=197'
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: Correspondence

Question (EN): A factory makes clothes between 200 and 500 clothes a day. The number of clothes made today is a multiple of 9, subtracting 3 is a multiple of 8, subtracting 2 is a multiple of 5. Find the number of clothes made today.
Question (KO): 옷을 만드는 공장에서 하루에 200벌 이상 500벌 이하의 옷을 만든다. 오늘 만든 옷의 개수는 9의 배수이고, 3를 빼면 8의 배수이고, 2를 빼면 5의 배수이다. 오늘 만든 옷의 개수를 구하시오.

Answer: 387

Solution (Python):
var_a = 200
var_b = 500
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
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 = 8
var_g = 3
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_b:
    i = int(i)
    if i%var_f == var_g:
        list_c.append(i)
var_h = 9
var_i = 0
list_d = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_c:
    i = int(i)
    if i%var_h == var_i:
        list_d.append(i)
var_j = 1
var_k = list_d[var_j-1]
print(int(var_k))
Category: Arithmetic calculation

Question (EN): It takes 9 seconds to cut a log, and the rest period after one cut is 5 seconds. Find how many seconds it takes to cut a log into 16 slices.
Question (KO): 통나무를 한 번 자르는 데에는 9초가 걸리고 한 번 자른 후의 휴식시간은 5초입니다. 하나의 통나무를 16도막으로 자르는 데에 걸리는 시간은 몇 초인지 구하세요.

Answer: 210

Solution (Python):
var_a = 16
var_b = 1
var_c = var_a - var_b
var_d = 9
var_e = 5
var_f = var_d + var_e
var_g = var_c * var_f
print(int(var_g))
Category: Possibility

Question (EN): What is the average of the following numbers? Natural numbers from 12 to 53.
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: Arithmetic calculation

Question (EN): After putting 6 books each in a small box weighing 220 grams (g), and then putting 9 of these small boxes in a large box weighing 250 grams (g), the weight was 13.3 kilograms (kg). If each book weighs the same, how many grams (g) does one book weigh?
Question (KO): 무게가 220그램(g)인 작은 상자에 책을 각각 6권씩 넣은 후 이 작은 상자 9개를 무게가 250그램(g)인 큰 상자에 넣었더니 13.3킬로그램(㎏)이 되었습니다. 각각의 책의 무게가 같다면 책 한 권의 무게는 몇 그램(g)입니까?

Answer: 205

Solution (Python):
var_a = 13.3
var_b = 1000
var_c = var_a * var_b
var_d = 250
var_e = var_c - var_d
var_f = 220
var_g = 9
var_h = var_f * var_g
var_i = var_e - var_h
var_j = 6
var_k = 9
var_l = var_j * var_k
var_m = var_i / var_l
print(int(var_m))
Category: Correspondence

Question (EN): Find the value greater than 34 and less than 18+18 among 34, 35, 36, and 37.
Question (KO): 34, 35, 36, 37 중에서 34보다 크고 18+18보다 작은 값을 구하시오.

Answer: 35

Solution (Python):
var_a = 34
var_b = 35
var_c = 36
var_d = 37
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 = 34
list_b = []
for i in list_a:
    if i > var_e:
        list_b.append(i)
var_f = 18
var_g = 18
var_h = var_f + var_g
list_c = []
for i in list_b:
    if i < var_h:
        list_c.append(i)
var_i = 1
var_j = list_c[var_i-1]
print(int(var_j))
Category: Possibility

Question (EN): How many three-digit numbers can you make using the numbers 2, 3, and 8? However, the same number can be used multiple times.
Question (KO): 숫자 2, 3, 8을 사용하여 만들 수 있는 세 자리 수는 모두 몇 개입니까? 단, 같은 숫자가 여러 번 사용될 수 있습니다.

Answer: 27

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

Question (EN): If A is the number of vertices and B is the number of edges in a triangular prism, what is the value of A+B?
Question (KO): 삼각기둥에서 꼭짓점의 개수를 A, 모서리의 개수를 B라 할 때, A+B의 값은?

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

Question (EN): In the exam, Yul-jeon did better than Myeong-ryun and did worse than Cheon-chun. If Myeong-ryun is the 9th and Cheoncheon is the 7th, what rank is Yul-jeon?
Question (KO): 시험에서 율전이는 명륜이보다 잘했고 천천이 보다 못 했습니다. 명륜이는 9등, 천천이는 7등일 때 율전이는 몇 등 입니까?

Answer: 8

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a + var_b
var_d = 2
var_e = var_c // var_d
print(int(var_e))
Category: Geometry

Question (EN): You have multiplied the width and height of a rectangle of 3 square centimetres (cm2) by 5. Find the area in square centimetres (cm2) of this enlarged rectangle.
Question (KO): 넓이가 3제곱센티미터(㎠)인 직사각형의 가로와 새로의 길이를 각각 5배로 늘리면 넓이는 몇 제곱센티미터(㎠)가 되는지 구하시오.

Answer: 750

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

Question (EN): Yeongchan divided the apple into 3 equal slices and ate one slice. Minhyuk divided an apple of the same size into 12 equal slices. How many slices of apples does Minhyuk need to eat to eat the same amount of apples as Yeongchan?
Question (KO): 영찬이는 사과를 똑같이 3조각으로 나누어 한 조각을 먹었습니다. 민혁이는 같은 크기의 사과를 똑같이 12조각으로 나누었습니다. 영찬이와 같은 양의 사과를 먹으려면 민혁이는 사과를 몇 조각 먹어야 합니까?

Answer: 4

Solution (Python):
var_a = 12
var_b = 3
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): When we subtract 28 from the product of 4 and some number, divide it by 7 and add 12, we get 36. Find this number
Question (KO): 4와 어떤 수의 곱에서 28을 빼고 7로 나누고 12를 더했더니 36이 되었습니다. 어떤 수를 구하세요.

Answer: 49

Solution (Python):
var_a = 36
var_b = 12
var_c = var_a - var_b
var_d = 7
var_e = var_c * var_d
var_f = 28
var_g = var_e + var_f
var_h = 4
var_i = var_g / var_h
print(int(var_i))
Category: Geometry

Question (EN): You want to connect 25 centimeters (cm) long tapes by overlapping the next tape by 3 centimeters (cm). What is the total length in centimeters (cm) of 64 sheets of tape?
Question (KO): 길이가 25센티미터(㎝)인 테이프를 다음 테이프와 3센티미터(㎝)씩 겹쳐지게 이으려고 합니다. 64장의 테이프를 이어서 붙이면 전체의 길이는 몇 센티미터(㎝)입니까?

Answer: 1411

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

Question (EN): There were 20 tangerines each in five different baskets. After a few days, I noticed that some of the tangerines were rotten, so when I removed the rotten tangerines, the number of tangerines in the baskets became 10, 18, 17, 13, and 16, respectively. How many baskets contain 13 or fewer tangerines?
Question (KO): 서로 다른 다섯 개의 바구니에 귤이 각각 20개씩 있었습니다. 며칠이 지난 후 보니 몇 개의 귤이 썩어 썩은 귤을 빼자 바구니에 담긴 귤의 개수가 각각 10개, 18개, 17개, 13개, 16개가 되었습니다. 귤이 13개 이하로 담긴 바구니는 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 10
var_b = 18
var_c = 17
var_d = 13
var_e = 16
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 = 13
list_b = []
for i in list_a:
    if i <= var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))