philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): How many times the surface area of a sphere with a radius of 6 centimeters (cm) is greater than the surface area of a sphere with a radius of 3 centimeters (cm)?
Question (KO): 반지름의 길이가 6 센티미터(㎝)인 구의 겉넓이는 반지름의 길이가 3 센티미터(㎝)인 구의 겉넓이의 몇 배인가?

Answer: 4

Solution (Python):
var_a = 6
var_b = 3
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
print(int(var_e))
Category: Comparison

Question (EN): Seokjin walked up the stairs from the building entrance and arrived on the 5th floor. Hoseok took the elevator from the entrance of the same building and reached the 8th floor. Who climbed higher?
Question (KO): 석진이는 건물 입구에서 계단을 걸어 올라가 5층에 도착했습니다. 호석이는 같은 건물 입구에서 엘리베이터를 타고 올라가 8층에 도착했습니다. 더 높이 올라간 사람은 누구입니까?

Answer: Hoseok

Solution (Python):
var_a = 'Seokjin'
var_b = 'Hoseok'
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 = 5
var_d = 8
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Geometry

Question (EN): What is the sum of all the sides of an equilateral triangle with sides of 13/12 meters (m)?
Question (KO): 한 변의 길이가 13/12미터(m)인 정삼각형의 모든 변의 길이를 다 더하면 얼마입니까?

Answer: 3.25

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

Question (EN): There are 5 numbers, 3.4, 7/2, 1.7, 27/10, 2.9. What is the smallest number including the decimal point?
Question (KO): 숫자 5개, 3.4, 7/2, 1.7, 27/10, 2.9가 있습니다. 가장 작은 수는 얼마인지 소수점을 포함해서 뽑으시오.

Answer: 1.7

Solution (Python):
var_a = 3.4
var_b = 3.5
var_c = 1.7
var_d = 2.7
var_e = 2.9
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-1]
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): Of these numbers 1.4, 9/10, 1.2, 0.5, and 13/10, select the numbers that are less than 1.1 and find the sum of those numbers.
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 작은 숫자를 나열한뒤, 합을 계산하면 얼마입니까?

Answer: 1.4

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 1.1
list_b = []
for i in list_a:
    if i < var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Arithmetic calculation

Question (EN): When Hyunwoo asked about Jooheon's science test score, Jooheon answered that it was in the 80s. What is the possible largest number for Jooheon's science test score?
Question (KO): 현우가 주헌이의 과학 시험 점수를 물어보자 주헌이는 80점대라고 답하였습니다. 주헌이의 과학 시험 점수로 가능한 가장 큰 수는 무엇입니까?

Answer: 89

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

Question (EN): Dohee and Gahee choose two of the number cards with the numbers 2, 4, 5, and 8 written on them and use them all to make two digits each, and then try to make the difference as large as possible. What is the answer of it?
Question (KO): 도희와 가희는 2, 4, 5, 8 이 적힌 숫자 카드 중 2개씩 골라 모두 사용하여 각각 두 자리수를 만든 후, 차가 가장 크게 하려고 합니다. 답은 얼마입니까?

Answer: 61

Solution (Python):
var_a = 2
var_b = 4
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]
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: Correspondence

Question (EN): When you have to multiply a number by 2 and then subtract 45 from it, you mistakenly divide the number by 2 and add 45 and got 85. Find the correctly calculated value.
Question (KO): 어떤 수에 2를 곱한 뒤 45를 빼야 할 것을 잘못하여 어떤 수를 2로 나누고 45를 더하였더니 85가 되었습니다. 바르게 계산한 값을 구하시오.

Answer: 115

Solution (Python):
var_a = 85
var_b = 45
var_c = var_a - var_b
var_d = 2
var_e = var_c * var_d
var_f = 2
var_g = var_e * var_f
var_h = 45
var_i = var_g - var_h
print(int(var_i))
Category: Possibility

