philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Find the number of natural numbers in the following range: 8 or more and 21 or less.
Question (KO): 다음 범위 사이의 자연수 개수를 구하시오. 8 이상 21 이하.

Answer: 14

Solution (Python):
var_a = 8
var_b = 21
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = len(list_a)
print(int(var_d))
Category: Geometry

Question (EN): How many vertices does a pyramid with a regular hexagonal base have?
Question (KO): 밑면이 정육각형인 각뿔의 꼭짓점은 총 몇 개인가?

Answer: 7

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): Divide 172 by 4, subtract 28, and then multiply by this number, and add 7 to get 172. Find this number.
Question (KO): 172를 4로 나눈 뒤 28을 빼고 어떤 수를 곱한 뒤 7을 더하면 172가 된다. 어떤 수를 구하시오.

Answer: 11

Solution (Python):
var_a = 172
var_b = 7
var_c = var_a - var_b
var_d = 172
var_e = 4
var_f = var_d / var_e
var_g = 28
var_h = var_f - var_g
var_i = var_c / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): It takes Jinsu 4 hours to complete a task by himself. What is the amount of work that Jinsu can do in one hour?
Question (KO): 어떤 일을 진수가 혼자서 완성하는 데 4시간이 걸린다. 진수가 한 시간 동안 할 수 있는 일의 양은 전체의 얼마인가?

Answer: 0.25

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

Question (EN): A and B are single digit numbers. Add 4 to 2 to get A, subtract 1 from 3 to get B. Find A+B at this time.
Question (KO): A, B는 한 자리 수이다. 2에 4를 더하면 A가 되고 3에서 1을 빼면 B가 된다. 이때 A+B를 구하여라.

Answer: 10

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

Question (EN): Between a certain natural number and 81, there are 15 consecutive natural numbers. What is this certain number if it is a natural number less than 81?
Question (KO): 어떤 자연수와 81 사이에는 연속된 자연수가 15개 있습니다. 어떤 수는 81보다 작은 자연수일 때 어떤 수는 얼마입니까?

Answer: 65

Solution (Python):
var_a = 81
var_b = 15
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): There are 3 kinds of chicken and 2 kinds of drinks, and you want to choose one from each to eat for lunch. How many choices can you make?
Question (KO): 3종류의 치킨과 2종류의 음료수가 있을 때, 하나씩 골라서 점심에 먹으려고 합니다. 몇 가지의 선택을 할 수 있습니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 2
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): When you took the exam of Korean, Social, Mathematics, English, and Science in order, what subject did you take third?
Question (KO): 국어, 사회, 수학, 영어, 과학 시험을 순서대로 봤을 때, 3번째로 치른 시험은 무슨 과목입니까?

Answer: Mathematics

Solution (Python):
var_a = 'Korean'
var_b = 'Social'
var_c = 'Mathematics'
var_d = 'English'
var_e = 'Science'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): If you tell the King of Addition any two numbers, he can quickly add all the numbers in between of that two. When you told him 6 and 21, what would be the answer of the King of Addition?
Question (KO): 덧셈왕에게 두 수를 말해주면 그 사이의 모든 수를 빠르게 더할 수 있다. 6와 21을 말해주었을 때, 덧셈왕의 대답은?

Answer: 216

Solution (Python):
var_a = 6
var_b = 21
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)
print(int(var_d))
Category: Possibility

Question (EN): There are 12 carnations. You gave one carnation to each of the two teachers. Then, you would like to distribute the remaining carnations to two teachers. How many ways are there?
Question (KO): 12개의 카네이션이 있습니다. 2명의 선생님께 각각 카네이션 한 송이씩 드렸습니다. 그다음 다시 남은 카네이션을 2명의 선생님들께 나누어 드리려고 합니다. 카네이션을 나누어 드리는 방법은 모두 몇 가지인지 구하시오.

Answer: 11

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

Question (EN): A certain number is the smallest three-digit number that leaves a remainder of 7 when divided by 20 and a remainder of 7 when divided by 25. What number is it?
Question (KO): 어떤 수는 20으로 나누어도 7이 남고, 25로 나누어도 7이 남는 세 자리 수 중에서 가장 작은 수입니다. 어떤 수는 얼마입니까?

Answer: 107

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 20
var_e = 7
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 = 25
var_g = 7
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 = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[var_h-1]
print(int(var_i))
Category: Correspondence

Question (EN): What number must be in B to make A7B+23=695, where 27B is three-digit number?
Question (KO): A7B+23=695라는 식이 성립하려면, B에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = 'A7B+23=695'
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): The sum of 5 consecutive natural numbers is 60. Find the last number.
Question (KO): 연속하는 5개의 자연수의 합이 60입니다 마지막 수를 구하시오

Answer: 14

