philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): What is the 2nd largest minus the 3rd smallest 3-digit number that can be formed by drawing 3 different numbers from 5, 0, 8, 6, and 2?
Question (KO): 5, 0, 8, 6, 2 중 서로 다른 3개의 숫자를 뽑아 만들 수 있는 세 자리 수 중 2번째로 큰 수에서 3번째로 작은 수를 뺀 값은 얼마입니까?

Answer: 654

Solution (Python):
var_a = 5
var_b = 0
var_c = 8
var_d = 6
var_e = 2
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.permutations(list_b, 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 = 2
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 3
list_d=list_b.copy()
list_d.sort()
var_j = list_d[var_i-1]
var_k = var_h - var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): The sum of five consecutive natural numbers is 90. What is the largest of these natural numbers?
Question (KO): 연속하는 5개의 자연수의 합이 90입니다. 이 자연수 중 가장 큰 수는 무엇입니까?

Answer: 20

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

Question (EN): I had a few persimmons. I ate 5 of them, and there are 12 left. How many persimmons were there at first?
Question (KO): 감이 몇 개 있었습니다. 그중에서 5개를 먹었더니 12개가 남았습니다. 처음에 있던 감은 몇 개입니까?

Answer: 17

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

Question (EN): Minyoung and Eunji picked tangerines. Minyoung picked up 10/12 kg (kg), and Eunji picked up 5/12 kg (kg). Who picked more tangerines?
Question (KO): 민영이와 은지가 귤을 땄습니다. 민영이는 10/12킬로그램(㎏)을 따고, 은지는 5/12킬로그램(㎏)을 땄습니다. 누가 귤을 더 많이 땄습니까?

Answer: Minyoung

Solution (Python):
var_a = 'Minyoung'
var_b = 'Eunji'
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.8333333333333334
var_d = 0.4166666666666667
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()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): If you use a machine that produces 370 pencils a day to produce 1000 pencils, how many days will it be finished?
Question (KO): 연필 1000타를 생산하기 위해 하루에 연필을 370자루씩 생산하는 기계를 사용한다면 며칠 후에 작업이 완료됩니까?

Answer: 3

Solution (Python):
var_a = 1000
var_b = 370
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: Comparison

Question (EN): Compare the number they have: Jungkook is with the number of 6 multiplied by 3, and Yoongi is with 4. Whose number is smaller?
Question (KO): 정국이는 6에서 3을 곱한 수를 모았고, 윤기는 4를 모았습니다. 누구의 수가 더 작나요?

Answer: Yoongi

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-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Correspondence

Question (EN): A certain number is a single digit number that is between 4 and 9. That number is less than 6. Find that number.
Question (KO): 어떤 수는 4와 9 사이에 있는 한 자리 수입니다. 어떤 수는 6보다 작습니다. 어떤 수를 구하시오.

Answer: 5

Solution (Python):
var_a = 4
var_b = 1
var_c = var_a + var_b
var_d = 9
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = 6
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
var_i = 1
var_j = list_b[var_i-1]
print(int(var_j))
Category: Geometry

Question (EN): If all sides of a five-sided figure are the same length and the perimeter of the figure is 23.4 centimeters (cm), how many centimeters (cm) is the length of one side?
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 were 35 people on the subway, 18 got off and 15 got on. Find out the number of passengers decreased in the subway.
Question (KO): 지하철에 35명의 사람이 타고 있었는데 18명이 내리고 15명이 탔습니다. 지하철 안에 얼마나 많은 사람이 줄었는지 구하시오.

Answer: 3

Solution (Python):
var_a = 35
var_b = 35
var_c = 18
var_d = var_b - var_c
var_e = 15
var_f = var_d + var_e
var_g = var_a - var_f
print(int(var_g))
Category: Geometry

Question (EN): Each side of the square-shaped park is 200 meters (m). Find the area of this park.
Question (KO): 정사각형 모양의 공원의 한 변의 길이는 200미터(m)입니다. 이 공원의 넓이를 구하시오.

Answer: 40000

Solution (Python):
var_a = 200
var_b = 2
var_c = var_a ** var_b
print(int(var_c))
Category: Possibility

Question (EN): If 6 people shake each other's hand once, how many handshakes are there in total?
Question (KO): 6명의 사람들이 서로 다른 사람들과 한번씩 악수를 할때 악수는 총 몇번 진행됩니까?

Answer: 15

Solution (Python):
var_a = 6
var_b = 6
var_c = 1
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: Correspondence

Question (EN): 3A4B plus 1000 is less than 6233. How many digits from 0 to 9 can be written for A?
Question (KO): 3A4B에 1000을 더한 값은 6233보다 작습니다. 0부터 9까지의 숫자 중 A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 10

