philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): For a number that should have been divided by 18, I mistakenly divided it by 1.8, and the quotient was 21 and the remainder was 2. Find out the correct value that should have been calculated, and round it to two decimal places.
Question (KO): 어떤 수를 18 로 나누어야 할 것을 잘못하여 1.8 로 나누었더니 몫은 21 이고, 나머지는 2 가 되었습니다. 바르게 계산했을 때의 몫을 반올림하여 소수 둘째 자리 까지 구하시오.

Answer: 2.21

Solution (Python):
var_a = 21
var_b = 1.8
var_c = var_a * var_b
var_d = 2
var_e = var_c + var_d
var_f = 18
var_g = var_e / var_f
var_h = 2
var_i = round(float(var_g)+1e-10, var_h)
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): You want to plant trees at intervals of 3 meters (m) around the land in the shape of an equilateral triangle with a side length of 10 meters (m). How many trees do you need?
Question (KO): 한 변의 길이가 10미터(m)인 정삼각형 모양의 땅 둘레에 3미터(m) 간격으로 나무를 심으려고 합니다. 나무는 몇 그루 필요합니까?

Answer: 10

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

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

Answer: 35.8

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

Question (EN): There are three circles (a), (b), and (c). The areas of the circles are 48 square centimeters (cm2), 108 square centimeters (cm2), and 75 square centimeters (cm2), respectively. If pi is 3, how many centimeters (cm) is the length of the diameter of the largest circle minus the length of the diameter of the smallest circle?
Question (KO): 세 원 (가), (나), (다)가 있습니다. 원의 넓이는 각각 48제곱센티미터(㎠), 108제곱센티미터(㎠), 75제곱센티미터(㎠)입니다. 원주율을 3으로 계산했을 때 가장 큰 원의 지름의 길이에서 가장 작은 원의 지름의 길이를 뺀 값은 몇 센티미터(㎝)입니까?

Answer: 2

Solution (Python):
var_a = 48
var_b = 3
var_c = var_a / var_b
var_d = 1
var_e = 2
var_f = var_d / var_e
var_g = var_c ** var_f
var_h = 108
var_i = 3
var_j = var_h / var_i
var_k = 1
var_l = 2
var_m = var_k / var_l
var_n = var_j ** var_m
var_o = 75
var_p = 3
var_q = var_o / var_p
var_r = 1
var_s = 2
var_t = var_r / var_s
var_u = var_q ** var_t
list_a= []
if "/" in str(var_u):
    var_u = eval(str(var_u))
list_a.append(var_u)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_a.append(var_n)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
list_a.reverse()
var_v = 1
list_b=list_a.copy()
list_b.sort()
var_w = list_b[-var_v]
var_x = 1
list_c=list_a.copy()
list_c.sort()
var_y = list_c[var_x-1]
var_z = var_w - var_y
print(int(var_z))
Category: Correspondence

Question (EN): A number divided by 16 equals 16 multiplied by 8. Find a number.
Question (KO): 어떤 수를 16으로 나눈 값은 16에 8을 곱한 값과 같습니다. 어떤 수를 구하시오.

Answer: 2048

Solution (Python):
var_a = 8
var_b = 16
var_c = var_a * var_b
var_d = 16
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Youngchul is taking 4 classes today: Korean, Mathematics, English, and Science. He listens to Mathematics first before Korean, and English later than Korean but before Science. Find the class he takes at last.
Question (KO): 영철이는 오늘 국어, 수학, 영어, 과학 4가지 수업을 듣는다. 국어보다 수학을 먼저 듣고 국어보다 영어를 늦게 듣고 과학보다 영어를 먼저 듣는다. 가장 늦게 듣는 수업을 구하시오.

Answer: Science

Solution (Python):
var_a = 'Korean'
var_b = 'Mathematics'
var_c = 'English'
var_d = 'Science'
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 = 'Korean'
var_f = 'Mathematics'
var_g = '>'
var_h = 'Korean'
var_i = 'English'
var_j = '<'
var_k = 'Science'
var_l = 'English'
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 = 1
var_o = list_c[var_n-1]
print(var_o)
Category: Comparison

Question (EN): You want to divide 1 liter (L) of water and 3 liters (L) of water equally into bottles of the same shape and size. If 1 liter (L) of water is divided equally into 2 (A) bottles and 3 liters (L) of water is divided equally into 4 (B) bottles, which bottle has more water, bottle A or bottle B?
Question (KO): 물 1리터(L)와 물 3리터(L)를 모양과 크기가 같은 병에 각각 똑같이 나누어 담으려고 합니다. 물 1리터(L)를 병 가 2개에, 물 3리터(L)를 병 나 4개에 남김없이 똑같이 나누어 담을 때, 병 가와 병 나 중 어느 병에 물이 더 많을까요?

