philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): The area of the rectangular flower garden is 48.6 square meters (m2). When the length of this flower garden was measured, it was 5.4 meters (m). Find the width of the flower garden in meters (m).
Question (KO): 직사각형 모양의 화단의 넓이가 48.6제곱미터(㎡)이다. 이 화단의 세로의 길이를 재었더니 5.4미터(m)이다. 화단의 가로의 길이는 몇 미터(m)인지 구하시오.

Answer: 9

Solution (Python):
var_a = 48.6
var_b = 5.4
var_c = var_a / var_b
print(int(var_c))
Category: Comparison

Question (EN): Mihye trained for 1 hour and 5/12 hours, and Seongjae trained for 1 hour and 3/12 hours. Who has been training the longest?
Question (KO): 미혜는 1시간 5/12시간, 성재는 1시간 3/12시간 훈련했다. 누가 가장 오래 훈련했습니까?

Answer: Mihye

Solution (Python):
var_a = 'Mihye'
var_b = 'Seongjae'
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 = 5
var_e = 12
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 1
var_i = 3
var_j = 12
var_k = var_i / var_j
var_l = var_h + 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)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Correspondence

Question (EN): Mingi gave 15 cherry tomatoes each to 20 classmates. If the remaining number of cherry tomatoes is 6, how many cherry tomatoes did Mingi have at first?
Question (KO): 민기는 방울토마토를 같은 반 친구 20명에게 15개씩 나누어 주었다. 이후 남은 방울토마토의 개수가 6개이면 민기가 처음 가지고 있던 방울토마토의 개수는 몇 개인가?

Answer: 306

Solution (Python):
var_a = 15
var_b = 20
var_c = var_a * var_b
var_d = 6
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

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

Answer: 1

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

Question (EN): I turned on the tap so that 21 liters (L) came out in 6 minutes to fill the bathtub. When I filled the water without blocking the water drain in the bathtub, it took 22 minutes and 30 seconds to fill it up. If 0.3 liters (L) of water escaped from the bathtub per 1 minute, find how many liters (L) the bathtub can contain.
Question (KO): 6분 동안 21리터(L)가 나오도록 수도를 틀어 욕조에 물을 받았다. 욕조에 물이 빠져나가는 곳을 막지 않고 물을 받았더니 가득 채우는 데 22분 30초가 걸렸다. 욕조에서 물이 1분 동안 0.3리터(L)씩 빠져 나갔다면 욕조의 들이는 몇 리터(L)인지 구하여라.

Answer: 72

Solution (Python):
var_a = 21
var_b = 6
var_c = var_a / var_b
var_d = 0.3
var_e = var_c - var_d
var_f = 22
var_g = 30
var_h = 60
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e * var_j
print(int(var_k))
Category: Geometry

Question (EN): When boxes are lined up to make square shape, there are 6 left. So, I tried to increase the width and height by one row each, but I was short of 11 boxes. If these boxes are laid out in rows of 7, how many boxes are in row 1?
Question (KO): 정사각형 상자를 빈틈없이 늘여놓으니 6개 남았습니다. 그래서 가로 한 변과 세로 한 변을 1열씩 늘리려 하였지만 11개의 상자가 부족하였습니다. 이 상자들을 7열로 늘여 놓는다면 1열에 몇 개가 있을까요?

Answer: 10

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

Question (EN): Male lions in the zoo weigh 145/4 kilograms (kg), and male lions are said to weigh 47/10 kilograms (kg) more than female lions. How many kilograms (kg) does the female lion weigh?
Question (KO): 동물원에 있는 수컷 사자의 몸무게는 145/4킬로그램(㎏)이고, 수컷 사자는 암컷 사자보다 47/10킬로그램(㎏) 더 무겁다고 합니다. 암컷 사자의 몸무게는 몇 킬로그램(㎏)입니까?

Answer: 31.55

Solution (Python):
var_a = 36.25
var_b = 4.7
var_c = var_a - var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Correspondence

Question (EN): Yoongi had to subtract 57 from a certain two-digit number. Yoongi mistook 9 as a 6 in the units digit of a two-digit number. When Yoongi's result is 39, find a two-digit number.
Question (KO): 윤기는 두 자리 수와 57의 뺄셈을 하려 합니다. 윤기는 두 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 차는 39 일 때, 두 자리 수를 구하시오.

