philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Minyoung had 17 notebooks. Among them, she gave some to Yujeong, and there were 8 left. How many notebooks did Minyoung give Yujeong?
Question (KO): 민영이는 공책을 17권 가지고 있었습니다. 그중에서 유정이에게 몇 권을 주었더니 8권이 남았습니다. 유정이에게 준 공책은 몇 권입니까?

Answer: 9

Solution (Python):
var_a = 17
var_b = 8
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): If 100 candies are divided into the same amount among Hyunji's classmates and there are no candies left, how many numbers are possible to become the number of Hyunji' classmates? (However, there are students other than Hyunji in Hyunji's class, and the number of students in the class does not exceed 50.)
Question (KO): 100개의 사탕을 현지네 반 학생들에게 같은 개수로 나누어졌더니 사탕이 하나도 남지 않았을 때, 현지네 반 학생 수로 가능한 수는 몇 개인지 구하시오. (단, 현지네 반에 현지 말고 다른 학생도 있으며, 반 학생 수가 50명이 넘지 않습니다.)

Answer: 7

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

Question (EN): Jungkook's car is 5th from the right and 4th from the left in a row in a parking lot. The number of cars parked in each row is the same, and the parking lot has 10 floors. If there are a total of 1600 cars in the parking lot, how many rows are there on each floor?
Question (KO): 정국이의 차가 어느 주차장의 한 줄의 오른쪽에서 5번째, 왼쪽에서 4번째에 놓여 있습니다. 각 줄마다 세워져 있는 자동차의 수는 같고 주차장은 10층 입니다. 주차장에 자동차가 총 1600대가 있을 때, 한 층에는 몇 줄이 있습니까?

Answer: 20

Solution (Python):
var_a = 1600
var_b = 5
var_c = 4
var_d = var_b + var_c
var_e = 1
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_a // var_h
print(int(var_i))
Category: Geometry

Question (EN): Find the perimeter of the figure with 3 vertices, and the distance between the 2 vertices is the same as 7 cm (cm).
Question (KO): 꼭짓점이 3개이고 2개의 꼭짓점 사이의 거리가 7센티미터(㎝)로 동일한 도형의 둘레를 구하시오.

Answer: 21

Solution (Python):
var_a = 7
var_b = 3
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): Jimin drank 0.7 liters (L) of juice. Eunji drank 1/10 liters (L) less than Jimin. Yoongi drank 4/5 liters (L), and Yuna drank 0.2 liters (L) more than Jimin. Who drank the most juice?
Question (KO): 지민이는 주스를 0.7리터(L) 마셨습니다. 은지는 지민이보다 1/10리터(L) 더 적게 마셨습니다. 윤기는 4/5리터(L) 마셨고, 유나는 지민이보다 0.2리터(L) 더 많이 마셨습니다. 주스를 가장 많이 마신 사람은 누구입니까?

Answer: Yuna

Solution (Python):
var_a = 'Jimin'
var_b = 'Eunji'
var_c = 'Yoongi'
var_d = 'Yuna'
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 = 0.7
var_f = 0.7
var_g = 0.1
var_h = var_f - var_g
var_i = 0.8
var_j = 0.7
var_k = 0.2
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_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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)
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: Comparison

Question (EN): Yoojeong, Taehyung, and Seokjin have marbles. Taehyung has more marbles than Yoojeong. Seokjin has more marbles than Yoojeong. Taehyung has more marbles than Seokjin. Who has the most marbles?
Question (KO): 유정, 태형, 석진 세 사람이 구슬을 가지고 있습니다. 태형이는 유정이보다 구슬을 더 많이 가지고 있습니다. 석진이는 유정이보다 구슬을 더 많이 가지고 있습니다. 태형이는 석진이보다 구슬을 더 많이 가지고 있습니다. 구슬을 가장 많이 가지고 있는 사람은 누구입니까?

Answer: Taehyung

Solution (Python):
var_a = 'Yoojeong'
var_b = 'Taehyung'
var_c = 'Seokjin'
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 = 'Yoojeong'
var_e = 'Taehyung'
var_f = '<'
var_g = 'Yoojeong'
var_h = 'Seokjin'
var_i = '<'
var_j = 'Seokjin'
var_k = 'Taehyung'
var_l = '<'
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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_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()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_m = 1
var_n = list_c[var_m-1]
print(var_n)
Category: Comparison

Question (EN): Ji-sung drank 9/25 liters (L) of milk, and Young-pyo drank 0.41 liters (L). Who drank more milk?
Question (KO): 지성은 우유 9/25리터(L), 영표는 0.41리터(L)를 마셨습니다. 누가 우유를 더 많이 마셨습니까?

