philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): When a 250-gram (g) barrel was filled with sand and weighed, it was 1 kilogram (kg) and 780 grams (g). When a box weighing 460 grams (g) was filled with sand and weighed again, it was 2 kilograms (kg) and 250 grams (g). Which sand is more heavier - the sand in the box or the barrel?
Question (KO): 무게가 250그램(g)인 통에 모래를 가득 넣어 무게를 재었더니 1킬로그램(㎏) 780그램(g)이었고 무게가 460그램(g)인 상자에 모래를 가득 넣어 무게를 재었더니 2킬로그램(㎏) 250그램(g)이었습니다. 상자와 통 중 어느 것에 들어 있는 모래가 더 무겁습니까?

Answer: box

Solution (Python):
var_a = 'barrel'
var_b = 'box'
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 = 1000
var_e = var_c * var_d
var_f = 780
var_g = var_e + var_f
var_h = 250
var_i = var_g - var_h
var_j = 2
var_k = 1000
var_l = var_j * var_k
var_m = 250
var_n = var_l + var_m
var_o = 460
var_p = var_n - var_o
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
list_b.reverse()
var_q = 1
list_c=list_b.copy()
list_c.sort()
var_r = list_c[-var_q]
var_s = list_b.index(var_r)+1
var_t = list_a[var_s-1]
print(var_t)
Category: Correspondence

Question (EN): Multiplying a number by 2 subtracting by 37 adding by 25 dividing by 8 equals 5. Find the number.
Question (KO): 어떤 수의 2배에서 37을 빼고, 25를 더한 값을 8로 나누면 5가 됩니다. 어떤 수를 구하시오.

Answer: 26

Solution (Python):
var_a = 5
var_b = 8
var_c = var_a * var_b
var_d = 25
var_e = var_c - var_d
var_f = 37
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): How many common divisors of 56 and 72 are divisible by 4?
Question (KO): 56, 72의 공약수 중 4로 나눠 떨어지는 수는 모두 몇 개인가?

Answer: 2

Solution (Python):
var_a = 56
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 = 72
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 = 4
list_d = []
var_c = int(var_c)
for i in list_c:
    i = int(i)
    if i % var_c == 0:
        list_d.append(i)
var_d = len(list_d)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There are 6 (A)animals. If an (A)animal eats 4 kg (kg) of food in one month, how many kg (kg) of food do the (A)animals eat in one month?
Question (KO): (가) 동물이 6마리 있습니다. (가) 동물 1마리가 한 달 동안 4킬로그램(㎏)의 먹이를 먹을 때 한 달 동안 (가) 동물이 먹는 먹이는 모두 몇 킬로그램(㎏)입니까?

Answer: 24

Solution (Python):
var_a = 6
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Possibility

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

Answer: 1221

Solution (Python):
var_a = 5
var_b = 6
var_c = 4
var_d = 7
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
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g + var_i
print(int(var_j))
Category: Possibility

Question (EN): If you try to put a total of 5 books, including 2 novels, on the bookshelf, how many times will the novels end up on both ends?
Question (KO): 소설책 2권을 포함하여 총 5권의 책을 책장에 꽂으려고할 때, 소설책이 양 끝에 꽂힐 경우의 수는 얼마인가요?

Answer: 12

Solution (Python):
var_a = 5
var_b = 2
var_c = var_a - var_b
var_d = 5
var_e = 2
var_f = var_d - var_e
var_g = 1
var_c = int(var_c)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_c-i)
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): If A is the number greater than -3 by -5 and B is the number less than +2 by -2, find the value of A-B.
Question (KO): -3보다 -5만큼 큰 수를 A, +2보다 -2만큼 작은 수를 B라 할 때, A-B의 값을 구하시오.

Answer: -12

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

Question (EN): The box was full of sweets. Jimin ate 2/5 of the cookies in the box and weighed the box and it was 144 grams (g). After a while, Jaehee ate 2/3 of the remaining cookies and weighed the box again and it was 96 grams (g). How many grams (g) would the box weigh after all the cookies were eaten?
Question (KO): 상자에 과자가 가득 들어있었습니다. 지민이가 상자에 들어 있는 과자의 2/5를 먹고 상자의 무게를 재어 보니 144그램(g)이었습니다. 잠시 후 재희가 남은 과자의 2/3을 먹고 다시 상자의 무게를 재어 보니 96그램(g)이었습니다. 모든 과자를 먹은 후의 상자의 무게만 재면 몇 그램(g)이 될까요?

