philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): There is a refrigerator that has bowl A, B, and C full of food. Bowl B has more food than bowl A, and bowl C has more food than bowl B. When you try to empty the bowl with the least food in it, which bowl is emptied first?
Question (KO): 냉장고에 음식이 담긴 A, B, C 그릇이 들어있습니다. B 그릇에는 A 그릇보다 많은 음식이 담겨있고 C 그릇에는 B 그릇보다 많은 음식이 담겨있습니다. 가장 적은 음식이 담겨있는 그릇을 먼저 비우려고 할 때, 먼저 비워지는 그릇은 무엇일까요?

Answer: A

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

Question (EN): There are 6 giraffes, 8 pigs and 4 dogs. How many animals are there in total?
Question (KO): 기린 6마리, 돼지 8마리, 개 4마리가 있습니다. 동물은 모두 몇 마리입니까?

Answer: 18

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

Question (EN): A rectangular prism with a volume of 252 cubic centimeters (cm3) was made by stacking 36 stacking blocks with a volume of 1 cubic centimeter (cm3). How many layers are there in this cuboid's stacking blocks?
Question (KO): 부피가 1세제곱센티미터(㎤)인 쌓기나무를 한 층에 36개씩 쌓아 부피가 252세제곱센티미터(㎤)인 직육면체를 만들었습니다. 이 직육면체의 쌓기나무는 몇 층으로 쌓여 있습니까?

Answer: 7

Solution (Python):
var_a = 252
var_b = 36
var_c = 1
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e))
Category: Possibility

Question (EN): I am trying to create a two-digit number by using two numbers 1 and 9 allowing for repetition. How many two-digit numbers can you make?
Question (KO): 2개의 숫자 1, 9를 중복하여 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 두 자리 수는 모두 몇 개 입니까?

Answer: 4

Solution (Python):
var_a = 1
var_b = 9
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.product(list_b, repeat=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): If there are 6 students A, B, C, D, E, and F, find the number of ways to elect 1 president, 1 vice president, and 1 manager.
Question (KO): A, B, C, D, E, F 6명의 학생이 있을 때, 회장 1명, 부회장 1명, 총무 1명을 뽑는 경우의 수를 구하시오.

Answer: 120

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

Question (EN): Find the number of vertices of the regular hexagonal pyramid.
Question (KO): 정육각뿔의 꼭짓점의 개수를 구하시오.

Answer: 7

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You want to buy cucumbers for 7,500 won. Cucumbers are currently sold at 300 won per 100 grams (g). Find how many kilograms (kg) of cucumbers you can buy with your current money, including the digits after the decimal point.
Question (KO): 7500원을 가지고 오이를 사려고 합니다. 오이는 현재 100그램(그램(g))에 300원으로 판매를 하고 있습니다. 현재 가지고 있는 돈으로 오이를 몇 킬로그램(㎏)살 수 있는지 소수점을 포함하여 답을 구하시오

Answer: 2.5

Solution (Python):
var_a = 7500
var_b = 100
var_c = 300
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 1000
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Geometry

Question (EN): The area of a trapezoid is 96.9 square centimeters (cm2). If the top side is 3.6 centimeters (cm) longer than the bottom side and the height is 5.2 centimeters (cm), what is the length of the bottom side in centimeters (cm)?
Question (KO): 사다리꼴의 넓이가 96.9제곱센티미터(㎠)입니다. 윗변이 아랫변보다 3.6센티미터(㎝) 더 길고, 높이가 5.2센티미터(㎝)이라면, 아랫변의 길이는 센티미터(㎝)일까요?

Answer: 16.85

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

Question (EN): A circle, triangle, and square are drawn without overlapping one by one. If each shape is only colored with one color, how many different ways can you color these three shapes with different colors using five colored pencils?
Question (KO): 동그라미, 세모, 네모 모양이 1개씩 겹치지 않게 그려져 있습니다. 한 모양에는 한 가지 색으로만 색칠할 때, 다섯 가지 색의 색연필을 사용하여 이 3개의 모양을 서로 다른 색으로 칠할 수 있는 방법은 모두 몇 가지입니까?

Answer: 60

