philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are 28 identical bookshelves in the library. Each bookshelf has 6 floors, and the number of books on each floor is the same. It is said that when the first book and the last book were removed from a shelf, there were 20 books left on that floor. How many books are on the shelves in the library?
Question (KO): 도서관에 똑같은 책장이 28개 있습니다. 각 책장은 6층이고, 각 층마다 꽂혀 있는 책의 수는 같습니다. 어느 책장의 한 층에서 맨 앞쪽의 책과 맨 뒤쪽의 책을 뽑았을 때 그 층에 20권이 남았다고 합니다. 도서관의 책장에 꽂혀 있는 책은 모두 몇 권입니까?

Answer: 3696

Solution (Python):
var_a = 20
var_b = 2
var_c = var_a + var_b
var_d = 6
var_e = var_c * var_d
var_f = 28
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): I need to add 32 to a number, but I mistakenly subtracted 32, so I got 33. Find the result of the correct calculation.
Question (KO): 어떤 수에 32를 더해야 하는데 잘못하여 32를 뺐더니 33이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 97

Solution (Python):
var_a = 33
var_b = 32
var_c = var_a + var_b
var_d = 32
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): Sunkyung drew all the diagonals of an octagon. How many lines did she draw in total?
Question (KO): 선경이는 팔각형의 대각선을 모두 그었다. 총 몇 개의 선을 그었는가?

Answer: 20

Solution (Python):
var_a = 8
var_b = 8
var_c = 3
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: Possibility

Question (EN): How many three-digit numbers have the sum of the ones, tens, and hundreds digits equal to 24?
Question (KO): 세 자리 수 중 일의 자리, 십의 자리, 백의 자리 숫자의 합이 24인 수는 모두 몇 개일까요?

Answer: 10

Solution (Python):
var_a = 100
var_b = 1000
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
list_b=[]
for i in list_a:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_b.append(var_f)
var_g = 24
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = 24
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = len(list_d)
print(int(var_i))
Category: Possibility

Question (EN): Eight classes are going to play a basketball game. Two teams play each other, and the losing team is eliminated, and only the winning team can play the next game, and the winning team at the end wins. Find the total number of matches.
Question (KO): 8개 반이 농구 시합을 하려고 합니다. 두 팀씩 경기를 하여 패배한 팀은 탈락하고 승리한 팀만 다음 경기를 할 수 있으며, 마지막에 승리한 팀이 우승합니다. 경기의 총 횟수를 구하시오.

Answer: 30

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

Question (EN): The length of one side of a cube-shaped die is 9 centimeters (cm). Choose one side of the die and find how many centimeters (cm) is the sum of the lengths of the sides that make up this side.
Question (KO): 정육면체 모양의 주사위의 한 변의 길이는 9센티미터(㎝)입니다. 이 주사위의 한 면을 선택해 이 면을 이루는 변의 길이를 모두 합하면 몇 센티미터(㎝)일지 구하시오.

Answer: 36

Solution (Python):
var_a = 9
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Yuna's father is 27 years older than Yuna and her grandfather is 23 years older than her father. If Yuna is 9 years old this year, how old is Yuna's grandfather this year?
Question (KO): 아버지는 유나보다 27살이 많고 할아버지는 아버지보다 23살이 많습니다. 올해 유나가 9살이라면, 올해 할아버지의 나이는 몇 살입니까?

Answer: 59

Solution (Python):
var_a = 9
var_b = 27
var_c = var_a + var_b
var_d = 23
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 20 apples in the bag. How many apples are in all 5 bags?
Question (KO): 사과가 가방에 20개 들어 있습니다. 가방 5개에 들어있는 사과는 모두 몇 개입니까?

Answer: 100

Solution (Python):
var_a = 20
var_b = 5
var_c = var_a * var_b
print(int(var_c))
Category: Possibility