Solution (Python):
var_a = 60
var_b = 0
var_c = 5
var_d = 1
var_e = var_c - var_d
var_f = 1
list_a = [i for i in range(var_b, var_e + 1, var_f)]
list_a = [float(i) for i in list_a]
var_g = sum(list_a)
var_h = var_a - var_g
var_i = 5
var_j = var_h / var_i
var_k = 5
var_l = 1
var_m = var_k - var_l
var_n = var_j + var_m
print(int(var_n))
Category: Arithmetic calculation

Question (EN): After 24 years, Minsu's age will have been four times his current age. How old is Minsu now?
Question (KO): 24년이 지난 후의 민수의 나이는 현재 나이의 4배입니다. 현재 민수는 몇 살일까요?

Answer: 8

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

Question (EN): Rounding down 2A3 to the nearest ten makes it 280. What is A?
Question (KO): 2A3을 버림하여 십의 자리까지 나타내면 280이 됩니다. A를 구하시오.

Answer: 8

Solution (Python):
var_a = '2A3'
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 = 280
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 280
var_d = 10
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = '2A3'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Arithmetic calculation

Question (EN): (A) apartment complex has four buildings. Each building has up to 6 floors, and there are two households on the first floor of each building, and three households on each floor from the second to sixth floor. How many households can live in (A) apartment complex?
Question (KO): (가) 아파트 단지에는 4개의 동이 있습니다. 각 동마다 6층까지 있고, 각 동의 1층에는 두 가구, 그리고 2층부터 6층까지에는 각 층마다 세 가구씩 있습니다. (가) 아파트 단지에는 몇 가구가 살 수 있습니까?

Answer: 68

Solution (Python):
var_a = 4
var_b = 1
var_c = 2
var_d = var_b * var_c
var_e = 6
var_f = 2
var_g = var_e - var_f
var_h = 1
var_i = var_g + var_h
var_j = 3
var_k = var_i * var_j
var_l = var_d + var_k
var_m = var_a * var_l
print(int(var_m))
Category: Geometry

Question (EN): There are two squares whose area ratio is 9:25. When two cubes are made using these squares of the same size as each square, find how many times the volume of the larger cube is the volume of the smaller cube.
Question (KO): 넓이의 비가 9:25인 정사각형이 두 개 있습니다. 각각의 정사각형과 크기가 같은 정사각형들을 이용해 정육면체를 두 개 만들었을 때 만들어진 정육면체 중 큰 정육면체의 부피는 작은 정육면체의 부피의 몇 배인지 구하시오.

Answer: 4.63

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

Question (EN): There are four numbers 10, 11, 12, and 13. What do you get if you combine the largest number and the second smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 가장 큰 수와 2번째로 작은 수의 합은 얼마입니까?

Answer: 24

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

Question (EN): A carton of milk weighed eight kilograms (kg). After using half the milk, I weighed it again and it was 5 kilograms (kg). How many kilograms (kg) does an empty milk carton weigh?
Question (KO): 우유 한 통의 무게가 8킬로그램(㎏)이었습니다. 우유를 절반만큼 쓴 후에 무게를 다시 재어 보니 5킬로그램(㎏)이 되었습니다. 빈 우유통의 무게는 몇 킬로그램(㎏)입니까?

Answer: 2

Solution (Python):
var_a = 8
var_b = 8
var_c = 5
var_d = var_b - var_c
var_e = 1
var_f = var_d * var_e
var_g = 0.5
var_h = var_f / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Comparison

Question (EN): There are 4 books weighing 0.26 kg (kg) in Myeongseok's bag, and 1 book weighing 1.2 kg (kg) is in Mingu's bag. If two people's bags weigh the same, whose bag is heavier?
Question (KO): 명석이의 가방에는 0.26킬로그램(㎏)의 책이 4권 있고, 민구의 가방에는 1.2킬로그램(㎏)의 책이 1권 있습니다. 두 사람의 가방의 무게가 같다면 누구의 가방이 더 무겁습니까?

Answer: Mingu

Solution (Python):
var_a = 'Myeongseok'
var_b = 'Mingu'
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 = 4
var_d = 0.26
var_e = var_c * var_d
var_f = 1.2
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: Geometry

Question (EN): If you add the number of diagonals and the number of sides of a regular dodecagon, what will you get?
Question (KO): 정십이각형의 대각선 개수와 변 개수를 더하면, 얼마가 나오는가?

Answer: 66

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

Question (EN): Students are trying to line up at intervals of 6 meters (m) on a playground that is 156 meters (m) long. How many students can line up at the beginning and end when students are said to line up?
Question (KO): 길이가 156미터(m)인 운동장에 학생들이 6미터(m)간격으로 줄을 서려고 합니다. 처음과 끝에도 학생들이 선다고 할 때 몇 명의 학생이 줄을 설 수 있나요?

Answer: 27

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