Solution (Python):
var_a = 5
var_b = 'circle'
var_c = 'triangle'
var_d = 'square'
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)
list_a.reverse()
var_e = len(list_a)
var_f = 1
var_a = int(var_a)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_a-i)
print(int(var_f))
Category: Possibility

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

Answer: 6

Solution (Python):
var_a = 1
var_b = 2
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 = 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: Comparison

Question (EN): How many of the five numbers 1.4, 9/10, 1.2, 0.5, and 13/10 are less than or equal to 1.1?
Question (KO): 5가지 숫자 1.4, 9/10, 1.2, 0.5, 13/10 중에서 1.1보다 작거나 같은 수는 몇 개 인가요?

Answer: 2

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: Arithmetic calculation

Question (EN): You want to install 18 street lights equally on both sides of a straight road with a length of 16.4 meters (m). If street lights are installed at the beginning and end of the road, how many meters (m) should the distance between the street lights be?
Question (KO): 길이가 16.4미터(m) 인 직선 도로의 양쪽에 가로등 18개를 같은 간격으로 설치하려고 합니다. 도로의 시작과 끝에도 가로등을 설치한다면 가로등 사이의 간격을 몇 미터(m) 로 해야 하나요?

Answer: 2.05

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

Question (EN): A circle with a diameter of 100 centimeters (cm) and a circumference of 314 centimeters (cm) is drawn on the playing field. How many times bigger is the circumference compared to its diameter?
Question (KO): 운동장에 지름이 100 센티미터(㎝) 이고 둘레가 314 센티미터(㎝)인 원을 그렸습니다. 이 원의 둘레는 지름의 몇 배 입니까?

Answer: 3.14

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

Question (EN): When A is divided by 6, the quotient is 3 and the remainder is B. A and B are both natural numbers. What is the largest number of possible Bs?
Question (KO): A을 6로 나눴을 때 몫이 3, 나머지가 B이 였습니다. A와 B는 모두 자연수입니다. 이 때, 가능한 B 중 가장 큰 수는 무엇인가요?

Answer: 5

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): Minah has a square blackboard with one side of 8 centimeters (cm), and Songa has a rectangular blackboard with one side of 10 centimeters (cm) and the other of 5 centimeters (cm). Find the difference between the areas of the two boards.
Question (KO): 민아는 한 변의 길이가 8센티미터(㎝)인 정사각형 모양의 칠판을 가지고 있고 송아는 한 변의 길이가 10센티미터(㎝), 다른 한 변의 길이가 5센티미터(㎝)인 직사각형 모양의 칠판을 가지고 있습니다. 두 칠판의 넓이의 차를 구하시오.

Answer: 14

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

Question (EN): One loaf of bread is made with 6.64 grams (g) of flour. How many loaves can you make if you bought 212.48 grams (g) of 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): When A3+61B=695 is valid, where A3 and 61B are each two-digit and three-digit numbers. Find A.
Question (KO): A3+61B=695일 때, A를 구하시오.

Answer: 8

Solution (Python):
var_a = 'A3+61B=695'
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): 300 is a multiple of 25. There are some numbers that are natural numbers greater than 300. When some numbers are divided by 25, the remainder is 24. Find the smallest of some numbers.
Question (KO): 300은 25의 배수이다. 300보다 큰 자연수인 어떤 수가 있다. 어떤 수는 25로 나누었을 때 나머지가 24이다. 어떤 수 중 가장 작은 수를 구하세요.

Answer: 324

Solution (Python):
var_a = 300
var_b = 24
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): If a pencil at a store costs 20 won more than 5,000 won, find the price of the pencil in units of 10,000 won.
Question (KO): 어느 가게에서 파는 연필이 5천원보다 2십원 비쌀 때, 연필의 가격을 만원 단위로 구하시오.

Answer: 0.5

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

Question (EN): Three of the numbers 3, 5, and 9 were drawn and used only once to create the largest three-digit number. Find the number that is 27 less than the three digit number you created.
Question (KO): 3, 5, 9의 숫자 중에서 3장을 뽑아 한 번씩만 사용하여 가장 큰 세 자리 수를 만들었습니다. 만든 세 자리 수보다 27 작은 수를 구하시오.

Answer: 926

