philschmid/DMath huggingface dataset:
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) per drink. Heejin drinks water 4 times a day and drinks 500 milliliters (ml) per drink. Who drinks the most water per day?
Question (KO): 동국이는 하루에 물을 5번 마시고 한 번 마실 때 0.2리터(L)씩 마십니다. 윤지는 하루에 물을 6번 마시고 한 번 마실 때 0.3리터(L)씩 마십니다. 희진이는 하루에 물을 4번 마시고 한 번 마실 때 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: Geometry

Question (EN): There is a rectangular frame with a width of 81/4 centimeters (cm) and a depth of 148/9 centimeters (cm). Find the area of this frame.
Question (KO): 가로의 길이가 81/4센티미터(㎝)이고, 세로의 길이가 148/9센티미터(㎝)인 직사각형 모양의 액자가 있습니다. 이 액자의 넓이를 구하시오.

Answer: 333

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

Question (EN): You want to create a four-digit number using all 4, 5, 8, and 9. When you made the third smallest number, two numbers in the middle were swapped, resulting in 4958. Find the sum of the number created and the number changed.
Question (KO): 4, 5, 8, 9를 모두 사용한 네 자리 숫자를 만들고자 합니다. 세 번째로 작은 수를 만들었는데, 중간에 두 숫자의 위치가 바뀌어 4958이 되었습니다. 바뀐 두 숫자의 합은 얼마입니까?

Answer: 9817

Solution (Python):
var_a = 4
var_b = 5
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 = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = 4958
var_i = var_g + var_h
print(int(var_i))
Category: Correspondence

Question (EN): Ji-woo used half of his money and 2,000 won to buy snacks at the mart. Then, he used half of the remaining money to buy chocolate, and 2,000 won and 1,000 won to buy drinks and water. How much money does Ji-woo have at first if he has no money left?
Question (KO): 지우는 마트에서 과자를 사는데 가진 돈의 절반과 2000원을 사용하고, 초콜릿을 사는데 남은 돈의 절반을 사용하고, 음료수와 물을 사는데 각각 2000원과 1000원을 썼더니, 남은 돈이 없었다고 할 때 지우가 처음 가진 돈은 얼마입니까?

Answer: 16000

Solution (Python):
var_a = 0
var_b = 2000
var_c = var_a + var_b
var_d = 1000
var_e = var_c + var_d
var_f = 2
var_g = var_e * var_f
var_h = 2000
var_i = var_g + var_h
var_j = 2
var_k = var_i * var_j
print(int(var_k))
Category: Correspondence

Question (EN): A fisherman catches three fish per one fishing line. Out of 226 fishing lines, 3 were broken and discarded. How many fish did the fisherman catch?
Question (KO): 어부가 낚시줄 하나당 3마리의 물고기를 낚는다고 한다. 226개의 낚시줄 중에서 3개가 끊어져서 버렸습니다. 어부가 잡은 물고기는 모두 몇마리입니까?

Answer: 669

Solution (Python):
var_a = 226
var_b = 3
var_c = var_a - var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Jimin randomly picked 4 numbers between 50 and 200, and 3 of them were 75, 80, and 120, respectively. What should be the other number so that the sum of them is equal to interior angles of the quadrilateral?
Question (KO): 지민이는 50에서 200 사이의 수 중 무작위로 4개를 골랐는데, 그 중 3개가 각각 75, 80, 120이었다. 나머지 하나가 몇이 되어야 네 수를 합해서 사각형의 내각의 합과 같겠는가?

Answer: 85

Solution (Python):
var_a = 360
var_b = 75
var_c = var_a - var_b
var_d = 80
var_e = var_c - var_d
var_f = 120
var_g = var_e - var_f
print(int(var_g))
Category: Geometry

Question (EN): What is the length of the other side of a right triangle with hypotenuse and non-hypotenuse sides equal to 5 and 3 respectively?
Question (KO): 빗변과 빗변이 아닌 한 변이 각각 5와 3인 직각삼각형의 나머지 한 변의 길이는 얼마입니까?

Answer: 4

Solution (Python):
var_a = 5
var_b = 2
var_c = var_a ** var_b
var_d = 3
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
print(int(var_i))
Category: Correspondence

Question (EN): When you add 8 and multiply by 3 to this number it becomes 36. Find the number.
Question (KO): 8을 더하고 3을 곱하면 어떤 수는 36이 됩니다. 어떤 수를 구하시오.

Answer: 4

