philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): I am trying to make a two-digit number by picking two different numbers from 3, 5, 7, and 8. Find the sum of the largest and smallest possible numbers.
Question (KO): 서로 다른 수 2개를 3, 5, 7, 8 중에서 뽑아 두 자리수를 만들려고 한다. 만들 수 있는 가장 큰 수와 가장 작은 수의 합은 몇인지 구하시오.

Answer: 122

Solution (Python):
var_a = 3
var_b = 5
var_c = 7
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: Comparison

Question (EN): Which of the five numbers 5, 8, 4, 3, 2 is the second largest?
Question (KO): 5개의 숫자 5, 8, 4, 3, 2 중 2번째로 큰 수는 무엇인가요?

Answer: 5

Solution (Python):
var_a = 5
var_b = 8
var_c = 4
var_d = 3
var_e = 2
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 = 2
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): How many meters (m) would it be if you fold a 12 meters (m) long string in half and then fold it in half again?
Question (KO): 길이가 12미터(m)인 끈을 반으로 접고 한 번 더 반으로 접으면 길이는 몇 미터(m)가 됩니까?

Answer: 3

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): You are trying to make two digit natural numbers with 2, 3, and 7. Find the second smallest possible number.
Question (KO): 2, 3, 7로 두 자리 자연수를 만들려고 한다. 만들 수 있는 수 중 두 번째로 작은 수를 구하시오.

Answer: 23

Solution (Python):
var_a = 2
var_b = 3
var_c = 7
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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 = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
print(int(var_f))
Category: Correspondence

Question (EN): Subtracting a number by 69 resulted in 37. Find the value of the result by adding 55 to 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: Comparison

Question (EN): Minyoung has 4 marbles and Yujeong has 2. Eunji has 1 more marble than Minyoung. Who has the most marbles?
Question (KO): 구슬을 민영이는 4개, 유정이는 2개 가지고 있습니다. 은지는 민영이보다 구슬을 1개 더 많이 가지고 있습니다. 구슬을 가장 많이 가지고 있는 사람은 누구입니까?

Answer: Eunji

Solution (Python):
var_a = 'Minyoung'
var_b = 'Yujeong'
var_c = 'Eunji'
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 = 2
var_f = 4
var_g = 1
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)
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: Arithmetic calculation

Question (EN): There are three numbers 85.9, 5.31, and 43/2. What is the sum of them all?
Question (KO): 3개의 숫자 85.9, 5.31, 43/2이 있습니다. 이들을 모두 더하면 얼마인가요?

Answer: 112.71

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

Question (EN): Juri is taller than Jungwoo. Myunghyun is taller than Seokjin. Juri is shorter than Jungkook. Myunghyun is shorter than Jungwoo. Who is the tallest?
Question (KO): 주리는 정우보다 큽니다. 명현이는 석진이보다 큽니다. 주리는 정국이보다 작습니다. 명현이는 정우보다 작습니다. 키가 가장 큰 사람은 누구입니까?

Answer: Jungkook

Solution (Python):
var_a = 'Juri'
var_b = 'Jungwoo'
var_c = 'Myunghyun'
var_d = 'Seokjin'
var_e = 'Jungkook'
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 = 'Juri'
var_g = 'Jungwoo'
var_h = '>'
var_i = 'Myunghyun'
var_j = 'Seokjin'
var_k = '>'
var_l = 'Juri'
var_m = 'Jungkook'
var_n = '<'
var_o = 'Myunghyun'
var_p = 'Jungwoo'
var_q = '<'
list_b= []
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)
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_r = 1
var_s = list_c[var_r-1]
print(var_s)
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the quotient of the smallest number divided by the second smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 작은 수와 2번째로 작은 수로 나눈 몫은 얼마입니까?

Answer: 0

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g // var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): 3 out of the 4 natural numbers 4, 6, 8, and 9 were chosen to form a three-digit natural number. How many of these are less than 500?
Question (KO): 4개의 자연수 4, 6, 8, 9 중 3개를 골라 세 자리 자연수를 만들었다. 이 중 500보다 작은 것은 몇 개인가?