Question (EN): How many three-digit numbers less than 300 satisfiy the following condition that the sum of each digit needs to be 7?
Question (KO): 300보다 작은 세자리 자연수 중 각 자리수의 합이 7인 숫자는 몇 개 인지 구하시오.

Answer: 13

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 = 300
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
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 = 7
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): I should add 479 to a certain number, but the result I get by accidentally subtracting 749 from a certain number is 280. Find the correct calculated value.
Question (KO): 280은 어떤 수에 479를 더해야 하는데 잘못하여 749를 빼서 구한 결과이다. 바르게 계산한 값을 구하여라.

Answer: 1508

Solution (Python):
var_a = 280
var_b = 749
var_c = var_a + var_b
var_d = 479
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): The volume of the red box is 0.01 cubic meters (m3), and the volume of the yellow box is 4800 cubic centimeters (cm3). What is the difference between the volume of the red box and the yellow box?
Question (KO): 빨간 상자의 부피는 0.01세제곱미터(㎥)이고 노란 상자의 부피는 4800세제곱센티미터(㎤)입니다. 빨간 상자와 노란 상자의 부피의 차는 얼마인지 구하시오.

Answer: 5200

Solution (Python):
var_a = 0.01
var_b = 100
var_c = 100
var_d = 100
var_e = var_c * var_d
var_f = var_b * var_e
var_g = var_a * var_f
var_h = 4800
var_i = var_g - var_h
var_j = abs(var_i)
print(int(var_j))
Category: Geometry

Question (EN): How many centimeters (cm) is the length of the other side of an isosceles triangle with a side of 6 centimeters (cm) and a perimeter of 20 centimeters (cm)?
Question (KO): 한 변의 길이가 6센티미터(㎝)이고, 둘레의 길이가 20센티미터(㎝)인 이등변 삼각형의 다른 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 7

Solution (Python):
var_a = 20
var_b = 6
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): Find the sum of all two-digit numbers that can be formed by using the numbers 2 and 5 as duplicates.
Question (KO): 숫자 2, 5를 중복으로 사용하여 만들 수 있는 모든 두 자리 수의 합을 구하시오.

Answer: 154

Solution (Python):
var_a = 2
var_b = 5
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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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]
list_b = [float(i) for i in list_b]
var_d = sum(list_b)
print(int(var_d))
Category: Comparison

Question (EN): The admission fee for an exhibition is 10,000 won per person. The number of visitors was 350 on the first day of opening, 427 on the second day, 384 on the third day, 402 on the fourth day, and 431 on the fifth day. What is the average ticket revenue for days when there were fewer than 400 visitors?
Question (KO): 어느 전시회의 입장료는 1인당 10000원입니다. 입장객을 세어 보니 개장 첫 날에는 350명, 2일차에는 427명, 3일차에는 384명, 4일 차에는 402명, 5일 차에는 431명이 왔습니다. 입장객이 400명 이하였던 날들의 평균 입장료 수입은 얼마입니까?

Answer: 3670000

Solution (Python):
var_a = 350
var_b = 427
var_c = 384
var_d = 402
var_e = 431
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 = 400
list_b = []
for i in list_a:
    if i <= var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)/len(list_b)
var_h = 10000
var_i = var_g * var_h
print(int(var_i))
Category: Comparison

Question (EN): There are 1443 students in total in one school. The total number of girls is 141 fewer than the number of boys. How many boys are there in this school?
Question (KO): 한 학교에 전교생이 1443명이 있습니다. 전체 여학생 수는 남학생 수보다 141명 더 적다고 합니다. 남학생은 이 학교에 몇 명이 있습니까?

Answer: 792

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

Question (EN): How many faces of an icosahedron meet at a vertex?
Question (KO): 정이십면체에서 한 꼭짓점에 모인 면은 모두 몇 개 일까요?

Answer: 5

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

