philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Draw one of the cards numbered 1 through 9 and find the sum of all the numbers that, when multiplied by 44, are less than 55 multiplied by 4.
Question (KO): 1부터 9까지의 카드 중 하나를 뽑아서 44를 곱했을 때 55에 4를 곱한 값보다 작아지는 수들을 모두 더한 값을 구하시오.

Answer: 10

Solution (Python):
var_a = 1
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 55
var_e = 4
var_f = var_d * var_e
var_g = 44
var_h = var_f / var_g
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_i = sum(list_b)
print(int(var_i))
Category: Geometry

Question (EN): What is the perimeter in centimeters (cm) of a square with a side of 47/20 centimeters (cm)?
Question (KO): 한 변이 47/20센티미터(㎝)인 정사각형의 둘레는 센티미터(㎝)몇 입니까?

Answer: 9.4

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

Question (EN): If there are 3 drinks, 2 salads, and 5 pizzas, how many ways can you order 1 drink, 1 salad, and 1 pizza?
Question (KO): 음료수가 3종류, 샐러드가 2종류, 피자가 5종류 있을 때, 음료수, 샐러드, 피자를 각각 1종류씩 주문하는 방법은 모두 몇 가지인지 구하시오.

Answer: 30

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

Question (EN): Hanbyul and Seulgi run around the park. During the same time, Hanbyul ran a distance of 1/100 of 10.2 kilometers (km), and Seulgi ran a distance of 100 meters (m). Hanbyul or Seulgi, who ran longer distances?
Question (KO): 한별이와 슬기가 공원을 돌면서 달리기를 합니다. 같은 시간 동안 한별이는 10.2킬로미터(㎞)의 1/100의 거리를 달렸고, 슬기는 100미터(m)의 거리를 달렸습니다. 한별이와 슬기 중 누가 더 많은 거리를 달렸습니까?

Answer: Hanbyul

Solution (Python):
var_a = 'Hanbyul'
var_b = 'Seulgi'
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 = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 0.01
var_g = var_e * var_f
var_h = 100
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]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Comparison

Question (EN): Minwoo is 1.3 meters (m) tall and Hyojin is 1.4 meters (m) tall. Who is taller Minwoo and Hyojin?
Question (KO): 민우의 키는 1.3 미터(m)이고 효진이의 키는 1.4 미터(m)입니다. 민우와 효진이 중 키가 더 큰 사람은 누구일까요?

Answer: Hyojin

Solution (Python):
var_a = 'Minwoo'
var_b = 'Hyojin'
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.3
var_d = 1.4
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: Possibility

Question (EN): If there are 2 ways to get from point A to point B and 3 ways to get from point B to point C, find the number of ways to go from point A to point C via point B.
Question (KO): A 지점에서 B 지점까지 가는 경우의 수는 2가지, B 지점에서 C 지점까지 가는 경우의 수가 3가지일 때, A 지점에서 B 지점을 거쳐서 C 지점으로 가는 경우의 수를 구하시오.

Answer: 6

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

Question (EN): In the swimming competition, Namjoon placed second and Yoongi placed fourth. Hoseok was faster than Yoongi, but slower than Namjoon. What is Hoseok's rank?
Question (KO): 수영 시합에서 남준이는 2등을 했고, 윤기는 4등을 했습니다. 호석이는 윤기보다 빨랐지만 남준이보다는 느렸습니다. 호석이의 등수는 몇 등입니까?

Answer: 3

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 2
var_e = var_c // var_d
print(int(var_e))
Category: Correspondence

Question (EN): A is a single digit number. How many numbers can fit inside A in division 9A5÷5<197?
Question (KO): A는 한 자리 수입니다. 나눗셈 9A5÷5<197에서 A 안에 들어갈 수 있는 숫자는 모두 몇 개입니까?

Answer: 8

Solution (Python):
var_a = '9A5÷5<197'
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] = []
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].append(int(c[i]))
list_a = list(set(ans_dict[var_b]))
var_c = len(list_a)
print(int(var_c))
Category: Geometry

Question (EN): There is a clock in the shape of a square with sides measuring 30 centimeters (cm). What is the area of this clock in square centimeters (cm2)?
Question (KO): 한 변이 30 센티미터(㎝) 인 정사각형 모양의 시계가 있습니다. 이 시계의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 900

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

Question (EN): Among 0.8 and 1/2, how many of them are less than 0.4?
Question (KO): 0.8, 1/2 중에서 0.4보다 작은 수는 몇 개입니까?

Answer: 0

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

Question (EN): There are three numbers 0.8, 1/2, and 0.9. How many numbers are less than 3?
Question (KO): 3개의 숫자 0.8, 1/2, 0.9가 있습니다. 3보다 작은 수는 몇 개입니까?

