philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Write the largest three-digit number that can be formed by using 2, 6, and 9 only once.
Question (KO): 2, 6, 9를 한 번씩만 사용하여 만들 수 있는 세 자리 수 중에서 가장 큰 수를 쓰시오.

Answer: 962

Solution (Python):
var_a = 2
var_b = 6
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]
print(int(var_f))
Category: Arithmetic calculation

Question (EN): In the addition of two-digit numbers, the units digit of added number was originally 5 but was mistaken as 8. Also, when the number 7 in the tens place of the number being added was mistakenly calculated as 4, the calculated value was 111. Find the result of the correct calculation.
Question (KO): 두 자리 수끼리의 덧셈에서 더하는 수의 일의 자리 숫자 5를 8로 잘못 보았습니다. 또 더해지는 수의 십의 자리 숫자 7을 4로 잘못 보고 계산하였더니 그 값이 111이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 138

Solution (Python):
var_a = 111
var_b = 1
var_c = 5
var_d = 8
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
var_h = 10
var_i = 7
var_j = 4
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_g + var_l
print(int(var_m))
Category: Possibility

Question (EN): Find the number in the hundredth place of the smallest number that can be made by using all of the given number cards 0, 5, and 8 once.
Question (KO): 주어진 숫자카드 0, 5, 8를 한 번씩 모두 사용하여 만들 수 있는 가장 작은 수에 백의 자리에 오는 숫자를 구하시오.

Answer: 5

Solution (Python):
var_a = 0
var_b = 5
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 = len(list_a)
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-1]
var_g = 100
var_h = var_f // var_g
print(int(var_h))
Category: Possibility

Question (EN): There is one ID photo each of Seokjin, Taehyung, Namjoon, Yoojeong, and Yuna. In how many ways can these pictures be arranged in a row?
Question (KO): 석진, 태형, 남준, 유정, 유나의 증명사진이 각각 한 장씩 있습니다. 이 사진을 서로 다르게 한 줄로 나열하는 방법은 모두 몇 가지입니까?

Answer: 120

Solution (Python):
var_a = 'Seokjin'
var_b = 'Taehyung'
var_c = 'Namjoon'
var_d = 'Yoojeong'
var_e = 'Yuna'
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 = 5
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
print(int(var_h))
Category: Correspondence

Question (EN): On a farm of 12 cows and 34 pigs, a few cows and three times as many pigs were sold on the market. When there are 30 remaining cows and pigs, how many cows sold?
Question (KO): 소 12마리와 돼지 34마리를 키우는 농장에서 소 몇 마리와 그것의 3배만큼의 돼지를 시장에 팔았습니다. 남은 소와 돼지가 모두 30마리일 때, 판 소는 몇 마리인지 구하시오

Answer: 4

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

Question (EN): How many candles are needed to place candles every 3 cm (cm) on the edge of a square table with a side of 90 centimeters (cm)?
Question (KO): 한 변의 길이가 90센티미터(㎝)인 정사각형 모양의 탁자 가장자리에 3센티미터(㎝) 간격으로 초를 놓으려면, 초는 모두 몇 개가 필요합니까?

Answer: 120

Solution (Python):
var_a = 90
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c // var_d
print(int(var_e))
Category: Correspondence

Question (EN): If there are four different natural numbers A, B, C, and D that satisfy A2B6-C97=543D, what are the possible values for A?
Question (KO): A2B6-C97=543D를 만족하는 서로 다른 네 자연수 A, B, C, D가 있다고 한다면, A에 들어갈 수 있는 값은 무엇입니까?

Answer: 6

Solution (Python):
var_a = 'A2B6-C97=543D'
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: Comparison

Question (EN): Junsu drank 0.331 liters (L) of milk, while Jimin drank 218 milliliters (㎖). Who drank more milk?
Question (KO): 우유를 준수는 0.331리터(L), 지민이는 218밀리리터(㎖) 마셨습니다. 누가 우유를 더 많이 마셨습니까?