Answer: 99

Solution (Python):
var_a = 39
var_b = 57
var_c = var_a + var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Comparison

Question (EN): 35 students are standing in a line. 27 students are standing in front of Minyoung. How many students are standing behind Minyoung?
Question (KO): 35명의 학생이 한 줄로 서 있습니다. 민영이의 앞에는 27명의 학생들이 서 있습니다. 민영이의 뒤에 서 있는 학생은 몇 명입니까?

Answer: 7

Solution (Python):
var_a = 35
var_b = 27
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): You would like to purchase 2 kinds of fruits. If the fruits sold in the fruit store are apples, peaches, pears, melons, and strawberries, how many possible ways are there?
Question (KO): 2가지의 과일을 구매하려고 합니다. 과일 가게에서 판매하는 과일이 사과, 복숭아, 배, 참외, 딸기라면 가능한 경우의 수는 모두 몇 가지입니까?

Answer: 10

Solution (Python):
var_a = 'apples'
var_b = 'peaches'
var_c = 'pears'
var_d = 'melons'
var_e = 'strawberries'
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 = len(list_a)
var_g = 2
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
print(int(var_h))
Category: Geometry

Question (EN): There is a rhombus with two diagonals measuring 6 centimeters (cm) and 4 centimeters (cm). Find the area in square centimeters (cm2) of a rhombus whose diagonals are 3 times longer than this rhombus.
Question (KO): 두 대각선의 길이가 6센티미터(㎝), 4센티미터(㎝)인 마름모가 있습니다. 이 마름모보다 대각선의 길이가 3배씩 긴 마름모의 넓이는 몇 제곱센티미터(㎠)인지 구하시오.

Answer: 108

Solution (Python):
var_a = 6
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = 3
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Possibility

Question (EN): Find the largest four-digit number that can be made by using the number cards 5, 1, 6, 2, and 4 once.
Question (KO): 5, 1, 6, 2, 4가 적힌 숫자 카드를 한 번씩 사용하여 만들 수 있는 네 자리 수 중에서 가장 큰 수를 구하시오

Answer: 6542

