philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): When 6 people A, B, C, D, E, and F are lined up in a line, find the number of ways in which A, B, and C can be placed next to each other.
Question (KO): A, B, C, D, E, F 6명을 한 줄로 세울 때, A, B, C를 서로 이웃하게 하여 세우는 경우의 수를 구하시오.

Answer: 144

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
var_f = 'F'
list_a= []
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_g = 'B'
var_h = 'C'
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()
list_c = list(set(list_a) - set(list_b))
var_i = len(list_c)
var_j = len(list_c)
var_k = 1
var_i = int(var_i)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_i-i)
var_l = 'A'
var_m = 'B'
var_n = 'C'
list_d= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_d.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_d.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_d.append(var_l)
list_d.reverse()
var_o = len(list_d)
var_p = len(list_d)
var_q = 1
var_o = int(var_o)
var_p = int(var_p)
for i, elem in enumerate(range(var_p)):
    var_q = var_q * (var_o-i)
var_r = var_k * var_q
print(int(var_r))
Category: Arithmetic calculation

Question (EN): Among the 45 students, 42 students raised their hands to say they like art, and 40 students raised their hands to say they like science. If all students participated in the survey, how many students raised their hands in both subjects?
Question (KO): 45명의 학생 중 미술을 좋아한다고 거수한 학생이 42명이고 과학을 좋아한다고 거수한 학생은 40명입니다. 모든 학생이 조사에 참여하였을 때, 두 과목 모두 손을 든 학생은 몇 명인가요?

Answer: 37

Solution (Python):
var_a = 40
var_b = 42
var_c = var_a + var_b
var_d = 45
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): How many three-digit integers can be created by pressing 3 of the 6 buttons on a calculator with the numbers 0, 1, 2, 3, 4, and 5 on them?
Question (KO): 계산기에서 0, 1, 2, 3, 4, 5의 숫자가 각각 적힌 6개의 버튼 중 3개를 눌러서 만들 수 있는 세 자리 정수의 개수는?

Answer: 100

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
list_a= []
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_g = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = len(list_b)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): What is the total length in centimeters (cm) of 30 wooden sticks 25 centimeters (cm) long when 6 centimeters (cm) are overlapped?
Question (KO): 25센티미터(㎝) 길이의 나무막대 30장을 6센티미터(㎝)겹쳐 이어붙였을 시 전체 길이는 몇 센티미터(㎝)입니까?

Answer: 576

Solution (Python):
var_a = 25
var_b = 25
var_c = 6
var_d = var_b - var_c
var_e = 30
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): Write the largest number that can be made by using all of the figures 0, 8, and 7 once.
Question (KO): 주어진 숫자카드 0, 8, 7를 한 번씩 모두 사용하여 만들 수 있는 가장 큰 수를 쓰시오.

Answer: 870

Solution (Python):
var_a = 0
var_b = 8
var_c = 7
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Correspondence

Question (EN): When you multiply a number by 3, you get 33. What number is that?
Question (KO): 어떤 수에 3을 곱했더니 33이 되었습니다. 어떤 수는 얼마일까요?

Answer: 11

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

Question (EN): Find the number of odd numbers in a three-digit number that can be formed by using 5, 6, or 7 only once.
Question (KO): 5, 6, 7 중에서 한 번씩만 사용하여 만들 수 있는 세 자리 수중에서 홀수의 개수를 구하시오.

Answer: 4

Solution (Python):
var_a = 5
var_b = 6
var_c = 7
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 = 2
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): When you subtract 50 from a number, divide it by 4, multiply it by 3, and add 28, it becomes 73. Find out what number this is.
Question (KO): 어떤 수에서 50을 뺀 후 4로 나누고, 3을 곱한 값에 28을 더한 값이 73입니다. 어떤 수를 구하시오.

Answer: 110

