philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): When 5 people V, W, X, Y, and Z are lined up, find the number of ways to put X first and Y and Z next to each other.
Question (KO): V, W, X, Y, Z 5명을 한 줄로 세울 때, X를 제일 앞에, Y와 Z를 이웃하게 세우는 경우의 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 'V'
var_b = 'W'
var_c = 'X'
var_d = 'Y'
var_e = 'Z'
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 = 'X'
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_g = 'Y'
list_d= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_d.append(var_g)
list_d.reverse()
list_e = list(set(list_c) - set(list_d))
var_h = len(list_e)
var_i = len(list_e)
var_j = 1
var_h = int(var_h)
var_i = int(var_i)
for i, elem in enumerate(range(var_i)):
    var_j = var_j * (var_h-i)
var_k = 'Y'
var_l = 'Z'
list_f= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_f.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_f.append(var_k)
list_f.reverse()
var_m = len(list_f)
var_n = len(list_f)
var_o = 1
var_m = int(var_m)
var_n = int(var_n)
for i, elem in enumerate(range(var_n)):
    var_o = var_o * (var_m-i)
var_p = var_j * var_o
print(int(var_p))
Category: Geometry

Question (EN): The bottom of the square box is filled regularly with glass marbles. If the number of marbles placed in contact with the wall is 84, how many marbles are in contact with one wall?
Question (KO): 정사각형 모양의 상자 바닥에 유리구슬을 빈틈없이 규칙적으로 채워 넣었습니다. 벽면에 접촉하여 놓인 구슬에 개수가 84개였다면, 한 벽면과 접촉한 구슬의 개수는 몇 개인지 구하시오.

Answer: 22

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

Question (EN): The 9/16 meters (m) of a wooden stick weighs 1/9 kilogram (kg). Find the weight of a 3 meters (m) wooden stick in kilograms (kg).
Question (KO): 나무막대 9/16미터(m)의 무게가 1/9킬로그램(㎏) 입니다. 나무 막대 3미터(m)의 무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0.59

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

Question (EN): Four people, Jimin, Seokjin, Minyoung, and Taehyung, planted 6, 14, 9, and 15 flowers, respectively. How many is different between the number of flowers planted by the person who planted the most flowers and the person who planted the second fewest?
Question (KO): 지민, 석진, 민영, 태형 4명의 사람이 각각 6, 14, 9, 15송이의 꽃을 심었습니다. 이들 중 가장 꽃을 많이 심은 사람과 2번째로 적게 심은 사람의 심은 송이의 개수 차이는 얼마입니까?

Answer: 6

Solution (Python):
var_a = 6
var_b = 14
var_c = 9
var_d = 15
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 = 2
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: Comparison

Question (EN): There are three numbers A, B and C. A is 10 multiplied by 2 plus 9. A is 16 greater than B. B multiplied by 3 is C. What is the largest minus the smallest number?
Question (KO): 세 수 A, B, C가 있습니다. A는 10에 2를 곱하고 9를 더한 값입니다. A는 B보다 16 큰 수입니다. B에 3을 곱한 값이 C입니다. 가장 큰 수에서 가장 작은 수를 뺀 값은 얼마입니까?

Answer: 26

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

Question (EN): When Ji An and Shin Young play rock-paper-scissors twice, find the number of cases in which Shin-Young wins both times. (However, a draw may also come out.)
Question (KO): 지안이와 신영이가 가위바위보를 두 번 했을 때, 신영이가 두 번 다 이기는 경우의 수를 구하시오. (단, 무승부도 나올 수 있다.)

Answer: 9

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

Question (EN): There is a number that equals 2 when divided by 5. What is the result of this number minus 6?
Question (KO): 5로 나누면 2가 되는 어떤 수가 있습니다. 이 수에서 6을 빼면 얼마입니까?

Answer: 4

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

Question (EN): A certain number is less than 75 but greater than twice 35. Which number is it among 70, 71, 75, and 78?
Question (KO): 어떤 수는 75보다 작지만 35의 두 배 값보다 큽니다. 70, 71, 75, 78 중에서 어떤 수를 구하시오.

Answer: 71