Solution (Python):
var_a = 36
var_b = 3
var_c = var_a / var_b
var_d = 8
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Of the five cards with the numbers 6, 7, 8, 9, and 1 written on them, we want to select two cards allowing duplicates. How many possible cases are there?
Question (KO): 6, 7, 8, 9, 1가 적혀있는 5장의 카드 중 중복을 허락하여 2가지 카드를 고르려고 합니다. 가능한 경우의 수는 모두 몇 가지 인가요?

Answer: 15

Solution (Python):
var_a = 6
var_b = 7
var_c = 8
var_d = 9
var_e = 1
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 = len(list_a)
var_g = 2
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = 2
var_l = 1
var_j = int(var_j)
var_k = int(var_k)
for i, elem in enumerate(range(var_k)):
    var_l = var_l * (var_j-i)
for i, elem in enumerate(range(var_k)):
    var_l = var_l / (i+1)
print(int(var_l))
Category: Correspondence

Question (EN): I multiplied a particular number by 1.87, when I should have divided that particular number by 25 and the result of that erroneous calculation was 231.88. Find what the quotient will be when calculated correctly. 
Question (KO): 어떤 수를 25로 나누어야 할 것을 잘못하여 1.87을 곱하였더니 231.88이 되었습니다. 바르게 계산했을때 몫이 얼마일지 구하시오.

Answer: 4

Solution (Python):
var_a = 231.88
var_b = 1.87
var_c = var_a / var_b
var_d = 25
var_e = var_c // var_d
print(int(var_e))
Category: Comparison

Question (EN): Namjoon has fewer marbles than Eunji and also has fewer marbles than Taehyung. Eunji has fewer marbles than Taehyung. Who has the most marbles among them?
Question (KO): 남준이가 가진 구슬 개수는 은지보다 적고, 태형이보다도 적습니다. 은지는 태형이보다도 더 적은 구슬을 갖고 있습니다. 이들 중 구슬이 제일 많은 사람은 누구입니까?

Answer: Taehyung

Solution (Python):
var_a = 'Namjoon'
var_b = 'Eunji'
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 = 'Namjoon'
var_e = 'Eunji'
var_f = '<'
var_g = 'Namjoon'
var_h = 'Taehyung'
var_i = '<'
var_j = 'Eunji'
var_k = 'Taehyung'
var_l = '<'
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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_m = 1
var_n = list_c[var_m-1]
print(var_n)
Category: Possibility

Question (EN): How many three-digit numbers contain all 5, 7, and 8?
Question (KO): 세 자리 자연수 중 5, 7, 8이 모두 들어가있는 수는 몇 개 입니까?

Answer: 6

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

Question (EN): Find the surface area of a cube made up of 6 squares with a perimeter of 24 centimeters (cm).
Question (KO): 둘레의 길이가 24센티미터(㎝)인 정사각형 6개로 만든 정육면체의 겉넓이를 구하시오.

Answer: 216

Solution (Python):
var_a = 24
var_b = 4
var_c = var_a / var_b
var_d = 24
var_e = 4
var_f = var_d / var_e
var_g = var_c * var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): If a perimeter of a rectangle whose width is 2 centimeters (cm) longer than its length is 16 centimeters (cm), what is its width?
Question (KO): 가로의 길이가 세로의 길이보다 2 센티미터(㎝)만큼 긴 직사각형의 둘레의 길이가 16 센티미터(㎝)일 때, 가로의 길이는 얼마인가?

Answer: 5

Solution (Python):
var_a = 16
var_b = 2
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 = 2
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): You are trying to compare the weight of paint and crayons by placing a weight of 100 grams (g) on the scale. Paint is equal to the weight of 3 weights, and crayons are equal to the weight of 5 weights. Get the lighter one between paint and crayons.
Question (KO): 저울 위에 100그램(g)짜리 추를 올려놓으며 물감과 크레파스의 무게를 비교하려고 합니다. 물감은 추 3개의 무게와 같고, 크레파스는 추 5개의 무게와 같습니다. 물감과 크레파스 중 더 가벼운 것을 구하시오.

Answer: paint

Solution (Python):
var_a = 'paint'
var_b = 'crayons'
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 = 100
var_d = 3
var_e = var_c * var_d
var_f = 100
var_g = 5
var_h = var_f * var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Geometry

Question (EN): What is the area of a parallelogram with a base of 9.51 centimeters (cm) and a height of 4.8 centimeters (cm)?
Question (KO): 밑변이 9.51센티미터(㎝), 높이가 4.8센티미터(㎝)인 평행사변형의 넓이는 얼마입니까?

