philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): How many four-digit numbers can be made by using the numbers written on cards 2, 5, 9, and 6, with using all the numbers once?
Question (KO): 숫자 카드 2, 5, 9, 6을 한 번 씩 모두 사용하여 만들 수 있는 네 자리 수는 몇 개입니까?

Answer: 24

Solution (Python):
var_a = 2
var_b = 5
var_c = 9
var_d = 6
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]
var_f = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): You want to divide 1 liter (L) of milk and 3 liters (L) of water equally into cups of the same shape and size. If 1 liter (L) of milk is divided equally into 2 A cups  and 3 liters (L) of milk is divided equally into 4 B cups, which cup has more milk, Cup A or Cup B?
Question (KO): 우유 1리터(L)와 물 3리터(L)를 모양과 크기가 같은 컵에 똑같이 나누어 담으려고 합니다. 우유 1리터(L)를 컵 가 2개에, 우유 3리터(L)를 컵 나 4개에 남김없이 똑같이 나누어 담을 때, 컵 가와 컵 나 중 어느 컵에 우유가 더 많을까요?

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 = 1
var_d = 2
var_e = var_c * var_d
var_f = 3
var_g = 4
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)
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): When trying to make a cube by stacking cuboid-shaped blocks with a width of 18 millimeters (mm), a length of 12 millimeters (mm), and a height of 9 millimeters (mm), find the minimum number of blocks required. (However, the height of the protruding part of the block is not considered.)
Question (KO): 가로의 길이가 18밀리미터(㎜), 세로의 길이가 12밀리미터(㎜), 높이가 9밀리미터(㎜)인 직육면체 모양의 블록을 쌓아 정육면체를 만들려고 할 때, 필요한 최소의 블록을 개수를 구하시오. (단, 블록의 튀어나온 부분의 높이는 고려하지 않습니다.)

Answer: 40310784

Solution (Python):
var_a = 18
var_b = 12
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 9
var_e = var_d * var_c / math.gcd(int(var_d), int(var_c))
var_f = 3
var_g = var_e ** var_f
var_h = 18
var_i = var_g / var_h
var_j = 18
var_k = 12
var_l = var_k * var_j / math.gcd(int(var_k), int(var_j))
var_m = 9
var_n = var_m * var_l / math.gcd(int(var_m), int(var_l))
var_o = 12
var_p = var_n / var_o
var_q = 18
var_r = 12
var_s = var_r * var_q / math.gcd(int(var_r), int(var_q))
var_t = 9
var_u = var_t * var_s / math.gcd(int(var_t), int(var_s))
var_v = 3
var_w = var_u ** var_v
var_x = 9
var_y = var_w / var_x
var_z = var_p * var_y
var_A = var_i * var_z
print(int(var_A))
Category: Arithmetic calculation

Question (EN): How many natural numbers are 40 or greater and 70 or less?
Question (KO): 40 이상 70 이하인 자연수는 모두 몇 개입니까?

Answer: 31

Solution (Python):
var_a = 70
var_b = 40
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): How many ways are there to stack up the sponges shaped in the alphabet A, B, and C in order?
Question (KO): 알파벳 A, B, C모양 스펀지를 차례대로 쌓을 때, 몇 가지의 방법이 있습니까?

Answer: 6

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
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)
var_e = len(list_a)
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
print(int(var_f))
Category: Geometry

Question (EN): The base of a parallelogram with an area of 48.6 square centimeters (cm2) is 5.4 centimeters (cm). What is the height of this figure?
Question (KO): 넓이가 48.6 제곱센티미터(㎠)인 평행사변형의 밑변이 5.4센티미터(㎝)이다. 이 도형의 높이는 얼마인가?

Answer: 9

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

Question (EN): Consider the area of the rhombus is 21.46 square centimeters (cm2) and the length of one diagonal is 7.4 centimeters (cm). Find the length of the other diagonal.
Question (KO): 마름모의 넓이가 21.46제곱센티미터(㎠)이고, 한 대각선의 길이가 7.4센티미터(㎝)일 때, 다른 대각선의 길이를 구하시오.

Answer: 5.8

Solution (Python):
var_a = 21.46
var_b = 2
var_c = var_a * var_b
var_d = 7.4
var_e = var_c / var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Possibility

Question (EN): Find the difference between the largest number and the smallest number using all number cards of 2, 4, 5, 1, 3, 7, 6, and 0 only once.
Question (KO): 2, 4, 5, 1, 3, 7, 6, 0 수 카드를 모두 한 번씩만 사용하여 가장 큰 수와 가장 작은 수의 차를 구하시오

Answer: 66308643