Answer: 3

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

Question (EN): There is a six-digit number 25A735 which is 260000 when rounded to the thousandth place. If you can write the numbers 0 through 9 in A, how many possible numbers are there?
Question (KO): 천의 자리에서 반올림을 하면 260000이 되는 여섯 자리 수 25A735가 있습니다. A에 0부터 9까지의 숫자를 쓸 수 있다면, 가능한 수는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '25A735'
ans_dict = dict()
var_a = str(var_a)
list_a = []
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
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]))
    if len(var_a) == len(str(int(temp))):
        new_elem = int(temp)
        list_a.append(new_elem)
var_b = 255000
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = '25A735'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Juwon has 105.8 meters (m) of wire. If you need 4 meters (m) of wire to make one mobile, find the number of mobiles Juwon can make.
Question (KO): 주원이는 105.8미터(m)의 철사가 있습니다. 모빌 한 개를 만들기 위해서는 철사 4미터(m)가 필요하다면 주원이가 만들 수 있는 모빌의 개수를 구하세요.

Answer: 26

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

Question (EN): Three 217 centimeters (cm) long tapes were attached together with the same overlapping parts. If the length of the attached tape is 627 centimeters (cm), how many centimeters (cm) is the length of one overlapping portion of the tape?
Question (KO): 길이가 217센티미터(㎝)인 테이프 3개를 겹쳐지는 부분을 같게 하여 길게 이었습니다. 이은 테이프의 길이가 627센티미터(㎝)이면, 테이프의 겹쳐지는 부분의 한 개의 길이는 몇 센티미터(㎝)입니까?

Answer: 12

Solution (Python):
var_a = 217
var_b = 3
var_c = var_a * var_b
var_d = 627
var_e = var_c - var_d
var_f = 3
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Correspondence

Question (EN): You mistakenly added 21 to a particular number when you were supposed to add 40, and the result was 52. Find out the answer when correctly calculated.
Question (KO): 40을 어떤 수에 더해야 할 것을 잘못하여 21을 어떤 수에 더한 결과는 52가 나옵니다. 바르게 계산하면 얼마인가요?

Answer: 71

Solution (Python):
var_a = 52
var_b = 21
var_c = var_a - var_b
var_d = 40
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are a total of 20 telephone poles on one side of the road. The distance between the poles is 25 meters (m), and there are no poles at the beginning and end. What is the total length of the road in meters (m)?
Question (KO): 도로 한쪽에 전봇대가 총 20개 있습니다. 전봇대 사이의 거리는 25미터(m)이며 처음과 끝에는 전봇대가 없습니다. 도로의 총 길이는 몇미터(m) 입니까?

Answer: 525

Solution (Python):
var_a = 20
var_b = 1
var_c = var_a + var_b
var_d = 25
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): The swimming club has three first graders, two second graders, and two third graders. Find the number of ways to select 3 representatives of a club.
Question (KO): 수영 동아리에는 1학년 3명, 2학년 2명, 3학년 2명이 있다. 동아리의 대표 3명을 뽑는 경우의 수를 구하시오.

Answer: 35

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

Question (EN): The school has a total of 3 grades. Each grade has 12 classes, and each class has the same number of students. Miyoung is ranked 12th from the front and 12th from the back in math scores in a class. How many students are there in this school?
Question (KO): 학교에 총 3개의 학년이 있습니다. 각 학년에는 12개의 학급이 있고, 각 학급의 학생 수는 모두 같습니다. 미영이는 어느 학급에서 수학 점수로 앞에서 12등, 뒤에서 12등입니다. 이 학교의 학생 수는 모두 몇 명입니까?

Answer: 828

Solution (Python):
var_a = 12
var_b = 12
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 12
var_g = var_e * var_f
var_h = 3
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): The base and hypotenuse of the triangular pizza are 9 centimeters (cm) and 15 centimeters (cm), respectively. How big is the pizza?
Question (KO): 삼각형 모양 피자의 밑변과 빗변은 각각 9센티미터(㎝), 15센티미터(㎝)이다. 피자의 넓이는?

Answer: 54

Solution (Python):
var_a = 15
var_b = 2
var_c = var_a ** var_b
var_d = 9
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
var_j = 9
var_k = var_i * var_j
var_l = 2
var_m = var_k / var_l
print(int(var_m))
Category: Geometry

Question (EN): I made a square by sticking the stickers regularly without any gaps. If I need 6 stickers to make one side of a square, find how many stickers are on the perimeter.
Question (KO): 스티커를 빈틈없이 규칙적으로 붙여 정사각형을 만들었다. 정사각형의 한 변을 만들 때 스티커가 6개 필요할 때, 둘레에 붙여진 스티커는 몇 개인지 구하시오.

Answer: 20

