philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Jennie drank 9/5 liters (L) of juice. Jisoo drank 0.2 liters (L) less juice than Jennie, and Rohee drank 3/10 liters (L) more than Jisoo. Who drank the least juice?
Question (KO): 제니는 주스를 9/5리터(L) 마셨습니다. 지수는 주스를 제니보다 0.2리터(L) 더 적게 마셨고, 로희는 지수보다 3/10리터(L) 더 많이 마셨습니다. 주스를 가장 적게 마신 사람은 누구입니까?

Answer: Jisoo

Solution (Python):
var_a = 'Jennie'
var_b = 'Jisoo'
var_c = 'Rohee'
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.8
var_e = 1.8
var_f = 0.2
var_g = var_e - var_f
var_h = 1.8
var_i = 0.2
var_j = var_h - var_i
var_k = 0.3
var_l = var_j + var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
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_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[var_m-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Correspondence

Question (EN): Subtracting 10 from a number gives you 15. Find the value of 5 added to the number.
Question (KO): 어떤 수에서 10을 뺐더니 15가 되었습니다. 어떤 수에 5를 더한 값은 얼마입니까?

Answer: 30

Solution (Python):
var_a = 15
var_b = 10
var_c = var_a + var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): Jimin forgot the A in the two-digit numbers summation, A8+3B=99, so he asked Hoseok for help. Supposing that Hoseok finds out the correct value, what is A that Hoseok found?
Question (KO): 지민이는 연산식 A8+3B=99 에서 A를 까먹어서 호석이에게 도움을 요청했다. 호석이가 올바른 값을 도출했다고 할 때, 호석이가 구한 A는 무엇인가?

Answer: 6

Solution (Python):
var_a = 'A8+3B=99'
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 need to add 62 to a specific number, but I mistakenly added 26 and I got 61. Find the result of the correct calculation.
Question (KO): 어떤 수에 62를 더해야 하는데 잘못하여 26을 더했더니 61이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 97

Solution (Python):
var_a = 61
var_b = 26
var_c = var_a - var_b
var_d = 62
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the number of balls if you have 3 boxes containing 5 balls for each.
Question (KO): 공이 5개가 담겨져 있는 상자를 3개 가지고 있을 때 공의 개수는 몇 개입니까?

Answer: 15

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You bought 7 boxes that each contain 9 apples. Of these, 7 apples were rotten and discarded, and the remaining was equally divided among 8 people. How many apples did one person receive?
Question (KO): 사과가 9개씩 들어있는 상자를 7개 샀습니다. 이 중에서 7개의 사과는 썩어서 버리고, 남은 것을 8명이 똑같이 나누었습니다. 한 사람이 받은 사과는 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a * var_b
var_d = 7
var_e = var_c - var_d
var_f = 8
var_g = var_e / var_f
print(int(var_g))
Category: Comparison

Question (EN): How many numbers among 0.8 and 1/2 are greater than 0.4?
Question (KO): 0.8, 1/2 중에서 0.4보다 큰 수는 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 0.8
var_b = 0.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 = 0.4
list_b = []
for i in list_a:
    if i > var_c:
        list_b.append(i)
var_d = len(list_b)
print(int(var_d))
Category: Comparison

Question (EN): Jungkook, who already had 6 apples, got 3 more. When Yoongi has 4 apples, who has more apples?
Question (KO): 6개의 사과를 가지고 있던 정국이는 3개의 사과를 더 받았습니다. 윤기는 4개의 사과를 가지고 있을 때, 누가 더 사과를 많이 가지고 있습니까?

Answer: Jungkook

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 6
var_d = 3
var_e = var_c + var_d
var_f = 4
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: Comparison

Question (EN): Jimin, Jungkook, and Taehyung had a jumping rope competition. Jimin placed 51st and Jungkook placed 53rd. Taehyung did better than Jungkook but worse than Jimin. What is Taehyung's rank?
Question (KO): 지민, 정국, 태형이가 줄넘기 시합을 하였습니다. 지민이는 51등을 했고, 정국이는 53등을 했습니다. 태형이는 정국이보다 잘했지만 지민이보다는 못했습니다. 태형이의 등수는 몇 등입니까?

Answer: 52