Solution (Python):
var_a = 2
var_b = 4
var_c = 5
var_d = 1
var_e = 3
var_f = 7
var_g = 6
var_h = 0
list_a= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
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_i = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_i))
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_j = 1
list_c=list_b.copy()
list_c.sort()
var_k = list_c[-var_j]
var_l = 1
list_d=list_b.copy()
list_d.sort()
var_m = list_d[var_l-1]
var_n = var_k - var_m
print(int(var_n))
Category: Arithmetic calculation

Question (EN): There are 5 vases. 4 vases have 5 flowers each, and the other one vase has 6 flowers. Find out the total amount of flowers in the vase.
Question (KO): 꽃병이 5개 있습니다. 꽃병 4개에는 각각 5송이의 꽃이 있고, 나머지 1개의 꽃병에는 6송이의 꽃이 있습니다. 꽃병에 있는 꽃은 모두 몇 송이입니까?

Answer: 26

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

Question (EN): A+C=15, A-B=1, C+C=A, B-D=2. If A, B, C, and D are different numbers, what should D be?
Question (KO): A+C=15, A-B=1, C+C=A, B-D=2입니다. A, B, C, D가 서로 다른 수라고 한다면 D는 얼마가 되야 합니까?

Answer: 7

Solution (Python):
var_a = 'C+C+C=15'
var_b = 'C'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 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_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        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_c = ans_dict[var_b]
var_d = 2
var_e = var_c * var_d
var_f = 1
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 five-digit numbers are common multiples of 3 and 5?
Question (KO): 다섯 자리 수 중 3과 5의 공배수는 모두 몇 개 입니까?

Answer: 6000

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 = 5
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 = len(list_c)
print(int(var_f))
Category: Comparison

Question (EN): Among the 30 students in Hoseok's class, 12 students came later than Hoseok. How many students came earlier than Hoseok?
Question (KO): 호석이네 반 학생 30명 중 호석이보다 늦게 온 학생은 12명입니다. 호석이보다 일찍 온 학생은 몇 명인가요?

Answer: 17

Solution (Python):
var_a = 30
var_b = 12
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Seokjin is in the 5th row at the supermarket, and Namjoon is 6 people behind Seokjin. What's Namjoon's position?
Question (KO): 석진이는 마트에서 5번째 줄에 서있고, 남준이는 석진이보다 6명 뒤에 있습니다. 남준이는 몇 번째에 서 있습니까?

Answer: 11

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

Question (EN): What will the result be if I multiply 10 by a certain number that becomes 0.735 when multiplied by 1/1000?
Question (KO): 1/1000을 곱하면 0.735가 되는 어떤 수에 10을 곱하면 얼마가 되나요?

Answer: 7350

Solution (Python):
var_a = 0.735
var_b = 0.001
var_c = var_a / var_b
var_d = 10
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): There are 4 buses A, B, C and D. Bus A has more passengers than bus C, bus A has more passengers than bus B, and bus D has the fewest passengers. Which bus has the most passengers?
Question (KO): 4대의 버스 A, B, C, D가 있습니다. 버스 A는 버스 C보다 많은 승객들이 타고 있고, 버스 D에는 가장 적은 승객들이 타고 있습니다. 가장 많은 승객을 태운 버스는 무엇일까요?

Answer: A

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
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 = 'A'
var_f = 'B'
var_g = '>'
var_h = 'A'
var_i = 'C'
var_j = '>'
var_k = 'D'
var_l = 'A'
var_m = '<'
var_n = 'D'
var_o = 'B'
var_p = '<'
var_q = 'D'
var_r = 'C'
var_s = '<'
list_b= []
if "/" in str(var_s):
    var_s = eval(str(var_s))
list_b.append(var_s)
if "/" in str(var_r):
    var_r = eval(str(var_r))
list_b.append(var_r)
if "/" in str(var_q):
    var_q = eval(str(var_q))
list_b.append(var_q)
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_b.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
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)
list_b.reverse()
var_t = '[OP_LIST_COND_M(a)X_MIN]'
var_u = 1
var_v = list_b[var_u-1]
print(var_v)
Category: Arithmetic calculation

Question (EN): If the sum of three consecutive natural numbers is 30, what is the middle number among the three natural numbers?
Question (KO): 연속하는 세 자연수의 합이 30일 때, 세 자연수 중 가운데 수를 구하시오.

Answer: 10

Solution (Python):
var_a = 30
var_b = 0
var_c = 3
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 = 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
print(int(var_n))
Category: Arithmetic calculation