Answer: 72

Solution (Python):
var_a = 144
var_b = 144
var_c = 96
var_d = var_b - var_c
var_e = 1
var_f = 0.4
var_g = var_e - var_f
var_h = var_d / var_g
var_i = 0.6666666666666666
var_j = var_h / var_i
var_k = 1
var_l = 0.4
var_m = var_k - var_l
var_n = var_j * var_m
var_o = var_a - var_n
print(int(var_o))
Category: Comparison

Question (EN): 27 students are standing in a line. If Minyoung is in the 13th from the back, where is she placed from the front?
Question (KO): 학생 27명이 한 줄로 서 있습니다. 민영이는 뒤에서 13번째라면 앞에서 몇 번째입니까?

Answer: 15

Solution (Python):
var_a = 27
var_b = 13
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 number of students in class (B) is 8 fewer than the number of students in class (A). The number of students in class (C) is 5 times the number of students in the class. If there are 25 students in class (B), how many students are in (A), (B), and (C) total?
Question (KO): (나) 반의 학생 수는 (가) 반보다 8명 더 적습니다. (나) 반 학생 수의 5배 만큼 (다) 반 학생이 있습니다. (나) 반 학생이 25명일 때, (가) 반, (나) 반, (다) 반의 학생 수는 모두 몇 명입니까?

Answer: 183

Solution (Python):
var_a = 25
var_b = 8
var_c = var_a + var_b
var_d = 25
var_e = var_c + var_d
var_f = 25
var_g = 5
var_h = var_f * var_g
var_i = var_e + var_h
print(int(var_i))
Category: Possibility

Question (EN): Find the sum of the numbers that satisfy the following condition. It is a four-digit number and consists of 3, 5, 7, and 9. Also, the numbers in each digit are different.
Question (KO): 다음 조건을 만족하는 수들의 합을 구하여라. 네자리 수이고, 3, 5, 7, 9로 이루어져 있다. 또, 각 자리의 숫자는 모두 다르다.

Answer: 159984

Solution (Python):
var_a = 3
var_b = 5
var_c = 7
var_d = 9
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 = 4
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]
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Taehyung has 22,000 won. With this money, he plans to buy a notebook that costs 1,000 won each and colored pencils that cost 2,000 won each. If he needs to buy 15 notebooks and colored pencils altogether, find out how many colored pencils he has to buy.
Question (KO): 태형이는 22000원을 가지고 있습니다. 이 돈으로 한 권에 1000원인 공책과 한 개에 2000원인 색연필을 사려고 합니다. 공책과 색연필을 합하여 15개를 사야한다면 색연필은 몇 개 사야하는 지 구하세요.

Answer: 7

Solution (Python):
var_a = 22000
var_b = 1000
var_c = 15
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 2000
var_g = 1000
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Comparison

Question (EN): There are three following numbers for Yoongi, Jungkook, and Yuna, respectively: 4, 6 plus 3, and 5. Find the person with the largest 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: Geometry

Question (EN): How many circles can you draw if you draw a circle with a radius of 2 centimeters (cm) inside a square with a side length of 8 centimeters (cm) without overlapping?
Question (KO): 반지름의 길이가 2센티미터(㎝)인 원을 한 변의 길이가 8센티미터(㎝)인 정사각형 안에 겹치지 않게 그릴 때 몇 개의 원을 그릴 수 있겠습니까?

Answer: 4

Solution (Python):
var_a = 8
var_b = 2
var_c = 2
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): If you are trying to select 6 horses out of 7 to compete in a horse race, find the number of all possible cases.
Question (KO): 말 7마리 중에서 경마대회에 출전할 말 6마리를 선발하려고 할 때, 가능한 모든 경우의 수를 구하시오.

Answer: 7

Solution (Python):
var_a = 7
var_b = 6
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)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
print(int(var_c))
Category: Geometry