Question (EN): There are 2 types of pencils and 3 types of erasers. When trying to use one by one, find the number of possible combinations.
Question (KO): 2종류의 연필과 , 3종류의 지우개가 있습니다. 하나씩 골라 사용하려고 할 때, 가능한 조합의 수를 구하시오.

Answer: 6

Solution (Python):
var_a = 2
var_b = 3
var_c = var_a * var_b
print(int(var_c))
Category: Correspondence

Question (EN): Subtracting 17 from a number gives 55. Find the result of dividing this number by 9.
Question (KO): 어떤 수에 17을 뺐더니 55가 되었습니다. 9를 어떤 수에서 나눈 결과를 구하시오.

Answer: 8

Solution (Python):
var_a = 55
var_b = 17
var_c = var_a + var_b
var_d = 9
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): 632-A9B=41 is true. What is A?
Question (KO): 632-A9B=41이 성립합니다. A는 무엇인가요?

Answer: 5

Solution (Python):
var_a = '632-A9B=41'
var_b = 'A'
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] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    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)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Correspondence

Question (EN): Dividing 520 by a particular number gives a quotient of 22 and a remainder of 14. Find the remainder and the quotient of 520 divided by the number that is 7 less than that particular number, and find the product of that remainder and quotient.
Question (KO): 어떤 수로 520을 나누면 몫은 22이고 나머지는 14가 됩니다. 520을 어떤 수보다 7 작은 수로 나눈 몫과 나머지의 곱을 구하시오.

Answer: 256

Solution (Python):
var_a = 520
var_b = 520
var_c = 14
var_d = var_b - var_c
var_e = 22
var_f = var_d / var_e
var_g = 7
var_h = var_f - var_g
var_i = var_a // var_h
var_j = 520
var_k = 520
var_l = 14
var_m = var_k - var_l
var_n = 22
var_o = var_m / var_n
var_p = 7
var_q = var_o - var_p
var_r = var_j % var_q
var_s = var_i * var_r
print(int(var_s))
Category: Geometry

Question (EN): How many diagonals can be drawn from a vertex of a regular decagon?
Question (KO): 정십각형의 한 꼭짓점에서 그을 수 있는 대각선은 모두 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 10
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): If there are 3 bus routes, 2 subway routes, and 4 train routes from Seohee's house to school, find the number of ways to go by subway.
Question (KO): 앞면에 1, 3, 5가 앞면에 적힌 동전 3개가 있습니다. 각 동전의 뒷면에는 앞면의 숫자에 1을 더한 수들이 적혀 있습니다. 동전을 던졌을 때, 1이 적힌 동전은 앞면이, 5가 적힌 동전은 뒷면이 나오는 경우는 모두 몇 가지입니까?

Answer: 2

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

Question (EN): Seokgi and Ye-seul want to buy a boat. It is said that Seokgi's money is short of 2,000 won, and Ye-seul's money is short of 1,500 won. If 3,500 won is left after buying a boat with the sum of money the two people have, how much money does Seokgi have?
Question (KO): 석기와 예슬이는 배를 한 개 사려고 합니다. 석기가 가진 돈으로는 2000원이 부족하고, 예슬이가 가진 돈으로는 1500원이 부족하다고 합니다. 두 사람이 가진 돈을 합해서 배 한 개를 사면 3500원이 남을 때, 석기가 가진 돈은 몇 원입니까?

Answer: 5000

Solution (Python):
var_a = 2000
var_b = 1500
var_c = var_a + var_b
var_d = 3500
var_e = var_c + var_d
var_f = 2000
var_g = var_e - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): I am going to put 6 posters with a width of 30 centimeters (cm) in a row on a wall with a width of 3 meters (m) and 20 centimeters (cm). Determine how many centimeters (cm) the distance must be to equalize the distance between the end of the wall and the poster and the distance between the posters.
Question (KO): 가로가 3미터(m) 20센티미터(㎝)인 벽에 가로가 30센티미터(㎝)인 포스터 6장을 일렬로 붙이려고 합니다. 벽의 끝과 포스터 사이, 포스터와 포스터 사이의 간격을 모두 같게 하려면 간격은 몇 센티미터(㎝)로 해야 하는지 구하시오.

