philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): You mistakenly added 63 instead of multiplying a number by 36, and got 8. What is the correct calculation result?
Question (KO): 어떤 수에 36을 곱해야 할 것을 잘못하여 63을 더한 결과는 8이 되었습니다. 바르게 계산한 결과는 얼마인가요?

Answer: -1980

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

Question (EN): A-B-B-B=303.1. Multiplying the decimal number B by 10 equals A. get A.
Question (KO): A-B-B-B=303.1입니다. 소수 B를 10배 하면 A와 같습니다. A를 구하시오.

Answer: 433

Solution (Python):
var_a = 303.1
var_b = 10
var_c = 3
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 10
var_g = var_e * var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Geometry

Question (EN): You want to divide a large piece of paper that is 172 centimeters (cm) wide by 295 centimeters (cm) long into squares with sides measuring 24 centimeters (cm). How many can you divide?
Question (KO): 가로 172센티미터(㎝), 세로 295센티미터(㎝)인 큰 종이를 한 변이 24센티미터(㎝)인 정사각형을 나누려고 한다. 몇 개까지 나눌 수 있는가?

Answer: 84

Solution (Python):
var_a = 172
var_b = 24
var_c = var_a // var_b
var_d = 295
var_e = 24
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g))
Category: Possibility

Question (EN): There are 4 number cards 1, 2, 3, 5. Find the sum of the numbers divisible by 7 when two cards are selected and used only once to form a two-digit number.
Question (KO): 4장의 숫자 카드 1, 2, 3, 5가 있습니다. 카드 중에서 2장을 골라 한 번씩만 사용하여 두 자리 수를 만들었을 때 7로 나눠지는 수들의 합을 구하세요.

Answer: 56

Solution (Python):
var_a = 1
var_b = 2
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 = 7
list_c = []
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
list_c = [float(i) for i in list_c]
var_g = sum(list_c)
print(int(var_g))
Category: Comparison

Question (EN): Nine people stand in a line in order from shortest to tallest. Hoseok is the 5th shortest. If you line up again in order from tallest to shortest, what number will Hoseok stand from the front?
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이는 5번째로 키가 작습니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 호석이는 앞에서부터 몇 번째에 서게 됩니까?

Answer: 5

Solution (Python):
var_a = 9
var_b = 5
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): Young-gi gave Su-ji 300 won which is more than two-fifths of the money, and 200 won which is less than 1/2 of the remaining money. If the remaining money t is 800 won, how much did Yeong-gi had at first?
Question (KO): 영기는 수지에게 5분의 2가 넘는 돈 300원을 주고, 200원은 남은 돈의 1/2도 안 되는 돈을 주었다. 남은 금액이 800원이라면 영기는 먼저 얼마를 받았을까?

Answer: 2500

Solution (Python):
var_a = 800
var_b = 200
var_c = var_a - var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 300
var_i = var_g + var_h
var_j = 1
var_k = 2
var_l = 5
var_m = var_k / var_l
var_n = var_j - var_m
var_o = var_i / var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): Subin drinks 2/5 liters (L) of milk every day. Find how many liters (L) of milk he drinks for 10 days.
Question (KO): 수빈이는 매일 2/5리터(L)의 우유를 마십니다. 10일 동안 수빈이가 마신 우유는 몇 리터(L)인지 구하시오.

Answer: 4

Solution (Python):
var_a = 0.4
var_b = 10
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It is said that Min-young's age will be four times her current age in 24 years. How old is Min-young 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: Arithmetic calculation

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

Answer: 22

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 = 2
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
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: Correspondence

Question (EN): The five-digit number 752AB is divisible by 3, and A and B can contain any number from 0 to 9. How many of these numbers are there?
Question (KO): 다섯 자리 수 752AB가 3으로 나누어떨어지고 A와 B에는 0부터 9까지의 숫자가 들어갈 수 있습니다. 이러한 수는 모두 몇 개입니까?

Answer: 33

Solution (Python):
var_a = '752AB'
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 = 3
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))
Category: Arithmetic calculation

Question (EN): Yuna's average score on the math test in May and June is 84. If Yuna's math test score in July is 96, what is her average math score over the three months?
Question (KO): 유나가 5월, 6월에 본 수학 시험의 평균 점수는 84점입니다. 유나가 7월에 본 수학 시험 점수가 96점일 때, 세 달 동안의 수학 시험 평균 점수는 몇 점입니까?

Answer: 88

Solution (Python):
var_a = 84
var_b = 84
var_c = var_a + var_b
var_d = 96
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))
Category: Comparison