Answer: 45.65

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

Question (EN): It is said that at a stationery store, there are more heart patterned postcards than star patterned postcards, and more star patterned postcards than flower patterned postcards. Which pattern has the most postcards in this stationery store?
Question (KO): 어느 문구점에 하트 무늬 엽서는 별 무늬 엽서보다 많고, 별 무늬 엽서는 꽃 무늬 엽서보다 많다고 합니다. 이 문구점에 가장 많은 엽서는 어떤 무늬입니까?

Answer: heart

Solution (Python):
var_a = 'heart'
var_b = 'star'
var_c = 'flower'
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 = 'heart'
var_e = 'star'
var_f = '>'
var_g = 'star'
var_h = 'flower'
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 = 1
var_k = list_c[var_j-1]
print(var_k)
Category: Arithmetic calculation

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

Answer: 1.1

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 = 2
list_b=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 1
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e / var_g
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Arithmetic calculation

Question (EN): The bottle was full of water. Yooseung drank 2/5 of the water in the bottle and weighed the bottle and found it to be 144 grams (g). After a while, Hansol drank 2/3 of the remaining water and weighed the bottle again and it was 96 grams (g). How many grams (g) would you get if you drank all the water and weighed only the bottle?
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: Geometry

Question (EN): Two triangles with a base length of 8 centimeters (cm) are joined to form a parallelogram. The area is 78.88 square cm (cm2). What is the height in centimeters (cm) of this parallelogram?
Question (KO): 밑변의 길이가 8센티미터(㎝)인 삼각형 두 개를 이어 붙여 평행사변형을 만들었더니 넓이가 78.88제곱센티미터(㎠)이었습니다. 이 평행사변형의 높이는 몇 센티미터(㎝)입니까?

Answer: 9.86

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

Question (EN): The four-digit number 22AB, when divided by 3, has a remainder of 2, which is a multiple of 5. How many possible A's are there?
Question (KO): 네 자리 수 22AB는 3으로 나누었을 때 나머지가 2이고, 5의 배수이다. 가능한 A는 모두 몇 개인가?

Answer: 6

Solution (Python):
var_a = '22AB'
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 = 3
var_c = 2
list_b = [] 
var_b = int(var_b)
var_c = int(var_c)
if var_c < 0:
    var_c = var_c + var_b
for i in list_a:
    i = int(i)
    if i%var_b == var_c:
        list_b.append(i)
var_d = 5
list_c = []
var_d = int(var_d)
for i in list_b:
    i = int(i)
    if i % var_d == 0:
        list_c.append(i)
var_e = '22AB'
var_f = 'A'
var_e = str(var_e)
var_f = str(var_f)
unk_idx = var_e.index(var_f)
list_d = []
for elem in list_c:
    elem = str(elem)
    list_d.append(int(elem[unk_idx]))
list_d = list(set(list_d))
var_g = len(list_d)
print(int(var_g))
Category: Geometry

Question (EN): The perimeter of the rectangle is 54 centimeters (cm), and the horizontal length of the rectangle is 3 centimeters (cm) longer than the vertical length of the rectangle. Find the horizontal length.
Question (KO): 직사각형의 둘레의 길이가 54 센티미터(㎝)이며, 가로의 길이가 세로의 길이보다 3 센티미터(㎝) 더 길다. 가로의 길이를 구하시오.

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