Answer: (B)

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 = 1
var_d = 2
var_e = var_c * var_d
var_f = 3
var_g = 4
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: Arithmetic calculation

Question (EN): There are 135.1 liters (L) of water. How many water bottles can be filled if you divide the water into 7 liters (L) water bottles?
Question (KO): 물 135.1리터(L)가 있습니다. 이것을 7리터(L)들이 물통으로 나누어 담는다면 가득 채울 수 있는 물통은 몇 개입니까?

Answer: 19

Solution (Python):
var_a = 135.1
var_b = 7
var_c = var_a // var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are four times as many chickens as ducks raised at Minyoung's house. There are 17 more ducks than rabbits. If there are 8 rabbits in Minyoung's house, how many chickens, ducks, and rabbits are there in Minyoung's house in total?
Question (KO): 민영이네 집에서 기르는 오리의 4배 만큼 닭이 있습니다. 오리는 토끼보다 17마리 많습니다. 민영이네 집에서 기르는 토끼가 8마리일 때, 민영이네 집에서 기르는 닭, 오리, 토끼는 모두 몇 마리입니까?

Answer: 133

Solution (Python):
var_a = 8
var_b = 8
var_c = 17
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 4
var_g = 8
var_h = 17
var_i = var_g + var_h
var_j = var_f * var_i
var_k = var_e + var_j
print(int(var_k))
Category: Possibility

Question (EN): Find the number of odd numbers that are 30 or less among the two-digit natural numbers formed by arranging two different numbers from the ten numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
Question (KO): 10개의 숫자 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 중 서로 다른 두 개를 택하여 일렬로 나열하여 만든 두 자리의 자연수 중 30 이하의 홀수의 개수를 구하시오.

Answer: 9

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
var_f = 5
var_g = 6
var_h = 7
var_i = 8
var_j = 9
list_a= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_a.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
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_k = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_k))
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_l = 30
list_c = []
for i in list_b:
    if i <= var_l:
        list_c.append(i)
var_m = 2
list_d = []
var_m = int(var_m)
for i in list_c:
    i = int(i)
    if i % var_m == 0:
        list_d.append(i)
list_e = list(set(list_c) - set(list_d))
var_n = len(list_e)
print(int(var_n))
Category: Correspondence

Question (EN): Adding all the digits of the three-digit number gives 12. How many of these three-digit numbers are there?
Question (KO): 세 자리 수의 모든 자리수를 더했더니 12가 되었습니다. 이러한 세 자리 수는 모두 몇 개입니가?

Answer: 66

Solution (Python):
var_a = 100
var_b = 1000
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
list_b=[]
for i in list_a:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_b.append(var_f)
var_g = 12
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = 12
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = len(list_d)
print(int(var_i))
Category: Correspondence

Question (EN): 6AB-41=591 is true. What is A, where 6AB is three-digit number?
Question (KO): 6AB-41=591이 성립합니다. A는 무엇인가요?

Answer: 3

Solution (Python):
var_a = '6AB-41=591'
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): 4 out of 40 apples were thrown away because they were rotten. If you put the remainder equally into 4 boxes, how many should you put per box?
Question (KO): 40개의 사과 중 4개가 썩어서 버렸습니다. 나머지를 4개의 상자에 똑같이 나누어 담는다면 몇 개씩 담아야합니까?

Answer: 9

Solution (Python):
var_a = 40
var_b = 4
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): Each side of the cube has a number from 1 to 6 written on it. The sum of the numbers written on the two parallel sides of this cube is 7. Find the value of the number written on the parallel side to the side with 5 on it being multiplied by 5.
Question (KO): 정육면체의 각 면에는 1부터 6까지의 수가 하나씩 쓰여 있습니다. 이 정육면체에서 서로 평행한 두 면에 쓰여진 수의 합은 7입니다. 5와 5가 쓰여진 면과 평행한 면에 쓰여진 수의 곱은 얼마인지 구하시오.

Answer: 10

Solution (Python):
var_a = 5
var_b = 7
var_c = 5
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If 5 people shake each other's hand once, how many times will they shake hands?
Question (KO): 5명의 사람이 서로 한번씩 악수를 한다면 악수는 몇 번 하게되는가?

Answer: 10

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

Question (EN): There are 28 persimmons and 32 strawberries. If you give one person 4 of any kind, how many people can you give them?
Question (KO): 감 28개와 딸기 32개가 있습니다. 한명에게 종류 상관없이 4개씩 준다면 몇명에게 줄 수 있습니까?

Answer: 15

Solution (Python):
var_a = 28
var_b = 32
var_c = var_a + var_b
var_d = 4
var_e = var_c // var_d
print(int(var_e))
Category: Geometry

