philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): There are 49, 31, 76 and 62. Find the value of the largest number minus the smallest number.
Question (KO): 49, 31, 76, 62가 있습니다. 가장 큰 수에서 가장 작은 수를 뺀 값을 구하시오.

Answer: 45

Solution (Python):
var_a = 49
var_b = 31
var_c = 76
var_d = 62
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 = 1
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: Possibility

Question (EN): In Yoongi's class, there are 4 people who are running for the presidenct and the vice presidenct. How many ways can a class president and vice president be selected out of the four students?
Question (KO): 윤기네 반에서 반장, 부반장 선거에 나온 사람은 4명입니다. 4명 중 반장, 부반장을 뽑는 방법은 모두 몇 가지입니까?

Answer: 12

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

Question (EN): Heeju's school has 500 students. Among them, 337 students like the sea, 289 students like the mountains, and 56 students do not like either the mountains or the sea. At this time, how many students like both the mountains and the sea?
Question (KO): 희주네 학교 학생은 500명입니다. 이 중에서 바다를 좋아하는 학생은 337명이고, 산을 좋아하는 학생은 289명이며, 산과 바다를 둘 다 좋아하지 않는 학생은 56명입니다. 이 때, 산과 바다를 모두 좋아하는 학생의 수는?

Answer: 182

Solution (Python):
var_a = 289
var_b = 337
var_c = var_a + var_b
var_d = 500
var_e = 56
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Correspondence

Question (EN): A large ice cream container contains 8050 grams (g) of ice cream. You scooped out some of the ice cream and weighed it on a scale, and it was 80.5 grams (g). Find the amount of scooped ice cream relative to the total ice cream.
Question (KO): 커다란 아이스크림 통안에 8050그램(g)의 아이스크림이 들어있다. 그 아이스크림 중 일부를 퍼내어 저울에 달았더니 80.5그램(g)이다. 퍼낸 아이스크림은 전체 아이스크림에 대해 어느정도에 해당하는 양인지 구하시오.

Answer: 0.01

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

Question (EN): How many three-digit numbers are divisible by 6, 5, 8, and 9?
Question (KO): 숫자 6, 5, 8, 9로 나누어 떨어질 수 있는 세 자리 수는 모두 몇 개 있습니까?

Answer: 2

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
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 = 5
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 = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = len(list_e)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): How many numbers greater than 40 and less than or equal to 80 are multiples of 8?
Question (KO): 40초과 80 이하인 수 중에서 8의 배수에 해당되는 수는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = 40
var_b = 1
var_c = var_a + var_b
var_d = 80
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 8
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): The number of students in the 3rd and 5th grades combined in a school is equal to the number of students in the 4th and 6th grades combined. Find the difference between the number of students in the 5th and 6th grades when the number of students in the 3rd and 4th grades is 217 and 196, respectively.
Question (KO): 한 학교에서 3학년과 5학년을 합친 학생 수는 4학년과 6학년을 합친 학생 수와 같다. 3학년과 4학년의 학생 수가 각각 217명, 196명일 때 5학년과 6학년 학생 수의 차를 구하라.

Answer: 21

Solution (Python):
var_a = 217
var_b = 196
var_c = var_a - var_b
var_d = abs(var_c)
print(int(var_d))
Category: Comparison

Question (EN): There are 4 boxes - (a), (b), (c), and (d). Box (b) is larger than box (d). Box (a) is smaller than box (d). Box (b) is smaller than box (c). Which box is the smallest in size?
Question (KO): (가), (나), (다), (라) 4개의 상자가 있습니다. (나) 상자는 (라) 상자보다 큽니다. (가) 상자는 (라) 상자보다 작습니다. (나) 상자는 (다) 상자보다 작습니다. 크기가 가장 작은 상자는 무엇입니까?

Answer: (a)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
var_c = '(c)'
var_d = '(d)'
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 = '(b)'
var_f = '(d)'
var_g = '>'
var_h = '(d)'
var_i = '(a)'
var_j = '>'
var_k = '(c)'
var_l = '(b)'
var_m = '>'
list_b= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Possibility

Question (EN): Find out how many three-digit numbers that are less than 900 and greater than 600 are composed of the three numbers 6, 4, and 9.
Question (KO): 900보다 작고 600보다 큰 수 중 6, 4, 9 세 수 모두로 이루어져 있는 세 자리 수는 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 6
var_b = 4
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 = 600
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 900
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))
Category: Possibility

