philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There are 4 puppies: White, Black, Yellowy, and Spotted. Black is heavier than White and lighter than Yellowy. Spotted is heavier than Yellowy. Which puppy is the lightest?
Question (KO): 흰둥이, 검둥이, 누렁이, 점박이 이렇게 4마리의 강아지가 있습니다. 검둥이는 흰둥이보다 무겁고 누렁이보다 가볍습니다. 점박이는 누렁이보다 무겁습니다. 가장 가벼운 강아지는 어느 강아지입니까?

Answer: White

Solution (Python):
var_a = 'White'
var_b = 'Black'
var_c = 'Yellowy'
var_d = 'Spotted'
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 = 'Black'
var_f = 'White'
var_g = '>'
var_h = 'Black'
var_i = 'Yellowy'
var_j = '<'
var_k = 'Spotted'
var_l = 'Yellowy'
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: Possibility

Question (EN): Using the number cards 1, 6, and 8 all once, find the sum of the smallest three-digit number and the third smallest three-digit number.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 가장 작은 세 자리 수와 세 번째로 작은 세 자리 수의 합을 구하시오.

Answer: 786

Solution (Python):
var_a = 1
var_b = 6
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.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-1]
var_g = 3
var_h = list_b[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): X is the number of 2 groups of 10 and 6 units, and Y is the number of 4 groups of 10 and 1 unit. Find the sum of X and Y.
Question (KO): X는 10개씩 2묶음과 낱개가 6개인 수이고, Y는 10개씩 4묶음과 낱개가 1개인 수입니다. X와 Y의 합을 구하시오.

Answer: 67

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

Question (EN): Among Jungkook, Jimin, and Yoongi, we want to choose two people by allowing duplicates. How many options are there in all?
Question (KO): 정국, 지민, 윤기 중에서 중복을 허용하여 두 사람을 선택하려고 합니다. 선택할 수 있는 경우는 모두 몇 가지 입니까?

Answer: 6

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

Question (EN): When selecting one representative and one vice-president from among the five students, Jungkook, Jimin, Seokjin, Taehyung, and Namjoon, how many ways are there to select them?
Question (KO): 정국, 지민, 석진, 태형, 남준 5명의 학생 중에서 대표 1명과 부대표 1명을 뽑을 때, 선출하는 방법은 모두 몇 가지인가?

Answer: 20

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

Question (EN): There are 72 marbles in the two bags, (a) and (b). If there are 42 marbles in sack (A), how many more marbles are in sack (A) than in sack (B)?
Question (KO): 두 자루에 (가), (나)에 담겨 있는 구슬은 72개입니다. (가) 자루에 담긴 구슬이 42개일 때, (가) 자루에 담긴 사과는 (나) 자루에 담긴 사과보다 몇 개 더 많습니까?

Answer: 12

Solution (Python):
var_a = 42
var_b = 72
var_c = 42
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Hyuksu ate 2.6 kilograms (kg) of meat yesterday, and 5.98 kilograms (kg) of meat today. How many kilograms (kg) of meat did Hyuksu eat in two days?
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): If all five angles of a figure are the same and the perimeter of the figure is 23.4 centimeters (cm), find how many centimeters (cm) is the length of one side of the figure.
Question (KO): 다섯 개의 각으로 이루어진 도형의 모든 각의 크기가 같고, 이 도형의 둘레가 23.4센티미터(㎝)라면 한 변의 길이는 몇 센티미터(㎝)일지 구하시오.

Answer: 4.68

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

Question (EN): There are two books in one set. I bought 3 sets of this book and paid 21,000 won. If one book in the set costs 300 won more than the other, how much is the cheaper book?
Question (KO): 두 권이 한 세트로 된 책이 있습니다. 이 책을 3세트 사고 21000원을 냈습니다. 세트를 구성하는 한 권의 값이 다른 한 권의 값보다 300원 더 비싸다면 값이 싼 책은 얼마입니까?

Answer: 3350

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

Question (EN): You made the mistake of adding a number to 36, so when you added the number to 63, you got 70. How much is it if you calculate it correctly?
Question (KO): 36에 어떤 수를 더해야 할 것을 잘못하여 63에 어떤 수를 더했더니 70이 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 43

Solution (Python):
var_a = 36
var_b = 70
var_c = 63
var_d = var_b - var_c
var_e = var_a + var_d
print(int(var_e))
Category: Correspondence