Answer: 6

Solution (Python):
var_a = 4
var_b = 6
var_c = 8
var_d = 9
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 500
list_c = []
for i in list_b:
    if i < var_f:
        list_c.append(i)
var_g = len(list_c)
print(int(var_g))
Category: Comparison

Question (EN): Yoongi and Jisoo rode bicycles. Starting from the same place, Jisoo ran 19,000 meters (m) in an hour and Yoongi ran 22 kilometers (km) in an hour. Who moved more in an hour?
Question (KO): 윤기와 지수는 자전거를 탔습니다. 같은 곳에서 출발하여 지수는 1시간동안 19000미터(m)를 달렸고 윤기는 1시간동안 22킬로미터(㎞)를 달렸습니다. 이때 더 많이 이동한 사람은 누구입니까?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jisoo'
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 = 22
var_d = 1000
var_e = var_c * var_d
var_f = 19000
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: Comparison

Question (EN): Classes 1 and 2 shared the 1000 marbles they received as prizes. At this time, class 2 took 50 less than class 1, and male students in class 2 took a total of 35 more than female students in class 2. If there are 17 boys in class 2 and the boys share equally, how many marbles will each boy in class 2 receive?
Question (KO): 1반과 2반이 우승 상품으로 받은 구슬 1000개를 나누어 가졌습니다. 이 때, 2반이 1반보다 50개를 덜 가져갔고, 2반 남학생들이 2반 여학생보다 총 35개를 더 가져갔습니다. 2반 남학생이 17명이고 남학생들끼리는 똑같이 나누어 가질 때, 2반 남학생 한 명이 받는 구슬의 개수는 얼마입니까?

Answer: 15

Solution (Python):
var_a = 1000
var_b = 50
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 35
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
var_j = 35
var_k = var_i + var_j
var_l = 17
var_m = var_k / var_l
print(int(var_m))
Category: Possibility

Question (EN): How many different ways are there for Jungkook, Jimin, Seokjin, and Yuna to stand in a line and take a picture?
Question (KO): 정국, 지민, 석진, 유나가 한 줄로 서서 사진을 찍을 때 서로 다르게 서는 방법은 모두 몇 가지입니까?

Answer: 24

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Seokjin'
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 = len(list_a)
var_f = 4
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)
print(int(var_g))
Category: Geometry

Question (EN): The perimeter of a rectangle is 46 centimeters (cm), and its width is 7 centimeters (cm) longer than its length. What is the width of this rectangle?
Question (KO): 어떤 직사각형의 둘레의 길이는 46센티미터(㎝)이고, 가로의 길이가 세로의 길이보다 7센티미터(㎝)더 길다고 한다. 이 직사각형의 가로의 길이는?

Answer: 15

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

Question (EN): You would like to install flags at intervals of 30 meters (m) on a road that is 1 kilometer (km) and 500 meters (m) long. If the price of one flag is 5,000 won, how much does it cost to buy the required flag?
Question (KO): 1킬로미터(㎞) 500미터(m)인 도로에 30미터(m) 간격으로 깃발을 설치하려고 합니다. 깃발 하나의 가격이 5000원일 때, 필요한 깃발을 사는데 드는 비용은 얼마인가요?

Answer: 250000

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 500
var_e = var_c + var_d
var_f = 30
var_g = var_e / var_f
var_h = 5000
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): When you weighed a barrel full of fish of the same weight, it was 54 kilograms (kg). Then the barrel weighed 29 kilograms (kg) after being removed of the half of fish. What is the weight of fish that was in the barrel at first in kilograms (kg)?
Question (KO): 무게가 같은 생선이 가득 담긴 통의 무게를 재었더니 54킬로그램(㎏)이었습니다. 절반의 생선을 덜어낸 후 통의 무게를 재어보니 29킬로그램(㎏)이었습니다. 처음 있던 물고기만의 무게는 몇 킬로그램(㎏)입니까?

