philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): What is the sum of the numbers greater than 1.1 in 1.4, 9/10, 1.2, 0.5, and 13/10?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 큰 숫자를 나열한뒤, 합을 계산하면 얼마입니까?

Answer: 3.9

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)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Geometry

Question (EN): Taeyoung and Minji have the same length of wire. Using all of these wires without overlapping each other, Taeyoung made a regular hexagon with a side length of 4 centimeters (cm), and Minji made a square. What is the area of Minji's square in square centimeters (cm2) ?
Question (KO): 태영이와 민지는 똑같은 길이의 철사를 가지고 있습니다. 이 철사를 각각 겹치지 않게 모두 사용하여 태영이는 한 변의 길이가 4센티미터(㎝)인 정육각형을, 민지는 정사각형을 1개씩 만들었습니다. 민지가 만든 정사각형의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 36

Solution (Python):
var_a = 4
var_b = 6
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
var_f = 2
var_g = var_e ** var_f
print(int(var_g))
Category: Possibility

Question (EN): Among Jungkook, Jimin, and Yoongi, you are going to vote 2 people by allowing duplication anonymously. How many possible cases are there?
Question (KO): 정국, 지민, 윤기 중에 무기명으로 중복을 허용하여 2명에게 투표를 하려고 합니다. 가능한 경우의 수는 몇 가지 일까요?

Answer: 6

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
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)
var_e = 2
var_f = var_d + var_e
var_g = 1
var_h = var_f - var_g
var_i = 2
var_j = 1
var_h = int(var_h)
var_i = int(var_i)
for i, elem in enumerate(range(var_i)):
    var_j = var_j * (var_h-i)
for i, elem in enumerate(range(var_i)):
    var_j = var_j / (i+1)
print(int(var_j))
Category: Possibility

Question (EN): How many fractions with a two-digit denominator have the same magnitude as 7/8?
Question (KO): 7/8 과 크기가 같은 분수 중에서 분모가 두 자리 수인 분수는 모두 몇 개인지 쓰시오.

Answer: 11

Solution (Python):
var_a = 10
var_b = 99
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 8
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): Among faces in a cube, find the number of pairs of faces that are parallel to each other.
Question (KO): 정육면체에 있는 면들 중에 서로 평행한 면은 모두 몇 쌍 입니까?

Answer: 3

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The sum of the number of marbles that Yunjae and Minjeong have is 43, and Yunjae has 5 more than Minjeong. Find how many marbles Minjeong has.
Question (KO): 윤재와 민정이가 가진 구슬 개수의 합은 43개이고, 윤재가 민정이보다 5개 더 가지고 있습니다. 민정이가 가지고 있는 구슬은 몇 개인지 구하시오.

Answer: 19

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

Question (EN): Find the number of natural numbers between 30 and 50.
Question (KO): 30이상 50이하인 자연수의 개수를 구하시오.

Answer: 21

Solution (Python):
var_a = 30
var_b = 50
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = len(list_a)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): Among 48 children, 38 children could do A and 29 children could do B. How many children can do both A and B if there is no child who can neither A nor B?
Question (KO): 48명의 어린이 중에서 (가)를 할 수 있는 어린이는 38명, (나)를 할 수 있는 어린이는 29명입니다. (가)도 할 수 없고 (나)도 할 수 없는 어린이는 한 명도 없을 때, (가)도 할 수 있고 (나)도 할 수 있는 어린이는 몇 명입니까?

Answer: 19

Solution (Python):
var_a = 38
var_b = 29
var_c = var_a + var_b
var_d = 48
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): The number is two digits between 70 and 80. This number is divisible by 8. Find the number.
Question (KO): 어떤 수는 70과 80 사이의 두 자리 수입니다. 어떤 수는 8로 나누어떨어집니다. 어떤 수를 구하시오.

Answer: 72