Solution (Python):
var_a = 51
var_b = 53
var_c = var_a + var_b
var_d = 2
var_e = var_c // var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You sold 30 books on the first day. On the second day, they sold 5 times the number of books sold on the first day. How many more books were sold on Day 2 than on Day 1?
Question (KO): 1번째 날에 책을 30권 팔았습니다. 2번째 날에는 1번째 날에 판 책의 수의 5배만큼 팔았습니다. 2번째 날 판 책은 1번째 날 판 책보다 몇 권 더 많습니까?

Answer: 120

Solution (Python):
var_a = 30
var_b = 5
var_c = var_a * var_b
var_d = 30
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Using 3 of 4, 8, 1, and 2, what is the smallest number with a ones digit of 2?
Question (KO): 4, 8, 1, 2 중 3개를 사용하여 일의 자리 숫자가 2인 수들 중에 가장 작은 수는 무엇입니까?

Answer: 142

Solution (Python):
var_a = 4
var_b = 8
var_c = 1
var_d = 2
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.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
var_g = 2
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == 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: Arithmetic calculation

Question (EN): A student can solve 8 problems per hour. If she spends 5 hours a day solving problems, how many days will it take her to solve 200 problems?
Question (KO): 한 학생이 1시간에 8문제를 풀 수 있다고 합니다. 하루에 5시간을 문제 풀이에 쓴다면 200문제를 풀기 위해 며칠이 걸립니까?

Answer: 5

Solution (Python):
var_a = 200
var_b = 8
var_c = 5
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Heeju's school has 500 students. Of these, 337 students like soda and 289 students like coke. If there are 56 students who neither like soda nor coke, how many students like both soda and coke?
Question (KO): 희주네 학교 학생은 500명입니다. 이 중에서 사이다를 좋아하는 학생은 337명이고, 콜라를 좋아하는 학생은 289명입니다. 사이다와 콜라를 둘 다 좋아하지 않는 학생이 56명일 때, 사이다와 콜라를 모두 좋아하는 학생은 몇 명인가요?

Answer: 182

Solution (Python):
var_a = 289
var_b = 337
var_c = var_a + var_b
var_d = 500
var_e = 56
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Geometry

Question (EN): There is a polygon that has 6 diagonals that can be drawn from a vertex. Find the number of vertices of this polygon.
Question (KO): 한 꼭짓점에서 그을 수 있는 대각선의 개수가 6개인 다각형이 있습니다. 이 다각형의 꼭짓점의 개수를 구하시오.

Answer: 9

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

Question (EN): I had to add a number by 2.345 but instead subtracted it to get 1.234. What is the correctly calculated value?
Question (KO): 어떤 수에 2.345를 더해야 할 것을 잘못하여 빼었더니 1.234가 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 5.92

Solution (Python):
var_a = 1.234
var_b = 2.345
var_c = var_a + var_b
var_d = 2.345
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Arithmetic calculation

Question (EN): You have 8640 bottles of milk. The bottles of milk were divided into 12 per bag and 6 bags per box. How many boxes are there in total?
Question (KO): 우유가 8640개 있습니다. 우유를 한 봉투에 12개씩 나누어 담고, 한 상자에 6개의 봉투씩 담았습니다. 상자의 개수는 총 몇 개입니까?

Answer: 120

Solution (Python):
var_a = 8640
var_b = 12
var_c = var_a / var_b
var_d = 6
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): Yoongi wants to buy two types of fruit, apples and pears. How many ways are there to buy 4 fruits?
Question (KO): 윤기는 사과, 배 두 종류의 과일을 사려고 합니다. 과일 4개를 사는 방법은 모두 몇 가지인가요?

Answer: 5

Solution (Python):
var_a = 2
var_b = 1
var_c = var_a - var_b
var_d = 4
var_e = var_c + var_d
var_f = 4
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_e-i)
for i, elem in enumerate(range(var_f)):
    var_g = var_g / (i+1)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): What is the largest number that is both a factor of 108 and a multiple of 4?
Question (KO): 108의 약수도 되고 4의 배수도 되는 수 중에서 가장 큰 수는 얼마입니까?

Answer: 108

Solution (Python):
var_a = 108
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 = 4
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 = 1
list_c=list_b.copy()
list_c.sort()
var_d = list_c[-var_c]
print(int(var_d))
Category: Comparison

Question (EN): Eunji drank 0.5 liters (L) of water and Yujeong drank 7/10 liters (L) of water. Who drank the most water when Yuna drank 6/10 liters of water?
Question (KO): 은지는 물을 0.5리터(L) 마셨고 유정이는 물을 7/10리터(L) 마셨습니다. 유나는 물을 6/10리터(L) 마셨을 때 물을 가장 많이 마신 사람은 누구인가요?