Solution (Python):
var_a = 70
var_b = 71
var_c = 75
var_d = 78
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 = 75
list_b = []
for i in list_a:
    if i < var_e:
        list_b.append(i)
var_f = 35
var_g = 2
var_h = var_f * var_g
list_c = []
for i in list_b:
    if i > var_h:
        list_c.append(i)
var_i = 1
var_j = list_c[var_i-1]
print(int(var_j))
Category: Arithmetic calculation

Question (EN): When 13 is divided by A, the quotient is B and the remainder is 3. A and B are both natural numbers. What is the smallest number of possible Bs?
Question (KO): 13을 A로 나눴을 때 몫이 B, 나머지가 3이 였습니다. A와 B는 모두 자연수입니다. 이 때, 가능한 B 중 가장 작은 수는 무엇인가요?

Answer: 1

Solution (Python):
var_a = 1
print(int(var_a))
Category: Possibility

Question (EN): A book is said to have up to 413 pages. How many times will 4 be printed when page numbers are printed in this book?
Question (KO): 어떤 책이 413쪽까지 있다고 한다. 이 책에 쪽 수를 인쇄할 때 4는 몇 번 인쇄되는지 구하시오.

Answer: 95

Solution (Python):
var_a = 1
var_b = 413
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 = 4
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: Geometry

Question (EN): The width of a rectangle is 2 centimeters (cm) longer than its length, and its perimeter is 16 centimeters (cm). What is length of the width?
Question (KO): 어떤 직사각형의 가로의 길이가 세로의 길이보다 2 센티미터(㎝)만큼 길고, 둘레의 길이가 16 센티미터(㎝)이다. 가로의 길이는 얼마인가?

Answer: 5

Solution (Python):
var_a = 16
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): Yoongi collected 4, Jungkook collected 6 multiplied by 3, and Yuna collected 5. Who got the smallest number?
Question (KO): 윤기는 4, 정국이는 6에서 3을 곱한 수를 모았고, 유나는 5를 모았습니다. 누가 가장 작은 수를 모았나요?

Answer: Yoongi

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 = 4
var_e = 6
var_f = 3
var_g = var_e * var_f
var_h = 5
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): What is the sum of the numbers 7.52 and 12.23?
Question (KO): 숫자 7.52, 12.23에 대한 합은 얼마인가요?

Answer: 19.75

Solution (Python):
var_a = 7.52
var_b = 12.23
var_c = var_a + var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Possibility

Question (EN): How many possible ways are there to create a natural number less than or equal to 100 by selecting two out of five pieces of paper with the numbers 0, 2, 4, 5, and 8 written on them?
Question (KO): 0, 2, 4, 5, 8이 적힌 다섯 장의 종이 중 2장을 뽑아 100이하의 자연수를 만들 때, 총 몇 가지 경우가 가능한 지 구하시오.

Answer: 16

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
var_d = 5
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 = 2
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 = 100
list_c = []
for i in list_b:
    if i <= var_g:
        list_c.append(i)
var_h = len(list_c)
print(int(var_h))
Category: Possibility

Question (EN): Find the total sum of each digit of numbers that are a multiple of 9, and less than 80.
Question (KO): 80보다 작은 수 중에서 9의 배수의 각 자릿수의 합의 합을 구하시오.

Answer: 72

Solution (Python):
var_a = 1
var_b = 80
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)]
var_f = 9
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=""
for i in list_b:
    i = str(i)
    var_g = var_g + i
list_c = []
var_g = int(var_g)
while var_g//10 > 0:
    list_c.append(var_g%10)
    var_g = var_g//10
list_c.append(var_g%10)
list_c = list_c[::-1]
list_c = [float(i) for i in list_c]
var_h = sum(list_c)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Mingyu's mobile phone charges 30 won per ten seconds for a video call. If Mingyu made a video call with her grandmother for 2 minutes and 40 seconds, how much would it cost?
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: Possibility

Question (EN): When you press buttons 1, 2, and 3 once, how many different ways can you press them in a different order?
Question (KO): 버튼 1, 2, 3을 한 번씩 누른다고 할 때 순서를 다르게 누르는 방법은 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
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 = len(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): Rounding down 17A7 to the tens place gives 1710. Get A.
Question (KO): 17A7을 버림하여 십의 자리까지 나타내면 1710이 됩니다. A를 구하시오.