Answer: 20

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

Question (EN): Giyun's one step is 0.75 meters (m), and he takes 70 steps in one minute. If it took 13 minutes for Giyun to walk from his house to school, what is the distance in meters (m) between Giyun's house and school?
Question (KO): 기윤이의 한 걸음은 0.75미터(m)이고, 1분 동안 70걸음을 걷습니다. 기윤이가 집에서 학교까지 걸어서 가는 데 13분이 걸렸다면, 기윤이의 집과 학교 사이의 거리는 몇 미터(m)입니까?

Answer: 682.5

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

Question (EN): Two people are going to drink 2.87 liters of orange juice equally. Find how many liters (l) each person will drink.
Question (KO): 오렌지 주스 2.87리터(L)를 두 명이 똑같이 나누어 마시려고 합니다. 한 사람이 몇 리터(L)씩 마시게 되는지 나타내시오.

Answer: 1.44

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

Question (EN): The perimeter of the rectangle is 52 centimeters (cm). What is the area of this rectangle if its side is 11 centimeters (cm)?
Question (KO): 직사각형의 둘레는 52센티미터(㎝)입니다. 한 변의 길이가 11센티미터(㎝)일 때, 이 직사각형의 넓이는 얼마입니까?

Answer: 165

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

Question (EN): If you write down all the odd numbers less than 100 on a piece of paper, how many times do you have to write the figure '1'?
Question (KO): 100이하인 홀수를 모두 종이에 적으면, 숫자 1을 몇 번 적어야 하는지 구하시오.

Answer: 15

Solution (Python):
var_a = 1
var_b = 100
list_a = []
if var_a%2==0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c=""
for i in list_a:
    i = str(i)
    var_c = var_c + i
list_b = []
var_c = int(var_c)
while var_c//10 > 0:
    list_b.append(var_c%10)
    var_c = var_c//10
list_b.append(var_c%10)
list_b = list_b[::-1]
var_d = 1
var_e = 0
var_d = int(var_d)
for i in list_b:
    i = int(i)
    if i == var_d:
        var_e = var_e + 1
print(int(var_e))
Category: Arithmetic calculation

Question (EN): It takes 6.64 grams (g) of glutinous rice flour to make one glutinous rice cake. How many glutinous rice cakes can be made with 212.48 grams (g) of glutinous rice flour?
Question (KO): 찹쌀떡 한 개를 만드는 데 찹쌀가루가 6.64그램(g) 필요합니다. 찹쌀가루 212.48그램(g)으로 만들 수 있는 찹쌀떡은 모두 몇 개입니까?

Answer: 32

Solution (Python):
var_a = 212.48
var_b = 6.64
var_c = var_a // var_b
print(int(var_c))
Category: Correspondence

Question (EN): At a certain university, the number of Korean department students is 6/11 of Chinese department students, and the number of Japanese department students is 1/8 of the students in the Chinese department. If there are 48 Korean department students, find the number of Japanese department students.
Question (KO): 어느 대학의 국문학과 학생은 중국어과 학생의 6/11만큼 있고, 일어과 학생은 중국어과 학생의 1/8만큼 있다. 국문학과 학생이 48명일 때, 일어과 학생은 몇 명인지 구하시오.

Answer: 11

Solution (Python):
var_a = 48
var_b = 0.5454545454545454
var_c = var_a / var_b
var_d = 0.125
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): How many different two-digit numbers can be formed by using the two numbers 3 and 5 only once?
Question (KO): 두 수 3, 5를 한 번씩만 사용하여 만들 수 있는 서로 다른 두 자리 수는 모두 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 3
var_b = 5
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = len(list_b)
print(int(var_d))
Category: Possibility