Answer: Yujeong

Solution (Python):
var_a = 'Yujeong'
var_b = 'Eunji'
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 = 7
var_e = 10
var_f = var_d / var_e
var_g = 0.5
var_h = 6
var_i = 10
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)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
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): A cube is built with 125 small cubes with an edge of 2 centimeters (cm). What is the volume of this cube in cubic centimeters (cm3)?
Question (KO): 한 모서리가 2센티미터(㎝)인 쌓기나무 125개로 정육면체를 쌓았습니다. 이 정육면체의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 1000

Solution (Python):
var_a = 2
var_b = 3
var_c = var_a ** var_b
var_d = 125
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the number of factors of 32 that are not factors of 8.
Question (KO): 32의 약수들 중에서 8의 약수가 아닌 수의 개수를 구하시오.

Answer: 2

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 = 8
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
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 five numbers 10, 11, 12, 13, and 14. What is the quotient when you divide the 3rd smallest number by the 2nd smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 3번째로 작은 수와 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 = 3
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
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: Geometry

Question (EN): You are going to make a cube by cutting a cuboid measuring 12 centimeters (cm) wide, 16 centimeters (cm) long, and 14 centimeters (cm) high. What is the surface area of the largest cube?
Question (KO): 가로가 12센티미터(㎝), 세로가 16센티미터(㎝), 높이가 14센티미터(㎝)인 직육면체를 잘라서 정육면체를 만드려고 한다. 가장 큰 정육면체의 겉넓이는?

Answer: 864

Solution (Python):
var_a = 12
var_b = 16
var_c = 14
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-1]
var_f = 2
var_g = var_e ** var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The average of three numbers is 3. If you take one of these numbers and change it to 1, the average is 2. What was the original number?
Question (KO): 3개의 수의 평균은 3입니다. 이 중 한 개의 수를 골라 1로 바꾸었더니 평균이 2가 되었습니다. 바꾼 수는 원래 얼마입니까?

Answer: 4

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

Question (EN): Which three-digit number is the greatest common multiple of 5, 8, and 2?
Question (KO): 세 자리 수 중 5, 8, 2의 공배수 중 가장 큰 수는?

Answer: 960

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 = 5
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 = 8
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 = 2
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 = 1
list_e=list_d.copy()
list_e.sort()
var_h = list_e[-var_g]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): It takes 0.84 meters (m) of ribbon tape to wrap one gift. When Soeun prepared gifts for 10 of her friends, there were 50 centimeters (cm) of ribbon tape left. How many meters (m) was the basic tape that Soeun had at first?
Question (KO): 선물 하나를 포장하는 데 리본 테이프 0.84미터(m)가 필요합니다. 소은이가 친구 10명의 선물을 준비했더니 리본 테이프가 50센티미터(㎝) 남았습니다. 소은이가 처음에 가지고 있던 기본 테이프는 몇 미터(m)일까요?

Answer: 8.9

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

Question (EN): The beads are lined up in a row. There is a green marble at the 5th from the left and 3rd from the right. How many marbles are there in total?
Question (KO): 구슬을 한 줄로 늘어놓았습니다. 왼쪽에서 5번째, 오른쪽에서 3번째에 초록색 구슬이 있습니다. 전체 구슬의 개수는 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The ball at 120 meters (m) falls for 20 seconds at a speed of 4 meters (m) per second. Find how many meters (m) the ball is from the ground.
Question (KO): 120미터(m)에 있는 공이 초속 4미터(m)의 속도로 20초 동안 떨어졌다. 공은 지상에서 몇 미터(m)떨어져 있는지 구하시오.

Answer: 40

Solution (Python):
var_a = 120
var_b = 4
var_c = 20
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e))
Category: Possibility

Question (EN): For lunch, there are 5 kinds of Chinese food and 4 kinds of Japanese food, and for dinner, there are 3 kinds of Chinese food and 5 kinds of Japanese food. Find the number of ways to choose one menu for lunch and one for dinner.
Question (KO): 점심은 중식에서 5종류, 일식에서 4종류가 있고, 저녁은 중식에서 3종류, 일식에서 5종류가 있다. 점심과 저녁 메뉴를 1개씩 고르는 경우의 수를 구하시오.

Answer: 72

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