Answer: 1

Solution (Python):
var_a = '17A7'
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 = 1710
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 1710
var_d = 10
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = '17A7'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Jinhee tries to read the entire 220-page children's book in a week. How many pages at least should she read a day?
Question (KO): 진희는 한 권에 220쪽이 되는 동화책을 일주일 동안 다 읽으려고 한다. 하루에 적어도 몇 쪽씩 읽어야 하는가?

Answer: 32

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

Question (EN): There is a park in the shape of a square with sides measuring 8 meters (m) and 10 meters (m). Find the sum of the areas of the two parks.
Question (KO): 한 변의 길이가 각각 8미터(m), 10미터(m)인 정사각형 모양의 공원이 있습니다. 두 공원의 넓이의 합을 구하시오.

Answer: 164

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

Question (EN): You want to create a three-digit number by drawing three different numbers from 0, 1, 3, and 5. Find the sum of the largest and smallest possible numbers.
Question (KO): 0, 1, 3, 5 중에서 서로 다른 숫자 3개를 뽑아 세 자리 수를 만들려고 합니다. 만들 수 있는 수 중에서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 634

Solution (Python):
var_a = 0
var_b = 1
var_c = 3
var_d = 5
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
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: Geometry

Question (EN): A rectangle was made from a piece of string that was 50 centimeters (cm) long. The horizontal length is 13 centimeters (cm). What is the vertical length?
Question (KO): 길이가 50센티미터(㎝)인 끈으로 직사각형을 만들었습니다. 가로의 길이가 13센티미터(㎝)입니다. 세로의 길이는 얼마입니까?

Answer: 12

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

Question (EN): There are 20 children's books in a box. How many children's books are in the 5 boxes?
Question (KO): 동화책이 한 상자에 20권씩 들어 있습니다. 5상자에 들어 있는 동화책은 모두 몇 권입니까?

Answer: 100

Solution (Python):
var_a = 20
var_b = 5
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): After folding 45 sheets of colored paper, folded 18 more. How many sheets of colored paper are all folded?
Question (KO): 색종이 45장을 접은 후 다시 18장을 더 접었습니다. 접은 색종이는 모두 몇 장입니까?

Answer: 63

Solution (Python):
var_a = 45
var_b = 18
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): In the multiplication of two-digit numbers, the number 2 in the tens digit of the number being multiplied was misinterpreted as 6, resulting in a calculated value of 2496. When the correctly calculated value is 936, find the sum of the two two-digit numbers.
Question (KO): 두 자리 수끼리의 곱셈에서 곱하는 수의 십의 자리 숫자 2를 6으로 잘못 보고 계산한 값이 2496이 되었습니다. 바르게 계산한 값이 936일 때, 2개의 두 자리 수의 합을 구하시오.

Answer: 63

Solution (Python):
var_a = 2496
var_b = 936
var_c = var_a - var_b
var_d = 6
var_e = 2
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_c / var_h
var_j = 936
var_k = 2496
var_l = 936
var_m = var_k - var_l
var_n = 6
var_o = 2
var_p = var_n - var_o
var_q = 10
var_r = var_p * var_q
var_s = var_m / var_r
var_t = var_j / var_s
list_a= []
if "/" in str(var_t):
    var_t = eval(str(var_t))
list_a.append(var_t)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
list_a.reverse()
list_a = [float(i) for i in list_a]
var_u = sum(list_a)
print(int(var_u))
Category: Geometry

Question (EN): There are 54 square-shaped pieces of colored paper that can cover the face of a cube with edges measuring 12 centimeters (cm) without gaps. How many centimeters (cm) is one side of this sheet of paper?
Question (KO): 정사각형 모양의 색종이 54장으로 한 모서리가 12센티미터(㎝)인 정육면체의 면을 빈틈없이 덮을 수 있습니다. 이 색종이의 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 4

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
var_f = 54
var_g = var_e / var_f
var_h = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Geometry