Question (EN): The surface area of one cube is 150 square centimeters (cm2). Find the volume.
Question (KO): 한 정육면체의 겉넓이는 150제곱센티미터(㎠)이다. 부피를 구하시오.

Answer: 125

Solution (Python):
var_a = 150
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 3
var_g = var_e ** var_f
print(int(var_g))
Category: Geometry

Question (EN): The World Health Organization (WHO) recommends that adults drink 2000 cubic centimeters (cm3) of water per day to maintain their health. A cuboid-shaped water container with a bottom area of 50 square centimeters (cm2) is intended to contain the recommended amount of water for an adult per day. How many centimeters (cm) high should the water be in the bucket?
Question (KO): 세계보건기구인 WHO 에서 우리 몸의 건강을 유지하기 위해 성인 기준으로 하루에 2000세제곱센티미터(㎤)만큼의 물을 마시는 것을 권장하고 있습니다. 밑면의 넓이가 50제곱센티미터(㎠)인 직육면체 모양의 물통에 성인 한 명의 하루 권장량만큼 물을 담으려고 합니다. 물통에 물을 몇 센티미터(㎝) 높이까지 넣어야 합니까?

Answer: 40

Solution (Python):
var_a = 2000
var_b = 50
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): A number is equal to 30 divided by 3 plus 2. What is the value of 2 added to the number?
Question (KO): 어떤 수는 30에서 3더하기 2를 나눈 값이다. 어떤 수에 2를 더하면 얼마인지 구하시오.

Answer: 8

Solution (Python):
var_a = 30
var_b = 2
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: Correspondence

Question (EN): The five-digit number 1A23B is a multiple of 12. How many possible A are there?
Question (KO): 다섯자리 수 1A23B는 12의 배수이다. 가능한 A는 모두 몇 가지인가?

Answer: 7

Solution (Python):
var_a = '1A23B'
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 = 12
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 = '1A23B'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Yurim drank 2 liters (l) and 600 milliliters (ml) of Coke during the day, and Ji-in drank 3700 milliliters (ml) of cider. How many milliliters (ml) did the two drink today?
Question (KO): 유림이는 오늘 하루 동안 콜라를 2리터(L) 600밀리리터(㎖) 마셨고, 지인이는 사이다를 3700밀리리터(㎖) 마셨습니다. 두 사람이 오늘 마신 음료수는 총 몇 밀리리터(㎖)일까요?

Answer: 6300

Solution (Python):
var_a = 2
var_b = 1000
var_c = var_a * var_b
var_d = 600
var_e = var_c + var_d
var_f = 3700
var_g = var_e + var_f
print(int(var_g))
Category: Correspondence

Question (EN): There are three consecutive natural numbers A, B, and C. If A is a multiple of 8, B is a multiple of 7, and C is a multiple of 5, find A the smallest of the numbers greater than 1000.
Question (KO): 연속된 세 자연수 A, B, C이 있다. A는 8의 배수, B는 7의 배수, C는 5의 배수라고 할 때, 1000보다 큰 수 중 가장 작은 A를 구하여라.

Answer: 1008

Solution (Python):
var_a = 1000
var_b = 1
var_c = var_a + var_b
var_d = 9999
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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): The sum of three consecutive natural numbers is 48. What is the product of the largest and smallest of these 3 numbers?
Question (KO): 3개의 연속된 자연수의 합이 48입니다. 이 3개의 수 중에서 가장 큰 수와 가장 작은 수의 곱은 얼마입니까?

Answer: 255

Solution (Python):
var_a = 48
var_b = 3
var_c = var_a / var_b
var_d = 3
var_e = 2
var_f = var_d // var_e
var_g = var_c + var_f
var_h = 48
var_i = 3
var_j = var_h / var_i
var_k = 3
var_l = 2
var_m = var_k // var_l
var_n = var_j - var_m
var_o = var_g * var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): I ate 5 persimmons on Chuseok, but there are 12 left. How many persimmons were there at first before eating them?
Question (KO): 추석에 감을 5개 먹었더니 12개가 남았습니다. 감을 먹기 전 처음에 있던 감은 몇 개입니까?

Answer: 17

Solution (Python):
var_a = 12
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): A stationery store offers a 1,200 won discount for purchases worth 8,000 won. How much discount do you get if you buy something worth 15,000 won at this stationery store?
Question (KO): 어느 문구점에서 물건을 판매할 때 8000원어치를 사면 1200원을 할인해 준다고 합니다. 이 문구점에서 15000원어치 물건을 사면 얼마를 할인받습니까?

Answer: 2250