Question (EN): A square was created by arranging 12 coins of the same size vertically and horizontally in a regular pattern. Find the number of marbles on one side.
Question (KO): 크기가 같은 동전을 빈틈없이 규칙적으로 가로와 세로 모두 12개씩 늘어놓아 정사각형을 만들었습니다. 한 변에 놓인 구슬은 몇 개입니까?

Answer: 12

Solution (Python):
var_a = 12
print(int(var_a))
Category: Geometry

Question (EN): Find the volume of a cuboid whose base area is 14 square centimeters (cm2) and its height is 13 centimeters (cm).
Question (KO): 한 밑면의 넓이가 14제곱센티미터(㎠)이고 높이가 13센티미터(㎝)인 직육면체의 부피를 구하시오.

Answer: 182

Solution (Python):
var_a = 14
var_b = 13
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Woong, Youngsoo, and Hyogeun each had a few marbles. In turn, Woong gave Youngsu 5 marbles, Youngsu gave Hyogeun 10 marbles, and Hyogeun gave Woong 7 marbles, so that all three of them have 20 marbles each. Find the number of marbles Woong had at first.
Question (KO): 웅이, 영수, 효근이는 각각 구슬을 몇 개씩 가지고 있었습니다. 차례대로 웅이는 영수에게 5개, 영수는 효근이에게 10개, 효근이는 웅이에게 7개를 주었더니, 세 사람 모두 구슬이 20개씩 되었습니다. 웅이가 처음에 가지고 있던 구슬의 개수를 구하시오.

Answer: 18

Solution (Python):
var_a = 20
var_b = 7
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): Among the multiples of 123, there are numbers that look like 162ABC6. Among these numbers, find the largest one.
Question (KO): 123의 배수 중 162ABC6 모양의 수가 있다. 이러한 수 중에서 가장 큰 수를 구하여라.

Answer: 1629996

Solution (Python):
var_a = 1620006
var_b = 1629996
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 123
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Correspondence

Question (EN): You need to subtract 35 from a number, but mistakenly add it, and got 77. Find the result of the correct calculation.
Question (KO): 어떤 수에서 35를 빼야 하는데 잘못하여 더했더니 77이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 7

Solution (Python):
var_a = 77
var_b = 35
var_c = var_a - var_b
var_d = 35
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Minyoung arrived 33rd in the race, and Eunji arrived 11th after Minyoung arrived. What is Eunji's rank?
Question (KO): 민영이는 달리기 시합에서 33등으로 도착했고, 은지는 민영이가 도착한 후 11번째로 도착했습니다. 은지의 등수는 몇 등입니까?

Answer: 44

Solution (Python):
var_a = 33
var_b = 11
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): If A is a number equivalent to -5 multiplied by -3, and B a number -2 greater than +2, find the value of A+B.
Question (KO): -3에 -5만큼 곱한 수를 A, +2보다 -2만큼 큰 수를 B라 할 때, A+B의 값을 구하시오.

Answer: 15

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

Question (EN): What is the sum of all the digits of the numbers from 1000 to 2000?
Question (KO): 1000부터 2000까지의 수의 자리수를 모두 더하면 얼마가 되는지 구하여라.

Answer: 14502

Solution (Python):
var_a = 1000
var_b = 2000
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_b=[]
for i in list_a:
    var_d = 0
    i = int(i)
    while i//10 > 0:
        var_d = var_d + i%10
        i = i//10
    var_d = var_d + i%10
    list_b.append(var_d)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print(int(var_e))
Category: Comparison

Question (EN): The distance from the house to the library is 2+13/40 kilometers (km), and the distance from the house to the bank is 2.56 kilometers (km). Which is farther from home, the library or the bank?
Question (KO): 집에서 도서관까지의 거리는 2+13/40 킬로미터(㎞) 이고, 집에서 은행까지의 거리는 2.56킬로미터(㎞) 입니다. 도서관과 은행 중에서 집에서 더 먼 곳은 어디입니까?

Answer: bank

Solution (Python):
var_a = 'library'
var_b = 'bank'
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 = 2
var_d = 0.325
var_e = var_c + var_d
var_f = 2.56
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: Geometry