Question (EN): There are 5 men whose arms are 1 meter (m) 70 centimeters (cm) when they are stretched out to the sides. If these men stand side by side with their arms extended and their fingertips connected along the long side of a rectangular swimming pool, and it is 80 centimeters (cm) shorter than the pool wall, how long is the longer side of the pool, in meters (m)?
Question (KO): 팔을 양쪽으로 쭉 벌렸을 때의 길이가 1미터(m) 70센티미터(㎝)인 남성이 5명 있습니다. 이 남성들이 직사각형 모양의 수영장의 긴 쪽 벽면을 따라 팔을 벌리고 손끝이 이어지도록 나란히 섰을 때 수영장의 벽면보다 80센티미터(㎝)가 짧았다면, 수영장의 긴 쪽 벽면의 길이는 몇 미터(m)입니까?

Answer: 9.3

Solution (Python):
var_a = 1
var_b = 100
var_c = var_a * var_b
var_d = 70
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 80
var_i = var_g + var_h
var_j = 100
var_k = var_i / var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Comparison

Question (EN): 912 is the value calculated correctly from multiplication of two digits. The calculated value is 2432 when the number 2 in the tens place of the multiplication number is incorrectly calculated as 6. Write the smaller one of the two two digit numbers.
Question (KO): 두 자리 수끼리의 곱셈에서 바르게 계산한 값이 912입니다. 이때 곱하는 수의 십의 자리 숫자 2를 6으로 잘못 보고 계산한 값은 2432입니다. 2개의 두 자리 수 중 더 작은 수를 쓰시오.

Answer: 24

Solution (Python):
var_a = 2432
var_b = 912
var_c = var_a - var_b
var_d = 6
var_e = 2
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_c / var_h
var_j = 912
var_k = 2432
var_l = 912
var_m = var_k - var_l
var_n = 6
var_o = 2
var_p = var_n - var_o
var_q = 10
var_r = var_p * var_q
var_s = var_m / var_r
var_t = var_j / var_s
list_a= []
if "/" in str(var_t):
    var_t = eval(str(var_t))
list_a.append(var_t)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
list_a.reverse()
var_u = 1
list_b=list_a.copy()
list_b.sort()
var_v = list_b[var_u-1]
print(int(var_v))
Category: Arithmetic calculation

Question (EN): There are 19 candy bags of 46 each, and several tins of sunflower seeds, each containing 170 seeds. If the number of candies and sunflower seeds added together gives the number 1894, how many tins of sunflower seeds 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: Geometry

Question (EN): Find the number of diagonals that can be drawn from the pentadecagon.
Question (KO): 십오각형에서 그을 수 있는 모든 대각선의 개수를 구하시오.

Answer: 90

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

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

Answer: 22

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 = 5
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 = 8
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 = 2
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 = len(list_d)
print(int(var_g))
Category: Correspondence

Question (EN): A is a natural number from 1 to 9. When 63×2>21×A, find the sum of all the numbers that can fit in A.
Question (KO): A는 1부터 9까지의 자연수입니다. 63×2>21×A일 때, A에 들어갈 수 있는 수를 모두 찾아 합을 구하시오.

Answer: 15

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

Question (EN): The father panda in the zoo weighs 145/4 kilograms (kg), and the mother panda is 47/10 kilograms (kg) lighter than the father panda. How many kilograms (kg) does the mother panda weigh?
Question (KO): 동물원에 있는 아빠 판다의 몸무게는 145/4킬로그램(㎏)이고, 엄마 판다는 아빠 판다보다 47/10킬로그램(㎏) 더 가볍습니다. 엄마 판다의 몸무게는 몇 킬로그램(㎏)입니까?

Answer: 31.55

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

Question (EN): You want to sell 180 apples in a mart divided equally into 6 baskets. If you sell apples for 200 won each, how much are the apples in a basket?
Question (KO): 마트에서 사과 180개를 6개의 바구니에 똑같이 나누어 담아 팔려고 합니다. 사과를 한 개에 200원에 판다면, 한 바구니에 담은 사과는 얼마입니까?

Answer: 6000

Solution (Python):
var_a = 180
var_b = 6
var_c = var_a / var_b
var_d = 200
var_e = var_c * var_d
print(int(var_e))