Solution (Python):
var_a = 1200
var_b = 8000
var_c = var_a / var_b
var_d = 15000
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): There are different numbers A, B, and C. A is 4 less than 9, B is 5 more than A, and 8 less than C is 1. What is B minus C?
Question (KO): 서로 다른 수 A, B, C가 있습니다. A는 9보다 4 작은 수이고, B는 A보다 5 큰 수이고, C보다 8 작은 수는 1입니다. 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: Possibility

Question (EN): What is the fifth smallest three-digit number that can be formed by using single digit multiples of 3?
Question (KO): 한 자리의 3의 배수를 중복으로 사용하여 만들 수 있는 세 자리 수 중 다섯 번째로 작은 수는 무엇입니까?

Answer: 366

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 = 3
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 = 3
list_c = [str(i) for i in list_b]
list_c = list(itertools.product(list_c, repeat=var_e))
list_c = [''.join(num_list) for num_list in list_c]
list_c = [str_num for str_num in list_c if str_num[0] != '0']
list_c = [float(i) for i in list_c]
var_f = 5
list_d=list_c.copy()
list_d.sort()
var_g = list_d[var_f-1]
print(int(var_g))
Category: Geometry

Question (EN): A new cuboid was created by doubling the length of each corner of a cuboid measuring 28 centimeters (cm) wide, 24 centimeters (cm) long, and 19 centimeters (cm) high. How many times the volume of the newly created cuboid is the volume of the original cuboid?
Question (KO): 가로가 28센티미터(㎝), 세로가 24센티미터(㎝), 높이가 19센티미터(㎝)인 직육면체의 각 모서리의 길이를 2배로 늘여서 새로운 직육면체를 만들었습니다. 새로 만든 직육면체의 부피는 처음 직육면체의 부피의 몇 배입니까?

Answer: 8

Solution (Python):
var_a = 28
var_b = 2
var_c = var_a * var_b
var_d = 24
var_e = var_c * var_d
var_f = 2
var_g = var_e * var_f
var_h = 19
var_i = var_g * var_h
var_j = 2
var_k = var_i * var_j
var_l = 28
var_m = 24
var_n = var_l * var_m
var_o = 19
var_p = var_n * var_o
var_q = var_k // var_p
print(int(var_q))
Category: Possibility

Question (EN): Using the four digits 1, 5, 6, and 9 once, find out the largest three-digit number with 1 in the tens place.
Question (KO): 4개의 숫자 1, 5, 6, 9를 한 번씩 사용하여 십의 자리 숫자가 1인 가장 큰 세 자리 수를 구하시오.

Answer: 916

Solution (Python):
var_a = 1
var_b = 5
var_c = 6
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 = 10
var_g = 1
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 = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))
Category: Geometry

Question (EN): There are two identical magnets in the shape of a rectangle. If you attach two magnets horizontally, the total circumference is 70 centimeters (cm) and the length is 15 centimeters (cm). Find the area of one magnet.
Question (KO): 직사각형 모양의 똑같은 자석이 두 개가 있습니다. 자석 두개를 가로로 이어 붙이면 전체 둘레가 70센티미터(㎝)이고, 세로가 15센티미터(㎝)입니다. 자석 하나의 넓이를 구하시오.

Answer: 150

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

Question (EN): Find the average of all natural numbers from 1 to 100 where the units digit is 0.
Question (KO): 1부터 100까지의 자연수 중 일의 자리 수가 0인 수들의 평균을 구하시오.

Answer: 55

Solution (Python):
var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 1
var_e = 0
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if (i//var_d)%10 == var_e:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)/len(list_b)
print(int(var_f))
Category: Possibility

Question (EN): Select two different colors: a yellow marble, a white marble, a red marble, a purple marble, a green marble, and a blue marble. Find the number of possible selections.
Question (KO): 노란색 구슬, 흰색 구슬, 빨간색 구슬, 보라색 구슬, 초록색 구슬, 파란색 구슬 중에서 서로 다른 색상으로 두 개를 고릅니다. 고를 수 있는 방법의 개수를 구하시오.

Answer: 15

Solution (Python):
var_a = 'yellow'
var_b = 'white'
var_c = 'red'
var_d = 'purple'
var_e = 'green'
var_f = 'blue'
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 = len(list_a)
var_h = 2
var_i = 1
var_g = int(var_g)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_g-i)
for i, elem in enumerate(range(var_h)):
    var_i = var_i / (i+1)
print(int(var_i))
Category: Geometry

Question (EN): How many chocolates are placed around the perimeter if the chocolates are arranged in a regular pattern so that there are no gaps in a square with 6 per side?
Question (KO): 초콜릿을 한 변에 6개씩 있는 정사각형이 되도록 빈틈없이 규칙적으로 늘어놓았다면, 둘레에 놓인 초콜릿은 몇 개입니까?

Answer: 20

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