Question (EN): Ten students are trying to form a group. The number of people in a group must be 3 or less. Find the number of cases of groups that can be created.
Question (KO): 10명의 학생이 조를 짜려고 한다. 한 조의 인원은 3명 이하여야 한다. 만들어질 수 있는 조들의 경우의 수를 구하시오.

Answer: 10

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
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 = len(list_a)
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]
list_c=[]
for i in list_b:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_c.append(var_f)
var_g = 10
var_h = 0
var_g = int(var_g)
for i in list_c:
    i = int(i)
    if i == var_g:
        var_h = var_h + 1
print(int(var_h))
Category: Arithmetic calculation

Question (EN): There are 36 students in Jaehong's class. If there are 24 fewer students wearing short sleeves than students wearing long sleeves, find how many students are wearing short sleeves.
Question (KO): 재홍이네 학급 학생은 모두 36명입니다. 이중 오늘 반팔 옷을 입은 학생은 긴팔 옷을 입은 학생보다 24명이 더 적다면, 오늘 반팔을 입은 학생은 몇 명인지 구하시오.

Answer: 6

Solution (Python):
var_a = 36
var_b = 24
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): In the math test, Jimin is ranked 4th, and Seokjin is ranked lower than Jimin and there are 19 people between them. What is the rank of Seokjin?
Question (KO): 수학 시험에서 지민이는 4등이고, 석진이는 지민이보다 낮은 등수를 받았고 둘 사이에는 19명이 있습니다. 석진이는 몇 등입니까?

Answer: 24

Solution (Python):
var_a = 4
var_b = 19
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 1500 students in Sarang's School, 0.4 of which are female students. If 0.65 of the male students at Sarang's School like math, how many male students do not like math?
Question (KO): 사랑이네 학교 학생은 모두 1500 명이고, 그중 여학생은 전체의 0.4 입니다. 사랑이네 학교 남학생의 0.65 가 수학을 좋아할 때, 수학은 좋아하지 않는 남학생은 몇 명입니까?

Answer: 315

Solution (Python):
var_a = 1500
var_b = 1
var_c = 0.4
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 1
var_g = 0.65
var_h = var_f - var_g
var_i = var_e * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): One small box can contain 3 balls each. Jungkook is trying to put 12 balls in the small boxes. How many boxes does Jungkook need?
Question (KO): 작은 상자 1개에는 공을 3개씩 담을 수 있습니다. 정국이는 12개의 공을 작은 상자에 담으려고 합니다. 정국이는 몇 개의 상자가 필요합니까?

Answer: 4

Solution (Python):
var_a = 12
var_b = 3
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): A cuboid space can contain 36 boxes, each measuring 1 centimeter (cm) in length, width, and height. How many boxes could fit in this space if you double its length, width, and height?
Question (KO): 어떤 직육면체 공간에 가로, 세로, 높이가 각각 1센티미터(㎝)인 박스를 36개 넣을 수 있다. 이 공간의 가로, 세로, 높이를 2배 한다면 몇 개의 박스를 넣을 수 있겠는가?

Answer: 288

Solution (Python):
var_a = 36
var_b = 2
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There were 82 people on the train. A few of these got off, and 17 more got on, making the total 73 people. How many people got off the train?
Question (KO): 기차에 82명이 타고 있었습니다. 이 중에서 몇 명이 내리고, 17명이 더 타서 73명이 되었습니다. 기차에서 내린 사람은 몇 명입니까?

Answer: 26

Solution (Python):
var_a = 82
var_b = 17
var_c = var_a + var_b
var_d = 73
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): The time it took for Binwoo and Jiwan to go around the playground was 1 minute 33 seconds and 102 seconds, respectively. Who would have circled faster?
Question (KO): 빈우와 지완이가 운동장 한 바퀴를 도는 데 걸린 시간이 각각 1분 33초, 102초입니다. 누가 더 빨리 돌았을까요?