Question (EN): What is the smallest three-digit number that is a multiple of 6 and that of 5, 8, and 9?
Question (KO): 6의 배수이면서 5의 배수이면서 8의 배수이면서 9의 배수인 수 중 가장 작은 세 자리 수는 무엇입니까?

Answer: 360

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
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 = 5
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = 1
list_f=list_e.copy()
list_f.sort()
var_i = list_f[var_h-1]
print(int(var_i))
Category: Correspondence

Question (EN): Rounding the five-digit number 62A94 to the hundred's place is 63000. Find the sum of the numbers from 0 to 9 that can be used for A.
Question (KO): 다섯 자리 수 62A94를 백의 자리에서 반올림하면 63000이 됩니다. 0부터 9까지의 숫자 중 A에 쓸 수 있는 수들의 합을 구하시오.

Answer: 35

Solution (Python):
var_a = '62A94'
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 = 62500
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = '62A94'
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))
list_c = [float(i) for i in list_c]
var_e = sum(list_c)
print(int(var_e))
Category: Correspondence

Question (EN): What numbers can be put in A if 3A5-2B=364?
Question (KO): 3A5-2B=364에서 A에서 들어갈 수 있는 숫자는 무엇인가요?

Answer: 8

Solution (Python):
var_a = '3A5-2B=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: Correspondence

Question (EN): I have to subtract a number from 514, but I accidentally added a number and it became 913. How much is it if I calculate it correctly?
Question (KO): 514에서 어떤 수를 빼어야 할 것을 잘못하여 더하였더니 913이 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 115

Solution (Python):
var_a = 514
var_b = 913
var_c = 514
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e))
Category: Correspondence

Question (EN): A number divided by 4 is 12. What is the value when the number is divided by 3?
Question (KO): 어떤 수를 4로 나누었더니 12가 됩니다. 3으로 어떤 수를 나누면 얼마입니까?

Answer: 16

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

Question (EN): When you wrongly multiply a number that should have been divided by 0.55, you get 4.235. What is the quotient when calculated correctly?
Question (KO): 어떤 수를 0.55로 나누어야 할 것을 잘못하여 곱하였더니 4.235가 되었습니다. 바르게 계산했을 때의 몫은 얼마입니까?

Answer: 14

Solution (Python):
var_a = 4.235
var_b = 0.55
var_c = var_a / var_b
var_d = 0.55
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): Two different numbers were drawn from 9, 4, 3, and 5 to form a two-digit number. What is the difference between the largest number and the smallest number?
Question (KO): 서로 다른 숫자 2개를 9, 4, 3, 5 중에서 뽑아 두 자리 수를 만들었다. 가장 큰 수와 가장 작은 수의 차는 몇인가?

Answer: 61

Solution (Python):
var_a = 9
var_b = 4
var_c = 3
var_d = 5
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g - var_i
print(int(var_j))
Category: Possibility

Question (EN): How many ways are there to divide all 32 apples and put them in a box without any remainder? (However, putting 32 apples in one box is not considered.)
Question (KO): 사과 32개를 남김없이 나누어 상자에 담는 방법은 모두 몇 가지입니까?(단, 사과 32개를 하나에 보관하는 경우는 고려하지 않는다.)

Answer: 5

Solution (Python):
var_a = 32
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 = 1
list_b= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_b.append(var_b)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are three numbers 10, 11, and 12. What is the remainder when the largest number is divided by the second smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 큰 수를 2번째로 작은 수로 나눈 나머지는 얼마입니까?

Answer: 1

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 = 1
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-1]
var_h = var_e % var_g
print(int(var_h))
Category: Geometry

Question (EN): One cube is made by stacking 8 small cubes with a surface area of 96 square centimeters (cm2). What is the volume of this stacked cube?
Question (KO): 어떤 정육면체는 겉넓이가 96제곱센티미터(㎠)인 작은 정육면체 8개를 쌓아 올려 만들어졌습니다. 이 쌓아 만들어진 정육면체의 부피는 얼마입니까?

Answer: 512

Solution (Python):
var_a = 96
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 8
var_g = 2
var_h = var_f / var_g
var_i = 2
var_j = var_h / var_i
var_k = var_e * var_j
var_l = 3
var_m = var_k ** var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): It takes 400 grams (g) of flour to make 3 loaves of bread. How many slices of bread can you make with 2.3 kilograms (kg) of flour? (However, you can only make 3 slices of bread at a time.)
Question (KO): 식빵 3개를 만드는 데 밀가루 400그램(g)이 필요합니다. 밀가루 2.3킬로그램(㎏)으로는 식빵을 몇 개까지 만들 수 있습니까? (단, 식빵은 한번에 3개씩만 만들 수 있습니다.)

Answer: 15

Solution (Python):
var_a = 2.3
var_b = 1000
var_c = var_a * var_b
var_d = 400
var_e = var_c // var_d
var_f = 3
var_g = var_e * var_f
print(int(var_g))