Question (EN): When a number is divided by 6, the quotient is 124 and the remainder is 4. What is the result of adding 24 to the number and dividing it by 8?
Question (KO): 어떤 수를 6으로 나누었더니 몫이 124, 나머지가 4가 되었습니다. 어떤 수에 24를 더하고 8로 나눈 결과를 구하시오.

Answer: 96.5

Solution (Python):
var_a = 124
var_b = 6
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 24
var_g = var_e + var_f
var_h = 8
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Correspondence

Question (EN): When the students in class 1 were paired with two students, there were eight pairs. If you ask the students in class 1 to form groups of four, how many groups will form?
Question (KO): 1반 학생들에게 2명씩 짝을 지어주었더니 8개의 짝이 생겼다. 1반 학생들에게 4명씩 조를 짜라고 한다면 몇 개의 조가 생기는가?

Answer: 4

Solution (Python):
var_a = 8
var_b = 2
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): Taehyung entered the house for the 345th place, and Seokjin entered the house before Taehyung by 110 people. What place did Seokjin take?
Question (KO): 태형이는 집에 345번째로 들어갔고, 석진이는 태형이 앞으로 110명보다 더 먼저 집에 들어갔습니다. 석진이는 몇 번째로 집에 들어갔습니까?

Answer: 234

Solution (Python):
var_a = 345
var_b = 110
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Jungkook collected 6 times 3 apples, Yoongi collected 4 apples, and Yuna collected 5 apples. Who has the fewest apples?
Question (KO): 정국에는 6 곱하기 3만큼 사과를 모았고, 윤기는 4개, 유나는 5개의 사과를 모았습니다. 누가 가장 사과를 적게 가지고 있습니까?

Answer: Yoongi

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 6
var_e = 3
var_f = var_d * var_e
var_g = 4
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_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
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: Comparison

Question (EN): Seokjin placed 8th on a test, and Taehyung ranked right below Seokjin. Find out the rank of Taehyung's score in ordinal number. 
Question (KO): 석진이는 시험에서 8번째로 점수를 잘 받았고, 태형이는 그 다음으로 점수를 잘 받았습니다. 태형이는 몇 번째로 점수를 잘 받았습니까?

Answer: 9

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

Question (EN): After multiplying a decimal by 1000, moving the decimal two places to the left equals 12.5. Find the original decimal.
Question (KO): 어떤 소수를 1000배 한 후, 소수점을 왼쪽으로 두 칸 옮기면 12.5가 됩니다. 원래의 소수를 구하시오.

Answer: 1.25

Solution (Python):
var_a = 12.5
var_b = 10
var_c = 2
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 1000
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): Find the sum of the largest three-digit number and the smallest three-digit number made by using the number cards 6, 2, and 5 all once.
Question (KO): 숫자 카드 6, 2, 5를 한 번씩 모두 사용하여 만든 가장 큰 세 자리 수와 가장 작은 세 자리 수의 합을 구하시오.

Answer: 654

Solution (Python):
var_a = 6
var_b = 2
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 = 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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_a.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Comparison

Question (EN): Yuna placed 6th in the running event, and Min-Young came in as the 5th person after Yuna crossed the finish line. What is Min-Young's rank?
Question (KO): 유나는 달리기 시합에서 6등을 했고, 민영이는 유나가 결승선을 넘은 후 5번째로 결승선을 넘었습니다. 유나의 등수는 몇 등입니까?

Answer: 11

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

Question (EN):  We need to subtract a number from 66 and add 21, but we accidently added this number to 66 and 93 came out. How much do you get when you calculate correctly? 
Question (KO): 66 에서 어떤 수를 빼고 21 을 더해야 할 것을 66 에 어떤 수를 더했더니 93 이 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 60

Solution (Python):
var_a = 66
var_b = 93
var_c = 66
var_d = var_b - var_c
var_e = var_a - var_d
var_f = 21
var_g = var_e + var_f
print(int(var_g))
Category: Correspondence

Question (EN): If the reciprocal of -0.4 is A and the reciprocal of +5/2 is B, find the reciprocal of 3/A+2/B.
Question (KO): -0.4의 역수가 A이고 +5/2의 역수가 B이면 3/A+2/B의 역수를 찾으십시오.

Answer: 0.26

