philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): If a number less than 1.1 is selected among 1.4, 9/10, 1.2, 0.5, and 13/10, and arranged in ascending order, which number comes first?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10 5개 숫자 중에서 1.1보다 작은 숫자를 골라 큰 순서대로 나열했을 때, 가장 앞에 있는 숫자는 무엇입니까?

Answer: 0.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)
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Correspondence

Question (EN): A number that is the 1/100 of that number is said to be 0.28 greater than 31.76. Find that number.
Question (KO): 어떤 수의 1/100인 수는 31.76보다 0.28 크다고 합니다. 어떤 수를 구하시오.

Answer: 3204

Solution (Python):
var_a = 31.76
var_b = 0.28
var_c = var_a + var_b
var_d = 1
var_e = 100
var_f = var_d / var_e
var_g = var_c / var_f
print(int(var_g))
Category: Geometry

Question (EN): There is a square with the sum of its four sides measuring 56 centimeters (cm). Divide this square into 4 equal parts to make smaller squares. When you make one large square out of these 441 small squares, find the perimeter of that square.
Question (KO): 네 변의 길이의 합이 56센티미터(㎝)인 정사각형이 있다. 이 정사각형을 4등분 해서 작은 정사각형을 만들었다. 이 작은 정사각형 441개로 큰 정사각형 하나를 만들 때, 그 정사각형의 둘레를 구하시오.

Answer: 588

Solution (Python):
var_a = 56
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = 0.5
var_f = var_d ** var_e
var_g = var_c / var_f
var_h = 441
var_i = 0.5
var_j = var_h ** var_i
var_k = var_g * var_j
var_l = 4
var_m = var_k * var_l
print(int(var_m))
Category: Correspondence

Question (EN): The six-digit number 12ABC8 is a multiple of 137. In this case, how many numbers fit the 3-digit number ABC?
Question (KO): 여섯자리 수 12ABC8은 137의 배수이다. 이 때, 세 자리 수 ABC에 알맞은 수는 모두 몇 가지인가?

Answer: 7

Solution (Python):
var_a = '12ABC8'
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 = 137
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The box that holds 20 books is full of books (a) and books (b). If there are 4 more books (a) than books (b), how many books (a) are there?
Question (KO): 20권의 책이 들어가는 박스에 (가) 책과 (나) 책이 가득 들어있다. (가) 책이 (나) 책보다 4권 더 많다고 한다면, (가) 책은 몇 권 있는지 구하시오.

Answer: 12

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

Question (EN): Three people each have one 8-kilogram (kg) dumbbell, and two people each have one 7-kilogram (kg) dumbbell. How many kilograms (kg) do all 5 dumbbells weigh?
Question (KO): 3명이 8킬로그램(㎏)짜리 아령을 1개씩 가지고 있고, 2명은 7킬로그램(㎏)짜리 아령을 1개씩 가지고 있습니다. 5명이 가진 모든 아령의 무게는 몇 킬로그램(㎏)입니까?

Answer: 38

Solution (Python):
var_a = 3
var_b = 8
var_c = var_a * var_b
var_d = 2
var_e = 7
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Possibility

Question (EN): There are 9 number cards, one each with a number from 1 to 9 written on it. You take out 8 cards and add all the numbers written on the cards. Find the sum of all possible sums.
Question (KO): 1부터 9까지의 숫자가 각각 한 개씩 적힌 숫자 카드가 9장 있다. 이 중에서 8장을 꺼내 그 숫자의 합을 구할 때, 나올 수 있는 모든 합들의 총합을 구하여라.

Answer: 360

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 = 8
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
list_d= []
list_d.reverse()
list_e = list(set(list_c) - set(list_d))
list_e = [float(i) for i in list_e]
var_f = sum(list_e)
print(int(var_f))
Category: Correspondence

Question (EN): When 23 is divided by A, the quotient is 3 and the remainder is 2. If A is a natural number, what is A in this case?
Question (KO): 23을 A로 나눴더니 몫은 3이 되었고 나머지는 2가 되었습니다. A는 자연수입니다. 이 때 A는 무엇일까요?

Answer: 7

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

Question (EN): Suppose you pay 30 won when you call for 10 seconds. How much do you have to pay for 2 minutes 40 seconds phone call?
Question (KO): 10초간 전화하면 30원을 낸다고 합니다. 2분 40초 동안 전화를 한다면 얼마를 내야합니까?

Answer: 480