Solution (Python):
var_a = 6
var_b = 4
var_c = var_a * var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The age difference between Yoongi's aunt and Yoongi is 23 years, and Hoseok is 4 years younger than Yoongi. If his aunt is 38 years old, find the sum of the ages of Yoongi and Hoseok.
Question (KO): 이모와 윤기의 나이 차이는 23살이고, 호석이는 윤기보다 4살 어립니다. 이모의 나이가 38살일 때, 윤기와 호석이의 나이의 합은 몇 살인지 구하시오.

Answer: 26

Solution (Python):
var_a = 38
var_b = 23
var_c = var_a - var_b
var_d = 38
var_e = 23
var_f = var_d - var_e
var_g = 4
var_h = var_f - var_g
var_i = var_c + var_h
print(int(var_i))
Category: Geometry

Question (EN): A rectangle with a width of 9 centimeters (cm) and a square with a side length of 12 centimeters (cm) is equal to the sum of the lengths of the four sides. How many centimeters (cm) is the length of the rectangle?
Question (KO): 가로가 9센티미터(㎝)인 직사각형과 한 변의 길이가 12센티미터(㎝)인 정사각형의 네 변의 길이의 합이 같습니다. 직사각형의 세로는 몇 센티미터(㎝)입니까?

Answer: 15

Solution (Python):
var_a = 12
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: Arithmetic calculation

Question (EN): Find how many times 0 appears in a list of all natural numbers less than 100 that are multiples of 3 and multiples of 5.
Question (KO): 100 이하의 자연수 중 3의 배수이면서 5의 배수인 수를 나열했을 때 0은 몇 번 등장하는지 구하시오.

Answer: 3

Solution (Python):
var_a = 1
var_b = 100
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=""
for i in list_c:
    i = str(i)
    var_f = var_f + i
list_d = []
var_f = int(var_f)
while var_f//10 > 0:
    list_d.append(var_f%10)
    var_f = var_f//10
list_d.append(var_f%10)
list_d = list_d[::-1]
var_g = 0
var_h = 0
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i == var_g:
        var_h = var_h + 1
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Of the 25 cars, 18 went out and 12 came in. How many cars have been reduced?
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: Arithmetic calculation

Question (EN): After grandmother had drunk 0.4 of the total milk, the remaining milk was 0.69 liters (L). Find how many liters (L) of milk were there in the beginning.
Question (KO): 할머니가 우유를 전체의 0.4만큼 마시고 남은 우유가 0.69리터(L)였습니다. 처음에 있던 우유는 몇 리터(L)인지 구하시오.

Answer: 1.15

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

Question (EN): Suppose there is a line of 9 people in order starting with the smallest person. Hoseok is the 5th tallest person. If the line is rearranged in an order from the tallest person, what number does Hoseok take from the back of the line?
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이는 5번째로 키가 큽니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 호석이는 뒤에서부터 몇 번째에 서게 됩니까?

Answer: 5

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

Question (EN): When submarines can go down into the sea at 3.8 kilometers (km) per hour, find how deep the submarine can descend for 2 hours and 45 minutes in kilometers (km). (Given that it descends at a constant speed without any stop.)
Question (KO): 잠수함은 한 시간에 3.8킬로미터(㎞)를 바다 속으로 내려간다고 합니다. 잠수함이 2시간 45분동안 쉬지않고 내려간 높이는 몇 킬로미터(㎞)입니까?

Answer: 10.45

Solution (Python):
var_a = 3.8
var_b = 2
var_c = 45
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a * var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Correspondence

Question (EN): There are numbers with two decimal places that give 1.7 if rounded to two decimal places. Find the value of subtracting the smallest of these numbers from the largest, including the decimal point.
Question (KO): 소수 2번째 자리에서 반올림을 하면 1.7이 되는 소수 두 자리 수들이 있습니다. 이러한 수들 중 가장 큰 수에서 가장 작은 수를 뺐을 때의 값을 소수점을 포함하여 구해보시오.

Answer: 0.09

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

Question (EN): How many two-digit numbers can you make from 3, 4, 5, and 6 using two different numbers?
Question (KO): 3, 4, 5, 6 중에서 서로 다른 숫자 2개를 사용하여 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 12

Solution (Python):
var_a = 3
var_b = 4
var_c = 5
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 = 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 = len(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): There are 156 red marbles and 267 blue marbles. Of these, 115 fell off and broke. How many marbles are left?
Question (KO): 빨간 구슬이 156개, 파란 구슬이 267개가 있습니다. 이 중 115개가 떨어져 깨졌습니다. 남은 구슬은 몇 개입니까?

Answer: 308