Question (EN): Minsu wants to color the faces of the pentagonal prism. How many colors do you need if you use a different color for each face?
Question (KO): 민수는 오각기둥의 면을 색칠하려고 합니다. 각 면마다 다른 색을 사용한다고 할 때 필요한 색은 몇 가지입니까?

Answer: 7

Solution (Python):
var_a = 2
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The five different four-digit numbers 9867, 8976, 9876, 9687, and 9689 are listed from smallest on the left to largest on the right. What is the 4th number from the left?
Question (KO): 서로 다른 5개의 네 자리 수 9867, 8976, 9876, 9687, 9689를 작은 수부터 왼쪽부터 차례로 나열했습니다. 왼쪽에서 4번째에 있는 수는 무엇입니까?

Answer: 9867

Solution (Python):
var_a = 9867
var_b = 8976
var_c = 9876
var_d = 9687
var_e = 9689
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 = 4
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))
Category: Possibility

Question (EN): Yuna draws 3 out of 5 number cards and tries to line them up. How many ways can a number card be placed?
Question (KO): 유나는 5장의 숫자 카드 중 3장을 뽑아 일렬로 세우려고 합니다. 숫자 카드를 배치할 수 있는 경우는 모두 몇 가지입니까?

Answer: 60

Solution (Python):
var_a = 5
var_b = 3
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)
print(int(var_c))
Category: Geometry

Question (EN): A rectangle has a width of 81/4 centimeters (cm) and a height of 148/9 centimeters (cm). What is the area of this rectangle in square centimeters (cm2)?
Question (KO): 가로의 길이가 81/4센티미터(㎝)이며 세로의 길이가 148/9센티미터(㎝)인 직사각형이 있습니다. 이 직사각형의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 333

Solution (Python):
var_a = 20.25
var_b = 16.444444444444443
var_c = var_a * var_b
print(int(eval('{:.2f}'.format(round(var_c+1e-10,2)))))
Category: Geometry

Question (EN): What is the number of faces of a pentagonal prism?
Question (KO): 오각기둥의 면의 개수는?

Answer: 7

Solution (Python):
var_a = 5
var_b = 2
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Kyungsoo's group of students did the long jump. Kyungsoo jumped 2.3 meters (m), Younghee jumped 9/10 meters (m), Jinju jumped 1.8 meters (m), and Chanho jumped 2.5 meters (m). Who came as the second?
Question (KO): 경수의 그룹 학생들이 멀리뛰기를 했다. 경수가 2.3미터(m), 영희가 9/10미터(m), 진주가 1.8미터(m), 찬호가 2.5미터(m)를 뛰었을 때 2위는?

Answer: Kyungsoo

Solution (Python):
var_a = 'Kyungsoo'
var_b = 'Younghee'
var_c = 'Jinju'
var_d = 'Chanho'
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.3
var_f = 9
var_g = 10
var_h = var_f / var_g
var_i = 1.8
var_j = 2.5
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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_k = 2
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Arithmetic calculation

Question (EN): There are three numbers 10, 11, and 12. What is the product of the largest number and the next largest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 큰 수와 그 다음으로 큰 수의 곱은 얼마입니까?

Answer: 132

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]
var_h = var_e * var_g
print(int(var_h))
Category: Comparison

Question (EN): In the midterm, Yeji took four tests: Korean, Mathematics, Social Studies, and Science. If she took Korean language before math, and social studies later than math but before science, which subject did she take last?
Question (KO): 예지는 중간고사에서 국어, 수학, 사회, 과학 네 과목의 시험을 봤습니다. 국어를 수학보다 먼저 보고, 사회는 수학보다는 나중에, 과학보다는 먼저 봤을 때, 가장 나중에 본 과목은 어떤 과목입니까?

Answer: Science

Solution (Python):
var_a = 'Korean'
var_b = 'Mathematics'
var_c = 'Social'
var_d = 'Science'
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 = 'Korean'
var_f = 'Mathematics'
var_g = '>'
var_h = 'Social'
var_i = 'Mathematics'
var_j = '<'
var_k = 'Social'
var_l = 'Science'
var_m = '>'
list_b= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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_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()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Geometry