Solution (Python):
var_a = '3A4B'
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 = 6233
var_c = 1000
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
var_e = '3A4B'
var_f = 'A'
var_e = str(var_e)
var_f = str(var_f)
unk_idx = var_e.index(var_f)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_g = len(list_c)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Three friends are going to share 3 liters (L) of banana milk. How many milliliters (mL) of banana milk do you have to share with Hyeonju so that Jinsol drinks 200 milliliters (㎖) more than Hyeonju, and Hyunju drinks 200 milliliters (㎖) more than Changhyeok?
Question (KO): 바나나우유 3리터(L)를 세 친구가 나누어 마시려고 합니다. 진솔이는 현주보다 200밀리리터(㎖) 많게, 현주는 창혁이보다 200밀리리터(㎖) 많게 마시려면 현주에게 몇 밀리리터(㎖)의 바나나우유를 나누어 주어야 합니까?

Answer: 1000

Solution (Python):
var_a = 3
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 200
var_g = var_e - var_f
var_h = 3
var_i = var_g / var_h
print(int(var_i))
Category: Correspondence

Question (EN): A-B-B-B=303.1 . Dividing A by 10 equals B. find A
Question (KO): A-B-B-B=303.1 입니다. A를 10으로 나누면 B와 같습니다. 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: Possibility

Question (EN): How many 3-digit numbers greater than 500 are such that the sum of each digit is 7?
Question (KO): 500보다 큰 세자리 자연수 중 각 자리수의 합이 7인 숫자는 몇 개 인지 구하시오.

Answer: 6

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 = 500
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: Arithmetic calculation

Question (EN): Yoongi's average score on the English test taken in August and September was 86. If Yoongi's English test score was 98 points in October, find the average score of the English test for 3 months.
Question (KO): 윤기가 8월, 9월에 본 영어 시험의 평균 점수는 86점입니다. 윤기가 10월에 본 영어 시험 점수가 98점일 때, 3달 동안의 영어 시험의 평균 점수를 구하시오.

Answer: 90

Solution (Python):
var_a = 86
var_b = 2
var_c = var_a * var_b
var_d = 98
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): A cuboid box is made without a lid, and it is 50 centimeters (cm) wide, 35 centimeters (cm) long, and 40 centimeters (cm) high. How many tiles do you need at least if you want to attach tiles that are 1 centimeter (cm) wide and 1 centimeter (cm) long to the outer surface of the box without any gap? 
Question (KO): 가로가 50센티미터(㎝), 세로가 35센티미터(㎝), 높이가 40센티미터(㎝)인 뚜껑이 없는 직육면체 모양의 상자를 만들었습니다. 가로, 세로가 각각 1센티미터(㎝)인 타일을 상자의 바깥쪽 겉면에 빈틈없이 붙이려고 할 때, 타일은 적어도 몇 개 필요합니까?

Answer: 8550

Solution (Python):
var_a = 50
var_b = 35
var_c = var_a * var_b
var_d = 50
var_e = 40
var_f = var_d * var_e
var_g = 2
var_h = var_f * var_g
var_i = 40
var_j = 35
var_k = var_i * var_j
var_l = 2
var_m = var_k * var_l
var_n = var_h + var_m
var_o = var_c + var_n
print(int(var_o))
Category: Geometry

Question (EN): Find the perimeter of a figure with a total of 9 sides, each 2 centimeters (cm) long.
Question (KO): 변이 총 9개로 이루어져 있으며, 각 길이가 2센티미터(㎝)인 도형의 둘레를 구하시오.

Answer: 18

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

Question (EN): In 1.4, 9/10, 1.2, 0.5, and 13/10, if you list the numbers less than or equal to 1.1, what is the largest number?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 작거나 같은 숫자를 나열한뒤, 가장 큰 숫자를 구하면 얼마입니까?

Answer: 0.9

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

Question (EN): If there is a plan to plant trees on one side of the road at intervals of 25 meters (m) including the first and the last point, how many trees will be planted when the length of the road is 2575 meters (m)?
Question (KO): 도로의 한쪽에 처음부터 끝까지 25미터(m) 간격으로 가로수를 심으려고 합니다. 도로의 길이가 2575미터(m)일 때 심을 가로수는 몇 그루 입니까?

Answer: 104

Solution (Python):
var_a = 2575
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Yoongi got 4, and Yuna got 5, and Jungkook got the numbr that is 6 multiplied by 3. Who got the smallest number?
Question (KO): 윤기는 4, 유나는 5, 정국이는 6에서 3을 곱한 수를 모았습니다. 누가 제일 작은 수를 모았나요?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Yuna'
var_c = 'Jungkook'
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 = 5
var_f = 6
var_g = 3
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): Jaewoong's father does 130 sit-ups every day. How many sit-ups will he do in 2 weeks?
Question (KO): 재웅이 아버지는 매일 130번씩 윗몸일으키기를 하고 있습니다. 2주일 동안 윗몸일으키기를 모두 몇 번 할까요?