Solution (Python):
var_a = 5
var_b = 1
var_c = 6
var_d = 2
var_e = 4
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 4
list_b = [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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print(int(var_h))
Category: Comparison

Question (EN): There are 4 high schools. The average student number of these schools is 2300. The average number of students in High School 1 and 2 is 3000, the average number of students for High School 2 and 3 is 2100, and the average number of students for High schools 3 and 4 is 2750. And High School 2 has 800 fewer students than High School 1. How many students are there in all four high schools?
Question (KO): 4개의 고등학교가 있다. 이들 전체의 전교생 수의 평균은 2300이다. 1번, 2번 고등학교의 전교생 수의 평균은 3000명이고, 2번, 3번 고등학교의 전교생 평균은 2100명, 3번과 4번의 평균은 2750명이다. 그리고 2번 고등학교는 1번 고등학교보다 전교생이 800명 더 적다. 4번 고등학교의 전교생은 모두 몇 명인가?

Answer: 3900

Solution (Python):
var_a = 2750
var_b = 2
var_c = var_a * var_b
var_d = 2100
var_e = 2
var_f = var_d * var_e
var_g = 3000
var_h = 2
var_i = var_g * var_h
var_j = 800
var_k = var_i - var_j
var_l = 2
var_m = var_k / var_l
var_n = var_f - var_m
var_o = var_c - var_n
print(int(var_o))
Category: Geometry

Question (EN): Several students lined up completely in a square shape, but there were six students left. So, the students tried to increase the width and height by one row each, but they were short of 11 students. If you arrange these students in rows of 7, how many will stand in row 1?
Question (KO): 몇 명의 학생들이 정사각형 모양으로 빈틈없이 정렬하여 서서 보니 6명이 남았습니다. 그래서 가로 한 변과 세로 한 변을 1열씩 늘리려 하였지만 11명이 부족하였습니다. 이 학생들을 7열로 세운다면 1열에 몇 명씩 서겠습니까?

Answer: 10

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

Question (EN): Jinyoung is harvesting apples in the orchard. He harvested 419 new apples, and then threw away 263 rotten apples among the apples he already had. If the current number of apples is 725, how many apples did he have before harvesting?
Question (KO): 진영이는 과수원에서 사과를 수확하고 있습니다. 419개를 새로 수확한 다음 기존에 있던 사과 중 썩은 사과 263개를 버렸습니다. 현재 사과의 개수가 725개이면 사과를 수확하기전에 사과의 개수는 몇 개입니까?

Answer: 569

Solution (Python):
var_a = 725
var_b = 263
var_c = var_a + var_b
var_d = 419
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Eun-soo picked up 2 kilograms (kg) and 600 grams (g) of chestnuts in the mountain, and Min-gi picked up 3700 grams (g). How many grams (g) do the chestnuts that Eunsu and Mingi picked in total weigh?
Question (KO): 산에서 밤을 은수는 2킬로그램(㎏) 600그램(g) 주웠고, 민기는 3700그램(g) 주웠습니다. 은수와 민기가 주운 밤의 무게는 모두 몇 그램(g)입니까?

Answer: 6300

Solution (Python):
var_a = 2
var_b = 1000
var_c = var_a * var_b
var_d = 600
var_e = var_c + var_d
var_f = 3700
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Four people are sitting at a round table. If you want to shake hands once with people who are not sitting next to each other, find how many times you shake hands.
Question (KO): 4명의 사람들이 둥근 탁자에 앉아있다. 양옆으로 인접하지 않는 사람들과 악수를 한번씩하려면 악수를 모두 몇 번 하는지 구하시오.

Answer: 2

Solution (Python):
var_a = 4
var_b = 4
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Possibility

Question (EN): When you select three of the four numbers 1, 2, 3, and 4, allowing duplicates, and arrange them in a row to form a three-digit natural number, which number is the largest that is divisible by both 2 and 3?
Question (KO): 4개의 숫자 1, 2, 3, 4 중에서 중복을 허락하여 3개를 택해 일렬로 나열하여 세 자리의 자연수를 만들 때, 2와 3으로 동시에 나눠 떨어지는 수 중 제일 큰 값은?

Answer: 444

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
var_d = 4
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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 = 2
list_c = []
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
var_g = 3
list_d = []
var_g = int(var_g)
for i in list_c:
    i = int(i)
    if i % var_g == 0:
        list_d.append(i)
var_h = 1
list_e=list_d.copy()
list_e.sort()
var_i = list_e[-var_h]
print(int(var_i))
Category: Geometry

Question (EN): Find the volume difference between a bowl measuring 16 centimeters (cm) wide, 14 centimeters (cm) long, and 9 centimeters (cm) high, and a bowl measuring 16 centimeters (cm) wide, 14 centimeters (cm) long, and 4 centimeters (cm) high.
Question (KO): 가로 16센티미터(㎝), 세로 14센티미터(㎝), 높이가 9센티미터(㎝)인 그릇의 부피와 가로 16센티미터(㎝), 세로 14센티미터(㎝), 높이가 4센티미터(㎝)인 그릇의 부피 차를 구하여라.

Answer: 1120

Solution (Python):
var_a = 16
var_b = 14
var_c = var_a * var_b
var_d = 9
var_e = 4
var_f = var_d - var_e
var_g = var_c * var_f
print(int(var_g))
Category: Correspondence

Question (EN): There are different numbers A, B, C, and D. 2×B+B=12, C-B=5, D+C=12, A-D=5. Find A.
Question (KO): 서로 다른 수 A, B, C, D가 있습니다. 2×B+B=12, C-B=5, D+C=12, A-D=5입니다. A를 구하시오.

Answer: 8

Solution (Python):
var_a = 12
var_b = '2×B+B=12'
var_c = 'B'
ans_dict = dict()
var_b = var_b.replace('×','*')
var_b = var_b.replace('x','*')
var_b = var_b.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_b):
    if v in variable_candi:
        ans_dict[v] = 0
candidate_num = [i for i in range(51)]
candi = list(itertools.product(candidate_num, repeat=len(ans_dict)))
for c in candi:
    temp = var_b
    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)):
        if term_list[i] == '':
            new_eq += str(term_list[i])+op_list[i]
        else:
            new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    new_eq=new_eq.replace('=', '==')
    new_eq=new_eq.replace('>==', '>=')
    new_eq=new_eq.replace('<==', '<=')
    eval_result = False
    try:
        if '=' in new_eq and '>' not in new_eq and '<' not in new_eq:
            new_eq=new_eq.replace('==','=')
            new_eq=new_eq.replace('>','')
            new_eq=new_eq.replace('<','')
            new_eq=new_eq.split('=')
            for i in range(len(new_eq)-1):
                eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1]))
                if not eval_result:
                    break
        else:
            eval_result = eval(new_eq)
    except:
        eval_result = False
        pass
    if eval_result:
        for i, (k, _) in enumerate(ans_dict.items()):
            ans_dict[k] = int(c[i])