Question (EN): A pond in the shape of a circle has a diameter of 14 meters (m). What is the radius of the pond in meters (m)?
Question (KO): 원의 모양을 하고 있는 어느 연못의 지름이 14 미터(m)입니다. 연못의 반지름은 몇 미터(m) 인가요?

Answer: 7

Solution (Python):
var_a = 14
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): A number is greater than 35 and less than 70. When a number is divided by 6, the remainder is 3. When a number is divided by 8, the remainder is 1. Find a number.
Question (KO): 어떤 수는 35보다 크고, 70보다 작습니다. 어떤 수를 6으로 나누면, 나머지가 3입니다. 어떤 수를 8로 나누면, 나머지가 1입니다. 어떤 수를 구하시오.

Answer: 57

Solution (Python):
var_a = 35
var_b = 70
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
var_f = 6
var_g = 3
list_b = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_a:
    i = int(i)
    if i%var_f == var_g:
        list_b.append(i)
var_h = 8
var_i = 1
list_c = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_b:
    i = int(i)
    if i%var_h == var_i:
        list_c.append(i)
var_j = 1
var_k = list_c[var_j-1]
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There are three numbers 10, 11, and 12. What is the difference between the 2nd largest number and the 2nd smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 2번째로 큰 수와 2번째로 작은 수의 차는 얼마입니까?

Answer: 0

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

Question (EN): The weight of 7 students in Haengdo's class was each 35.1 kilograms (kg), 41.3 kilograms (kg), 38.6 kilograms (kg), 40.2 kilograms (kg), 39.0 kilograms (kg), 43.7 kilograms (kg), 38.4 kilograms (kg). How many students are over 39 kilograms (kg) at the time?
Question (KO): 행도네 반 학생 7명의 몸무게가 35.1킬로그램(㎏), 41.3킬로그램(㎏), 38.6킬로그램(㎏), 40.2킬로그램(㎏), 39.0킬로그램(㎏), 43.7킬로그램(㎏), 38.4킬로그램(㎏)일 때 39킬로그램(㎏) 이상인 학생은 몇 명입니까?

Answer: 4

Solution (Python):
var_a = 35.1
var_b = 41.3
var_c = 38.6
var_d = 40.2
var_e = 39
var_f = 43.7
var_g = 38.4
list_a= []
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_h = 39
list_b = []
for i in list_a:
    if i >= var_h:
        list_b.append(i)
var_i = len(list_b)
print(int(var_i))
Category: Correspondence

Question (EN): You want to divide 24 by a certain number. However, you mistakenly added some number to 40, and the result was 52. What is the correct calculation result?
Question (KO): 24에 어떤 수를 나누려고 합니다. 잘못하여 40에 어떤 수를 더하였더니 결과는 52가 되었습니다. 바르게 계산한 결과는 얼마일까요?

Answer: 2

Solution (Python):
var_a = 24
var_b = 52
var_c = 40
var_d = var_b - var_c
var_e = var_a / var_d
print(int(var_e))
Category: Possibility

Question (EN): Find the sum of the largest two-digit decimal number and the smallest three-digit decimal number that can be formed by using all four cards with the numbers 3, 1, 7, and 4 only once.
Question (KO): 3, 1, 7, 4 가 적힌 4장의 카드를 한 번씩 모두 사용하여 만들 수 있는 가장 큰 소수 두 자리 수와 가장 작은 소수 세 자리 수의 합을 구하시오

Answer: 75.66