Answer: 1820

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

Question (EN): When the number cards 7, 1, and 0 are given, find the largest number that can be made by using all of the given number cards at least once.
Question (KO): 숫자 카드 7, 1, 0이 주어졌을 때, 주어진 숫자 카드를 한 번씩 모두 사용하여 만들 수 있는 수 중 가장 큰 수를 구하시오.

Answer: 710

Solution (Python):
var_a = 7
var_b = 1
var_c = 0
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)
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]
print(int(var_f))
Category: Geometry

Question (EN): Jinwoo has several square-shaped tiles. These tiles are lined up to make a large square, and there are 3 tiles left. It is said that 44 more tiles are needed to increase each side of the square by 2 columns. How many tiles does Jinwoo have?
Question (KO): 진우는 정사각형 모양의 타일을 여러 장 가지고 있습니다. 이 타일을 빈틈없이 늘어놓아 큰 정사각형을 만들었더니 3장의 타일이 남았습니다. 만든 정사각형의 가로 한 변과 세로 한 변을 2열씩 늘리려면 44장의 타일이 더 필요하다고 합니다. 규형이는 타일 몇 장을 가지고 있습니까?

Answer: 103

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

Question (EN): Packs of 45 contain 10 each. If we repeat the process of adding 100 to the total number 3 times, what is the total number?
Question (KO): 45개의 묶음에는 10개씩 들어있습니다. 전체 개수에 100개씩 추가하는 과정을 3번을 반복하면 전체 개수는 얼마입니까?

Answer: 750

Solution (Python):
var_a = 10
var_b = 45
var_c = var_a * var_b
var_d = 100
var_e = 3
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Geometry

Question (EN): Twenty sheets of paper with a length of 10 centimeters (cm) were joined together with a joint of 5 millimeters (mm). How many centimeters (cm) is the total length of the joined paper?
Question (KO): 길이가 10센티미터(㎝)인 종이 20장을 연결 부분을 5밀리미터(㎜)로 하여 이어 붙였습니다. 이어 붙인 종이 전체의 길이는 몇 센티미터(㎝)입니까?

Answer: 190.5

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

Question (EN): The concentration of 200 grams (g) of sugar water is 25%. If 300 grams (g) of another sugar water contains 60 grams (g) of sugar, find the percent concentration of the sugar water when the two sugar waters are mixed.
Question (KO): 설탕물 200그램(g)의 진하기는 25%입니다. 다른 설탕물 300그램(g)에는 설탕 60그램(g)이 들어있고 두 설탕물을 섞었을 때의 설탕물의 진하기는 몇 %인지 구하세요.

Answer: 22

Solution (Python):
var_a = 200
var_b = 25
var_c = 100
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 60
var_g = var_e + var_f
var_h = 200
var_i = 300
var_j = var_h + var_i
var_k = var_g / var_j
var_l = 100
var_m = var_k * var_l
print(int(var_m))
Category: Comparison

Question (EN): The sum of the 3rd and 4th year students at Mina's school is 531. There are 31 more 4th year students than 3rd year students, and 22 more 3rd year boys than 3rd year girls. Find the number of boys in 3rd grade.
Question (KO): 미나네 학교의 3학년과 4학년 학생 수의 합은 531명입니다. 4학년 학생은 3학년 학생보다 31명 더 많고, 3학년 남학생은 3학년 여학생보다 22명 더 많다고 합니다. 3학년 남학생은 몇 명인지 구하시오.

Answer: 136

Solution (Python):
var_a = 531
var_b = 31
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 22
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
var_j = 22
var_k = var_i + var_j
print(int(var_k))
Category: Comparison

Question (EN): The locker for the new transfer student, Yunjeong, is 7th from the left, 13th from the right, 8th from the front, and 14th from the back. If the number of lockers in each row is the same, what is the total number of lockers?
Question (KO): 새로 전학 온 윤정이의 사물함은 왼쪽에서 7번째, 오른쪽에서 13번째, 위에서 8번째, 아래에서 14번째에 있습니다. 각 줄마다 있는 사물함의 수가 같다고 할 때, 사물함의 개수는 모두 몇 개입니까?

Answer: 399

Solution (Python):
var_a = 7
var_b = 13
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 8
var_g = 14
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: Geometry