Question (EN): Toby wants to make a number greater than 550 by moving the digit position of 458. How many are possible?
Question (KO): 토비는 458의 숫자 위치를 옮겨서 550보다 큰 수를 만들고 싶다. 몇 가지가 가능한가?

Answer: 3

Solution (Python):
var_a = 458
list_a = []
var_a = int(var_a)
while var_a//10 > 0:
    list_a.append(var_a%10)
    var_a = var_a//10
list_a.append(var_a%10)
list_a = list_a[::-1]
var_b = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_b))
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_c = 550
list_c = []
for i in list_b:
    if i > var_c:
        list_c.append(i)
var_d = len(list_c)
print(int(var_d))
Category: Geometry

Question (EN): There is a square that has the same perimeter as a regular hexagon with a side of 6 centimeters (cm). How long is one side of the square in centimeters (cm)?
Question (KO): 한 변이 6센티미터(㎝)인 정육각형과 둘레가 같은 정사각형이 있습니다. 정사각형의 한 변은 몇 센티미터(㎝)입니까?

Answer: 9

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

Question (EN): You want to create decimal numbers by using all three number cards: 1, 2, and 7 once. Find the product of the largest two-digit number and the smallest one-digit number that can be made.
Question (KO): 3 장의 숫자 카드 1, 2, 7을 모두 한 번씩 사용하여 소수를 만 들려고 합니다. 만들 수 있는 가장 큰 소수 두 자리 수와 가장 작은 소수 한 자리 수의 곱을 구하시오.

Answer: 91.57

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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 10
var_h = 3
var_i = 2
var_j = var_h - var_i
var_k = var_g ** var_j
var_l = var_f / var_k
var_m = 1
list_d=list_b.copy()
list_d.sort()
var_n = list_d[var_m-1]
var_o = 10
var_p = 3
var_q = 1
var_r = var_p - var_q
var_s = var_o ** var_r
var_t = var_n / var_s
var_u = var_l * var_t
print('{:.2f}'.format(round(var_u+1e-10,2)))
Category: Arithmetic calculation

Question (EN): I have a ribbon tape that is 28 meters (m) long. If you cut this ribbon tape to make ribbons, each of which are 1.12 meter (m) long, how many ribbons can you make?
Question (KO): 길이가 28미터(m)인 리본 테이프가 있습니다. 이 리본 테이프를 잘라 1.12미터(m)의 리본을 만든다면 몇 개 만들 수 있습니까?

Answer: 25

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

Question (EN): It is said that 2/7 of the participants in the sports day are on the white team and 3/8 are on the blue team. Which team will have more participants?
Question (KO): 운동회의 참가자 중 2/7는 백팀, 3/8은 청팀이라고 합니다. 참가자 중 어느 팀이 더 많을까요?

Answer: blue

Solution (Python):
var_a = 'white'
var_b = 'blue'
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.2857142857142857
var_d = 0.375
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): We are going to install flags on the playground at intervals of 20 meters (m). If there are 12 flags and the circumference of the field is 200 meters (m), how many flags are left?
Question (KO): 12명의 학생이 운동장에 줄을 서려고 합니다. 운동장의 길이는 총 200미터(m)이며 학생들은 20미터(m)의 간격을 유지해야합니다. 총 몇명의 학생이 줄을 설 수 있습니까?

Answer: 2

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

Question (EN): You want to wrap 54 chocolates without any leftovers. How many ways can it be packed? (However, packing 54 at once is not considered.)
Question (KO): 초콜릿 54개를 남는 것 없이 포장하려 한다. 포장할 수 있는 방법은 모두 몇가지인가? (단, 54개를 한번에 포장하는 것은 고려하지 않는다.)

Answer: 7

Solution (Python):
var_a = 54
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 54
list_b= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_b.append(var_b)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Comparison

Question (EN): Three different people A, B, and C have books. The average number of books owned by two people, A and B, is 23 more than the average number of books owned by three people. And the average number of books owned by two people, B and C, is 17 less than the average of what three people have. If B has 66 books, find how many books A has.
Question (KO): 서로 다른 세 사람 A, B, C가 책을 가지고 있습니다. 세 사람이 가지고 있는 책의 평균보다 A, B 두 사람이 가지고 있는 책의 평균이 23권 더 많고, B, C 두 사람이 가지고 있는 책의 평균은 세 사람의 책 평균보다 17권 적습니다. B가 66권을 가지고 있었을 때, A가 가지고 있는 책은 몇 권인지 구하시오.