Solution (Python):
var_a = 73
var_b = 28
var_c = var_a - var_b
var_d = 3
var_e = var_c / var_d
var_f = 4
var_g = var_e * var_f
var_h = 50
var_i = var_g + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Taehyung's group has five students with a height of 145 centimeters (cm), 139 centimeters (cm), 155 centimeters (cm), 160 centimeters (cm), and 143 centimeters (cm). When one more student joined the group, the average height increased by 1.2 centimeters (cm). Find the height of the new student in centimeters (cm) including the decimal point.
Question (KO): 태형이네 모둠 학생 5명의 키는 145센티미터(㎝), 139센티미터(㎝), 155센티미터(㎝), 160센티미터(㎝), 143센티미터(㎝)입니다. 모둠에 1명이 더 늘어서 키의 평균이 1.2센티미터(㎝) 늘어났습니다. 새로 온 학생의 키는 몇 센티미터(㎝)인지 소수점을 포함하여 답을 구하시오.

Answer: 155.6

Solution (Python):
var_a = 145
var_b = 139
var_c = 155
var_d = 160
var_e = 143
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()
list_a = [float(i) for i in list_a]
var_f = sum(list_a)/len(list_a)
var_g = len(list_a)
var_h = 1
var_i = var_g + var_h
var_j = 1.2
var_k = var_i * var_j
var_l = var_f + var_k
print('{:.2f}'.format(round(var_l+1e-10,2)))
Category: Comparison

Question (EN): 20 students are waiting for the bus. If Jungkook came right after Yoongi, and there are 11 people who came before Jungkook, how many people came after Yoongi?
Question (KO): 20명의 학생들이 버스를 기다리고 있습니다. 정국이는 윤기 바로 뒤에 왔고, 정국이보다 먼저 온 사람은 11명이라면 윤기보다 늦게 온 사람들은 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
var_f = 1
var_g = var_e - var_f
print(int(var_g))
Category: Possibility

Question (EN): There is one rose, lily, tulip, chrysanthemum, and carnation each. I'm going to pick three of them and put them in three vases A, B, and C. How many different ways can you put flowers in a vase?
Question (KO): 장미, 백합, 튤립, 국화, 카네이션이 각각 1송이씩 있습니다. 그중에서 3송이를 뽑아 (가), (나), (다) 세 개의 꽃병에 1송이씩 꽂으려고 합니다. 꽃병에 꽃을 서로 다르게 꽂는 방법은 모두 몇 가지입니까?

Answer: 60

Solution (Python):
var_a = 'rose'
var_b = 'lily'
var_c = 'tulip'
var_d = 'chrysanthemum'
var_e = 'carnation'
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 = len(list_a)
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)
print(int(var_h))
Category: Possibility

Question (EN): You are trying to select two people from Jungkook, Jimin, Yoongi, Yuna, and Taehyung allowing duplicate cases. Find the possible number of cases.
Question (KO): 정국, 지민, 윤기, 유나, 태형 중에서 중복을 허용하여 두 사람을 선택하려고 합니다. 선택할 수 있는 경우는 모두 몇 가지 입니까?

Answer: 15

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
var_e = 'Taehyung'
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 = len(list_a)
var_g = 2
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = 2
var_l = 1
var_j = int(var_j)
var_k = int(var_k)
for i, elem in enumerate(range(var_k)):
    var_l = var_l * (var_j-i)
for i, elem in enumerate(range(var_k)):
    var_l = var_l / (i+1)
print(int(var_l))
Category: Possibility

Question (EN): If you select three of the four numbers 1, 2, 3, and 4, allowing duplicates, and arrange them in a row to form a three-digit natural number. How many multiples of 3 are there?
Question (KO): 4개의 숫자 1, 2, 3, 4 중에서 중복을 허락하여 3개를 택해 일렬로 나열하여 세 자리의 자연수를 만들 때, 3의 배수의 개수는?

Answer: 22

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.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 = 3
list_c = []
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
var_g = len(list_c)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Saham walked 2.6 kilometers (km) today, and Saham's mother walked 5.98 kilometers (km). How many kilometers (km) is the sum of the distance that Saham and his mother walked?
Question (KO): 사함이는 오늘 2.6킬로미터(㎞) 걸었고, 사함이의 어머니는 5.98킬로미터(㎞) 걸었습니다. 사함이와 어머니가 걸은 거리를 합하면 몇 킬로미터(㎞)입니까?

Answer: 8.58

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