Answer: 50

Solution (Python):
var_a = 54
var_b = 29
var_c = var_a - var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): Out of 7 volleyball players, we are trying to select 6 players to start. Find the number of all possible cases.
Question (KO): 배구 선수 7명 중에서 선발로 출전할 선수 6명을 뽑으려고 한다. 가능한 모든 경우의 수를 구하시오.

Answer: 7

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

Question (EN): Yuna is 8 years old this year. Her father is 20 years older than Yuna, and her grandfather is 25 years older than her father. How old is her grandfather this year?
Question (KO): 유나는 올해 8살입니다. 아버지는 유나보다 20살 더 많고, 할아버지는 아버지보다 25살 더 많습니다. 올해 할아버지의 나이는 몇 살입니까?

Answer: 53

Solution (Python):
var_a = 8
var_b = 20
var_c = var_a + var_b
var_d = 25
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): The sum of the lengths of the four sides of a rectangle with a width of 20 cm (cm) is equal to the perimeter of a regular pentagon with a side length of 10 cm (cm). Find out what the length of this rectangle is.
Question (KO): 가로의 길이가 20센티미터(㎝)인 직사각형의 네 변의 길이의 합이 한 변의 길이가 10센티미터(㎝)인 정오각형의 둘레의 길이와 똑같았습니다. 이 직사각형의 세로 길이는 얼마인지 알아보시오.

Answer: 5

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

Question (EN): The sum of the price of a pencil and a notebook is 950 won. If a notebook costs 150 won more than a pencil, how much is the pencil?
Question (KO): 연필 한 자루와 공책 한 권의 값의 합은 950원입니다. 공책이 연필보다 150원 비싸다면 연필은 얼마입니까?

Answer: 400

Solution (Python):
var_a = 950
var_b = 150
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): You mistakenly subtracted 7/3 from a number instead of adding it, so you got 3/2 as a result. How much is it if you calculate it correctly?
Question (KO): 어떤 수에 7/3을 더해야 할 것을 잘못하여 빼었더니 3/2이 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 6.17

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

Question (EN): When 0, 2, and 4 are used once to make three-digit numbers, how many three-digit numbers can be formed?
Question (KO): 0, 2, 4를 이용해, 만들 수 있는 수 중 각 자리수가 모두 다른 세 자리 자연수는 몇 가지입니까?

Answer: 4

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
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 = [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 = len(list_b)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If 5 out of 9 volleyballs are lent to other schools, what is the number of volleyballs left?
Question (KO): 배구공 9개 중 5개를 다른 학교에 빌려주었을 때, 남아 있는 배구공의 수는?

Answer: 4

Solution (Python):
var_a = 9
var_b = 5
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): Of the five numbers 1.4, 9/10, 1.2, 0.5, and 13/10, how many are greater than or equal to 1.1?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10 5개 숫자 중에서 1.1보다 크거나 같은 숫자는 모두 몇 개입니까?

Answer: 3

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)
var_g = len(list_b)
print(int(var_g))
Category: Comparison

Question (EN): Find the number of numbers less than or equal to 0.4 among 0.8, 1/2, and 0.3.
Question (KO): 0.8, 1/2, 0.3 중 0.4보다 작거나 같은 수의 개수를 구하시오.

Answer: 1

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.3
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 = 0.4
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: Arithmetic calculation

Question (EN): Gyungcho walked to school on 11 days out of 100 days and took a bus on other days. How many times is the day he went to school on foot compared to the entire day he went to school?
Question (KO): 경초는 등교하는 100일 중 11일을 걸어서 학교에 가고 다른 날에는 날은 버스를 타고 학교에 갔습니다. 경초가 걸어서 학교에 간 날은 전체 등교일의 몇 배입니까?

Answer: 0.11

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

Question (EN): Yoongi has 4 apples and Jungkook has 6 divided by 3 apples. Who has fewer apples?
Question (KO): 윤기는 4개, 정국이는 6 나누기 3만큼 사과를 가졌습니다. 누가 더 사과가 적습니까?