Solution (Python):
var_a = 156
var_b = 267
var_c = var_a + var_b
var_d = 115
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): There are five people: A, B, C, D, and E. When A, B, and C are placed before D and E, find the number of cases in which 5 people can line up in order.
Question (KO): 가, 나, 다, 라, 마 5명의 사람이 있다. 가, 나, 다를 라, 마의 앞에 세울 때, 5명의 사람이 순서대로 줄을 설 수 있는 경우의 수를 구하시오.

Answer: 6

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
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 = 'A'
var_g = 'B'
var_h = 'C'
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 = len(list_b)
var_j = len(list_b)
var_k = 1
var_i = int(var_i)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_i-i)
print(int(var_k))
Category: Possibility

Question (EN): How many two-digit numbers can be formed by taking two odd numbers greater than 1 and less than 9 and using them once?
Question (KO): 1보다 크고 9보다 작은 홀수 중 두 개를 뽑아 한 번씩 사용하여 만들 수 있는 두 자리 수는 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 1
var_c = var_a + var_b
var_d = 9
var_e = 1
var_f = var_d - var_e
list_a = []
if var_c%2==0:
    for i in range(var_c+1, var_f+1, 2):
        list_a.append(i)
else:
    for i in range(var_c, var_f+1, 2):
        list_a.append(i)
var_g = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = len(list_b)
print(int(var_h))
Category: Geometry

Question (EN): A rectangle has a perimeter of 28 centimeters (cm) and a width of 6 centimeters (cm). Find the area of this rectangle.
Question (KO): 어떤 직사각형의 둘레는 28 센티미터(㎝) 이고, 가로는 6센티미터(㎝) 입니 다. 이 직사각형의 넓이를 구하시오

Answer: 48

Solution (Python):
var_a = 28
var_b = 2
var_c = var_a / var_b
var_d = 6
var_e = var_c - var_d
var_f = 6
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): A bottle needs to be poured 10 times to fill it with a (a) cup, or 5 times to fill it with a (b) cup. How many times the size of the (b) cup is than the (a) cup?
Question (KO): 어떤 병에 물을 가 컵으로 가득 채우려면 10번, 나 컵 으로 가득 채우려면 5번 부어야 합니다. 나 컵의 들이는 가 컵의 들이의 몇 배입니까?

Answer: 2

Solution (Python):
var_a = 10
var_b = 5
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): When 229 is divided by a particular number, the remainder is said to be 5 less than that particular number. Also, when 197 is divided by that particular number, the remainder is 2, and when 160 is divided by that particular number, the remainder is 4. Find the largest of that particular number.
Question (KO): 어떤 수로 229를 나누면 나머지가 어떤 수보다 5가 작은 값이라고 한다. 또한 어떤 수로 197을 나누면 나머지가 2이고, 160을 나누면 나머지가 4라고 한다. 어떤 수 중 가장 큰 수를 구하시오.

Answer: 39

Solution (Python):
var_a = 197
var_b = 2
var_c = var_a - var_b
var_d = 160
var_e = 4
var_f = var_d - var_e
var_g = math.gcd(int(var_f), int(var_c))
var_h = 229
var_i = 5
var_j = var_h + var_i
var_k = math.gcd(int(var_j), int(var_g))
print(int(var_k))
Category: Correspondence

Question (EN): If you divide a piece of wire into 8 equal parts and then divide it into 8 equal parts, find how many centimeters (cm) it is. However, the length of the wire is 69.76 centimeters (cm).
Question (KO): 어떤 철사를 8등분하고 난 하나의 조각에 대해서 다시 8등분을 하면 몇 센티미터(㎝)인지 구하시오. 단, 어떤 철사의 길이는 69.76센티미터(㎝)이다.

Answer: 1.09

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

Question (EN): Eunkyu and Minyoung are 3/8 meters (m) and 1.4 meters (m) respectively. Please indicate whose height is taller.
Question (KO): 은규와 민영이의 키는 각각 3/8 미터(m) , 1.4미터(m) 입니다. 누구의 키가 더 큰지 나타내시오

Answer: Minyoung

Solution (Python):
var_a = 'Eunkyu'
var_b = 'Minyoung'
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 = 0.375
var_d = 1.4
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: Arithmetic calculation

Question (EN): Hyuna said that she ate chicken every day from the 3rd to the 8th. If the chicken costs 20,000 won per chicken, how much money did Hyuna spend to eat the chicken?
Question (KO): 현아는 3일부터 8일까지 매일 치킨을 시켜먹었다고 한다. 치킨이 한 마리에 20000원 이라고 할 때, 현아가 치킨을 먹는데 사용한 금액은 얼마인지 구하시오.

Answer: 120000

Solution (Python):
var_a = 20000
var_b = 8
var_c = 3
var_d = var_b - var_c
var_e = 1
var_f = var_d + var_e
var_g = var_a * var_f
print(int(var_g))