Solution (Python):
var_a = 2
var_b = 60
var_c = var_a * var_b
var_d = 40
var_e = var_c + var_d
var_f = 10
var_g = var_e / var_f
var_h = 30
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): I had to add 954 to a number but mistakenly subtracted it to get 468. When the calculation is correctly done, what is the result?
Question (KO): 어떤 수에 954에 더해야하는데 실수로 빼서 468이 되었습니다. 올바르게 계산했다면 얼마인지 구하세요.

Answer: 2376

Solution (Python):
var_a = 468
var_b = 954
var_c = var_a + var_b
var_d = 954
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a box in the shape of a cuboid measuring 80 centimeters (cm) wide, 75 centimeters (cm) long, and 120 centimeters (cm) high. If you double the length of all sides of this box to make a new box, find the volume in cubic meters (m3) of the new box.
Question (KO): 가로가 80센티미터(㎝), 세로가 75센티미터(㎝), 높이가 120센티미터(㎝)인 직육면체 모양의 상자가 있습니다. 이 상자의 모든 변의 길이를 2배로 늘려 새로운 상자를 만들었을 때, 새롭게 만들어진 상자의 부피는 몇 세제곱미터(㎥)일지 구하시오.

Answer: 5.76

Solution (Python):
var_a = 80
var_b = 100
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
var_f = 75
var_g = 100
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = 120
var_l = 100
var_m = var_k / var_l
var_n = 2
var_o = var_m * var_n
var_p = var_j * var_o
var_q = var_e * var_p
print('{:.2f}'.format(round(var_q+1e-10,2)))
Category: Correspondence

Question (EN): When AB3+36=269 is said to hold, what number should go in A?
Question (KO): AB3+36=269일 때, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

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

Question (EN): 300 is divisible by 25. Find the smallest number greater than 300 that when divided by 25 has a remainder of 24.
Question (KO): 300은 25로 나누어떨어집니다. 300보다 큰 수 중에서 25로 나누었을 때 나머지가 24가 되는 가장 작은 수를 구하세요

Answer: 324

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

Question (EN): Find the product of the largest two-digit number and the smallest two-digit number among the two-digit numbers that can be formed using four number cards 1, 3, 5, and 8, only once each.
Question (KO): 1, 3, 5, 8의 4장의 숫자 카드를 한번씩만 사용하여 두 자리 수를 만들 때 가장 큰 두 자리 수와 가장 작은 두 자리 수의 곱을 구하시오.

Answer: 1105

Solution (Python):
var_a = 1
var_b = 3
var_c = 5
var_d = 8
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g * var_i
print(int(var_j))
Category: Comparison

Question (EN): Students are standing in a line. Yoojung is standing at the very last. Eunjung is standing 5th from the front. When there are 8 students standing between Eunjeong and Yoojeong, how many students are in line?
Question (KO): 학생들이 한 줄로 서 있습니다. 유정이는 맨 뒤에 서 있습니다. 은정이는 앞에서 5번째에 서 있습니다. 은정이와 유정이 사이에 8명이 서 있을 때, 줄을 서 있는 학생은 모두 몇 명입니까?

Answer: 14

Solution (Python):
var_a = 5
var_b = 8
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): What is the smallest three-digit number that can be formed using all 1, 0, and 7?
Question (KO): 1, 0, 7를 모두 사용하여 만들 수 있는 세 자리 수 중 가장 작은 수는 얼마입니까?

Answer: 107

Solution (Python):
var_a = 1
var_b = 0
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 = 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]
print(int(var_f))
Category: Geometry

Question (EN): Red and yellow colored pencils were neatly arranged in 10 rows both horizontally and vertically. If the colored pencils placed around the perimeter are red and the colored pencils placed inside are yellow, how many yellow colored 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: Possibility

Question (EN): Using 3 out of 4, 3, 7, 9, what is the second largest number with the units digit of 3?
Question (KO): 4, 3, 7, 9 중 3개를 사용하여 일의 자리 숫자가 3인 두 번째 큰 수는 무엇입니까?

Answer: 943

Solution (Python):
var_a = 4
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 = 3
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 = 1
var_g = 3
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = 2
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))
Category: Possibility

Question (EN): Yoongi wants to choose three toys for Jungkook's birthday present. When trying to choose one gift out of 10 different toys, how many ways are there in choosing a toy?
Question (KO): 윤기는 정국에게 줄 생일 선물로 3개의 장난감을 선택하려고 합니다. 서로 다른 10개의 장난감 중에서 한개씩 선물을 고르려고 할때, 장난감을 고르는 경우는 모두 몇 가지입니까?

Answer: 120