var_d = ans_dict[var_c]
var_e = 5
var_f = var_d + var_e
var_g = var_a - var_f
var_h = 5
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): Two different natural numbers, A and 24, are either factors or multiples of each other. Find the third number from the left when the two-digit numbers corresponding to A are organized in ascending order.
Question (KO): 서로 다른 두 자연수 A와 24는 약수와 배수 관계입니다. A에 해당하는 두 자리 수를 작은 수부터 차례대로 썼을 때 왼쪽에서 3번째 수를 구하시오.

Answer: 48

Solution (Python):
var_a = 24
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 = 24
var_c = 99
var_d = 24
list_b = [i for i in range(var_b, var_c + 1, var_d)]
list_c = list(set(list_a) | set(list_b))
var_e = 10
list_d = []
for i in list_c:
    if i >= var_e:
        list_d.append(i)
var_f = 3
list_e=list_d.copy()
list_e.sort()
var_g = list_e[var_f-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): I paid 1,000 won and bought several pencils for 210 won and a glue for 270 won. How many pencils did you buy in total when you received 100 won in change?
Question (KO): 1000원을 내고 210원짜리 연필 몇 자루와 270원짜리 풀 1개를 샀습니다. 거스름돈으로 100원을 받았을 때 연필은 총 몇자루를 샀나요?

Answer: 3

Solution (Python):
var_a = 1000
var_b = 100
var_c = var_a - var_b
var_d = 270
var_e = 1
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 210
var_i = var_g / var_h
print(int(var_i))
Category: Possibility

Question (EN): You want to create a three-digit number by picking three of 1, 0, 5, 8, and 6 and using them only once. Find the sum of the third largest and second smallest possible numbers.
Question (KO): 1, 0, 5, 8, 6 중에서 3개를 뽑아 한 번씩만 사용하여 세 자리 수를 만들려고 합니다. 만들 수 있는 세 번째로 큰 수와 두 번째로 작은 수의 합을 구하시오.

Answer: 966

Solution (Python):
var_a = 1
var_b = 0
var_c = 5
var_d = 8
var_e = 6
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 = 3
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 2
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: Geometry

Question (EN): Blue paint was applied to all sides of a cuboid measuring 4 centimeters (cm) long, 3 centimeters (cm) wide, and 3 centimeters (cm) high. Then, this cuboid was divided into 36 cubes with each edge of 1 centimeter (cm) long. How many cube pieces have 2 colored faces?
Question (KO): 가로가 4센티미터(㎝), 세로가 3센티미터(㎝), 높이가 3센티미터(㎝)인 직육면체의 모든 면에 파란색 물감을 칠하였습니다. 그리고 이 직육면체를 한 모서리의 길이가 1센티미터(㎝)인 정육면체 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: Possibility

Question (EN): There are 4 500 won coins, 2 100 won coins, and 5 10 won coins in Cheolsu's wallet. Find how much total amounts of money he can pay. (However, the case where the payment amount is 0 won is excluded.)
Question (KO): 철수의 지갑 안에 500원짜리 동전 4개, 100원짜리 동전 2개, 10원짜리 동전 5개가 있습니다. 지불할 수 있는 금액은 모두 몇 가지인지 구하시오. (단, 지불 금액이 0원인 경우는 제외한다.)

Answer: 89

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

Question (EN): Hoseok jumped the rope during this weekday. If he jumped 88 times, 75 times, 62 times, 91 times, and 80 times from Monday to Friday, find how many times he did more comparing the days he jumped the most and the least.
Question (KO): 호석이는 월요일에 88번, 화요일에 75번, 수요일에 62번, 목요일에 91번, 금요일에 80번 줄넘기를 했습니다. 각 요일 중 줄넘기를 가장 많이 한 요일에는 가장 적게 한 요일보다 줄넘기를 몇 회 더 했는지 구하시오.