Answer: Young-pyo

Solution (Python):
var_a = 'Ji-sung'
var_b = 'Young-pyo'
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 = 9
var_d = 25
var_e = var_c / var_d
var_f = 0.41
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): There is a barrel in the shape of a cuboid. The lengths of the two sides of the base are 6 meters (m) 40 centimeters (cm) and 9 meters (m), respectively, and the height is 5 meters (m) 20 centimeters (cm). This barrel is full of beans, but you want to divide them all into several barrels whose volume is 1 cubic meter (m3). Find at least how many barrels you need.
Question (KO): 직육면체 모양의 통이 있습니다. 밑면의 두 변의 길이가 각각 6미터(m) 40센티미터(㎝), 9미터(m)이며, 높이가 5미터(m) 20센티미터(㎝)입니다. 콩이 가득 들어 있을 때, 부피가 1세제곱미터(㎥)인 통 여러 개에 모두 나누어 담으려고 합니다. 통은 적어도 몇 개 필요한지 구해보시오.

Answer: 300

Solution (Python):
var_a = 6
var_b = 40
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 9
var_g = var_e * var_f
var_h = 5
var_i = 20
var_j = 100
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_g * var_l
var_n = 1
var_o = var_m / var_n
var_p = 1
var_q=int(((var_o+9*10**(var_p-2))//(10**(var_p-1)))*10**(var_p-1))

print(int(var_q))
Category: Arithmetic calculation

Question (EN): The area of a rectangle is found by multiplying its width by its length. What is the value of A if the surface area of a rectangle is 120 square centimeters  which is made by increasing the width by 3 centimeters (cm) and reducing the length by A centimeters (cm)  of a square whose side length is 12 centimeters (cm)?
Question (KO): 직사각형의 넓이는 가로와 세로를 곱하여 구한다. 한 변의 길이가 12센티미터(㎝)인 정사각형을, 가로를 3센티미터(㎝)늘리고 세로를 A 센티미터(㎝) 줄여서 만든 직사각형의 넓이가 120제곱센티미터(㎠)일 때, A의 값은 얼마인가

Answer: 4

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

Question (EN): Two boxes (a) and (b) have been delivered. Yoojung is going to take the smaller of the two boxes. If (b) box is smaller than (a) box, which box should Yoojung carry?
Question (KO): 2개의 상자 (가)와 (나)가 배달왔습니다. 유정이는 두 상자 중 작은 상자를 들고 가려고 합니다. (나) 상자가 (가) 상자보다 작았다면, 유정이가 들고가야 하는 상자는 무엇입니까?

Answer: (b)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
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 = '(a)'
var_d = '(b)'
var_e = '>'
list_b= []
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)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_f = len(list_c)
var_g = list_c[var_f-1]
print(var_g)
Category: Geometry

Question (EN): Find the maximum number of chocolates that can fit in a rectangular box with a perimeter of 32 centimeters (cm) and a height of 9 centimeters (cm).
Question (KO): 밑에 놓인 면의 둘레가 32센티미터(㎝)이고, 높이가 9센티미터(㎝)인 직육면체 박스중에 가로, 세로 높이가 모두 1센티미터(㎝)인 초콜릿이 들어갈 수 있는 최대 개수는 몇 개인지 구하시오.

Answer: 576

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

Question (EN): When Ji-An and Shin-Young play rock-paper-scissors, find the number of cases in which Ji-An wins. (However, a draw may also come out.)
Question (KO): 지안이와 신영이가 가위바위보를 할 때, 지안이가 이기는 경우의 수를 구하시오. (단, 무승부도 나올 수 있다.)

Answer: 3

Solution (Python):
var_a = 3
print(int(var_a))
Category: Arithmetic calculation

Question (EN): The average score for Korean and Mathematics is 88. After taking the English test, the average score became 90 points. How much is the English score?
Question (KO): 국어와 수학의 평균 점수는 88점입니다. 영어 시험을 본 후 평균 점수가 90점입니다. 영어 점수는 몇 점 입니까?

Answer: 94

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

Question (EN): What is 23 multiplied by 37 plus 16?
Question (KO): 23에 37을 곱한 값에 16을 더한 값이 얼마인지 구하시오.

Answer: 867

Solution (Python):
var_a = 23
var_b = 37
var_c = var_a * var_b
var_d = 16
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): You want to form a two-digit number by picking two numbers from 1, 3, 5, and 8. If you add a certain number to this two-digit number, you get 88, and the two-digit number is the smallest number you can make. If you cannot pick the number twice, what is that certain number?
Question (KO): 서로 다른 수 1, 3, 5, 8 중 2개를 뽑아서 두 자리 수를 만들려고 합니다. 이 두 자리 수에 어떤 수를 더하면 88이 되고, 두 자리 수는 만들 수 있는 가장 작은 수입니다. 한번 뽑은 수는 중복해서 뽑을 수 없다면, 어떤 수는 무엇입니까?