Solution (Python):
var_a = 3
var_b = 5
var_c = 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 = [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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 27
var_h = var_f - var_g
print(int(var_h))
Category: Possibility

Question (EN): There are natural numbers from 1 to 9. Two of them were drawn at the same time. When two numbers are added, how many cases are there that it is less than 9?
Question (KO): 1이상 9이하의 자연수가 있다. 이들중 두 수를 동시에 뽑았다. 두 수를 더했을 시 9보다 작은 경우는 몇 가지 인가?

Answer: 12

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 = 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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 9
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = len(list_d)
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the difference between the largest number and the next largest number after that?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 가장 큰 수와 그 다음으로 큰 수의 차는 얼마입니까?

Answer: 1

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

Question (EN): Using yarn of 35 centimeters (cm) long, you created the largest square shape with a side length of a natural number. How many centimeters (cm) is the length of left yarn after making the square?
Question (KO): 길이가 35센티미터(㎝) 인 실을 사용하여 한 변의 길이 자연수인 가장 큰 정사각형 모양 을 만들었습니다. 정사각형을 만들고 남은 실의 길이는 몇 센티미터(㎝) 입니까?

Answer: 3

Solution (Python):
var_a = 35
var_b = 4
var_c = var_a % var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The bottle was full of orange juice. Homin drank 2/5 of the juice from the bottle yesterday and weighed the bottle and it was 144 grams (g). If Homin drank 2/3 of the remaining juice today and weighed the bottle again, it was 96 grams (g), how many grams (g) would it be if he only weighed the bottle after emptying all the orange juice?
Question (KO): 병에 오렌지 주스가 가득 들어있었습니다. 호민이는 어제 병에 든 주스를 2/5만큼 마시고 병의 무게를 재어 봤더니 144그램(g)이었습니다. 오늘 호민이가 남은 주스의 2/3을 마시고 다시 병의 무게를 재어 보니 96그램(g)이었다면, 오렌지 주스를 모두 비운 후의 병의 무게만 쟀을 때는 몇 그램(g)일까요?

Answer: 72

Solution (Python):
var_a = 144
var_b = 144
var_c = 96
var_d = var_b - var_c
var_e = 1
var_f = 0.4
var_g = var_e - var_f
var_h = var_d / var_g
var_i = 0.6666666666666666
var_j = var_h / var_i
var_k = 1
var_l = 0.4
var_m = var_k - var_l
var_n = var_j * var_m
var_o = var_a - var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): Hanyoung is 4 kg (kg) lighter than Joohyung. Find the weight of Hanyoung when the sum of Hanyoung's weight and Joohyung's weight is 88 kg (kg).
Question (KO): 한영이는 주형이보다 4킬로그램(㎏)이 더 가볍습니다. 한영이의 몸무게와 주형이의 몸무게를 더하면 88킬로그램(㎏)라고 할 때, 한영이의 몸무게를 구하세요.

Answer: 42

Solution (Python):
var_a = 88
var_b = 4
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

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

Answer: 0

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
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=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = var_e // var_g
print(int(var_h))
Category: Correspondence

Question (EN): Yoongi wanted to subtract a three-digit number from a two-digit number. Yoongi saw the number in the wrong way the ones digit of two-digit units as 6, which is 9, and the three-digit number as 353 by changing the hundredth and ones digits. When Yoongi got the difference of 297, find the two-digit number.
Question (KO): 윤기는 세 자리 수와 두 자리 수의 뺄셈을 하려 합니다. 윤기는 두 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았고, 세 자리 수의 백의 자리 숫자와 일의 자리 숫자를 바꾸어 353이라고 잘못 보았습니다. 윤기가 구한 차는 297 일 때, 두 자리 수를 구하시오.

Answer: 59

Solution (Python):
var_a = 353
var_b = 297
var_c = var_a - var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Comparison

Question (EN): Dongguk drinks water 5 times a day and drinks 0.2 liters (L) each time. Yoonji drinks water 6 times a day and drinks 0.3 liters (L) each time. Heejin drinks 500 milliliters (ml) of water four times a day. Who drinks the most water per day?
Question (KO): 동국이는 하루에 5번 물을 마시고 1회에 0.2리터(L)를 마신다. 윤지는 하루에 6번 물을 마시고 1회에 0.3리터(L)를 마신다. 희진은 물을 하루 4번, 1회 500밀리리터(㎖)씩 마신다. 하루에 물을 가장 많이 마시는 사람은?