Solution (Python):
var_a = 1
var_b = 3
var_c = 1
var_d = -0.4
var_e = var_c / var_d
var_f = var_b / var_e
var_g = 2
var_h = 1
var_i = 2.5
var_j = var_h / var_i
var_k = var_g / var_j
var_l = var_f + var_k
var_m = var_a / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Geometry

Question (EN): If the area of one side of a cube is 64 square centimeters (cm2), what is the volume of this cube in cubic centimeters (cm3)?
Question (KO): 어떤 정육면체의 한 면의 넓이가 64제곱센티미터(㎠)일 때, 이 정육면체의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 512

Solution (Python):
var_a = 64
var_b = 0.5
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 add 19 to a number, you get 47. Find the number.
Question (KO): 어떤 수에 19를 더했더니 47이 되었습니다. 어떤 수를 구하시오.

Answer: 28

Solution (Python):
var_a = 47
var_b = 19
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It took me 4 days to read an entire book. I read 1/2 of the total on the first day, 1/4 of the total on the second day, 1/6 of the total on the third day, and 20 pages on the fourth day. Find the total number of pages of this book.
Question (KO): 책 한 권을 모두 읽는 데 4일이 걸렸다. 첫째 날에는 전체의 1/2, 둘째 날에는 전체의 1/4, 셋째 날에는 전체의 1/6, 넷째 날에는 20쪽을 읽었다. 이 책의 전체 쪽수를 구하여라

Answer: 240

Solution (Python):
var_a = 20
var_b = 1
var_c = 0.5
var_d = 0.25
var_e = var_c + var_d
var_f = 0.16666666666666666
var_g = var_e + var_f
var_h = var_b - var_g
var_i = var_a / var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2)))))
Category: Comparison

Question (EN): A dog weighs 4.56 kilograms (kg) and a cat weighs 10 times 462 grams (g). Which animal is heavier, a dog or a cat?
Question (KO): 강아지의 무게는 4.56킬로그램(㎏)이고 고양이의 무게는 462그램(g)의 10배입니다. 강아지와 고양이 중 더 무거운 동물은 무엇입니까?

Answer: cat

Solution (Python):
var_a = 'dog'
var_b = 'cat'
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.56
var_d = 462
var_e = 10
var_f = var_d * var_e
var_g = 1000
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_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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): If the sum of two consecutive natural numbers is 39, find the largest of the two natural numbers.
Question (KO): 연속하는 두 자연수의 합이 39일 때, 두 자연수 중에 제일 큰 수를 구하시오.

Answer: 20

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

Question (EN): There is a pretty tile. The tile is in the shape of a parallelogram, with each side measuring 18 centimeters (cm) and 12 centimeters (cm). Find the perimeter of the tile.
Question (KO): 예쁜 타일이 있다. 타일은 평행사변형의 모양으로, 각 변의 길이가 18센티미터(㎝), 12센티미터(㎝)이다. 타일의 둘레를 구하라.

Answer: 60

Solution (Python):
var_a = 18
var_b = 12
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 number of ways to throw a dice twice so that the sum of the results is 8.
Question (KO): 주사위를 2번 던져서 나온 눈의 합이 8이 되도록 하는 경우의 수를 구하시오.

Answer: 5

Solution (Python):
var_a = 1
var_b = 6
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 8
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: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the quotient of the second largest number divided by the second smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 2번째로 큰 수를 2번째로 작은 수로 나눈 몫은 얼마입니까?

Answer: 1

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 2
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g // var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): Eunji ate 18 of the 27 tangerines her father bought. How many tangerines are left?
Question (KO): 아버지께서 사오신 귤 27개 중 18개를 은지가 먹었습니다. 남은 귤의 수는 몇 개입니까?

Answer: 9

Solution (Python):
var_a = 27
var_b = 18
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): 20 students are waiting for the bus. If Jungkook came right before Yoongi, and there are 11 people who came after Jungkook, how many people came before 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: Correspondence

Question (EN): The beaker is containing liquid. Dust got into the liquid so I removed 5 milliliters (ml) of the liquid, and there remained 35 milliliters (ml) of the solution in the beaker. Find how many milliliters (ml) would have been in one cup if the solution in the beaker had been not removed and equally poured into 5 different cups.
Question (KO): 비커 안에 액체가 들어있다. 그런데 액체에 먼지가 들어가서 액체를 5밀리리터(㎖)를 덜어내었더니 비커 안의 용액이 35밀리리터(㎖)가 남았다. 만약 비커에 용액을 덜어내지 않고 비커 안의 용액을 다른 5개의 컵에 똑같이 나누어 부었다면 한컵에 몇 밀리리터(㎖)가 들어갔을지 구하시오.