Solution (Python):
var_a = 70
var_b = 1
var_c = var_a + var_b
var_d = 80
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = 8
list_b = []
var_h = int(var_h)
for i in list_a:
    i = int(i)
    if i % var_h == 0:
        list_b.append(i)
var_i = 1
var_j = list_b[var_i-1]
print(int(var_j))
Category: Comparison

Question (EN): How many three-digit numbers with a hundredth digit of 3 and less than 306?
Question (KO): 백의 자리 숫자가 3인 세 자리 수 중에서 306보다 작은 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 100
var_c = var_a * var_b
var_d = 3
var_e = 100
var_f = var_d * var_e
var_g = 99
var_h = var_f + var_g
var_i = 1
list_a = [i for i in range(var_c, var_h + 1, var_i)]
var_j = 306
list_b = []
for i in list_a:
    if i < var_j:
        list_b.append(i)
var_k = len(list_b)
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Grandpa bought 15 apples and gave 7 of them to Yoongi. How many apples are left for Grandpa?
Question (KO): 할아버지께서 사과 15개를 사서 그중에서 7개를 윤기에게 주었습니다. 할아버지에게 남은 사과는 몇 개입니까?

Answer: 8

Solution (Python):
var_a = 15
var_b = 7
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): There are three numbers A, B and C. A is the number of 4 groups of 10 and 8 units. B is one less than 50. C is 7 greater than 40. Which number is the largest?
Question (KO): 세 수 A, B, C가 있습니다. A는 10개씩 4묶음과 낱개 8개인 수입니다. B는 50보다 1 작은 수입니다. C는 40보다 7 큰 수입니다. 가장 큰 수는 어느 것입니까?

Answer: B

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 = 4
var_f = var_d * var_e
var_g = 8
var_h = var_f + var_g
var_i = 50
var_j = 1
var_k = var_i - var_j
var_l = 40
var_m = 7
var_n = var_l + var_m
list_b= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r)
Category: Comparison

Question (EN): Jimin was presented with (a) box and (b) box. Which box is lighter when (b) box is heavier than (a) box?
Question (KO): 지민이는 (가) 상자와 (나) 상자를 선물받았습니다. (가) 상자보다 (나) 상자가 무거울 때 가벼운 상자는 무엇인가요?

Answer: (a)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
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 = '(a)'
var_d = '(b)'
var_e = '<'
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)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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_f = len(list_c)
var_g = list_c[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the smallest number multiplied by the next smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 작은 수와 그 다음으로 작은 수의 곱은 얼마입니까?

Answer: 110

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): Seokgi buys school supplies with half of his money and sweets with the other half of his remaining money. If Seokgi has 1250 won left over after buying sweets, how much money did he have at the beginning?
Question (KO): 석기는 가진 돈의 절반으로 학용품을 사고, 남은 돈의 절반으로 과자를 샀습니다. 과자를 사고 남은 돈이 1250원이었다면, 처음에 석기가 가지고 있었던 돈은 얼마입니까?

Answer: 5000

Solution (Python):
var_a = 1250
var_b = 2
var_c = var_a * var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Pencils and ballpoint pens were arranged in 10 rows both horizontally and vertically. If you place a ballpoint pen around the perimeter and a pencil inside, how many pencils are there in all?
Question (KO): 연필과 볼펜을 가로와 세로 모두 10자루씩 정렬하였습니다. 둘레에는 볼펜을 놓고, 안쪽에는 연필을 놓았을 때, 연필은 모두 몇 자루 일까요?

Answer: 64

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = var_c ** var_d
print(int(var_e))
Category: Correspondence

Question (EN): When you mistakenly add a certain number that should be multiplied by 3, the result is 226. Find out the value if you calculate it correctly.
Question (KO): 어떤 수에 3을 곱해야 할 것을 잘못하여 더했더니 226이 되었습니다. 바르게 계산하면 얼마인지 구해 보시오.

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: Correspondence