Solution (Python):
var_a = 10
var_b = 3
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)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): When a weight was hung from the spring, the length of the spring increased by 29.75 centimeters (cm) compared to before the weight was hung. If the length of the spring with nothing hanging is 4.25 centimeters (cm), how many times the length of the spring with the weight is the length of the spring with nothing hanging?
Question (KO): 용수철에 추를 매달았더니 용수철의 길이가 추를 매달기 전보다 29.75 센티미터(㎝) 늘어났습니다. 아무것도 매달지 않았을 때의 용수철의 길이가 4.25 센티미터(㎝) 였다면 추를 매달았을 때의 용수철의 길이는 아무것도 매달지 않았을 때의 용수철의 길이의 몇 배입니까?

Answer: 8

Solution (Python):
var_a = 29.75
var_b = 4.25
var_c = var_a + var_b
var_d = 4.25
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): Jennie drank 0.2 liters (L) more juice than Jisoo, and Jennie drank 9/5 liters (L) of juice. Who drank the least juice when Jisoo drank 3/10 of a liter (L) less than Rohee?
Question (KO): 제니는 주스를 지수보다 0.2리터(L) 더 많이 마셨고, 제니는 주스를 9/5리터(L) 마셨습니다. 지수는 로희보다 3/10리터(L) 더 적게 마셨을 때 주스를 가장 적게 마신 사람은 누구입니까?

Answer: Jisoo

Solution (Python):
var_a = 'Jennie'
var_b = 'Jisoo'
var_c = 'Rohee'
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.8
var_e = 1.8
var_f = 0.2
var_g = var_e - var_f
var_h = 1.8
var_i = 0.2
var_j = var_h - var_i
var_k = 0.3
var_l = var_j + var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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): Suyeong's family drank 0.4 of the total milk today, and the remaining milk was 0.69 liters (L). Find how many liters (L) of milk were in the beginning.
Question (KO): 수영이네 가족이 오늘 우유를 전체의 0.4만큼 마셨더니 남은 우유가 0.69리터(L) 였습니다. 처음에 있던 우유는 몇 리터(L) 인지 구하시오.

Answer: 1.15

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

Question (EN): Add a number to 55, divide it by 7, then add 40 and multiply by 5 is 555. Find a number.
Question (KO): 55에 어떤 수를 더하여 7로 나눈 뒤 40을 더하여 5를 곱한 수가 555입니다. 어떤 수를 구하시오.

Answer: 442

Solution (Python):
var_a = 555
var_b = 5
var_c = var_a / var_b
var_d = 40
var_e = var_c - var_d
var_f = 7
var_g = var_e * var_f
var_h = 55
var_i = var_g - var_h
print(int(var_i))
Category: Comparison

Question (EN): We are trying to stack 8 pieces of (a) wood, 11 pieces of (b) wood, and 6 pieces of (c) wood each in a row. If the heights of the blocks (a), (b), (c) are each 2 centimeters (cm), 1.5 centimeters (cm), and 2.5 centimeters (cm) respectively, which of the stacked blocks is the tallest?
Question (KO): (가) 나무토막 8개, (나) 나무토막 11개, (다) 나무토막 6개를 각각 한 줄로 높게 쌓으려고 한다. (가), (나), (다) 나무토막의 높이가 각각 2센티미터(㎝), 1.5센티미터(㎝), 2.5센티미터(㎝)일 때 가장 높게 쌓인 나무토막은 어떤 나무토막입니까?

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

Question (EN): A train 115 meters (m) long travels at 400 meters (m) per minute. At the same speed, how many minutes would it take for the train to cross the entire length of the 1.625 km (km) bridge?
Question (KO): 길이가 115미터(m) 인 기차가 1 분에 400미터(m) 를 달린다고 합니다. 이 기차가 같은 빠르기로 길이가 1.625킬로미터(㎞) 인 다리를 완전히 통과하려면 몇 분이 걸리겠습니까?

Answer: 4.35

Solution (Python):
var_a = 115
var_b = 1.625
var_c = 1000
var_d = var_b * var_c
var_e = var_a + var_d
var_f = 400
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Arithmetic calculation

Question (EN): In an elementary school, class (A) planted 225 trees, class (B) planted 48 trees more than class (A), and class (C) planted 24 fewer trees than class (A). How many trees did the three classes plant on average?
Question (KO): 어느 초등학교에서 나무를 심는데 (가) 반은 225그루를 심었고, (나) 반은 (가) 반보다 48그루 더 많이 심었고, (다) 반은 (가) 반보다 24그루 더 적게 심었습니다. (가), (나), (다) 세 반이 심은 나무의 수는 평균 몇 그루입니까?