Question (EN): When a number is divided by 5 and 6, it is divisible, and when divided by 7, the remainder is 6. Find the largest three-digit possible number.
Question (KO): 어떤 수를 5와 6으로 나누면 나누어떨어지고 7로 나누면 나머지가 6이라고 합니다. 어떤 수 중에서 가장 큰 세 자리 수를 구하시오.

Answer: 930

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 = 5
var_e = 6
var_f = var_e * var_d / math.gcd(int(var_e), int(var_d))
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = 7
var_h = 6
list_c = [] 
var_g = int(var_g)
var_h = int(var_h)
if var_h < 0:
    var_h = var_h + var_g
for i in list_b:
    i = int(i)
    if i%var_g == var_h:
        list_c.append(i)
var_i = 1
list_d=list_c.copy()
list_d.sort()
var_j = list_d[-var_i]
print(int(var_j))
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the difference between the smallest number and the next smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 작은 수와 그 다음으로 작은 수로 나눈 값은 얼마입니까?

Answer: 0.91

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 = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
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('{:.2f}'.format(round(var_j+1e-10,2)))
Category: Arithmetic calculation

Question (EN): When the bandages were connected to one another, the total length became 580 centimeters (cm). There were a total of 24 bandages, and each was 28 centimeters (cm) long. How many centimeters (cm) were overlapped?
Question (KO): 붕대를 이어 붙였더니 전체 길이가 580센티미터(㎝)였습니다. 붕대가 총 24개 있으며 한 개의 길이는 28센티미터(㎝)입니다. 몇 센티미터(㎝)씩 겹쳐서 이어 붙인 걸까요?

Answer: 4

Solution (Python):
var_a = 28
var_b = 24
var_c = var_a * var_b
var_d = 580
var_e = var_c - var_d
var_f = 24
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): There is a square that has the same perimeter with a regular whose side length is 4 centimeters (cm). What is the area of this square in square centimeters (cm2)?
Question (KO): 한 변의 길이가 4센티미터(㎝)인 정육각형의 둘레와 같은 둘레를 가진 정사각형을 만들었습니다. 이 정사각형의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 36

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

Question (EN): There is 135.1 milliliters (ml) of water. If you are to pour that amount of water into 7 milliliter (ml) buckets, how many liters (L) are left after filling the buckets with water?
Question (KO): 물 135.1밀리리터(㎖)가 있습니다. 이것을 7밀리리터(㎖)들이 물통으로 나누어 담는다면 물통들을 가득 채우고 남는 양은 몇 리터(L)입니까?

Answer: 0

Solution (Python):
var_a = 135.1
var_b = 7
var_c = var_a % var_b
var_d = 1000
var_e = var_c / var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): Seokjin had 29 tangerines. After eating the same number of tangerines every day for 8 days, there were 5 left. How many tangerines did Seokjin eat a day?
Question (KO): 석진이는 귤을 29개 가지고 있었습니다. 이 귤을 매일 같은 개수씩 8일 동안 먹었더니 5개가 남았습니다. 석진이는 하루에 귤을 몇 개씩 먹었습니까?

Answer: 3

Solution (Python):
var_a = 29
var_b = 5
var_c = var_a - var_b
var_d = 8
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): There are two cubes of different sizes. If the ratio of the area of one side of the two cubes is 9:25, 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: Correspondence

Question (EN): A number subtracted from 821 is 267. What is the value when 267 is subtracted from the number?
Question (KO): 821에서 어떤 수를 빼면 267이 된다. 어떤 수에서 267을 빼면 얼마인지 구하시오.

Answer: 287

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

Question (EN): In the addition of two-digit numbers, the number 4 in the tens place of a number was mistaken for 6. In addition, the number 7 in the units place of the other number was mistaken for 1. As a result, the result of the addition was 146. Find the result of the correct calculation.
Question (KO): 두 자리 수끼리의 덧셈에서 더하는 수의 십의 자리 숫자 4를 6으로 잘못 보았습니다. 또 더해지는 수의 일의 자리 숫자 7을 1로 잘못 보고 계산하였더니 그 값이 146이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 132

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

Question (EN): How many ways are there to make a three-digit natural number by selecting three cards from four different natural numbers?
Question (KO): 서로 다른 4장의 자연수 숫자 중 3장의 카드를 선택해 세 자리 자연수를 만드는 방법은 모두 몇 가지입니까?

Answer: 24

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