Answer: 29

Solution (Python):
var_a = 88
var_b = 75
var_c = 62
var_d = 91
var_e = 80
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]
var_h = 1
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): What is the smallest five-digit number divisible by 3 and 4?
Question (KO): 숫자 3, 4로 나누어 떨어질 수 있는 다섯 자리 수 중 가장 작은 수는 무엇입니까?

Answer: 10008

Solution (Python):
var_a = 10000
var_b = 99999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
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 = 4
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 = 1
list_d=list_c.copy()
list_d.sort()
var_g = list_d[var_f-1]
print(int(var_g))
Category: Geometry

Question (EN): You have two identical rectangular cookies. If you put these two cookies together horizontally, the total circumference will be 70 centimeters (cm) and the height will be 15 centimeters (cm). Find the area of one cookie.
Question (KO): 똑같은 직사각형 모양의 쿠키 두 개가 있습니다. 이 쿠키 두 개를 가로로 이어 붙이면 전체 둘레가 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: Correspondence

Question (EN): The weight of 12 apples is 5400 grams (g) heavier than the weight of 8 pears. One apple weighs 530 grams (g). Find how many grams (g) a pear weigh.
Question (KO): 사과 12개의 무게가 배 8개의 무게보다 5400그램(g) 더 무겁다. 사과 하나가 530그램(g)이다. 배는 몇 그램(g)인지 구하시오.

Answer: 120

Solution (Python):
var_a = 530
var_b = 12
var_c = var_a * var_b
var_d = 5400
var_e = var_c - var_d
var_f = 8
var_g = var_e / var_f
print(int(var_g))
Category: Correspondence

Question (EN): Beomhyeon's family ate 10 more than 1/4 of the total eggs yesterday, 5 less than 3/5 of the remaining eggs for lunch today, and 12 of the remaining eggs were rotten and so discarded. When there are 13 eggs left, find the number of eggs that Beomhyeon's family had first.
Question (KO): 범현이네 가족은 전체 계란 중 1/4보다 10개 많게 어제 먹었고, 남은 계란 중 3/5보다 5개 적게 오늘 점심에 먹었고, 그 나머지 계란 중 12개는 썩어서 버렸다. 남은 계란이 13개일 때, 범현이네 가족이 처음 가지고 있던 계란의 개수를 구하시오.

Answer: 80

Solution (Python):
var_a = 13
var_b = 12
var_c = var_a + var_b
var_d = 5
var_e = var_c - var_d
var_f = 1
var_g = 0.6
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 10
var_k = var_i + var_j
var_l = 1
var_m = 0.25
var_n = var_l - var_m
var_o = var_k / var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): The sum of 5 consecutive natural numbers is 100. Write the smallest of these 5 numbers.
Question (KO): 5개의 연속된 자연수의 합이 100입니다. 이 5개의 수 중에서 가장 작은 수를 쓰시오.

Answer: 18

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

Question (EN): Moving a decimal point two places to the left makes it 1.485 less than the original decimal. Find the original decimal number including the decimal point.
Question (KO): 어떤 소수의 소수점을 왼쪽으로 두 자리 옮기면 원래의 소수보다 1.485만큼 작아집니다. 원래의 소수를 소수점을 포함하여 구하시오.

Answer: 1.5

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

Question (EN): In Yoongi's class, there are 18 students who raise flower (a), 24 students who raise flower (b), and 7 students who raise both flower (a) and flower (b). If there is no student who does not raise any of flower (a) or flower (b), how many students are in Yoongi's class?
Question (KO): 윤기네 반에서 (가) 꽃을 키우는 학생은 18명, (나) 꽃을 키우는 학생은 24명, (가) 꽃과 (나) 꽃을 모두 키우는 학생은 7명입니다. (가) 꽃과 (나) 꽃을 모두 키우지 않는 학생이 한 명도 없을 때, 윤기네 반 학생은 모두 몇 명입니까?

Answer: 35

Solution (Python):
var_a = 18
var_b = 24
var_c = var_a + var_b
var_d = 7
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I folded the string in half twice. If the length of the string was 12 meters (m) at first, how many meters (m) is it now?
Question (KO): 끈을 반으로 두 번 접었습니다. 처음 끈의 길이가 12미터(m)였다면, 현재는 몇 미터(m) 입니까?

Answer: 3

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))