Answer: 88

Solution (Python):
var_a = 66
var_b = 2
var_c = var_a / var_b
var_d = 17
var_e = var_c + var_d
var_f = 66
var_g = 3
var_h = var_f / var_g
var_i = var_e - var_h
var_j = 6
var_k = var_i * var_j
var_l = 2
var_m = var_k * var_l
var_n = 23
var_o = 66
var_p = 3
var_q = var_o / var_p
var_r = var_n + var_q
var_s = 66
var_t = 2
var_u = var_s / var_t
var_v = var_r - var_u
var_w = 6
var_x = var_v * var_w
var_y = var_m - var_x
var_z = 3
var_A = var_y / var_z
print(int(var_A))
Category: Comparison

Question (EN): The older brother and younger brother are trying to get 25 stamps. How many stamps does the older brother have if the older brother owns one more than twice the younger brother's stamps?
Question (KO): 25장의 우표를 형과 동생이 가지려고 합니다. 형이 동생의 우표 2배보다 1장 더 많이 가졌다면, 형이 가진 우표는 몇 장입니까?

Answer: 17

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

Question (EN): What is the number if 540 increases with 10 by 6 times?
Question (KO): 540에서 10씩 커지게 6번 뛰어서 세면 얼마입니까?

Answer: 600

Solution (Python):
var_a = 540
var_b = 10
var_c = 6
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There is a subway that runs at 288 centimeters (cm) per second. If the length of the subway is 20 meters (m), and it takes 25 seconds to completely get through the platform, how long is the platform in meters (m)?
Question (KO): 1초에 288센티미터(㎝) 달리는 지하철이 있습니다. 지하철의 길이는 20미터(m)이며 승강장을 완전히 통과하는데 25초가 걸렸다면 승강장의 길이는 몇 미터(m)입니까?

Answer: 52

Solution (Python):
var_a = 288
var_b = 100
var_c = var_a / var_b
var_d = 25
var_e = var_c * var_d
var_f = 20
var_g = var_e - var_f
print(int(var_g))
Category: Correspondence

Question (EN): Divide 493 by 17 to get a number. What number is it?
Question (KO): 493을 17로 나누면 어떤 수가 됩니다. 어떤 수는 얼마입니까?

Answer: 29

Solution (Python):
var_a = 493
var_b = 17
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): A pizza is 30 centimeters (cm) in diameter and its circumference is 94.2 centimeters (cm). How many times the circumference of the pizza is greater than the diameter?
Question (KO): 어느 피자의 지름이 30센티미터(㎝)이며, 이 피자의 둘레는 94.2센티미터(㎝)입니다. 피자의 둘레는 지름의 몇 배입니까?

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

Question (EN): Jungkook has a number card 0.8, Yoongi has 1/2, Yoojung has 0.9, and Yuna has 1/3. How many people have number cards less than or equal to 0.3?
Question (KO): 정국이는 0.8, 윤기는 1/2, 유정이는 0.9, 유나는 1/3의 숫자카드를 갖고 있습니다. 0.3보다 작거나 같은 숫자카드를 가지고 있는 사람은 몇 명입니까?

Answer: 0

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
var_d = 0.3333333333333333
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 = 0.3
list_b = []
for i in list_a:
    if i <= var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Possibility

Question (EN): You want to distribute 36 pairs of shoes to two different female students. Girls receive at least one pair of shoes. How many ways are there to distribute shoes?
Question (KO): 신발 36켤레를 서로 다른 2명의 여학생에게 나누어 주려고 합니다. 여학생은 적어도 신발 1켤레는 받습니다. 신발을 나누어 주는 방법은 모두 몇 가지입니까?

Answer: 35

Solution (Python):
var_a = 36
var_b = 2
var_c = 1
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g))
Category: Correspondence

Question (EN): There are 36 students in Jisoo’s class. If you multiply the number of students in Jisoo's class by the number of students in Sunghoon's class, you get 1008. Find the number of students in Sunghoon's class.
Question (KO): 지수네 반 학생수는 36명이다. 지수네 반 학생 수와 성훈이네 반 학생 수를 곱하면 1008이 된다. 성훈이네 반 학생 수를 구하시오.

Answer: 28