Answer: Binwoo

Solution (Python):
var_a = 'Binwoo'
var_b = 'Jiwan'
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 = 60
var_e = var_c * var_d
var_f = 33
var_g = var_e + var_f
var_h = 102
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)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): Hyung-cheol was using the calculator, but he pressed the wrong number and subtracted 46, which originally should be multiplied. The calculator gave 27 as the answer. If you calculated correctly, find out how much you would get.
Question (KO): 형철이는 계산기를 사용하다 46을 곱해야 할 것을 잘못 눌러 46을 뺐더니 계산기가 27을 답으로 알려주었다. 바르게 계산했다면 얼마가 나오는지 구하시오.

Answer: 3358

Solution (Python):
var_a = 27
var_b = 46
var_c = var_a + var_b
var_d = 46
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Students stand in a line. Yoojung is standing on the far right. Eunjeong is standing 5th from the far left. When 8 students are standing between Eunjeong and Yoojung, how many students are in line?
Question (KO): 학생들이 한 줄로 서 있습니다. 유정이는 맨 오른쪽에 서 있습니다. 은정이는 맨 왼쪽에서 5번째에 서 있습니다. 은정이와 유정이 사이에 8명이 서 있을 때, 줄을 서 있는 학생은 모두 몇 명입니까?

Answer: 14

Solution (Python):
var_a = 5
var_b = 8
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): A box of apples weighed 9 kilograms (kg). After removing half of the apples, I weighed it again and it was 5 kilograms (kg). If each apple is the same size and weight, how many kilograms (kg) does only one box except apples weigh?
Question (KO): 사과 한 상자의 무게가 9킬로그램(㎏)이었습니다. 사과의 절반만큼 덜어낸 후에 무게를 다시 재어 보니 5킬로그램(㎏)이 되었습니다. 각 사과의 크기와 무게가 모두 같다고 할 때, 사과 상자만의 무게는 몇 킬로그램(㎏)입니까?

Answer: 1

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

Question (EN): Yujeong placed balls of various colors in a row on the desk. When the red, blue, yellow, purple, and white balls are placed in order, what color is the first ball?
Question (KO): 유정은 책상 위에 갖가지 색깔의 공들을 일렬로 놓았다. 빨간색, 파란색, 노란색, 보라색, 흰색 공을 순서대로 놓았을 때 첫 번째 공은 무슨 색입니까?

Answer: red

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
var_d = 'purple'
var_e = 'white'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): Eunji's weight is 145/4 kilograms (kg), and Junsu is 47/10 kilograms (kg) lighter than Eunji. How many kilograms (kg) does Junsu 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: Comparison

Question (EN): Younghee, Jimin, and Junsu had a water drinking contest for two days. Younghee drank 1.4 liters (L), Jimin drank 1.8 liters (L), and Junsu drank 2.1 liters (L). Who is the winner?
Question (KO): 영희와 지민이 그리고 준수는 이틀동안 물 많이 마시기 대회를 했다. 영희는 1.4리터(L)를 마셨고 지민이는 1.8리터(L)를 마셨으며 준수는 2.1리터(L)를 마셨다. 누가 승자인가?

Answer: Junsu

Solution (Python):
var_a = 'Younghee'
var_b = 'Jimin'
var_c = 'Junsu'
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 = 1.4
var_e = 1.8
var_f = 2.1
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: Geometry

Question (EN): There is a rectangle whose longer side is 4 centimeters (cm) and its area is 25/2 square centimeter (cm2). What is the length of the shorter side of this rectangle in centimeters (cm)?
Question (KO): 긴 변의 길이가 4센티미터(㎝)이고, 넓이가 25/2제곱센티미터(㎠)인 직사각형이 있습니다. 이 직사각형의 짧은 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 3.13

Solution (Python):
var_a = 12.5
var_b = 4
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))