Question (EN): At A345>5555, we want to write the numbers 1 through 9 in A. How many digits can you write in A?
Question (KO): A345>5555에서 A에 1부터 9까지의 숫자를 쓰려고 합니다. A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 4

Solution (Python):
var_a = 'A345>5555'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = []
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k].append(int(c[i]))
list_a = list(set(ans_dict[var_b]))
var_c = len(list_a)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It is 1 kilometer (km) 700 meters (m) from Shinyoung's house to the village office, and the distance from the village office to the school is 900 meters (m). How far is the midpoint of the distance starting from Shin-Young's house to the district office through the school, from Shin-Young's house in meters (m)?
Question (KO): 신영이네 집에서 동사무소까지는 1킬로미터(㎞) 700미터(m)이고, 동사무소에서 학교까지의 거리는 900미터(m)입니다. 신영이네 집에서 동사무소를 거쳐 학교까지 가는 거리의 중간 지점은 집에서부터 몇 미터(m)가 되겠습니까?

Answer: 1300

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 700
var_e = var_c + var_d
var_f = 900
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Comparison

Question (EN): Doyeon estimated 1 liter (L) of grape juice as 1100 milliliters (㎖) and Mingyu estimated it as 850 milliliters (㎖). Which of the two people came closer to estimating the amount of juice?
Question (KO): 1리터(L)의 포도 주스를 도연이는 1100밀리리터(㎖)로, 민규는 850밀리리터(㎖)로 어림하였습니다. 두 사람 중 주스의 양을 가깝게 어림한 사람은 누구입니까?

Answer: Doyeon

Solution (Python):
var_a = 'Doyeon'
var_b = 'Mingyu'
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 = 1000
var_d = 1100
var_e = var_c - var_d
var_f = abs(var_e)
var_g = 1000
var_h = 850
var_i = var_g - var_h
var_j = abs(var_i)
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[var_k-1]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Geometry

Question (EN): Find the number of all diagonals of the octadecagon.
Question (KO): 십팔각형의 모든 대각선의 개수를 구하시오.

Answer: 135

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

Question (EN): When you add a number plus 3/5 of that number, you get 240. What number is it?
Question (KO): 어떤 수와 그 수의 3/5인 수를 더했더니 240개가 되었습니다. 어떤 수는 무엇입니까?

Answer: 150

Solution (Python):
var_a = 240
var_b = 1
var_c = 0.6
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e))
Category: Comparison

Question (EN): Hanbyeol and Seulgi ran. During the same period, Hanbyeol ran 10.2 kilometers (km) at 1/100, and Seulgi ran 100 meters (m). Who ran more?
Question (KO): 한별과 슬기가 달렸다. 같은 기간 한별은 10.2킬로미터(㎞)를 100분의 1로, 슬기는 100미터(m)를 달렸다. 누가 더 많이 달렸습니까?

Answer: Hanbyeol

Solution (Python):
var_a = 'Hanbyeol'
var_b = 'Seulgi'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 100
var_g = var_e / var_f
var_h = 100
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): Jungkook is 12 years younger than his uncle. Three years later, Jungkook and his uncle's combined ages will be 38 years old. How old is Jungkook this year?
Question (KO): 정국이는 삼촌보다 12살이 더 어립니다. 3년 후 정국이와 삼촌의 나이를 합하면 38살이 됩니다. 올해 정국이의 나이는 몇 살인지 구하시오.

Answer: 10

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

Question (EN): There are 17 (a) candies and 19 (b) candies in the bag. If you distribute these candies in this bag equally to 9 people regardless of type, how many candies can each person get?
Question (KO): 주머니에 (가) 사탕이 17개, (나) 사탕이 19개 있습니다. 이 주머니의 사탕을 종류 구분 없이 9명에게 똑같이 나누어 준다면, 한 사람이 몇 개씩 가질 수 있습니까?

Answer: 4