Solution (Python):
var_a = 3
var_b = 1
var_c = 7
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 = 4
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 = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
var_n = 4
list_d = [str(i) for i in list_a]
list_d = list(itertools.permutations(list_d, var_n))
list_d = [''.join(num_list) for num_list in list_d]
list_d = [str_num for str_num in list_d if str_num[0] != '0']
list_d = [float(i) for i in list_d]
var_o = 1
list_e=list_d.copy()
list_e.sort()
var_p = list_e[var_o-1]
var_q = 10
var_r = len(list_a)
var_s = 1
var_t = var_r - var_s
var_u = var_q ** var_t
var_v = var_p / var_u
var_w = var_m + var_v
print('{:.2f}'.format(round(var_w+1e-10,2)))
Category: Correspondence

Question (EN): When you add 30 to a number, you get 55. What is the value of the number subtracted by 23?
Question (KO): 어떤 수에 30을 더했더니 결과로 55를 얻었습니다. 어떤 수에서 23을 뺀 값은?

Answer: 2

Solution (Python):
var_a = 55
var_b = 30
var_c = var_a - var_b
var_d = 23
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 32 basketballs in the school. The number of basketballs is 5 more than the volleyballs and 3 less than the number of soccer balls. How many basketballs, volleyballs and soccer balls are there in total in the school?
Question (KO): 학교에 농구공이 32개 있습니다. 농구공은 배구공보다 5개 많고, 축구공보다 3개 적습니다. 학교에 있는 농구공, 배구공, 축구공은 모두 몇 개입니까?

Answer: 94

Solution (Python):
var_a = 32
var_b = 32
var_c = 5
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 32
var_g = 3
var_h = var_f + var_g
var_i = var_e + var_h
print(int(var_i))
Category: Geometry

Question (EN): When a square tile is attached to a wall measuring 120 centimeters (cm) wide and 96 centimeters (cm) long, how many centimeters (cm) should one side of the tile be in length to attach the largest tile to the wall without any extra space?
Question (KO): 가로가 120센티미터(㎝), 세로가 96센티미터(㎝)인 벽에 정사각형 모양의 타일을 붙일 때 남는 부분이 없이, 되도록 큰 타일을 붙이려면 타일의 한 변의 길이는 몇 센티미터(㎝)이어야 하는가?

Answer: 24

Solution (Python):
var_a = 120
var_b = 96
var_c = math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Correspondence

Question (EN): There are some sheets of paper, yellow on the front and green on the back on the floor. Students flipped 16 papers that look yellow so that they look green. If there are 64 more green papers than yellow papers, what was the difference before flipping?
Question (KO): 앞면은 노란색 뒷면은 초록색인 종이가 바닥에 놓여 있다. 이때 학생들이 노란색이 보이는 종이 16개를 뒤집어 초록색이 보이도록 뒤집었다고 한다. 이때 초록색 종이가 노란색 종이보다 64개 많았다면 뒤집기전에는 차이가 얼마였는지 구하시오.

Answer: 32

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

Question (EN): The number of marbles Jinwoo has is 2/3 of the number of marbles Seonghyeon has, and Cheolsu has 72 marbles. Find the number of marbles Jinwoo has when the sum of marbles Jinwoo and Cheolsu have is twice the number of marbles Seonghyeon has.
Question (KO): 진우가 가진 구슬의 개수는 성현이가 가진 구슬의 개수에 2/3이고, 철수는 72개의 구슬을 가지고 있다. 진우와 철수가 가진 구슬의 합이 성현이가 가진 구슬 개수에 2배일때 진우가 가진 구슬의 개수를 구하시오.

Answer: 36

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

Question (EN): Find the area of a square with a side of 6 centimeters (cm).
Question (KO): 한 변의 길이가 6 센티미터(㎝)인 정사각형의 넓이를 구하시오.

Answer: 36

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

Question (EN): 14AB is a multiple of 9. If A and B are different numbers, how many possible numbers are there?
Question (KO): 14AB는 9의 배수입니다. A, B가 서로 다른 숫자일 때, 가능한 수는 몇 개입니까?

Answer: 11

Solution (Python):
var_a = '14AB'
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 = 9
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))