Question (EN): You are trying to find the length of any side of a right triangle. If the hypotenuse has a length of 17 and the non-hypotenuse has a length of 15, what is the length of the other side?
Question (KO): 직삼각형에서 어느 한 변의 길이를 찾으려고 합니다. 빗변이 17의 길이를 갖고, 빗변이 아닌 한 변이 15의 길이를 갖는다면 나머지 한 변의 길이는 얼마일까요?

Answer: 8

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

Question (EN): Your mother bought some apples. Suppose you ate half of the whole quantity, and 8 apples left. How many apples did the mother buy?
Question (KO): 어머니가 사과를 사 오셨습니다. 전체의 절반을 먹고 8개가 남았습니다. 어머니가 사 오신 사과는 몇 개입니까?

Answer: 16

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

Question (EN): Eunji read 14 fewer pages of children's books today than yesterday, and she read 35 pages yesterday. Hoseok read 12 more pages today than yesterday and read 23 pages yesterday. Who read more pages of children's book yesterday and today combined?
Question (KO): 은지는 오늘 동화책을 어제보다 14쪽 더 적게 읽었고 어제 35쪽을 읽었습니다. 호석이는 오늘 어제보다 12쪽 더 많이 읽었고 어제 23쪽을 읽었습니다. 어제와 오늘 합해서 동화책을 더 많이 읽은 사람은 누구입니까?

Answer: Hoseok

Solution (Python):
var_a = 'Hoseok'
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 = 23
var_d = 12
var_e = var_c + var_d
var_f = 23
var_g = var_e + var_f
var_h = 35
var_i = 14
var_j = var_h - var_i
var_k = 35
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)
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: Possibility

Question (EN): Seoyoon has 3 indistinguishable purple balls and 2 indistinguishable green balls. How many ways can she arrange these balls when she arranges them in a row?
Question (KO): 서윤이는 구별이 되지않는 보라색 공3개와 구별이 되지않는 초록색 공 2개를 가지고 있다. 이 공들을 한줄로 배열할때 배열 할 수 있는 방법은 몇 가지인가?

Answer: 10

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

Question (EN): How many numbers greater than 50 and less than 100 have a remainder of 4 when divided by 8?
Question (KO): 50보다 크고 100보다 작은 수 중에서 8로 나누었을 때 나머지가 4인 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 50
var_b = 1
var_c = var_a + var_b
var_d = 100
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 = 8
var_i = 4
list_b = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_a:
    i = int(i)
    if i%var_h == var_i:
        list_b.append(i)
var_j = len(list_b)
print(int(var_j))
Category: Geometry

Question (EN): There is a cube with the sum of the lengths of all its edges equal to 144 centimeters (cm). How many centimeters (cm) is the length of one edge of this cube?
Question (KO): 모든 모서리의 길이의 합이 144센티미터(㎝)인 정육면체가 있습니다. 이 정육면체의 한 모서리의 길이는 몇 센티미터(㎝)입니까?

Answer: 12

Solution (Python):
var_a = 144
var_b = 12
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): A few years ago, Seokjin was 7 when his mother was 33 years old. Five years later, what is the age difference between Seokjin's mother and Seokjin's?
Question (KO): 몇 년 전 어머니가 33살일 때 석진이는 7살 이었습니다. 그로부터 5년 후 석진이 어머니와 석진이의 나이 차는 얼마입니까?

Answer: 26

Solution (Python):
var_a = 33
var_b = 5
var_c = var_a + var_b
var_d = 7
var_e = 5
var_f = var_d + var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): This year, the age of the father is 6 times the age of the son. After 6 years, the sum of the ages of father and son is 68 years old. How old is the son this year?
Question (KO): 올해 아버지 나이는 아들 나이의 6배입니다. 6년 후에 아버지와 아들의 나이의 합은 68살이 됩니다. 올해 아들의 나이는 몇 살입니까?

Answer: 8

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

Question (EN): A 24.7 centimeters (cm) long candle was lit and 40 minutes later, the length of the candle was measured and it was 17.1 centimeters (cm). How many minutes will it take for the candle to burn all the way down?
Question (KO): 길이가 24.7센티미터(㎝) 인 양초에 불을 붙이고 40 분 후에 양초의 길이를 재었더니 17.1 센티미터(㎝) 였습니다. 이 양초가 모두 타는 데 걸리는 시간은 몇 분입니까?

Answer: 130