Answer: 75

Solution (Python):
var_a = 1
var_b = 3
var_c = 5
var_d = 8
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = 88
var_i = var_g - var_h
print(int(var_i))
Category: Geometry

Question (EN): Suppose that there is a trapezoid whose lower side is 3.4 centimeters (cm) shorter than the upper side and has a height of 5.2 centimeters (cm). If the area is 100.62 square centimeters (cm2), how many centimeters (cm) is the length of the lower side?
Question (KO): 어떤 사다리꼴의 아랫변이 윗변보다 3.4센티미터(㎝) 더 짧고, 높이가 5.2센티미터(㎝)이라고 합니다. 넓이가 100.62제곱센티미터(㎠)일 때, 아랫변의 길이는 몇 센티미터(㎝)입니까?

Answer: 17.65

Solution (Python):
var_a = 100.62
var_b = 2
var_c = var_a * var_b
var_d = 5.2
var_e = var_c / var_d
var_f = 3.4
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Possibility

Question (EN): You are going to put 5 different types of fruit on 3 plates. At this time, there may be a plate that does not contain fruit. How many number of cases are there for you to put fruit on the plates?
Question (KO): 서로 다른 종류의 과일 5개를 3개의 접시에 담으려고 합니다. 이때, 과일이 담기지 않는 접시가 있을 수 있습니다. 과일을 접시에 담는 경우는 모두 몇 가지입니까?

Answer: 243

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

Question (EN): The weight of Jisuk's backpack is 1.49 kilograms (kg) and the weight of Miho's backpack is 9/20 kilograms (kg). Whose backpack is lighter?
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: Possibility

Question (EN): I'm trying to make a two-digit number by picking two different numbers. When you draw a number from 9, 4, 2, or 5, what is the difference between the smallest number and the largest possible number?
Question (KO): 서로 다른 숫자를 2개 뽑아서 두 자리 수를 만드려고 합니다. 9, 4, 2, 5 중에서 숫자를 뽑을 때 나올 수 있는 가장 큰 수에서 가장 작은 수를 빼면 얼마가 됩니까?

Answer: 71

Solution (Python):
var_a = 9
var_b = 4
var_c = 2
var_d = 5
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 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: Arithmetic calculation

Question (EN): The total number of pigeons is 21. If the initial number of pigeons was 15, how many more pigeons increased?
Question (KO): 비둘기의 총 마리 수는 21마리입니다. 처음에 있었던 비둘기의 수가 15마리라고 할 때 추가로 날아온 비둘기는 몇 마리입니까?

Answer: 6

Solution (Python):
var_a = 21
var_b = 15
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): How many three-digit numbers with 2 in the hundreds digit and 5 in the tens digit are greater than 256?
Question (KO): 백의 자리 숫자가 2, 십의 자리 숫자가 5인 세 자리 수 중에서 256보다 큰 수는 모두 몇 개인지 구하시오.

Answer: 3

Solution (Python):
var_a = 2
var_b = 5
var_c = 'A'
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=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
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_d):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_d
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
var_e = 256
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Three pigeons sitting on a telephone pole flew away. When there were 8 pigeons sitting on the telephone pole at first, how many pigeons are left?
Question (KO): 전봇대에 앉아있던 비둘기가 3마리 날아갔습니다. 처음에 전봇대에 앉아있던 비둘기가 8마리일때, 남아있는 비둘기는 몇 마리일까요?

Answer: 5

Solution (Python):
var_a = 8
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There were 25 cars in the parking lot. After 18 cars went out, another 12 came in. How many cars fell in number in the parking lot?
Question (KO): 주차장에 자동차가 25대 있었습니다. 자동차 18대가 나간 후, 다시 12대가 들어왔습니다. 주차장에 자동차는 몇 대 줄었습니까?

Answer: 6

Solution (Python):
var_a = 25
var_b = 25
var_c = 18
var_d = var_b - var_c
var_e = 12
var_f = var_d + var_e
var_g = var_a - var_f
print(int(var_g))
Category: Comparison

Question (EN): Find the one who got the biggest number: Jungkook with 6 times 3, Yoongi with 4, and Yuna with 5.
Question (KO): 정국이는 6에서 3을 곱한 수를 모았고, 윤기는 4, 유나는 5를 모았습니다. 누가 가장 큰 수를 모았나요?