Solution (Python):
var_a = 17
var_b = 19
var_c = var_a + var_b
var_d = 9
var_e = var_c // var_d
print(int(var_e))
Category: Correspondence

Question (EN): A, B, and C are different numbers. 1 is 8 less than C, and adding 5 to A is equal to B. If 9 minus 4 is A, what is the difference between B and C?
Question (KO): A, B, B는 서로 다른 숫자이다. 1은 C보다 8작은 수이고 A에 5를 더하면 B가 된다. 9에서 4를 빼면 A가 될때 B에서 C를 빼면 얼마가 되는가?

Answer: 1

Solution (Python):
var_a = 9
var_b = 4
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
var_f = 8
var_g = 1
var_h = var_f + var_g
var_i = var_e - var_h
print(int(var_i))
Category: Correspondence

Question (EN): ABCDE divided by 6 equals 13579 with a remainder of 0. Add DE to ABC of the five-digit number ABCDE.
Question (KO): ABCDE를 6으로 나누면 몪이 13579고 나머지는 0입니다. 다섯 자리 수 ABCDE의 ABC에 DE를 더하시오.

Answer: 888

Solution (Python):
var_a = 6
var_b = 13579
var_c = var_a * var_b
list_a = []
var_c = int(var_c)
while var_c//10 > 0:
    list_a.append(var_c%10)
    var_c = var_c//10
list_a.append(var_c%10)
list_a = list_a[::-1]
var_d = 1
var_e = list_a[var_d-1]
var_f = 100
var_g = var_e * var_f
var_h = 2
var_i = list_a[var_h-1]
var_j = 10
var_k = var_i * var_j
var_l = 3
var_m = list_a[var_l-1]
var_n = var_k + var_m
var_o = var_g + var_n
var_p = 4
var_q = list_a[var_p-1]
var_r = 10
var_s = var_q * var_r
var_t = 5
var_u = list_a[var_t-1]
var_v = var_s + var_u
var_w = var_o + var_v
print(int(var_w))
Category: Correspondence

Question (EN): There are 100 monks and 100 dumplings, and we handed out 3 dumplings per each great monk and 1 dumpling for every three little monks. When there are no monks that did not receive dumpling, how many great monks are there?
Question (KO): 만두 100개에 스님이 100명인데, 큰 스님에게 3개씩 나누어 주고 작은 스님은 세 사람당 1개씩 남김없이 나누어 주었다. 만두를 못 받은 스님이 없을 때 큰 스님은 몇 명인가?

Answer: 25

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

Question (EN): When 15 is multiplied by a certain number, the result is 45. What is the result of subtracting 1 from the certain number?
Question (KO): 15를 어떤 수에 곱했더니 결과가 45가 되었습니다. 1을 어떤 수에서 뺀 결과는?

Answer: 2

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

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

Answer: 0

Solution (Python):
var_a = 0.8
var_b = 0.5
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 3
list_b = []
for i in list_a:
    if i > var_c:
        list_b.append(i)
var_d = len(list_b)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There is a ball that bounces 1/3 of the height it fell. The ball was dropped from a height of 2+4/7 meters (m). What is the height in meters (m) when the ball hits the ground and bounces back to its maximum?
Question (KO): 떨어진 높이의 1/3만큼 튀어 오르는 공이 있습니다. 이 공을 2+4/7 미터(m)의 높이에서 떨어뜨렸습니다. 공이 땅에 닿았다가 튀어 올랐을 때의 높이는 몇 미터(m)일까요?

Answer: 0.86

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

Question (EN): A number with 5 1s, 7 0.1s, 21 0.01s, and 53 0.001s equals 1/10 of the variable. How much is the variable including the decimal point?
Question (KO): 1이 5개, 0.1이 7개, 0.01이 21개, 0.001이 53개인 수는 어떤 수의 1/10과 동일합니다. 소수점을 포함한 어떤 수는 얼마입니까?

Answer: 59.63