Question (EN): Two identical rectangular-shaped postcards were attached horizontally so that they did not overlap. If the entire perimeter of the stitched postcard is 70 centimeters (cm) and the vertical length is 15 centimeters (cm), how many square centimeters (cm2) is the area of one postcard?
Question (KO): 똑같은 직사각형 모양의 엽서 2장을 겹치지 않게 가로로 이어 붙였습니다. 이어 붙인 엽서 전체의 둘레가 70센티미터(㎝)이고 세로가 15센티미터(㎝)일 때, 엽서 한 장의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 150

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

Question (EN): It takes 5 days to make 60 toys with an (a) machine. How many days does it take to make 540 toys with an (a) machine?
Question (KO): (가) 기계로 장난감 60개를 만드는 데 5일 걸립니다. (가) 기계로 540개의 장난감을 만드는 데 며칠이 걸립니까?

Answer: 45

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

Question (EN): If Yoojeong and Minyeong share 10 snacks, how many snacks can one person eat?
Question (KO): 과자 10개를 유정이와 민영이가 나누어 먹을 때, 한 사람이 몇 개의 과자를 먹을 수 있나요

Answer: 5

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Comparison

Question (EN): Gahee, Nahee, Dahee, Rahee, and Mahee each bought drinks at the convenience store. Assuming that the average price of the drinks Gahee, Nahee, and Dahee bought was 2 won higher than the average price of each drink, and that Rahee bought a 72 won drink and Mahee bought a 80 won drink, how much is the average price of the drinks for these five people?
Question (KO): 가희, 나희, 다희, 라희, 마희가 편의점에서 음료수를 각자 샀다. 각 음료수의 가격의 평균보다 가희, 나희, 다희가 산 음료수의 가격 평균이 2원 더 높았고, 라희는 72원짜리 음료수를, 마희는 80원짜리 음료수를 샀다고 할 때 이 다섯 사람의 음료수 가격의 평균은 얼마인가?

Answer: 79

Solution (Python):
var_a = 72
var_b = 80
var_c = var_a + var_b
var_d = 3
var_e = var_c * var_d
var_f = 2
var_g = 3
var_h = 5
var_i = var_g * var_h
var_j = var_f * var_i
var_k = var_e + var_j
var_l = 5
var_m = 3
var_n = var_l - var_m
var_o = var_k / var_n
var_p = 72
var_q = var_o + var_p
var_r = 80
var_s = var_q + var_r
var_t = 5
var_u = var_s / var_t
print(int(var_u))
Category: Comparison

Question (EN): Yoona is with Yoona's friends Heejin and Miyoung. Yoona is 23 years old, Miyoung is 22 years old, and Heejin is 24 years old. Who is the oldest?
Question (KO): 윤아는 윤아의 친구 희진이와 미영이와 함께 있습니다. 윤아는 23살이고 미영이는 22살, 희진이는 24살입니다. 가장 나이가 많은 사람은 누구입니까?

Answer: Heejin

Solution (Python):
var_a = 'Yoona'
var_b = 'Miyoung'
var_c = 'Heejin'
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 = 23
var_e = 22
var_f = 24
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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): Nine people stand in a line in order of shortest to tallest. Hoseok is standing 5th from the front. If you line up again in order of tallest to smallest, 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: Arithmetic calculation

Question (EN): How many natural numbers that are 1000 or less are multiples of 5 while are not multiples of 10?
Question (KO): 1000 이하의 자연수 중 5의 배수이면서 10의 배수는 아닌 수는 몇 개입니까?

Answer: 100

Solution (Python):
var_a = 1
var_b = 1000
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 1
var_e = 5
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if (i//var_d)%10 == var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): The size of the Jisuk backpack is 1.49 liters (L) and the size of the Miho backpack is 9/20 liters (L). Whose backpack is smaller?
Question (KO): 지석 배낭의 크기는 1.49리터(L)이고 미호 배낭의 크기는 9/20리터(L)입니다. 누구의 배낭이 더 작습니까?

Answer: Miho

Solution (Python):
var_a = 'Jisuk'
var_b = 'Miho'
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.49
var_d = 0.45
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()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Geometry

Question (EN): There are 10-won, 100-won, and 500-won coins each. If you pick and flip two of these three coins, what are the total number of possible outcomes?
Question (KO): 10원짜리, 100원짜리, 500원짜리 동전이 각각 1개씩 있습니다. 이 세 동전 중 두 개를 골라 던졌을 때, 나올 수 있는 경우의 수는 모두 몇 가지입니까?

Answer: 6

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

Question (EN): We need to multiply 15 by a number, but we mistakenly divide a number by 15, which is 6. Find the result of the correct calculation.
Question (KO): 15에 어떤 수를 곱해야 하는데 잘못하여 어떤 수를 15로 나누었더니 6이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 1350

Solution (Python):
var_a = 15
var_b = 6
var_c = 15
var_d = var_b * var_c
var_e = var_a * var_d
print(int(var_e))