Answer: 233

Solution (Python):
var_a = 225
var_b = 225
var_c = 48
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 225
var_g = 24
var_h = var_f - var_g
var_i = var_e + var_h
var_j = 3
var_k = var_i / var_j
print(int(var_k))
Category: Geometry

Question (EN): On a map with a scale of 1/250000, we have marked two points with an actual distance of 5 kilometers (km). How many centimeters (cm) is the distance between these points measured with a ruler?
Question (KO): 축척이 1/250000인 지도에서 실제 거리가 5킬로미터(㎞)인 두 지점을 표시했습니다. 이 지점 사이의 거리를 자로 재었을 때 몇 센티미터(㎝)입니까?

Answer: 2

Solution (Python):
var_a = 5
var_b = 100
var_c = 1000
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 4e-06
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Jungkook's weight is 13 grams (g) lighter than 54 kilograms (kg). Write Jungkook's weight in kilograms (kg).
Question (KO): 정국의 몸무게는 54킬로그램(㎏)보다 13그램(g) 가볍습니다. 정국이의 몸무게를 킬로그램(㎏)로 써보시오.

Answer: 53.99

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

Question (EN): To fold colored paper with friends, Jimin gave 11 pieces of it to each of 2 friends and bought 27 new ones. If the number of colored papers Jimin currently has is 63, how many pieces of colored paper did Jimin initially have?
Question (KO): 친구들과 색종이 접기 놀이를 하기 위해 지민이는 친구 2명에게 각각 색종이 11장씩을 주고 27장을 새로 샀습니다. 현재 지민이가 가지고 있는 색종이의 수가 63장일 때, 처음에 지민이가 가지고 있던 색종이의 수는 몇 장일까요?

Answer: 58

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

Question (EN): If a certain number is divisible by 72 without any remainder, then it is also divisible by 48. What is the largest value that can satisfy these conditions?
Question (KO): 72를 어떤 수로 나누었더니 나누어 떨어졌습니다. 어떤 수를 가지고 48을 나누었더니 또 나누어 떨어졌습니다. 어떤 수에 들어갈 수 있는 값 중 가장 큰 값은 무엇입니까?

Answer: 24

Solution (Python):
var_a = 72
var_b = 48
var_c = math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There is a number with a one's digit of 3, 1st and 2nd decimal places of 0, and 3rd decimal place of 6. How many three-digit decimal numbers are less than 3.01 but greater than this number?
Question (KO): 일의 자리 숫자가 3이고, 소수 첫째 자리 숫자와 소수 둘째 자리 숫자가 0, 소수 셋째 자리 숫자가 6인 수가 있습니다. 이 수보다 큰 수 중에서 3.01보다는 작은 소수 세 자리 수는 모두 몇 개인지 구하시오.

Answer: 3

Solution (Python):
var_a = 0
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The elevators in the building have buttons numbered 1 through 54. Count how many times the digit 5 appears on these buttons.
Question (KO): 건물의 엘리베이터에는 1번부터 54번까지의 숫자가 있는 버튼이 있습니다. 이 버튼에 숫자 5가 몇 번 표시되는지 세십시오.

Answer: 10

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

Question (EN): Find the number of ways to place one math book and one science book in a row on a bookshelf.
Question (KO): 수학책과 과학책 각각 1권씩을 책꽂이에 한 줄로 꽂는 경우의 수를 구하시오.

Answer: 2

Solution (Python):
var_a = 'math'
var_b = 'science'
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 = len(list_a)
var_d = len(list_a)
var_e = 1
var_c = int(var_c)
var_d = int(var_d)
for i, elem in enumerate(range(var_d)):
    var_e = var_e * (var_c-i)
print(int(var_e))
Category: Possibility

Question (EN): Among Jungkook, Jimin, Yoongi, and Yuna, we want to choose two people, including picking the same person. How many options are there in total?
Question (KO): 정국, 지민, 윤기, 유나 중에서 중복을 허용하여 두 사람을 선택하려고 합니다. 선택할 수 있는 경우는 모두 몇 가지 입니까?

Answer: 10

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

Question (EN): Yoongi collected 7, Jungkook 6, and Yuna 9. Who has the biggest number?
Question (KO): 윤기는 7, 정국은 6, 유나는 9만큼 모았습니다. 가장 큰 숫자를 가진 사람은 누구입니까?

Answer: Yuna

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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 = 7
var_e = 6
var_f = 9
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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)