philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Fans A, B, C, D are turned on. B is stronger than A, and D is weaker than A. When A is weaker than C, which fan is turned at the weakest wind speed?
Question (KO): 선풍기 (가), (나), (다), (라)가 틀어져 있습니다. (나)는 (가)보다 바람세기가 세고, (라)는 (가)보다 바람세기가 약합니다. (가)는 (다)보다 바람세기가 약할 때, 가장 약한 바람세기로 틀어져 있는 선풍기는 무엇일까요?

Answer: D

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 = 'A'
var_g = '>'
var_h = 'A'
var_i = 'C'
var_j = '<'
var_k = 'D'
var_l = 'A'
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: Comparison

Question (EN): Songhee read 288 pages in 12 days, and Eunju read 243 pages in 9 days. Who read more in one day?
Question (KO): 송희는 12일 동안 288쪽의 책을 읽었고, 은주는 9일 동 안 243쪽의 책을 읽었습니다. 하루 동안 누가 더 많이 읽었습니까?

Answer: Eunju

Solution (Python):
var_a = 'Songhee'
var_b = 'Eunju'
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 = 288
var_d = 12
var_e = var_c / var_d
var_f = 243
var_g = 9
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: Possibility

Question (EN): Find the largest five-digit number that can be formed using 0, 4, 6, 7, and 8 only once.
Question (KO): 0, 4, 6, 7, 8 중에 한 번씩만 사용하여 만들 수 있는 다섯 자리 수 중에서 가장 큰 수를 구하시오.

Answer: 87640

Solution (Python):
var_a = 0
var_b = 4
var_c = 6
var_d = 7
var_e = 8
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 = 5
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
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_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print(int(var_h))
Category: Comparison

Question (EN): Jeongho's farm has chickens and pigs. If the sum of all the legs is 48, and there are 9 pigs, how many chickens are there on the farm?
Question (KO): 정호네 농장에는 닭과 돼지가 있습니다. 다리 수의 합은 48개이고, 돼지가 9마리 있다면 농장에는 닭이 몇 마리 있습니까?

Answer: 6

Solution (Python):
var_a = 48
var_b = 4
var_c = 9
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: Comparison

Question (EN): Three people are eating cake. Shinyoung ate 1/3, Seokgi 1/4, and Woong ate 1/5 of it. Who ate the most cake?
Question (KO): 세 사람이 케이크를 먹고 있다. 신영은 1/3, 석기는 1/4, 웅이은 1/5을 먹었다. 케이크를 가장 많이 먹은 사람은?

Answer: Shinyoung

Solution (Python):
var_a = 'Shinyoung'
var_b = 'Seokgi'
var_c = 'Woong'
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
var_e = 3
var_f = var_d / var_e
var_g = 1
var_h = 4
var_i = var_g / var_h
var_j = 1
var_k = 5
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): An elevator in a building has buttons with numbers from the 1st floor to the 54th floor. Find out how many times the number 5 appears on the button.
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: Arithmetic calculation

Question (EN): There are 19 boxes with 46 books in each box and several boxes with 170 pencils in each box. If the number of books and pencils is 1894 in total, how many boxes of pencils are there?
Question (KO): 한 바구니에 46개씩 들어있는 자두 바구니 19개와 한 바구니에 170개씩 들어있는 블루베리 몇 바구니가 있습니다. 바구니에 담긴 과일의 개수를 모두 합하면 1894개일 때, 블루베리 바구니는 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1894
var_b = 46
var_c = 19
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 170
var_g = var_e // var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): What is the difference between the largest and smallest natural numbers from 1 to 1000, when the sum of each digit of this number is 11?
Question (KO): 1부터 1000까지의 자연수 중에서 각 자릿수의 합이 11일 때, 가장 큰 수와 가장 작은 수의 차이는 무엇입니까?

Answer: 26

Solution (Python):
var_a = 1
var_b = 1000
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_b=[]
for i in list_a:
    var_d = 0
    i = int(i)
    while i//10 > 0:
        var_d = var_d + i%10
        i = i//10
    var_d = var_d + i%10
    list_b.append(var_d)
var_e = 11
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
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 1
list_d=list_b.copy()
list_d.sort()
var_j = list_d[var_i-1]
var_k = var_h - var_j
print(int(var_k))
Category: Correspondence

Question (EN): Sang-cheol gave Byeong-ji 2 battle cards, and the difference between Sang-cheol and Byeong-ji was 6. Find the difference between the two before Sang-cheol gave Byeong-ji battle cards. However, the number of battle cards Byeong-ji has is more than the number Sang-cheol has.
Question (KO): 상철이가 병지에게 딱지를 2개 주었더니 상철이와 병지가 가진 딱지의 차이가 6개입니다. 상철이가 병지에게 딱지를 주기 전에는 둘의 차이가 얼마였는지 구하시오. 단, 병지가 가진 딱지의 개수다 상철이가 가진 개수보다 더 많다.

Answer: 2

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

Question (EN): There are 6 more female students than male students in a club. If the total number of the club is 82, how many female students are there?
Question (KO): 어떤 동아리에 여학생이 남학생보다 6명이 더 많다. 동아리 총 인원이 82명 일 때, 여학생이 몇 명인지 구하시오.