Question (EN): A container with a capacity of 10 liters (l) is filled with water. From this container, you took the water out using a bowl of 1 liter (L) 500 milliliter (㎖) three times, and then again used a bowl of 1 liter (L) and 750 milliliters (㎖) once. After that, if you poured water out using a bowl of 1 liter (L) 250 milliliters (㎖), how many times did you pour it out using 1 liter (L) 250 milliliters (㎖) bowl to empty the container?
Question (KO): 10리터(L) 들이의 통에 물이 가득 들어있습니다. 이 통에서 1리터(L) 500밀리리터(㎖)들이의 그릇으로 물을 가득 담아 3번 덜어낸 후에 1리터(L) 750밀리리터(㎖)들이의 그릇으로 물을 가득 담아 한 번 덜어냈습니다. 그 후 1리터(L) 250밀리리터(㎖)들이의 그릇으로 물을 가득 담아 덜어낸다면 통을 비우기 위해선 1리터(L) 250밀리리터(㎖) 들이의 그릇으로 몇 번 덜어내야 합니까?

Answer: 3

Solution (Python):
var_a = 10
var_b = 1000
var_c = var_a * var_b
var_d = 1
var_e = 1000
var_f = var_d * var_e
var_g = 500
var_h = var_f + var_g
var_i = 3
var_j = var_h * var_i
var_k = var_c - var_j
var_l = 1
var_m = 1000
var_n = var_l * var_m
var_o = 750
var_p = var_n + var_o
var_q = var_k - var_p
var_r = 1
var_s = 1000
var_t = var_r * var_s
var_u = 250
var_v = var_t + var_u
var_w = var_q / var_v
print(int(var_w))
Category: Arithmetic calculation

Question (EN): Minseok started watching the drama, yesterday he watched 1/3 of the total, and today he watched 2/5 of the total. Find how much of the whole is the unseen part.
Question (KO): 민석이가 드라마를 보기 시작하여 어제는 전체의 1/3을, 오늘은 전체의 2/5를 봤습니다. 안 본 부분은 전체의 얼마인지 구하시오.

Answer: 0.27

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

Question (EN): Taehyung entered the house third, and Seokjin entered the house immediately after. In what number did Seokjin enter?
Question (KO): 태형이는 집에 3번째로 들어갔고, 석진이는 바로 다음으로 집에 들어갔습니다. 석진이는 몇 번째로 들어갔습니까?

Answer: 4

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

Question (EN): I mistakenly multiplied a number by 15, instead of multiplying it by 5, and I got 45. Find the result of the correct calculation.
Question (KO): 어떤 수에 5를 곱해야 할 것을 잘못하여 15를 곱하였더니 45가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 15

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 5
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): We are going to use 2 of our 3 number cards 1, 2, and 6 to create a two-digit number. Find the smallest possible multiple of 3.
Question (KO): 1, 2, 6 총 3장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 3의 배수 중 가장 작은 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 1
var_b = 2
var_c = 6
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 = [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 = 3
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: Arithmetic calculation

Question (EN): How many friends can you give 45 pieces of candy to if you give 5 pieces to each friend?
Question (KO): 45개의 사탕을 5개씩 친구들에게 나눈다면 몇 명의 친구에게 나누어 줄 수 있나?

Answer: 9

Solution (Python):
var_a = 45
var_b = 5
var_c = var_a // var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Seven azaleas are planted at equal intervals between two ginkgo trees that are 20 meters apart. If the distance between the ginkgo tree and the azalea is 1 meter (m), how many meters (m) is the distance between the azaleas?
Question (KO): 서로 20미터(m) 떨어져 있는 은행나무와 은행나무 사이에 진달래가 같은 간격으로 7송이 심어져 있습니다. 은행나무와 진달래 사이의 간격이 1미터(m)라면, 진달래와 진달래 사이의 간격은 몇 미터(m)입니까?

Answer: 2.5

Solution (Python):
var_a = 20
var_b = 7
var_c = 1
var_d = var_b + var_c
var_e = var_a / var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): A box in the shape of a cuboid has a volume of 315 square centimeters (cm2). If the width of this box is 9 centimeters (cm) and the vertical length is 7 centimeters (cm), what is the height of the box in centimeters (cm)?
Question (KO): 어느 직육면체 모양의 상자는 부피가 315제곱센티미터(㎠) 입니다. 이 상자의 가로의 길이가 9센티미터(㎝), 세로의 길이가 7센티미터(㎝)이라면 상자의 높이는 몇 센티미터(㎝)입니까?

Answer: 5

Solution (Python):
var_a = 315
var_b = 9
var_c = var_a / var_b
var_d = 7
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The sum of five consecutive natural numbers is 60. Find the middle number.
Question (KO): 연속하는 5개의 자연수의 합이 60입니다. 가운데 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 60
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 = 2
var_m = var_k // var_l
var_n = var_j + var_m
print(int(var_n))
Category: Comparison