Answer: Junsu

Solution (Python):
var_a = 'Junsu'
var_b = 'Jimin'
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.331
var_d = 1000
var_e = var_c * var_d
var_f = 218
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: Possibility

Question (EN): You want to use 3 out of 0, 7, 4, and 5 allowing the repetition of digits to create a three-digit number. Find the difference between the second largest number and the third smallest number that can be made.
Question (KO): 0, 7, 4, 5 중에서 3개를 뽑아 중복을 사용하여 세 자리 수를 만들려고 합니다. 만들 수 있는 두 번째로 큰 수와 세 번째로 작은 수의 차를 구하시오.

Answer: 370

Solution (Python):
var_a = 0
var_b = 7
var_c = 4
var_d = 5
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.product(list_b, repeat=var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 2
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 3
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g - var_i
var_k = abs(var_j)
print(int(var_k))
Category: Comparison

Question (EN): There are several chairs inside the church. If 9 students sit per chair, one student cannot sit, and if 10 students sit per chair, 1 chair becomes vacant. How many students went to church?
Question (KO): 교회 안에 여러 개의 의자가 있습니다. 한 의자에 9명씩 앉으면 학생 한 명이 앉을 수 없고, 10명씩 앉으면 의자가 1개 빕니다. 교회에 간 학생들은 몇 명입니까?

Answer: 100

Solution (Python):
var_a = 1
var_b = 10
var_c = var_a + var_b
var_d = 10
var_e = 9
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 9
var_i = var_g * var_h
var_j = 1
var_k = var_i + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the value of difference between the 3rd smallest number and the 2nd smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 3번째로 작은 수와 2번째로 작은 수의 차는 얼마입니까?

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 = 3
list_b=list_a.copy()
list_b.sort()
var_f = list_b[var_e-1]
var_g = 2
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f - var_h
print(int(var_i))
Category: Correspondence

Question (EN): I was supposed to subtract 36 from a particular number, but mistakenly subtracted 63, and as a result, got 8 as an answer. What should be the answer to the correct calculation?
Question (KO): 어떤 수에 36을 빼야 할 것을 잘못하여 63을 뺀 결과는 8이 되었습니다. 바르게 계산한 결과는 얼마인가요?

Answer: 35

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

Question (EN): Each box contains 3 red balls and 5 blue balls. When Jungkook has 2 boxes, how many red balls does Jungkook have?
Question (KO): 1개의 상자에는 빨간 공 3개와 파란 공 5개가 담겨져 있습니다. 정국이는 2개의 상자를 가지고 있을 때 정국이가 가지고 있는 빨간 공의 개수는?

Answer: 6

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

Question (EN): After arranging the vases in a square shape, there were 6 bottles left. So, I tried to increase the width and length by one row each, but 11 vases were insufficient. If you arrange these vases in 7 rows, how many bottles are there in 1 row?
Question (KO): 꽃병을 정사각형 모양으로 빈틈없이 정렬하여 정리해 보니 6개의 병이 남았습니다. 그래서 가로 한 변과 세로 한 변을 1열씩 늘리려 하였지만 11개의 꽃병이 부족하였습니다. 이 꽃병들을 7열로 세운다면 1열에 몇 병씩 있을까요?

Answer: 10

Solution (Python):
var_a = 6
var_b = 11
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = var_g ** var_h
var_j = 6
var_k = var_i + var_j
var_l = 7
var_m = var_k / var_l
print(int(var_m))
Category: Geometry

Question (EN): What is the sum of the lengths in centimeters (cm) of all the edges of a cube with one edge length of 15 centimeters (cm)?
Question (KO): 한 모서리의 길이가 15센티미터(㎝)인 정육면체의 모든 모서리의 길이의 합은 몇 센티미터(㎝)입니까?

Answer: 180

Solution (Python):
var_a = 15
var_b = 4
var_c = 3
var_d = var_b * var_c
var_e = var_a * var_d
print(int(var_e))
Category: Possibility

Question (EN): Three cards of numbers from 1 to 9 are used to create a certain three-digit number. If the hundredth place is 7 and the tens place is 4, how many digits can be placed in the ones place?
Question (KO): 1부터 9까지의 숫자 카드 3장을 사용하여 어떤 세 자리 수를 만들었습니다. 백의 자리는 7, 십의 자리는 4일 때, 일의 자리에 놓을 수 있는 숫자는 모두 몇 개입니까?

Answer: 7

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 = 7
var_e = 4
list_b= []
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()
list_c = list(set(list_a) - set(list_b))
var_f = len(list_c)
print(int(var_f))
Category: Correspondence

Question (EN): Hyungjun used half of his ribbon and 2000 centimeters (cm) of ribbon to wrap the first box, and used half of the remaining ribbon and 2000 centimeters (cm) of ribbon to wrap the second box, but there was no ribbon left. How many centimeters (cm) is the ribbon Hyeongjun had at first?
Question (KO): 형준이는 첫 번째 상자를 포장하는데 가진 리본의 절반과 2000센티미터(㎝)의 리본을 사용하고, 두 번째 상자를 포장하는데 남은 리본의 절반과 2000센티미터(㎝)를 사용했더니 남은 리본이 없었습니다. 형준이가 처음에 가지고 있던 리본은 길이는 몇 센티미터(㎝)입니까?

Answer: 12000

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

Question (EN): There is a box with an inside volume of 138000000 cubic centimeters (cm3), six sides each being a rectangle, equal opposite sides, twelve edges, and eight vertices. If the area of the top surface is 115 square meters (m2), find the height in meters (m).
Question (KO): 안에 부피가 138000000세제곱센티미터(㎤)인, 여섯 면이 각 사각형이고 마주보는 면이 똑같으며 모서리가 12개이며 꼭짓점이 8개인 통이 있습니다. 윗면의 넓이가 115제곱미터(㎡)일 때, 높이가 몇 미터(m)인지 구하시오.

Answer: 12

Solution (Python):
var_a = 1380000000
var_b = 100
var_c = 3
var_d = var_b ** var_c
var_e = var_a / var_d
var_f = 115
var_g = var_e / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If the sum of the two pages of the book Eunji has opened is 137, what is the larger number of the two pages Eunji has opened?
Question (KO): 은지가 펼진 책의 두 쪽수의 합이 137일 때, 은지가 펼친 두 쪽수 중 큰 수는 몇인지 구하시오.

Answer: 69

Solution (Python):
var_a = 137
var_b = 2
var_c = var_a // var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the number of all faces of a regular icosahedron.
Question (KO): 정이십면체에서 면의 수를 모두 구하시오.

Answer: 20

Solution (Python):
var_a = 20
print(int(var_a))
Category: Geometry

Question (EN): A park is in the shape of a square with sides measuring 10 meters (m). We want to divide the park into right triangles with a base of 1 meters (m) and a height of 3 meters (m). What is the maximum number of zones that can be divided?
Question (KO): 한 변의 길이가 10미터(m)인 정사각형 모양의 공원이 있습니다. 이 공원을 밑면이 1센티미터(㎝)이고 높이가 3센티미터(㎝)인 직각삼각형 모양으로 구역을 나누고자 합니다. 나눌 수 있는 구역은 최대 몇 개입니까?

Answer: 66

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You want to hand out 269 pens each of which costs 150 won to 29 students equally. If you have to buy the lacking pens, find how much money you need.
Question (KO): 150원짜리 볼펜 269개를 29명의 학생에게 동일한 개수만큼 주려고 합니다. 부족한 개수만큼 볼펜을 더 산다고 할 때 얼마가 필요한지 구하시오.

Answer: 3150

Solution (Python):
var_a = 29
var_b = 269
var_c = 29
var_d = var_b % var_c
var_e = var_a - var_d
var_f = 150
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): A prime number was supposed to be divided by 8, but multiplied by 8 by mistake, and it became 69.76. Find the correct value.
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): Which is the smallest among circle A with a diameter of 10 centimeters (cm), circle B with a radius of 4 centimeters (cm), and circle C with a sum of 9 in its diameter and radius?
Question (KO): 지름 10센티미터(㎝)의 원 A, 반지름 4센티미터(㎝)의 원 B, 지름과 반지름 길이의 합이 9인 원 C 중 가장 작은 원은 무엇인가?