Question (EN): There are 108 red balls, blue balls and white balls. The number of blue balls is 1/3 of the number of red balls, and the number of white balls is half of the number of blue balls. Which color ball has the fewest?
Question (KO): 108개의 빨간색 공, 파란색 공, 하얀색 공이 있습니다. 파란색 공의 수는 빨간색 공의 1/3이고 하얀색 공의 수는 파란색 공의 절반입니다. 어떤 색의 공이 가장 적습니까?

Answer: white

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'white'
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
var_e = 0.3333333333333333
var_f = 0.3333333333333333
var_g = 2
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)
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: Arithmetic calculation

Question (EN): Seokgi used some sheets of paper from 82 sheets of colored paper that he had to create an art work. If the number of paper remaining is 6 less than the number of paper used, how many sheets of paper did Seokgi used?
Question (KO): 석기는 가지고 있던 색종이 82장 중 몇 장을 사용하여 미술 작품을 만들었습니다. 남은 색종이 수가 사용한 색종이 수보다 6장 적다면 사용한 색종이는 몇 장입니까?

Answer: 44

Solution (Python):
var_a = 82
var_b = 6
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 6
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You have 30 cats and 18 dogs each. The combined number of dogs and cows is 4 fewer than the number of cats. How many cows do you have?
Question (KO): 고양이와 개를 각각 30마리 18마리 기릅니다. 개와 소의 수를 합하면 고양이보다 4마리 적습니다. 소는 몇 마리 있습니까?

Answer: 5

Solution (Python):
var_a = 45
var_b = 32
var_c = var_a - var_b
var_d = 8
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Jihee used 1 meter (m) and 1/5 meters (m) of shoelaces, and Hyun 8/5 meters (m). Figure out who used more of the shoelaces.
Question (KO): 신발끈은 지희가 1미터(m)와 1/5미터(m), 지희가 8/5미터(m)를 사용했다. 누가 신발끈을 더 많이 사용했는지 알아보세요.

Answer: Hyun

Solution (Python):
var_a = 'Jihee'
var_b = 'Hyun'
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 = 1
var_d = 1
var_e = 5
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 8
var_i = 5
var_j = var_h / var_i
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_k = 1
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: Geometry

Question (EN): There are coins in the shape of a regular nonagon. The sum of all sides of this coin is 171 millimeters (mm). Find the length of one side of the coin.
Question (KO): 정구각형 모양의 동전이 있습니다. 이 동전의 모든 변을 합하면 171밀리미터(㎜)가 나옵니다. 동전 한 변의 길이를 구하시오.

Answer: 19

Solution (Python):
var_a = 171
var_b = 9
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): When you mistakenly divide a number by 7 when instead you have to multiply a number by 6, the result is 49. How much do you get when you calculate correctly?
Question (KO): 6을 어떤 수에 곱해야 할 것을 잘못하여 7을 어떤 수에 나눈한 결과는 49가 나옵니다. 바르게 계산하면 얼마인가요?

Answer: 2058

Solution (Python):
var_a = 49
var_b = 7
var_c = var_a * var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): There are five number cards 1, 3, 5, 7, and 9. What is the average of the 3-digit numbers that can be made using this card that are less than 500? (The card can be used repeatedly.)
Question (KO): 1, 3, 5, 7, 9 다섯 장의 숫자카드가 있다. 이 카드를 사용하여 만들 수 있는 3자리 자연수 중 500미만인 수의 평균은 얼마인지 구하시오. (단, 카드는 중복사용 가능하다.)

Answer: 255

Solution (Python):
var_a = 1
var_b = 3
var_c = 5
var_d = 7
var_e = 9
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_f))
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_g = 500
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
list_c = [float(i) for i in list_c]
var_h = sum(list_c)/len(list_c)
print(int(var_h))
Category: Comparison

Question (EN): Jimin collected 1 and 7 and Namjoon collected 6 and 3. Who has the greater sum of the numbers gathered?
Question (KO): 지민이는 1과 7을 모았고 남준이는 6과 3을 모았습니다. 모은 수의 합이 더 큰 사람은 누구입니까?

Answer: Namjoon

Solution (Python):
var_a = 'Namjoon'
var_b = 'Jimin'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 3
var_d = 6
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
var_f = 7
var_g = 1
list_c= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_c.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_c.append(var_f)
list_c.reverse()
list_c = [float(i) for i in list_c]
var_h = sum(list_c)
list_d= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_d.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_d.append(var_e)
list_d.reverse()
var_i = 1
list_e=list_d.copy()
list_e.sort()
var_j = list_e[-var_i]
var_k = list_d.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Geometry