Solution (Python):
var_a = 1
var_b = 5
var_c = var_a * var_b
var_d = 0.1
var_e = 7
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 0.01
var_i = 21
var_j = var_h * var_i
var_k = var_g + var_j
var_l = 0.001
var_m = 53
var_n = var_l * var_m
var_o = var_k + var_n
var_p = 0.1
var_q = var_o / var_p
print('{:.2f}'.format(round(var_q+1e-10,2)))
Category: Geometry

Question (EN): There are eight rectangular-shaped parks in Hyeonju's neighborhood. The length of all libraries is the same with 300 meters (m) and the area is the same as well, and if the sum of the areas of the libraries is 0.6 square kilometers (km2), what is the width of the library in meters (m)?
Question (KO): 현주네 동네에는 직사각형 모양의 공원이 여덟 개 있습니다. 모든 도서관의 세로의 길이는 300미터(m)로 같고, 넓이 역시 같을 때 도서관의 넓이의 합이 0.6제곱킬로미터(㎢)라면 도서관의 가로 길이는 몇 미터(m)입니까?

Answer: 250

Solution (Python):
var_a = 0.6
var_b = 1000
var_c = 1000
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 8
var_g = var_e / var_f
var_h = 300
var_i = var_g / var_h
print(int(var_i))
Category: Correspondence

Question (EN): You want to write an even number from 1 to 100. How many times should the number 0 be written in all?
Question (KO): 1부터 100까지 짝수를 쓰려고 합니다. 숫자 0은 모두 몇 번 써야 합니까?

Answer: 26

Solution (Python):
var_a = 1
var_b = 200
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c=""
for i in list_a:
    i = str(i)
    var_c = var_c + i
list_b = []
var_c = int(var_c)
while var_c//10 > 0:
    list_b.append(var_c%10)
    var_c = var_c//10
list_b.append(var_c%10)
list_b = list_b[::-1]
var_d = 0
var_e = 0
var_d = int(var_d)
for i in list_b:
    i = int(i)
    if i == var_d:
        var_e = var_e + 1
print(int(var_e))
Category: Possibility

Question (EN): You want to paint each of the 5 fences with one of 3 different colors of paint. How many ways can you paint?
Question (KO): 5개의 울타리를 각각 3가지 색의 페인트 중 하나를 선택해 칠하려고 합니다. 페인트를 칠할 수 있는 경우는 모두 몇 가지입니까?

Answer: 243

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

Question (EN): Some numbers are multiples of 3 and multiples of 4. Find the smallest of all possible numbers.
Question (KO): 어떤 수는 3의 배수이고 동시에 4의 배수이다. 가능한 어떤 수 중 가장 작은 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 3
var_b = 4
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Geometry

Question (EN): What is the sum of the sides of a hexagon, triangle, and quadrilateral?
Question (KO): 육각형, 삼각형, 사각형의 변의 수의 합은 몇 개입니까?

Answer: 13

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

Question (EN): Yumi walked 8 kilometers (km) in 2 hours, and Woong walked 13 kilometers (km) in 3 hours. Which of the two walks faster?
Question (KO): 유미는 2시간 동안 8킬로미터(㎞)를 걸었고, 웅이는 3시간 동안 13킬로미터(㎞)를 걸었습니다. 둘 중 걸음이 더 빠른 사람은 누구입니까?

Answer: Woong

Solution (Python):
var_a = 'Yumi'
var_b = 'Woong'
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 = 24
var_d = 2
var_e = var_c / var_d
var_f = 39
var_g = 3
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]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): When 7 identical marbles were placed on a scale, and it read 50.68 grams (g). If you put 1 marble on the scale, what number will the scale indicate?
Question (KO): 동일한 구슬 7개를 저울 위에 올려놓았더니 저울의 눈금이 50.68그램(g)을 가리켰습니다. 구슬 1개를 저울 위에 올려놓으면 저울이 어떤 숫자를 가리키는지 구하시오.

Answer: 7.24

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