Answer: Jungkook

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 6
var_e = 3
var_f = var_d * var_e
var_g = 4
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_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
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): A cuboid-shaped fishbowl measuring 15 cm (cm) wide and 20 cm (cm) long contains water 10 cm (cm) high. When one stone was completely submerged in the water, the water level rose to 15 cm (cm). What is the volume in cubic centimeters (cm3) of this stone?
Question (KO): 가로가 15㎝, 세로가 20㎝인 직육면체 모양의 어항에 10센티미터(㎝) 높이만큼 물이 담겨 있습니다. 돌덩이 1개를 물에 완전히 잠기게 넣고 보니 물의 높이가 15㎝까지 올라갔습니다. 이 돌덩이의 부피는 몇 세제곱센티미터입니까?

Answer: 1500

Solution (Python):
var_a = 15
var_b = 20
var_c = var_a * var_b
var_d = 15
var_e = 10
var_f = var_d - var_e
var_g = var_c * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): When you add 3 consecutive natural numbers, you get 48. What is the multiplication of the largest of these numbers and the smallest of these numbers?
Question (KO): 연속된 자연수 3개를 더했더니 48이 되었다. 이 수들 중 가장 큰 수와 가장 작은 수를 곱하면 얼마인지 구하시오.

Answer: 255

Solution (Python):
var_a = 48
var_b = 3
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 = 48
var_i = 3
var_j = var_h / var_i
var_k = 3
var_l = 2
var_m = var_k // var_l
var_n = var_j - var_m
var_o = var_g * var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): What is the product of the numbers 4, 7, and 25?
Question (KO): 숫자 4, 7, 25 의 곱은 얼마입니까?

Answer: 700

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

Question (EN): The surface area of a cube is 600 square centimeters (cm2). Find the length of one side.
Question (KO): 정육면체의 겉넓이가 600제곱센티미터(㎠)입니다. 한 변의 길이를 구하세요.

Answer: 10

Solution (Python):
var_a = 600
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e))
Category: Geometry

Question (EN): We are going to attach square tiles with a side of 25 centimeters (cm) to a rectangular wall measuring 3+1/4 meters (m) wide and 2+3/4 meters (m) long. How many tiles can you put on this wall?
Question (KO): 가로가 3+1/4미터(m), 세로가 2+3/4미터(m)인 직사각형 모양의 벽에 한 변의 길이가 25센티미터(㎝)인 정사각형 모양의 타일을 붙이려고 합니다. 이 벽에 붙일 수 있는 타일은 모두 몇 장인지 구하시오.

Answer: 143

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

Question (EN): In a 10.5 km bike course, Yoongi took a break after going 1.5 kilometers (km). If he went another 3730 meters (m), how many meters (m) is the length of the remaining course?
Question (KO): 10.5킬로미터(㎞)의 자전거 코스에서 윤기가 1.5킬로미터(㎞)를 간 후 쉬었고, 3730미터(m)를 또 가면 남은 코스의 길이는 몇 미터(m)입니까?

Answer: 5270

Solution (Python):
var_a = 10.5
var_b = 1000
var_c = var_a * var_b
var_d = 1.5
var_e = 1000
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 3730
var_i = var_g - var_h
print(int(var_i))
Category: Comparison

Question (EN): There are 3 apples, 2 plums, and 5 peaches in the fruit basket. When Hyeonsu closes his eyes and chooses one fruit at random from the fruit basket, which fruit is most likely to be chosen?
Question (KO): 과일 바구니에 사과가 3개, 자두가 2개, 복숭아가 5개 있습니다. 현수가 눈을 감고 과일 바구니에서 과일 하나를 무작위로 고를 때 선택될 확률이 가장 높은 과일은 무엇입니까?

Answer: peaches

Solution (Python):
var_a = 'apples'
var_b = 'plums'
var_c = 'peaches'
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 = 3
var_e = 2
var_f = 5
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: Arithmetic calculation

Question (EN): There are marbles of three different colors. The average number of red and yellow marbles is 26.5, the average number of blue and yellow marbles is 34.5, and the average number of red and blue marbles is 29. What is the average number of the three marbles?
Question (KO): 서로 다른 세가지 색의 구슬이 있다. 빨간색 구슬과 노란색 구슬 개수의 평균은 26.5이고 파란색 구슬과 노란색 구슬 개수의 평균은 34.5, 빨간색 구슬과 파란색 구슬 개수의 평균은 29이다. 세 구슬 개수의 평균은 얼마인지 구하시오.

Answer: 30

Solution (Python):
var_a = 26.5
var_b = 34.5
var_c = var_a + var_b
var_d = 29
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))