Answer: C

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 = 10
var_e = 2
var_f = var_d / var_e
var_g = 4
var_h = 9
var_i = 2
var_j = 1
var_k = var_i + var_j
var_l = var_h / var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
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_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[var_m-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Arithmetic calculation

Question (EN): There are 34 hibiscus. There are 13 fewer hibiscus than chrysanthemums. There are 23 more chrysanthemums than dandelions. How many hibiscus, chrysanthemum, and dandelion are there in total?
Question (KO): 무궁화가 34송이 있습니다. 무궁화는 국화보다 13송이 더 적습니다. 국화는 민들레보다 23송이 많습니다. 무궁화, 국화, 민들레는 모두 몇 송이 있습니까?

Answer: 105

Solution (Python):
var_a = 34
var_b = 34
var_c = 13
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 34
var_g = 13
var_h = var_f + var_g
var_i = 23
var_j = var_h - var_i
var_k = var_e + var_j
print(int(var_k))
Category: Correspondence

Question (EN): There are two different numbers A and B. Find B from the two-digit addition formula AB+25=B3.
Question (KO): 서로 다른 두 수 A, B가 있습니다. 두 자리 수끼리의 덧셈식 AB+25=B3에서 B를 구하시오.

Answer: 8

Solution (Python):
var_a = 'AB+25=B3'
var_b = 'B'
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: Geometry

Question (EN): A regular octagonal fence was built using eight 2.3-meter (m) wooden poles. What is the perimeter of this fence in centimeters (cm)?
Question (KO): 2.3미터(m)짜리 나무기둥 8개를 이용해서 정팔각형 모양 울타리를 만들었습니다. 이 울타리의 둘레의 길이는 몇 센티미터(㎝)입니까?

Answer: 1840

Solution (Python):
var_a = 2.3
var_b = 8
var_c = var_a * var_b
var_d = 100
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): If a ball that bounces 1/4 of its height is dropped from a height of 12.8 meters (m), how many centimeters (cm) will the third bounce be?
Question (KO): 떨어진 높이의 1/4만큼 튀어오르는 공을 12.8미터(m) 의 높이에서 떨어뜨렸을 때, 세 번째로 튀어오른 높이는 몇 센티미터(㎝) 가 되겠습니까?