Question (EN): The sum of the four sides of a rectangle is 48 centimeters (cm), and the width of the rectangle is 2 centimeters (cm) shorter than its length. Find the width of the rectangle.
Question (KO): 직사각형의 네 변의 합이 48센티미터(㎝)이고 가로의 길이가 세로의 길이보다 2센티미터(㎝) 짧다. 직사각형의 가로의 길이를 구하시오.

Answer: 11

Solution (Python):
var_a = 48
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: Correspondence

Question (EN): Dividing a three-digit number with 9 in the hundreds place is divisible by 7. How many of these three digit numbers are there?
Question (KO): 백의 자리 숫자가 9인 세 자리 수를 7로 나누면 나누어떨어집니다. 이런 세 자리 수는 모두 몇 개입니까?

Answer: 14

Solution (Python):
var_a = 9
var_b = 100
var_c = var_a * var_b
var_d = 9
var_e = 100
var_f = var_d * var_e
var_g = 99
var_h = var_f + var_g
var_i = 1
list_a = [i for i in range(var_c, var_h + 1, var_i)]
var_j = 7
list_b = []
var_j = int(var_j)
for i in list_a:
    i = int(i)
    if i % var_j == 0:
        list_b.append(i)
var_k = len(list_b)
print(int(var_k))
Category: Possibility

Question (EN):  We are going to use 2 of our number cards 2, 4, and 5 in order to create a double-digit number. How many multiples of 4 can you make?
Question (KO): 2, 4, 5 총 3장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 4의 배수는 모두 몇 개일까요?

Answer: 2

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

Question (EN): It takes 0.84 meters (m) of ribbon tape to make one ribbon. After making 10 ribbons with the ribbon tape that Yujin has, there are 50 centimeters (cm) left. How many meters (m) is the ribbon tape that Yujin had at first?
Question (KO): 리본 한 개를 만드는데 리본 테이프 0.84미터(m)가 필요합니다. 유진이가 가지고 있는 리본 테이프로 리본을 10개 만들었더니 50센티미터(㎝)가 남았습니다. 유진이가 처음에 가지고 있던 리본 테이프의 길이는 몇 미터(m)일까요?

Answer: 8.9

Solution (Python):
var_a = 0.84
var_b = 10
var_c = var_a * var_b
var_d = 50
var_e = 100
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): When A78-21B=364, where A79 and 21B are three-digit numbers. Find A.
Question (KO): A78-21B=364일 때, A를 구하시오.

Answer: 5

Solution (Python):
var_a = 'A78-21B=364'
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: Arithmetic calculation

Question (EN): If the age of the mother is 4 times that of the daughter this year, and the sum of the ages of the mother and daughter is 71 after 8 years, how old will the mother be after 5 years?
Question (KO): 올해는 어머니의 나이가 딸보다 4배, 8년 후에는 어머니와 딸 나이의 합이 71살이라면, 5년 후에 어머니는 몇 살입니까?

Answer: 49

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

Question (EN): Find the product of the smallest number and the largest number among 2.8, 2.3, 5, 3, and 4.3.
Question (KO): 2.8, 2.3, 5, 3, 4.3 중 가장 작은 수와 가장 큰 수의 곱을 구하시오.

Answer: 11.5

Solution (Python):
var_a = 2.8
var_b = 2.3
var_c = 5
var_d = 3
var_e = 4.3
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]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g * var_i
print('{:.2f}'.format(round(var_j+1e-10,2)))
Category: Comparison

Question (EN): There are a total of three numbers: 0.8, 1/2, and 0.5. What is the sum of all numbers less than or equal to 2?
Question (KO): 총 3개의 숫자 0.8, 1/2, 0.5이 있습니다. 이 중 2보다 작거나 같은 수를 모두 더하면 얼마인가요?

Answer: 1.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)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Arithmetic calculation

Question (EN): It takes 10 days for Sumin to do something alone, and 15 days for Junwoo to do it alone. Answer how many days it will take to complete the task if two people are doing it together.
Question (KO): 어떤 일을 하는 데 수민이가 혼자서 하면 10일이 걸리고, 준우가 혼자서 하면 15일이 걸립니다. 이 일을 두 사람이 같이 한다면 일을 끝내는 데 며칠이 걸리는지 답을 구하세요.

Answer: 6

Solution (Python):
var_a = 1
var_b = 1
var_c = 10
var_d = var_b / var_c
var_e = 1
var_f = 15
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: Possibility