Answer: Heejin

Solution (Python):
var_a = 'Dongguk'
var_b = 'Yoonji'
var_c = 'Heejin'
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 = 5
var_e = 0.2
var_f = 1000
var_g = var_e * var_f
var_h = var_d * var_g
var_i = 6
var_j = 0.3
var_k = 1000
var_l = var_j * var_k
var_m = var_i * var_l
var_n = 4
var_o = 500
var_p = var_n * var_o
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
list_b.reverse()
var_q = 1
list_c=list_b.copy()
list_c.sort()
var_r = list_c[-var_q]
var_s = list_b.index(var_r)+1
var_t = list_a[var_s-1]
print(var_t)
Category: Possibility

Question (EN): In the box, there are 2 red and 3 blue drawing paper respectively. How many red drawing papers will Hoseok have if he has 2 boxes?
Question (KO): 상자 안에 빨간 도화지와 파란 도화지가 각각 2개, 3개 있습니다. 호석이가 2개의 상자를 가지고 있을 때 빨간 도화지의 개수는 몇 개입니까?

Answer: 4

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

Question (EN): You ordered a pizza, but Shinyoung ate 1/3, Seokgi ate 1/4, and Woong ate 1/5. Who ate the most pizza?
Question (KO): 피자 한판을 주문했는데 신영이가 1/3, 석기가 1/4, 웅이가 1/5을 먹었다. 피자를 가장 많이 먹은 사람은?

Answer: Shinyoung

Solution (Python):
var_a = 'Shinyoung'
var_b = 'Seokgi'
var_c = 'Woong'
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
var_e = 3
var_f = var_d / var_e
var_g = 1
var_h = 4
var_i = var_g / var_h
var_j = 1
var_k = 5
var_l = var_j / var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Possibility

Question (EN): If a nine-digit number formed by using the nine digits 1 through 9 once is a multiple of 55, what is the smallest nine-digit number?
Question (KO): 1부터 9까지 9개의 숫자를 한 번씩 사용하여 만든 아홉 자리 수가 55의 배수라면, 가장 작은 아홉자리 수는 무엇일까요?

Answer: 126374985

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 = 9
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 = 55
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: Geometry

Question (EN): A rectangular prism has a base area of 50 square centimeters (cm2) and a height of 100 centimeters (cm). When the upper part of this rectangular prism is cut to make a small rectangular prism, find how many centimeters (cm) the height of the small rectangular prism must be cut so that the volume is 2000 cubic centimeters (cm3).
Question (KO): 밑면의 넓이가 50제곱센티미터(㎠)이고, 높이가 100센티미터(㎝)인 직육면체가 있습니다. 이 직육면체의 윗부분을 잘라 작은 직육면체를 만들었을 때 부피가 2000세제곱센티미터(㎤)가 되게 하려면 작은 직육면체의 높이는 몇 센티미터(㎝)가 되도록 잘라야 하는지 구하시오.

Answer: 40

Solution (Python):
var_a = 2000
var_b = 50
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Shinhye and Jongkook solved 18 English problems each. Shinhye got 100 points by getting all the questions right, Jongkook got 8 questions of 6 points and 6 questions of 5 points correctly, and the rest of the questions were wrong, so she didn't get any points. How many points did Jongkook get?
Question (KO): 신혜와 종국이는 영어 문제를 18문제씩 풀었습니다. 신혜는 모든 문제를 맞혀서 100점이고, 종국이는 6점짜리 8문제와 5점짜리 6문제를 맞히고, 나머지 문제는 틀려서 점수를 얻지 못했습니다. 종국이가 얻은 점수는 몇 점입니까?

Answer: 78

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a * var_b
var_d = 5
var_e = 6
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): It took 1 hour and 15 minutes to drive 100 kilometers (km) by car. What is the average distance traveled in 1 hour in kilometers (km)?
Question (KO): 자동차를 타고 100킬로미터(㎞)를 가는 데 1시간 15분이 걸렸습니다. 1시간 동안 간 평균 거리는 몇 킬로미터(㎞)입니까?

Answer: 80

Solution (Python):
var_a = 100
var_b = 1
var_c = 15
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a / var_f
print(int(var_g))