Answer: 20

Solution (Python):
var_a = 12.8
var_b = 0.25
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 100
var_g = var_e * var_f
print(int(var_g))
Category: Geometry

Question (EN): The circumference of a wheel is 94.2 centimeters (cm). If the diameter of this wheel is 30 centimeters (cm), how many times the circumference of the wheel is than the diameter?
Question (KO): 어느 바퀴의 둘레는 94.2센티미터(㎝)입니다. 이 바퀴의 지름이 30센티미터(㎝)일 때, 바퀴의 둘레는 지름의 몇 배입니까?

Answer: 3.14

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

Question (EN): How many kilograms (kg) does 1 meter (m) of marble weigh if 3/4 meter (m) of marble weighs 15/2 kilograms (kg)?
Question (KO): 대리석 3/4미터(m)의 무게가 15/2킬로그램(㎏)일 때 대리석 1미터(m)의 무게는 몇 킬로그램(㎏)입니까?

Answer: 10

Solution (Python):
var_a = 7.5
var_b = 0.75
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Seokgi and Yeseul are going to share a wire that is 1 meter (m) and 50 centimeters (cm) long. Find how many centimeters (cm) of wire must Seokgi take for him to get 16 centimeters (cm) shorter wire than Yeseul's.
Question (KO): 길이가 1미터(m) 50센티미터(㎝)인 철사를 석기와 예슬이가 나누어 가집니다. 예슬이보다 석기가 16센티미터(㎝) 더 짧게 하려면 석기는 몇 센티미터(㎝)를 가지면 됩니까?