Solution (Python):
var_a = 1008
var_b = 36
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): If two coins A and B are tossed, how many times can it come up with 2 heads?
Question (KO): 두 개의 동전 A, B를 던질 때, 앞면이 2개 나오는 경우의 수는 몇 가지입니까?

Answer: 1

Solution (Python):
var_a = 2
var_b = 'A'
var_c = 'B'
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)
list_a.reverse()
var_d = len(list_a)
var_e = 2
var_f = var_d - var_e
var_g = var_a ** var_f
print(int(var_g))
Category: Geometry

Question (EN): The sum of the perimeters of one regular triangle and one square equals 78 centimeters (cm). If the perimeter of the triangle is 46 centimeters (cm), what is the length of one side of the square in centimeters (cm)?
Question (KO): 정삼각형 1개와 정사각형 1개의 둘레의 길이를 합하였더니 78센티미터(㎝)였습니다. 이때 삼각형의 둘레가 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): Find the difference between the largest and smallest even number between 5 and 29.
Question (KO): 5부터 29 사이의 짝수 중 가장 큰 수와 가장 작은 수의 차를 구하시오.

Answer: 22

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

Question (EN): I bought 4 school supplies sets with 16 mechanical pencils each. How many mechanical pencils are there in all?
Question (KO): 샤프 16개가 들어있는 학용품세트 4개를 샀습니다. 샤프는 모두 몇 개인가요?

Answer: 64

Solution (Python):
var_a = 16
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Correspondence

Question (EN): If you accidentally divide the number by 18 and divide it again by 1.8, the quotient is 21 with the remainder of 0.2. Find the remainder of the correct calculation.
Question (KO): 실수로 숫자를 18로 나누고 1.8로 나누면 몫은 21이고 나머지는 0.2입니다. 올바른 계산의 나머지를 구하십시오.

Answer: 2

Solution (Python):
var_a = 21
var_b = 1.8
var_c = var_a * var_b
var_d = 0.2
var_e = var_c + var_d
var_f = 18
var_g = var_e % var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Possibility

Question (EN): How many two-digit natural numbers are there with all digits different, only consisting of 0, 1, 7, and 9?
Question (KO): 두 자리 자연수 중 각 자리 숫자가 다르고, 0, 1, 7, 9로만 구성되어 있는 수는 모두 몇 개인가?

Answer: 9

Solution (Python):
var_a = 0
var_b = 1
var_c = 7
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 = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): How many of 0.8, 1/2, 0.9, and 1/3 are greater than 0.4?
Question (KO): 0.8, 1/2, 0.9, 1/3 중에서 0.4보다 큰 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
var_d = 0.3333333333333333
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 = 0.4
list_b = []
for i in list_a:
    if i > var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Geometry

Question (EN): Using all of the 40 centimeters (cm) lengths of wire, the largest regular octagons was created. How many centimeters (cm) is one side of the regular octagon you created?
Question (KO): 길이가 40센티미터(㎝)인 철사를 남김없이 모두 사용하여 가장 큰 정팔각형을 1개 만들었습니다. 만든 정팔각형의 한 변은 몇 센티미터(㎝)입니까?

Answer: 5

Solution (Python):
var_a = 40
var_b = 8
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

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

Answer: 132

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

Question (EN): Find the sum of the two numbers with the greatest difference among the four different natural numbers 1, 3, 7, and 9.
Question (KO): 서로 다른 네 자연수 1, 3, 7, 9중 차가 가장 큰 2장의 합을 구하시오.

Answer: 10

Solution (Python):
var_a = 1
var_b = 3
var_c = 7
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
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: Arithmetic calculation

Question (EN): There is a car that traveled 2 hours and 36 minutes at a speed of 80 kilometers (km) per hour. This car consumes 0.08 liters (l) of gasoline to travel 1 kilometer (km). How many liters (L) of gasoline is consumed?
Question (KO): 시속 80킬로미터(㎞)의 빠르기로 2시간 36분을 이동한 자동차가 있습니다. 이 자동차는 1킬로미터(㎞)를 가는데 0.08리터(L)의 휘발유를 소모합니다. 소모한 휘발유의 양은 몇 리터(L)인가요?

Answer: 16.64

Solution (Python):
var_a = 0.08
var_b = 80
var_c = 2
var_d = 36
var_e = 60
var_f = var_d / var_e
var_g = var_c + var_f
var_h = var_b * var_g
var_i = var_a * var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))