Question (EN): I counted the telephone poles between Seokgi's house and Dongmin's house along the way, and there were 20 in total. If the distance between telephone poles is 25 meters (m), how many meters (m) must Seokgi walk to Dongmin's house? (However, there are no telephone poles in front of Seokgi’s house and Dongmin’s house, and the distance from each house to the first telephone pole is 25 meters (m).)
Question (KO): 길을 따라 석기의 집에서부터 동민이의 집 사이에 있는 전봇대를 세어 보니 모두 20개였습니다. 전봇대와 전봇대 사이의 간격이 25미터(m)라면 석기가 동민이의 집에 갈 때, 몇 미터(m)를 걸어야 합니까? (단, 석기의 집과 동민이의 집 앞에는 전봇대가 없고 각 집에서 처음 전봇대까지의 거리는 25미터(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: Arithmetic calculation

Question (EN): There is a set of two books, volumes one and two. I bought 3 sets of this book and paid 21,000 won. If the price of the first volume is 300 won more than the price of the second volume, how much is the price of the second volume?
Question (KO): 상, 하 두 권이 한 세트로 된 책이 있습니다. 이 책을 3세트 사고 21000원을 냈습니다. 상권 한 권의 값이 하권 한 권의 값보다 300원 더 비싸다면 하권 한 권의 값은 얼마입니까?

Answer: 3350

Solution (Python):
var_a = 21000
var_b = 3
var_c = var_a / var_b
var_d = 300
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Comparison

Question (EN): Jihee used 1 and 1/5 meters (m) for shoelaces, and Hyunji used 8/5 meters (m). Find the answer to who used more shoelaces.
Question (KO): 운동화 끈을 지희는 1과 1/5미터(m), 현지는 8/5 미터(m)를 사용했습니다. 누가 운동화 끈을 더 많이 사용했는지 답을 구하세요.

Answer: Hyunji

Solution (Python):
var_a = 'Jihee'
var_b = 'Hyunji'
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 = 0.2
var_e = var_c + var_d
var_f = 1.6
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: Correspondence

Question (EN): Which of 12, 14, 15, and 20 is not divisible by 3 and is less than 18?
Question (KO): 12, 14, 15, 20 중 3으로 나누어 지지 않으며 18보다 작은 수는 무엇인가?

Answer: 14

Solution (Python):
var_a = 12
var_b = 14
var_c = 15
var_d = 20
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 = []
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if i % var_e == 0:
        list_b.append(i)
list_c = list(set(list_a) - set(list_b))
var_f = 18
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = 1
var_h = list_d[var_g-1]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): There are 58 roses. The number of roses is 15 more than the number of tulips and 25 less than the number of lilies. How many roses, tulips, and lilies are there in total?
Question (KO): 장미가 58송이 있습니다. 장미는 튤립보다 15송이 더 많고, 백합보다 25송이 더 적습니다. 장미, 튤립, 백합 3종류의 꽃은 모두 몇 송이 있습니까?

Answer: 184

Solution (Python):
var_a = 58
var_b = 58
var_c = 15
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 58
var_g = 25
var_h = var_f + var_g
var_i = var_e + var_h
print(int(var_i))
Category: Geometry

Question (EN): If the area of a rectangular swimming pool is 143.2 square meters (m2) and the length is 4 meters (m), how many meters (m) is the width?
Question (KO): 직사각형 모양의 수영장의 넓이가 143.2제곱미터(㎡), 세로가 4미터(m) 일 때, 가로는 몇 미터(m)입니까?

Answer: 35.8

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

Question (EN): There is a children's book with 220 pages. If Jinwoo wants to read this book in a week, at least how many pages does Jinwoo have to read in a day?
Question (KO): 220쪽의 동화책이 있습니다. 이 동화책 한 권은 진우가 일주일 안에 모두 읽으려고 한다면 진우가 하루에 읽어야하는 쪽수는 적어도 얼마인가요?

Answer: 32

Solution (Python):
var_a = 220
var_b = 7
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))
Category: Geometry

Question (EN): You have a plank that is 6 meters (m) wide and 4 meters (m) long. Rectangular colored paper measuring 60 centimeters (cm) in width and 20 centimeters (cm) in height was attached to this plank without overlapping. How many sheets of colored paper did you use at this time?
Question (KO): 가로가 6미터(m), 세로가 4미터(m)인 널판지가 있습니다. 이 널판지에 가로가 60센티미터(㎝), 세로가 20센티미터(㎝)인 직사각형 모양의 색종이를 빈틈없이 겹치지 않게 붙였습니다. 이때 사용한 색종이는 모두 몇 장입니까?

Answer: 200

Solution (Python):
var_a = 6
var_b = 100
var_c = var_a * var_b
var_d = 4
var_e = 100
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 60
var_i = 20
var_j = var_h * var_i
var_k = var_g / var_j
print(int(var_k))
Category: Comparison

Question (EN): Which of the three numbers 5, 8, and 4 is the largest?
Question (KO): 3개의 숫자 5, 8, 4 중 가장 큰 숫자는 무엇입니까?

Answer: 8

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

Question (EN): If there are 7 pigs and 6 giraffes, what is the total number of giraffes and pigs?
Question (KO): 돼지 7마리와 기린 6마리가 있습니다. 기린과 돼지는 모두 몇 마리 있습니까?

Answer: 13

Solution (Python):
var_a = 7
var_b = 6
var_c = var_a + var_b
print(int(var_c))