Answer: 67

Solution (Python):
var_a = 1
var_b = 100
var_c = var_a * var_b
var_d = 50
var_e = var_c + var_d
var_f = 16
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The price of one onion is 200 won. How much does one bag of onions cost, if you divide 180 onions into 6 bags?
Question (KO): 양파 한 개의 가격은 200원이다. 양파 180개를 6개의 망에 나누어 담으려고 할 때 한 망에 담긴 양파의 가격은 얼마입니까?

Answer: 6000

Solution (Python):
var_a = 180
var_b = 6
var_c = var_a / var_b
var_d = 200
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): Find the sum of the largest and smallest six-digit numbers that can be formed by using 2, 0, 4, 1, 5, and 8 only once.
Question (KO): 2, 0, 4, 1, 5, 8을 한 번씩만 사용하여 만들 수 있는 여섯 자리 수 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 956668

Solution (Python):
var_a = 2
var_b = 0
var_c = 4
var_d = 1
var_e = 5
var_f = 8
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
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_g = 6
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 = 1
list_c=list_b.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = 1
list_d=list_b.copy()
list_d.sort()
var_k = list_d[var_j-1]
var_l = var_i + var_k
print(int(var_l))
Category: Geometry

Question (EN): A rectangular wrapping paper is 6 centimeters (cm) wide and 28 centimeters (cm) in perimeter. Find the area of the area that can be covered with this wrapping paper.
Question (KO): 직사각형 모양의 포장지는 가로 6센티미터(㎝), 둘레 28 센티미터(㎝)입니다. 이 포장지로 포장할 수 있는 면적의 넓이를 구하시오.

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): Hyeongi studies for 0.6 hours a day. For how many hours did Hyeongi study in 3 weeks?
Question (KO): 현기는 하루에 0.6 시간씩 공부를 합니다. 현기가 3주동안 공부를 한 시간은 모두 몇 시간입니까?

Answer: 12.6

Solution (Python):
var_a = 0.6
var_b = 7
var_c = var_a * var_b
var_d = 3
var_e = var_c * var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): I cut 78 centimeters (cm) of wire and used all of them to make one triangle and one square. If the sum of the lengths of the three sides of the triangle is 46 centimeters (cm), how many centimeters (cm) is the side of the square?
Question (KO): 길이가 78센티미터(㎝)인 철사를 잘라 모두 사용하여 삼각형 1개와 정사각형 1개를 만들었습니다. 만든 삼각형의 세 변의 길이의 합이 46센티미터(㎝)일 때 만든 정사각형의 한 변은 몇 센티미터(㎝)입니까?

Answer: 8

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

Question (EN): Six friends are going to rent bikes for a ride in the park. A 30-minute rental of a bicycle is 4,000 won. How much does one person have to pay to rent 4 bicycles for 3 hours?
Question (KO): 친구 6명이 공원에서 자전거를 빌려서 타려고 합니다. 자전거 한 대의 30분 대여료는 4000원이고 4대를 3시간 동안 빌려타려면 한 사람이 내야하는 돈은 얼마입니까?

Answer: 16000

Solution (Python):
var_a = 3
var_b = 60
var_c = var_a * var_b
var_d = 30
var_e = var_c / var_d
var_f = 4000
var_g = var_e * var_f
var_h = 4
var_i = var_g * var_h
var_j = 6
var_k = var_i / var_j
print(int(var_k))