Answer: 44

Solution (Python):
var_a = 82
var_b = 6
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 6
var_g = var_e + var_f
print(int(var_g))
Category: Geometry

Question (EN): How many line segments in a nonagon join any two vertices that are not adjacent to each other?
Question (KO): 구각형에서 서로 이웃하지 않은 두 꼭짓점을 이은 선분의 개수는 몇 개입니까?

Answer: 27

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

Question (EN): Choose the second smallest number among 5, 8, 4, 3, and 7.
Question (KO): 5, 8, 4, 3, 7중에서 2번째로 작은 숫자를 선택합니다.

Answer: 4

Solution (Python):
var_a = 5
var_b = 8
var_c = 4
var_d = 3
var_e = 7
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 = 2
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))
Category: Correspondence

Question (EN): A is a single digit number. Find A from the two-digit addition formula AA+AA=132.
Question (KO): A는 한 자리 수입니다. 두 자리 수끼리의 덧셈식 AA+AA=132에서 A를 구하시오.

Answer: 6

Solution (Python):
var_a = 'AA+AA=132'
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): Yoongi wanted to add 7 to a number but instead added 9 to get 30. Find the correct calculated value.
Question (KO): 윤기는 어떤 수에 7을 더하려고 합니다. 하지만 실수로 9를 더하였더니 결과는 30이 되었습니다. 바르게 계산한 결과를 구하세요.

Answer: 28

Solution (Python):
var_a = 30
var_b = 9
var_c = var_a - var_b
var_d = 7
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): How many 4-digit numbers are common multiples of 3 and 5?
Question (KO): 네 자리 수 중 3과 5의 공배수는 모두 몇 개 입니까?

Answer: 600

Solution (Python):
var_a = 1000
var_b = 9999
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 = 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 = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): A certain number should be multiplied by 3.6 and divided by 2, but when I mistakenly divided by 3.6, it became 2.5. Find the correctly calculated value.
Question (KO): 어떤 수에 3.6을 곱하고 2로 나누어야 하는데 잘못하여 3.6으로 나누었더니 2.5가 되었다. 바르게 게산한 값을 구하시오.

Answer: 16.2

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

Question (EN): If a train that travels 15.5 kilometers (km) in 10 minutes runs at a constant speed without stopping for 46 minutes, how many kilometers (km) will it travel?
Question (KO): 10 분에 15.5킬로미터(㎞) 를 달리는 기차가 46 분 동안 쉬지 않고 같은 빠르기로 달리면 몇 킬로미터(㎞)를 달린 것입니까?

Answer: 71.3

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

Question (EN): The sum of five consecutive natural numbers is 60. Find the third number.
Question (KO): 연속하는 5개의 자연수의 합이 60입니다 세번째 수를 구하시오

Answer: 12

Solution (Python):
var_a = 60
var_b = 0
var_c = 5
var_d = 1
var_e = var_c - var_d
var_f = 1
list_a = [i for i in range(var_b, var_e + 1, var_f)]
list_a = [float(i) for i in list_a]
var_g = sum(list_a)
var_h = var_a - var_g
var_i = 5
var_j = var_h / var_i
var_k = 3
var_l = 1
var_m = var_k - var_l
var_n = var_j + var_m
print(int(var_n))
Category: Correspondence

Question (EN): The math teacher gave us the two-digit addition formula A7+30=77 for the last problem. When Yuna says she got the answer right, what is the A that Yuna gave as the correct answer?
Question (KO): 수학 선생님이 마지막 문제로 두 자리 수 덧셈식 A7+30=77 을 내줬다. 유나가 정답을 맞췄다고 할 때, 유나가 정답으로 낸 A는 무엇인가요?

Answer: 4

Solution (Python):
var_a = 'A7+30=77'
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: Geometry

Question (EN): The surface area of a cube is 96 square centimeters (cm2). I used 8 of these cubes to make a large cube. Find the volume of the large cube made.
Question (KO): 어떤 정육면체의 겉넓이는 96제곱센티미터(㎠)입니다. 이 정육면체 8개를 이용해 큰 정육면체를 만들었습니다. 만들어진 큰 정육면체의 부피를 구하시오.

Answer: 512

Solution (Python):
var_a = 96
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 8
var_g = 2
var_h = var_f / var_g
var_i = 2
var_j = var_h / var_i
var_k = var_e * var_j
var_l = 3
var_m = var_k ** var_l
print(int(var_m))
Category: Comparison

Question (EN): Among the natural numbers less than 100, the common multiples of 4 and 6 are written from left in order of magnitude. What is the 7th number from the left?
Question (KO): 100보다 작은 자연수 중 4와 6의 공배수를 작은 순서대로 왼쪽부터 썼습니다. 왼쪽에서 7번째에 있는 수는 무엇입니까?

Answer: 84

Solution (Python):
var_a = 0
var_b = 1
var_c = var_a + var_b
var_d = 100
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 = 4
var_i = 6
var_j = var_i * var_h / math.gcd(int(var_i), int(var_h))
list_b = []
var_j = int(var_j)
for i in list_a:
    i = int(i)
    if i % var_j == 0:
        list_b.append(i)