Question (EN): Yoongi collected 4 apples, Jungkook collected 6 times 3 apples, and Yuna collected 5 apples. Who has the most apples?
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): A triangle has an area of 576 square centimeters (cm2). If the base of this triangle is 32 centimeters (cm), how many centimeters (cm) is its height?
Question (KO): 넓이가 576제곱센티미터(㎠)인 삼각형이 있습니다. 이 삼각형의 밑변이 32센티미터(㎝)이면, 높이는 몇 센티미터(㎝)입니까?

Answer: 36

Solution (Python):
var_a = 576
var_b = 2
var_c = var_a * var_b
var_d = 32
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): 37 is 69 smaller than a number. What is the number that is 55 greater than the number?
Question (KO): 어떤 수보다 69 작은 숫자는 37입니다. 어떤 수보다 55만큼 큰 숫자는 얼마인가요?

Answer: 161

Solution (Python):
var_a = 69
var_b = 37
var_c = var_a + var_b
var_d = 55
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You can make one mobile with 4 meters (m) of wire. How many mobiles of the same size can be made with 105.8 meters (m) of wire?
Question (KO): 철사 4미터(m) 로 모빌을 1 개 만들 수 있습니다. 철사 105.8미터(m) 로 같은 크기의 모빌을 몇 개 만들 수 있습니까?

Answer: 26

Solution (Python):
var_a = 105.8
var_b = 4
var_c = var_a // var_b
print(int(var_c))
Category: Correspondence

Question (EN): I need to add 39 to a number and subtract 44, but I made a mistake by adding 44 and subtracting 39, and I got 63. Find the result of the correct calculation.
Question (KO): 어떤 수에 39를 더하고 44를 빼야 하는데 잘못하여 44를 더하고 39를 뺐더니 63이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 53

Solution (Python):
var_a = 63
var_b = 44
var_c = var_a - var_b
var_d = 39
var_e = var_c + var_d
var_f = 39
var_g = var_e + var_f
var_h = 44
var_i = var_g - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Of the 35 students in Taehyung's class, 3 of them scored 93, 83, and 87 points on the Korean language test, respectively. If the average Korean language score of the rest of the students is 76, what is the average Korean language score of the whole class?
Question (KO): 태형이네 반 학생 수 35명 중 3명의 국어 시험 점수는 각각 93점, 83점, 87점입니다. 나머지 학생들의 국어 평균 점수는 76점일 때 반 전체 국어 평균 점수는 몇 점입니까?

Answer: 77

Solution (Python):
var_a = 76
var_b = 35
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 93
var_g = var_e + var_f
var_h = 83
var_i = var_g + var_h
var_j = 87
var_k = var_i + var_j
var_l = 35
var_m = var_k / var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): The average English test score of 10 female students in Dayoung's class is 83.1 points, and the average English test score of 8 male students is 84 points. What is the average English score for this class as a whole?
Question (KO): 다영이네 반 여학생 10명의 평균 영어 성적은 83.1점 남학생 8명의 평균 영어 성적은 84점입니다. 이 학급 전체의 평균 영어 성적은 몇 점입니까?

Answer: 83.5

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

Question (EN): We plan to create 24 flower beds at equal intervals on one side of the 239.66 m (m) long trail. If you make one flower bed at the beginning and one at the end of the trail, what is the distance in meters (m) between the flower beds?
Question (KO): 239.66미터(m)의 산책로의 한쪽에 같은 간격으로 24개의 화단을 만들려고 합니다. 산책로의 처음과 끝에 각각 하나씩 화단을 만든다면, 화단 사이의 거리는 몇 미터(m)입니까?

Answer: 10.42

Solution (Python):
var_a = 239.66
var_b = 24
var_c = 1
var_d = var_b - var_c
var_e = var_a / var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): I opened the faucet and started filling the water tank that has 27 liters (L) of water. When I filled water for 1 minute, the tank had 58 liters (L) of water. After filling water again for 1 minute in this tank, I scooped out 48 liters (L) of water. how many liters (L) of water are in the tank?
Question (KO): 27리터(L)의 물이 있는 수조에 수도꼭지를 열어 물을 받기 시작했다. 1분간 물을 받았더니 욕조에 58리터(L)의 물이 있었다. 이 수조에 다시 1분간 물을 받은 후 48리터(L)의 물을 퍼내면 수조에는 몇 리터(L)의 물이 있는지 구하시오.

Answer: 41

Solution (Python):
var_a = 58
var_b = 27
var_c = var_a - var_b
var_d = 58
var_e = 48
var_f = var_d - var_e
var_g = var_c + var_f
print(int(var_g))