Solution (Python):
var_a = 24.7
var_b = 24.7
var_c = 17.1
var_d = var_b - var_c
var_e = 40
var_f = var_d / var_e
var_g = var_a / var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): The three male students in Doyeon's class are 161.5 centimeters (cm), 154.3 centimeters (cm), and 143.7 centimeters (cm) tall, and the four female students are 160.1 centimeters (cm), 158.0 centimeters (cm), 153.5 centimeters (cm) ,147.8 centimeters(cm) tall.  Find the height of the shortest student among the 7 students.
Question (KO): 도연이네 반 남학생 3명의 키가 161.5센티미터(㎝), 154.3센티미터(㎝), 143.7센티미터(㎝)이고, 여학생 4명의 키가 160.1센티미터(㎝), 158.0센티미터(㎝), 153.5센티미터(㎝), 147.8센티미터(㎝)일 때, 7명의 학생 중 가장 작은 학생의 키를 구하시오.

Answer: 143.7

Solution (Python):
var_a = 161.5
var_b = 154.3
var_c = 143.7
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 160.1
var_e = 158
var_f = 153.5
var_g = 147.8
list_b= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
list_c = list(set(list_a) | set(list_b))
var_h = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[var_h-1]
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Comparison

Question (EN): Following numbers are points that Hwanhee got for his Korean, Mathematics, Social studies, English, and Science: 80, 94, 82, 76, and 100. How many subjects did he score below the average?
Question (KO): 환희는 국어 80점, 수학 94점, 사회 82점, 영어 76점, 과학 100점을 받았습니다. 평균보다 점수가 낮은 과목은 몇 과목입니까?

Answer: 3

Solution (Python):
var_a = 80
var_b = 94
var_c = 82
var_d = 76
var_e = 100
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()
list_a = [float(i) for i in list_a]
var_f = sum(list_a)/len(list_a)
list_b = []
for i in list_a:
    if i < var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): I bought 7 baskets of sweet potatoes with 16 in each basket. Among them, 13 sprouted and were discarded, and the remaining sweet potatoes will be divided equally into 8 baskets. How many pieces will you put in each basket?
Question (KO): 한 바구니에 16개씩 들어있는 고구마를 7바구니 샀습니다. 그중에서 13개는 싹이 나서 버리고, 남은 고구마를 8바구니에 똑같이 나누어 담으려고 합니다. 한 바구니에 몇 개씩 나누어 담게 됩니까?

Answer: 12

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

Question (EN): There are two pigs. The difference in weight between the two pigs is 72 kilograms (kg), and the sum is 348 kilograms (kg). Find the weight of the fatter pig of the two.
Question (KO): 두 돼지가 있습니다. 두 돼지의 몸무게 차이는 72킬로그램(㎏)이 나고, 합은 348킬로그램(㎏)입니다. 둘 중 더 뚱뚱한 돼지의 몸무게를 구하시오.

Answer: 210

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

Question (EN): While reading the book, Jungkook checked the number of pages currently open to continue reading tomorrow. If the sum of the two pages is 185, what is the number of the smaller page?
Question (KO): 정국이는 책을 읽다가 내일 이어서 읽기 위해 읽은 현재 펼쳐진 쪽수를 확인했습니다. 두 쪽수를 더한 값이 185가 되었다고 한다면, 작은 쪽은 몇 쪽인지 구하시오.

Answer: 92

Solution (Python):
var_a = 185
var_b = 2
var_c = var_a // var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It is said that the balloon, which was 3 meters (m) underground, reached the ground in 4 seconds after it went up into the sky. Assuming that the balloon bursts when it crosses 0.09 km (km) above the ground, and if it goes with the same velocity, how many seconds does the balloon pop after it rises into the sky?
Question (KO): 지하 3미터(m)에 있던 풍선이 하늘로 올라간 지 4초만에 지상에 도착했다고 한다. 풍선이 지상 0.09킬로미터(㎞)를 넘어가면 터진다고 할 때, 풍선이 동일한 속력으로 올라간다면, 하늘로 올라간 지 몇 초 후에 풍선이 터지는지 구하시오.

Answer: 124

Solution (Python):
var_a = 0.09
var_b = 1000
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
var_h = 4
var_i = var_g * var_h
print(int(var_i))