var_k = 7
var_l = list_b[var_k-1]
print(int(var_l))
Category: Arithmetic calculation

Question (EN): The straight line drawn by the Yoojeong is 3 millimeters (mm) shorter than 31 centimeters (cm). Write the length of the straight line drawn by Yoojeong in millimeters (mm).
Question (KO): 유정이 그린 직선은 31센티미터(㎝)보다 3밀리미터(㎜) 짧습니다. 유정이 그은 직선의 길이를 밀리미터(㎜)로 써보시오

Answer: 307

Solution (Python):
var_a = 31
var_b = 10
var_c = var_a * var_b
var_d = 3
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Hyunsu harvested apples from the apple farm and tried to divide them equally into 8 boxes. But 8 boxes were not enough, and he needed 2 more boxes. So he put 1 more apple in each box, and now there are 4 apples left. How many apples did Hyunsu harvest?
Question (KO): 현수는 사과 농장에서 사과를 수확하고 8상자에 똑같이 나누어 담으려 하였습니다. 그런데 상자가 2개 부족해서 한 상자에 1개씩 사과를 더 담았더니 사과가 4개 남았습니다. 현수가 수확한 사과는 모두 몇 개입니까?

Answer: 40

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

Question (EN): Five bags each contain 5 marbles, and another bag contains 8 marbles. How many marbles are in all 6 bags?
Question (KO): 주머니 5개에는 구슬이 5개씩 들어 있고, 다른 주머니 1개에는 구슬이 8개 들어 있습니다. 6개의 주머니에 들어 있는 구슬은 모두 몇 개입니까?

Answer: 33

Solution (Python):
var_a = 5
var_b = 5
var_c = var_a * var_b
var_d = 1
var_e = 8
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Find the smallest multiple of 7 greater than 500.
Question (KO): 500보다 큰 7의 배수 중 최소값을 구하시오.

Answer: 504

Solution (Python):
var_a = 1
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 500
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
var_e = 7
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 = 1
list_d=list_c.copy()
list_d.sort()
var_g = list_d[var_f-1]
print(int(var_g))
Category: Possibility

Question (EN): What is the largest two-digit number made by the two numbers 3 and 6? Note: you cannot use the same number multiple times.
Question (KO): 두 수 3과 6으로 만드는 가장 큰 두 자리 수는 얼마입니까? 단, 같은 숫자를 여러 번 쓸 수 없습니다.

Answer: 63

Solution (Python):
var_a = 6
var_b = 3
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)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[-var_d]
print(int(var_e))
Category: Geometry

Question (EN): There is a hat that has 14 corners and shaped like a pyramid. Find the number of vertices of this hat.
Question (KO): 모서리가 14개이고, 각뿔의 모양을 한 모자가 있습니다. 이 모자의 꼭짓점 개수를 구하시오.

Answer: 8

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

Question (EN): The sum of 4 sides of a rectangle is equal to 50 centimeters (cm). If the length of this rectangle is 13 centimeters (cm), how many square centimeters (cm2) is the area of the rectangle?
Question (KO): 4변의 길이의 합이 50센티미터(㎝)인 직사각형이 있습니다. 이 직사각형의 세로의 길이가 13센티미터(㎝)일 때, 직사각형의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 156

Solution (Python):
var_a = 50
var_b = 2
var_c = var_a / var_b
var_d = 13
var_e = var_c - var_d
var_f = 13
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): When you add 3 to a number, multiply it by 5, and divide it by 8, the quotient is 156 and the remainder is 2. Find the number.
Question (KO): 어떤 수에 3을 더하고 5를 곱한 뒤 8로 나누었더니 몫이 156이고 나머지가 2였습니다. 어떤 수를 구하시오.

Answer: 247

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

Question (EN): Kiyoung and Gicheol are playing a game of making three-digit numbers with number magnets 1, 6, and 8. When Kiyoung made the largest possible number, and Kicheol made the third smallest number, find the sum of the numbers made by Kiyoung and Kicheol.
Question (KO): 기영이와 기철이는 숫자 자석 1, 6, 8로 세 자리 수를 만드는 놀이를 하고 있습니다. 기영이는 만들 수 있는 가장 큰 수를 만들었고, 기철이는 세 번째로 작은 수를 만들었을 때, 기영이과 기철이가 만든 수의 합을 구하시오.

Answer: 1479

Solution (Python):
var_a = 1
var_b = 6
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 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 = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Possibility

Question (EN): How many common three-digit multiples of 6 and 9 are 4 or less and 0 or more and different in each digit?
Question (KO): 6과 9의 공통된 세 자리 배수 중 각 자리가 4이하 0 이상이고 , 각 자리의 숫자가 모두 다른 수는 총 몇 가지인가?

Answer: 4

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
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_g = 6
var_h = 9
var_i = var_h * var_g / math.gcd(int(var_h), int(var_g))
list_c = []
var_i = int(var_i)
for i in list_b:
    i = int(i)
    if i % var_i == 0:
        list_c.append(i)
var_j = len(list_c)
print(int(var_j))