Answer: Jungkook

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 4
var_d = 6
var_e = 3
var_f = var_d // var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Correspondence

Question (EN): When a number is multiplied by 5 and then divided by 8, the quotient is 156 and the remainder is 2. Find a number.
Question (KO): 어떤 수에 5를 곱한 뒤 8로 나누었더니 몫이 156이고 나머지가 2였습니다. 어떤 수를 구하시오.

Answer: 250

Solution (Python):
var_a = 156
var_b = 8
var_c = var_a * var_b
var_d = 2
var_e = var_c + var_d
var_f = 5
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): How many centimeters (cm) is one edge of a cube-shaped cabinet the volume of which is 204,000 cubic centimeters (cm3) smaller than the volume of a rectangular cuboid-shaped cabinet with a base width of 70 centimeters (cm), a base length of 40 centimeters (cm), and a height of 150 centimeters (cm)?
Question (KO): 밑면의 가로 길이가 70센티미터(㎝)이고, 세로 길이가 40센티미터(㎝)이며, 높이가 150센티미터(㎝)인 직육면체 모양의 장식장보다 부피가 204000세제곱센티미터(㎤) 더 적은 장식장의 한 모서리의 길이는 몇 센티미터(㎝)입니까?

Answer: 60

Solution (Python):
var_a = 70
var_b = 40
var_c = var_a * var_b
var_d = 150
var_e = var_c * var_d
var_f = 204000
var_g = var_e - var_f
var_h = 0.3333333333333333
var_i = var_g ** var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2)))))
Category: Geometry

Question (EN): The width of the rectangle is 3 centimeters (cm) longer than the length of the rectangle. If the perimeter of the rectangle is 54 centimeters (cm), what is the length of its width?
Question (KO): 직사각형의 가로의 길이가 세로의 길이보다 3 센티미터(㎝) 더 길다. 직사각형의 둘레의 길이가 54 센티미터(㎝)일 때, 가로의 길이는 무엇인가?

Answer: 15

Solution (Python):
var_a = 54
var_b = 2
var_c = var_a / var_b
var_d = 3
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 3
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): Jungkook, Taehyung, and Minyoung had a running race. Jungkook arrived at the finish line first, followed by Minyoung and Taehyung. What rank does Taehyung in?
Question (KO): 정국, 태형, 민영 3명의 학생이 달리기 시합을 하였습니다. 정국이가 가장 먼저 결승선에 도착하고 그 다음 민영, 태형이가 차례로 도착하였습니다. 태형이는 몇 등입니까?

Answer: 3

Solution (Python):
var_a = 'Jungkook'
var_b = 'Minyoung'
var_c = 'Taehyung'
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 = 'Taehyung'
var_e = list_a.index(var_d)+1
print(int(var_e))
Category: Geometry

Question (EN): There is a chair in the shape of a parallelogram. One side is 18 centimeters (cm) and the other side is 12 centimeters (cm). What is the circumference of this chair?
Question (KO): 평행사변형 모양의 의자가 있다. 한 변은 18센티미터(㎝), 다른 한 변은 12센티미터(㎝)이다. 이 의자의 둘레는?

Answer: 60

Solution (Python):
var_a = 18
var_b = 12
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Rounding down 6A35 to the nearest hundreds gives 6100. Find A.
Question (KO): 6A35를 버림하여 백의 자리까지 나타내면 6100이 됩니다. A를 구하시오.

Answer: 1

Solution (Python):
var_a = '6A35'
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 = 6100
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 6100
var_d = 100
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = '6A35'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Comparison

Question (EN): Minyoung has 13 breads and Eunji has 21. Who has more bread?
Question (KO): 빵을 민영이는 13개, 은지는 21개 가지고 있습니다. 빵을 더 많이 가지고 있는 사람은 누구입니까?

Answer: Eunji

Solution (Python):
var_a = 'Minyoung'
var_b = 'Eunji'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 13
var_d = 21
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)