Question (EN): I am going to cut a rectangular piece of paper measuring 3+1/4 meters (m) wide and 2+3/4 meters (m) long by dividing it into square pieces with a side length of 25 centimeters (cm). Find how many squares you can make if you cut as many squares as possible.
Question (KO): 가로가 3+1/4미터(m), 세로가 2+3/4미터(m)인 직사각형 모양의 종이를 한 변의 길이가 25센티미터(㎝)인 정사각형 모양의 종이로 나누어 자르려고 합니다. 최대한 많은 개수의 정사각형을 만들면 몇 개를 만들 수 있는지 구하시오.

Answer: 143

Solution (Python):
var_a = 3
var_b = 0.25
var_c = var_a + var_b
var_d = 25
var_e = 100
var_f = var_d / var_e
var_g = var_c // var_f
var_h = 2
var_i = 0.75
var_j = var_h + var_i
var_k = 25
var_l = 100
var_m = var_k / var_l
var_n = var_j // var_m
var_o = var_g * var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): In a calculation of multiplying a three-digit number by a two-digit number, you omitted 1 in the tens place of the three-digit number, resulting in 17. If you multiply this number by a two-digit number and get 476, what is the correct calculation?
Question (KO): 세 자리 수와 두 자리 수를 곱하는 연산에서 세 자리 수의 십의 자리 1을 빠뜨렸더니 17이 됐습니다. 이 수와 두 자리 수를 곱하여서 476이 나왔을때 바르게 계산하면 얼마입니까

Answer: 3276

Solution (Python):
var_a = 476
var_b = 17
var_c = var_a / var_b
var_d = 117
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): I have 5 friends, and we compared out scores after taking an exam. The overall average was 81.6. The average of the scores from 1st to 4th is 6 points higher than the average of the scores from 2nd to 5th, and the scores for 2nd, 3rd and 4th are said to be 88, 84, and 76. How many points is 1st place worth?
Question (KO): 5명의 친구들이 있는데, 오늘 시험을 치고 점수를 비교했다. 전체의 평균은 81.6이다. 1등부터 4등까지 점수의 평균은 2등부터 5등까지 점수의 평균보다 6점 높았고, 2등, 3등, 4등의 점수는 88, 84, 76점이라고 한다. 1등의 점수는 몇 점인가?

Answer: 92

Solution (Python):
var_a = 81.6
var_b = 5
var_c = var_a * var_b
var_d = 88
var_e = 84
var_f = var_d + var_e
var_g = 76
var_h = var_f + var_g
var_i = var_c - var_h
var_j = 6
var_k = 4
var_l = var_j * var_k
var_m = var_i + var_l
var_n = 2
var_o = var_m / var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): What is the largest four-digit number that is a multiple of 2 and a multiple of 3 and a multiple of 8 and a multiple of 9?
Question (KO): 2의 배수이면서 3의 배수이면서 8의 배수이면서 9의 배수인 수 중 가장 큰 네 자리 수는?

Answer: 9936

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
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 = 3
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]
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There is a pencil, a ruler, and an eraser. If the price of the pencil is 100 won and that of the ruler is 95, and the average price is 90 won, how much is the eraser?
Question (KO): 연필, 자, 지우개가 있다. 연필의 가격이 100원, 자의 가격이 95원이며 평균 가격은 90원일때 지우개의 가격은 얼마인가?

Answer: 90

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

Question (EN): When a number that should be divided by 4 is mistakenly divided by 32, the quotient is 3 with no remainder. Find the correct calculated value.
Question (KO): 어떤 수를 4로 나누어야 할 것을 32로 잘못 나누었더니 몫이 3으로 나누어떨어졌다고 한다. 바르게 계산한 값을 구하시오.

Answer: 24

Solution (Python):
var_a = 32
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The number of pages Taehyung read as much as 0.4 of the total was 16 pages. Find the total number of pages in this book.
Question (KO): 태형이가 동화책을 전체의 0.4만큼 읽은 쪽수가 16쪽이었습니다. 이 책의 전체 쪽수는 모두 몇 쪽인지 구하시오.

Answer: 40

Solution (Python):
var_a = 16
var_b = 0.4
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are cruise ships that depart only when there are more than 15 people and no more than 30 people. If there are 9 people on the cruise ship right now, find out how many more people need to board before it can depart.
Question (KO): 15 명 초과 30 명 이하의 사람이 타야 출발하는 유람선이 있습니다. 지금 유람선에 타고 있는 사람이 9 명이라면 적어도 몇 명이 더 타야 출발할 수 있는지 구하시오.

Answer: 7

Solution (Python):
var_a = 15
var_b = 1
var_c = var_a + var_b
var_d = 9
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Yoongi collected 4, Jungkook collected 6 multiplied by 3, and Yuna collected 5. Who got the biggest 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]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): After buying 37 pencils, I bought 17 more. How many pencils are there in all?
Question (KO): 연필 37자루를 사 온 후 다시 17자루를 더 사 왔습니다. 연필은 모두 몇 자루입니까?