Answer: 8

Solution (Python):
var_a = 35
var_b = 5
var_c = var_a + var_b
var_d = 5
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the area of a planar figure of a cuboid that is 3 centimeters (cm) wide, 4 centimeters (cm) long, and 5 centimeters (cm) high.
Question (KO): 가로가 3센티미터(㎝) , 세로가 4 센티미터(㎝) , 높이가 5센티미터(㎝) 인 직육면체의 전개도를 그렸을 때, 전개도가 차지하는 면적을 구하시오.

Answer: 94

Solution (Python):
var_a = 3
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = 5
var_f = var_d * var_e
var_g = 4
var_h = 5
var_i = var_g * var_h
var_j = var_f + var_i
var_k = var_c + var_j
var_l = 2
var_m = var_k * var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): Find the sum of the largest and smallest three-digit numbers with 2 in the hundreds and 7 in the ones.
Question (KO): 백의 자리 숫자가 2이고 일의 자리 숫자가 7인 세 자리 수 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 504

Solution (Python):
var_a = 2
var_b = 'A'
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=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
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_d):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_d
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Correspondence

Question (EN): 2/9 of all students in Yeeun's class are blood type A, and 2/5 of all students in Yeeun's class are type B. If there are 10 students with type A, how many students with type B are there?
Question (KO): 예은이네 반 전체 학생의 2/9는 혈액형이 A형이고, 예은이네 반 전체 학생의 2/5는 B형입니다. A형인 학생이 10명일 때 B형인 학생은 몇 명인지 구해 보시오.

Answer: 18

Solution (Python):
var_a = 10
var_b = 0.2222222222222222
var_c = var_a / var_b
var_d = 0.4
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): All sides of a cuboid-shaped object measuring 4 centimeters (cm) in width, 3 centimeters (cm) in length, and 3 centimeters (cm) in height was painted blue. This figure was cut into 36 cubes, all of the same size. How many pieces have paint on only two sides?
Question (KO): 가로 4센티미터(㎝), 세로 3센티미터(㎝), 높이 3센티미터(㎝)인 직육면체 모양의 물건의 모든 면에 파란색 페인트를 칠했다. 이 물건을 모두 동일한 크기의 정육면체 36개로 잘라냈다. 2개의 면에만 페인트가 칠해져있는 조각은 몇 개일까?

Answer: 16

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

Question (EN): Students lined up in ascending order according to their heights. Hoseok is taller than Namjoon, who is standing in the 3rd place, but shorter than Yoongi, who is standing in the 5th place. How tall is Hoseok? Answer in ordinal number.
Question (KO): 키가 작은 순서대로 학생들이 줄을 섰습니다. 호석이는 3번째인 남준이보다 키가 크지만 5번째인 윤기보다는 키가 작습니다. 호석이는 몇 번째로 키가 작습니까?

Answer: 4

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

Question (EN): Min-young, Min-ju, Min-gi, and Min-ji each drank milk, and realized there was a number written on the bottom of the milk carton. Min-young's number was 21, Min-ju's number was 9 less than Min-young's, and Min-gi's number was 17 more than Min-young's. When the sum of Min-young's and Min-ju's numbers minus Min-gi's number is equal to Min-ji's number minus 5, what is the number written on Min-ji's milk?
Question (KO): 민영, 민주, 민기, 민지가 우유를 하나씩 먹었습니다. 우유곽의 밑에는 숫자가 적혀 있었습니다. 민영이의 숫자는 21, 민주의 숫자는 민영이보다 9 작았고 민기의 숫자는 민영이보다 17 컸습니다. 민영이와 민주의 숫자를 합한 것에다 민기의 숫자를 빼면 민지 숫자에 5를 뺀 것과 같을 때, 민지 우유에 적혀 있던 수는 얼마입니까?

Answer: 9

Solution (Python):
var_a = 21
var_b = 21
var_c = 9
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 21
var_g = 9
var_h = var_f - var_g
var_i = 17
var_j = var_h + var_i
var_k = var_e - var_j
var_l = 5
var_m = var_k + var_l
print(int(var_m))