Question (EN): How many three-digit numbers are there that are greater than 150 and less than 700, given that the numbers 7, 1, and 3 are used once?
Question (KO): 주어진 숫자 7, 1, 3을 한 번씩 모두 사용했을 때, 150보다 크고 700보다 작은 세 자리 수의 개수는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 7
var_b = 1
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.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 = 150
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 700
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))
Category: Geometry

Question (EN): Rectangular business cards measuring 5 centimeters (cm) wide and 7 centimeters (cm) long were laid out without overlapping, filling the bottom of the square box. How many centimeters (cm) is each side of this box at its smallest size?
Question (KO): 가로가 5센티미터(㎝), 세로가 7센티미터(㎝)인 직사각형 모양의 명함을 겹치지 않게 빈틈없이 늘어놓아 정사각형 모양의 상자 바닥을 가득 채웠습니다. 이 상자의 크기가 최소일 때 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 35

Solution (Python):
var_a = 5
var_b = 7
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Comparison

Question (EN): Students are standing in a line. Yoojung is standing at the very front. When 10 students are standing behind Yoojeong, how many students are in the line?
Question (KO): 학생들이 한 줄로 서 있습니다. 유정이는 맨 앞에 서 있습니다. 유정이 뒤에 10명이 서 있을 때, 줄을 서 있는 학생은 모두 몇 명입니까?

Answer: 11

Solution (Python):
var_a = 10
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Yoongi collected 4, Jungkook collected 6 divided by 3, and Yuna collected 5. Who got the smallest number?
Question (KO): 윤기는 4, 정국이는 6에서 3을 나눈 몫 만큼 모았고, 유나는 5만큼 모았습니다. 누가 가장 작은 수를 모았습니까?

Answer: Jungkook

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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 = 4
var_e = 6
var_f = 3
var_g = var_e // var_f
var_h = 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_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): The quotient of 665655 divided by 5 is the six-digit number ABCDEF. Find the sum of A, B, C, D, E, and F.
Question (KO): 665655를 5로 나눈 몫은 여섯 자리 수 ABCDEF입니다. A, B, C, D, E, F의 합을 구하시오.

Answer: 12

Solution (Python):
var_a = 665655
var_b = 5
var_c = var_a / var_b
list_a = []
var_c = int(var_c)
while var_c//10 > 0:
    list_a.append(var_c%10)
    var_c = var_c//10
list_a.append(var_c%10)
list_a = list_a[::-1]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There is a wire with a total length of 3.944 meters (m). Eight cuts of 29.05 cm (cm) were cut from this wire. When dividing the remaining length into 9 equal parts, find the length of one cut-off.
Question (KO): 전체 길이가 3.944미터(m)인 철사가 있다. 이 철사에서 29.05센티미터(㎝) 씩 8번 잘라냈다. 남은 길이를 9등분할 때, 잘려진 하나의 길이를 구하시오.

Answer: 18

Solution (Python):
var_a = 3.944
var_b = 100
var_c = var_a * var_b
var_d = 29.05
var_e = 8
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 8
var_i = 1
var_j = var_h + var_i
var_k = var_g / var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2)))))
Category: Comparison

Question (EN): Today Yeseul exercised for 13/10 hours and Youngjun for 22/15 hours. Who has been exercising longer, Yeseul or Youngjun?
Question (KO): 오늘 운동은 예슬이는 13/10시간, 영준이는 22/15시간 하였다. 예슬과 영준 중 누가 더 오래 운동했는가?

Answer: Youngjun

Solution (Python):
var_a = 'Yeseul'
var_b = 'Youngjun'
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 = 13
var_d = 10
var_e = var_c / var_d
var_f = 22
var_g = 15
var_h = var_f / var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): There are the total of 210 apples and persimmons. The number of apples and persimmons is four times and three times the number of bananas, respectively. So how many bananas are there in total?
Question (KO): 사과와 감은 총 210개 있다. 사과와 감의 개수는 각각 바나나의 개수의 4배, 3배이다. 그렇다면 바나나는 총 몇 개입니까?

Answer: 30

Solution (Python):
var_a = 210
var_b = 4
var_c = 3
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e))