Answer: 54

Solution (Python):
var_a = 37
var_b = 17
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Mom, Dad, and Grandfather bought clothes at the department store. Dad bought more clothes than Mom, and Grandfather bought more clothes than Dad. What is the order in which Dad bought the least amount of clothes?
Question (KO): 엄마, 아빠, 할아버지가 백화점에서 옷을 구매했습니다. 엄마보다 아빠가 옷을 더 많이 샀고, 아빠보다 할아버지가 옷을 더 많이 샀습니다. 아빠는 몇 번째로 옷을 적게 샀습니까?

Answer: 2

Solution (Python):
var_a = 'Mom'
var_b = 'Dad'
var_c = 'Grandpa'
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 = 'Dad'
var_e = list_a.index(var_d)+1
print(int(var_e))
Category: Correspondence

Question (EN): A is a number with 6 groups of 1000 and 36 groups of 100. B is the count of 2 jumps from 876 to 197 smaller. Find the value of A-B.
Question (KO): A는 1000개씩 묶음이 6개, 100개씩 묶음이 36개인 수입니다. B는 876에서 197씩 작아지게 2번 뛰어서 센 수입니다. A-B의 값을 구하시오.

Answer: 9118

Solution (Python):
var_a = 1000
var_b = 6
var_c = var_a * var_b
var_d = 100
var_e = 36
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 876
var_i = 197
var_j = 2
var_k = var_i * var_j
var_l = var_h - var_k
var_m = var_g - var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): The boat can carry 30 people in one run. At least how many boat trips will it take for all 1284 students to ride once?
Question (KO): 보트를 한 번 운행할 때 30명이 탑승할 수 있습니다. 학생 1284명이 모두 한 번씩 타 보려면 보트는 적어도 몇 번 운행해야 합니까?

Answer: 43

Solution (Python):
var_a = 1284
var_b = 30
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))
Category: Arithmetic calculation

Question (EN): The sum of all objects is 35. When there are (a) objects and (b) objects, if  there are 17 (a) objects, (b) how many objects are there?
Question (KO): 모든 물건의 합은 35개입니다. (가) 물건과 (나) 물건이 있을 때, (가) 물건이 17개라면 (나) 물건은 몇 개 있습니까?

Answer: 18

Solution (Python):
var_a = 35
var_b = 17
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): The milk carton is 9 centimeters (cm) wide, 4 centimeters (cm) long, and 7 centimeters (cm) high. What is this milk carton's volume in cubic centimeters (cm3)?
Question (KO): 우유통의 가로가 9센티미터(㎝), 세로가 4센티미터(㎝), 높이가 7센티미터(㎝)입니다. 이 우유통의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 252

Solution (Python):
var_a = 9
var_b = 4
var_c = var_a * var_b
var_d = 7
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Among 1.4, 9/10, 1.2, 0.5, and 13/10, pick a number less than 1.1, and calculate the total. What is the answer?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10 5개 숫자 중에서 1.1보다 작은 숫자를 고르고, 총합을 계산하면 얼마입니까?

Answer: 1.4

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.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.1
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)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): Yuna and 13 friends are standing in a line. Yuna is standing 4th from the left. How many more people are standing to Yuna's right than the people standing to her left?
Question (KO): 유나와 친구 13명이 한 줄로 서 있습니다. 유나는 왼쪽에서 4번째에 서 있습니다. 유나의 오른쪽에 서 있는 사람은 왼쪽에 서 있는 사람보다 몇 명 더 많습니까?

Answer: 6

Solution (Python):
var_a = 13
var_b = 4
var_c = var_a - var_b
var_d = 3
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): There are a total of 3 trains at the train station. Each train has 12 cars, and each car has the same number of seats with 24. Find the number of all seats on the trains at the station.
Question (KO): 기차역에 기차가 총 3대 있습니다. 각 기차는 12칸으로 이루어져 있고, 각 칸의 좌석 수는 24개로 모두 같습니다. 기차역에 있는 기차들의 모든 좌석 수를 구하시오.

Answer: 864

Solution (Python):
var_a = 3
var_b = 12
var_c = var_a * var_b
var_d = 24
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): If you are trying to make a two-digit number by choosing two different numbers from 1, 3, and 4, how many possible two-digit numbers are there?
Question (KO): 서로 다른 숫자 2개를 1, 3, 4 중에서 뽑아 두 자리 수를 만들려고 할때, 가능한 두 자리 수는 총 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 3
var_c = 4
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 = len(list_b)
print(int(var_e))