philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Suppose that you throw the ball 4 times and count the points. How many different points can you get given that you get 3 points and 2 points when hitting the red circle and green circle, and 1 point if you miss the target?
Question (KO): 공을 4번 던져 점수를 합산하는 놀이를 합니다. 빨간색 원, 초록색 원, 원을 맞히지 못한 경우 각각 3점, 2점, 1점을 얻을 때 얻을 수 있는 서로 다른 점수는 모두 몇 가지인지 구하시오.

Answer: 81

Solution (Python):
var_a = 3
var_b = 2
var_c = 1
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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)
var_f = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Find the sum of the common divisors of 32 and 24.
Question (KO): 32와 24의 공약수들의 총합을 구하시오.

Answer: 15

Solution (Python):
var_a = 32
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 24
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) & set(list_b))
list_c = [float(i) for i in list_c]
var_c = sum(list_c)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Find the greatest common divisor of 24 and 36.
Question (KO): 24와 36의 최대 공약수를 구하시오.

Answer: 12

Solution (Python):
var_a = 24
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 36
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) & set(list_b))
var_c = 1
list_d=list_c.copy()
list_d.sort()
var_d = list_d[-var_c]
print(int(var_d))
Category: Possibility

Question (EN): There is a box containing 5 balls of different colors. How many ways can 3 balls be drawn from this box?
Question (KO): 서로 다른 색의 5개의 공이 들어 있는 상자가 있습니다. 이 상자에서 3개의 공을 뽑는 경우는 모두 몇 가지입니까?

Answer: 10

Solution (Python):
var_a = 5
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): There is a 15 liter (L) barrel with 7 liters (L) and 200 milliliters (㎖) of petroleum. At least how many times does a 600 milliliters (mL) of container must be poured into the barrel to completely fill this with oil?
Question (KO): 15리터(L) 들이의 통에 석유가 7리터(L) 200밀리리터(㎖) 들어있습니다. 이 통에 석유를 가득 채우기 위해서는 600밀리리터(㎖) 용기로 최소한 몇 번 부어야 합니까?

Answer: 13

Solution (Python):
var_a = 15
var_b = 1000
var_c = var_a * var_b
var_d = 7
var_e = 1000
var_f = var_d * var_e
var_g = 200
var_h = var_f + var_g
var_i = var_c - var_h
var_j = 600
var_k = var_i / var_j
var_l = 1
var_m=int(((var_k+9*10**(var_l-2))//(10**(var_l-1)))*10**(var_l-1))

print(int(var_m))
Category: Correspondence

Question (EN): Yuna wants to multiply 8 by some number. If the result of multiplying 4 by any number by mistake is 60, find the correct result.
Question (KO): 유나는 8에 어떤 수를 곱하려고 합니다. 실수로 4에 어떤 수를 곱했을 때의 결과가 60이라면 바르게 계산한 결과를 구하세요.

Answer: 120

Solution (Python):
var_a = 8
var_b = 60
var_c = 4
var_d = var_b / var_c
var_e = var_a * var_d
print(int(var_e))
Category: Correspondence

Question (EN): There is a two-digit natural number whose tens digit is 2 and the units digit is A. If you exchange each digit, it is 9 greater than the initial number. Find A.
Question (KO): 십의 자리 숫자가 2이고 일의 자리 숫자가 A인 두 자리 수 자연수가 있다. 각 자리의 숫자를 바꾸면 처음 수보다 9가 크다고 할 때, A를 구하시오.

Answer: 3

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

Question (EN): Find the number of vertices of the truncated square pyramid.
Question (KO): 사각뿔대의 꼭지점의 개수를구하시오.

Answer: 8

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

Question (EN): There is a train from Seoul to Busan. 300 people got off more than two-fifths of the first stop at the first stop, and 200 people got off less than half of the remaining people at the second stop. If the rest of the people got off at Busan and the total number of people who got off at Busan was 800, how many people got on at first?
Question (KO): 서울에서 부산으로 가는 기차가 있습니다. 300명은 첫 번째 정류장에서 첫 번째 정류장의 5분의 2 이상 내렸고, 200명은 두 번째 정류장에서 남은 인원의 절반도 채 내지 못했다. 나머지 사람들이 부산에서 내렸고 부산에서 내린 총 인원이 800명이라면 처음에 몇 명이 탔을까?

Answer: 2500

Solution (Python):
var_a = 800
var_b = 200
var_c = var_a - var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 300
var_i = var_g + var_h
var_j = 1
var_k = 2
var_l = 5
var_m = var_k / var_l
var_n = var_j - var_m
var_o = var_i / var_n
print(int(var_o))
Category: Comparison

Question (EN): Mihye worked out for 1 and 5/12 hours and Seongjae did it for 1 and 3/12 hours. Who has been exercising longer?
Question (KO): 운동을 미혜는 1과 5/12시간 동안 하고 성재는 1과 3/12시간 동안 했습니다. 운동을 더 오랫동안 한 사람은 누구일까요?

Answer: Mihye

Solution (Python):
var_a = 'Mihye'
var_b = 'Seongjae'
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 = 0.4166666666666667
var_e = var_c + var_d
var_f = 1
var_g = 0.25
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): The perimeter of a rectangle made of wire is 242.7 cm (cm). Provided there are 5 identical rectangles, Find how many centimeters (cm) of the wire was used to make these squares.
Question (KO): 철사로 만든 사각형의 둘레가 242.7센티미터(㎝) 이다. 똑같은 사각형이 5개 있을 때, 이 사각형에 들어간 철사는 모두 몇 센티미터(㎝)입니까?

Answer: 1213.5

Solution (Python):
var_a = 242.7
var_b = 5
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Correspondence

Question (EN): During a math test, Young-hee mistakenly added 0.42 which should have been subtracted, and submitted 0.9 as the answer. What is the original correct answer?
Question (KO): 영희는 수학 시험을 보다 0.42를 빼야 할 것을 잘못하여 더했더니 0.9를 답으로 제출했습니다. 원래 정답은 얼마입니까?

Answer: 0.06

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

Question (EN): Play rock-paper-scissors twice. In this case, how many times  can one person lose twice in a row?
Question (KO): 가위바위보를 두 번 합니다. 이 때, 한명이 두 번 연속으로 지는 경우는 몇 가지 입니까?

Answer: 9

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

Question (EN): 29 tangerines were divided into 8 boxes, each equal in number, and 5 tangerines remained. How many tangerines are there in one box?
Question (KO): 귤 29개를 8개의 상자에 같은 개수씩 나누어 담았더니 5개의 귤이 남았습니다. 상자의 개수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 29
var_b = 5
var_c = var_a - var_b
var_d = 8
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): Customers stand in a line and board the bus in turn. If there are 10 people behind the first passenger, how many people are in a line?
Question (KO): 손님들이 한 줄로 서서 차례대로 버스에 탑니다. 제일 먼저 타는 손님 뒤에 10명의 사람이 있다면 한 줄로 선 사람들은 모두 몇 명입니까?

Answer: 11

Solution (Python):
var_a = 10
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): There are two bowling balls. The red ball weighs 1.49 kilograms (kg) and the blue ball weighs 9/20 kilograms (kg). Which color ball is heavier?
Question (KO): 두 볼링공이 있습니다. 빨간색 공은 1.49킬로그램(㎏), 파란색 공은 9/20킬로그램(㎏)입니다. 어느 색 공이 더 무거울까요?

Answer: red

Solution (Python):
var_a = 'red'
var_b = 'blue'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 1.49
var_d = 0.45
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h)
Category: Arithmetic calculation

Question (EN): There are two coin banks. There are 8,000 won in the red coin bank and 5,000 won in the yellow coin bank, and 300 won and 500 won in each coin bank every day. How much money is in the red coin bank on the day when the money in both coin banks is equal?
Question (KO): 두 개의 저금통이 있다. 빨간 저금통에는 8000원이, 노란 저금통에는 5000이 들어 있고, 매일 각각 300원, 500원씩 넣는다. 두 저금통에 들어 있는 금액이 같아지는 날에 빨간 저금통에는 얼마가 들어 있는가?

Answer: 12500

Solution (Python):
var_a = 8000
var_b = 5000
var_c = var_a - var_b
var_d = 500
var_e = 300
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 300
var_i = var_g * var_h
var_j = 8000
var_k = var_i + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): If you change one of the five numbers, whose average is 8, to 8, the average becomes 9. What number was changed?
Question (KO): 평균이 8인 다섯 개의 수 중에 한개를 8로 바꾸니 평균이 9가 되었다.바꾼수는 원래 얼마인가?

Answer: 3

Solution (Python):
var_a = 8
var_b = 5
var_c = var_a * var_b
var_d = 9
var_e = 5
var_f = var_d * var_e
var_g = 8
var_h = var_f - var_g
var_i = var_c - var_h
print(int(var_i))
Category: Comparison

Question (EN): Namjoon was the second to arrive at school, and Jimin arrived after Namjoon and three more arrived. What place did Jimin arrive in?
Question (KO): 남준이는 학교에 2번째로 도착했고, 지민이는 남준이 다음으로 3명이 더 도착한 뒤에 학교에 도착했습니다. 지민이는 몇 번째로 도착했습니까?

Answer: 6

Solution (Python):
var_a = 2
var_b = 3
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): What is 7.31 minus 1/5?
Question (KO): 7.31에 1/5를 빼면 얼마인가요?

Answer: 7.11

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

Question (EN): The sum of 6 consecutive natural numbers is 105. Find the difference between the largest and smallest of that six natural numbers.
Question (KO): 연속하는 6개의 자연수의 합이 105입니다. 6개의 자연수 중에서 가장 큰 수와 가장 작은 수의 차를 구하시오.

Answer: 5

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): A certain number is divisible by 423, and the quotient is equal to 423 minus 421. What is the sum of 421 added to the certain number?
Question (KO): 어떤 수는 423으로 나누어 떨어지고, 이 때 몫은 423에서 421을 뺀 값과 같다. 어떤 수에 421을 더하면 얼마인지 구하시오.

Answer: 1267

Solution (Python):
var_a = 421
var_b = 423
var_c = 423
var_d = 421
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
print(int(var_g))
Category: Comparison

Question (EN): Find the number greater than 1.1 among the five numbers 1.4, 9/10, 1.2, 0.5 and 13/10, and find the number of that numbers.
Question (KO): 수 5개 1.4, 9/10, 1.2, 0.5, 13/10 중 1.1보다 큰 숫자를 구하고, 그 숫자들의 개수를 구하세요.

Answer: 3

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 = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

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

Answer: 10

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
print(int(var_j))
Category: Geometry

Question (EN): The volume of a cuboid is 36 cubic centimeters (cm3). What is the volume of a cube whose edges are doubled from the cuboid?
Question (KO): 어떤 직육면체의 부피가 36세제곱센티미터(㎤)이다. 이 직육면체 모서리를 2배로 늘린 정육면체의 부피가 얼마인지 구하시오

Answer: 288

Solution (Python):
var_a = 36
var_b = 2
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are three types of fruit. There are 5 fruit (a), 6 fruit (b), and 4 fruit (c). How many fruits are there in total?
Question (KO): 세 가지 종류의 과일이 있습니다. (가) 과일은 5개, (나) 과일은 6개, (다) 과일은 4개 있습니다. 과일은 모두 몇 개 있습니까?

Answer: 15

Solution (Python):
var_a = 5
var_b = 6
var_c = var_a + var_b
var_d = 4
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If 4 people finished a task by dividing it with an equal amount. Find how much is done by one person out of the total task.
Question (KO): 어떤 일을 4명이 동일하게 나누어서 해결하였다. 한 명이 한 일은 전체 일의 얼마인지 구하시오.

Answer: 0.25

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

Question (EN): The circumference of a circular pond was measured and found to be 314 centimeters (cm) and 100 centimeters (cm) in diameter. How many times bigger is the circumference compared to the diameter of this pond?
Question (KO): 어떤 원 모양의 연못의 둘레를 재어 보니 314 센티미터(㎝)이고 지름이 100 센티미터(㎝) 였습니다. 이 연못의 둘레는 지름의 몇 배 인가요?

Answer: 3.14

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

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

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 = 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 = 2
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)
Category: Arithmetic calculation

Question (EN): Jungkook and Seokjin went to the bookstore together and Jungkook bought 18 more books and Seokjin 11 more. The number of books they each had in the beginning were 28. How many fewer books does Seokjin have than Jungkook?
Question (KO): 정국이와 석진이는 함께 서점에 가서 정국이는 18권의 책을, 석진이는 11권의 책을 더 샀습니다. 둘이 처음에 가지고 있던 책은 각각 28권이었습니다. 석진이가 가진 책은 정국이가 가진 책보다 몇 권 더 적습니까?

Answer: 7

Solution (Python):
var_a = 28
var_b = 18
var_c = var_a + var_b
var_d = 28
var_e = 11
var_f = var_d + var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Find which three-digit number is the greatest common multiple of 6, 5, 8, and 9.
Question (KO): 세 자리 수 중 6, 5, 8, 9의 공배수 중 가장 큰 수는?

Answer: 720

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 5
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = 1
list_f=list_e.copy()
list_f.sort()
var_i = list_f[-var_h]
print(int(var_i))
Category: Geometry

Question (EN): You have a square and a rectangle with a perimeter of 52 centimeters (cm). The length of the rectangle is 15 centimeters (cm). Find the difference between the area of the square and the rectangle.
Question (KO): 둘레가 52센티미터(㎝)인 정사각형과 직사각형이 있습니다. 직사각형의 세로 길이가 15센티미터(㎝)이다. 정사각형과 직사각형의 넓이 차를 구하시오.

Answer: 4

Solution (Python):
var_a = 52
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 52
var_g = 2
var_h = var_f / var_g
var_i = 15
var_j = var_h - var_i
var_k = 15
var_l = var_j * var_k
var_m = var_e - var_l
var_n = abs(var_m)
print(int(var_n))
Category: Comparison

Question (EN): As a result of investigating the time it took seven students in Suhwan's class to go to school, they were 10 minutes, 12 minutes, 15 minutes, 6 minutes, 3 minutes, 8 minutes, and 9 minutes. How many students reach the school in less than 10 minutes?
Question (KO): 수환이네 반 학생 7명의 등교에 걸리는 시간을 조사한 결과 10분, 12분, 15분, 6분, 3분, 8분, 9분이었습니다. 등교 시간이 10분 미만인 학생은 몇 명입니까?

Answer: 4

Solution (Python):
var_a = 10
var_b = 12
var_c = 15
var_d = 6
var_e = 3
var_f = 8
var_g = 9
list_a= []
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_h = 10
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
var_i = len(list_b)
print(int(var_i))
Category: Geometry

Question (EN): Several squares with a side length of 10 centimeters (cm) were glued together to create a planar figure of a cube. How many square centimeters (cm2) is this planar figure of a cube?
Question (KO): 한 변의 길이가 10센티미터(㎝)인 정사각형 몇 개를 이어 붙여서 정육면체의 전개도를 만들었습니다. 이 전개도의 넓이는 얼마입니까?

Answer: 600

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

Question (EN): Two of the numbers 3, 5, and 9 were drawn and used only once to create the largest two-digit number. Find the number that is 27 greater than the two-digit number.
Question (KO): 3, 5, 9의 숫자 중에서 2장을 뽑아 한 번씩만 사용하여 가장 큰 두 자리 수를 만들었습니다. 만든 두 자리 수보다 27 큰 수를 구하시오.

Answer: 122

Solution (Python):
var_a = 3
var_b = 5
var_c = 9
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
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 = 27
var_h = var_f + var_g
print(int(var_h))
Category: Geometry

Question (EN): If one side of the base of a regular hexagonal pyramid is 8 centimeters (cm) and one side of the side face is 13 centimeters (cm), how many centimeters (cm) is the sum of all the edges?
Question (KO): 정육각뿔의 밑면의 한 변은 8센티미터(㎝)이고, 옆면의 한 변은 13센티미터(㎝)라면 모든 모서리의 합은 몇 센티미터(㎝)인지 구하시오.

Answer: 126

Solution (Python):
var_a = 13
var_b = 6
var_c = var_a * var_b
var_d = 8
var_e = 6
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Comparison

Question (EN): There are three numbers A, B, and C. A is 1/2 and B is 9/10. If C is 2/5, what is the smallest number among A, B, and C?
Question (KO): 세 숫자 A, B, C가 있다. A는 1/2이고 B는 9/10이다. C는 2/5일때, A, B, C 중 가장 작은 수는 무엇인가?

Answer: C

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 = 0.5
var_e = 0.9
var_f = 0.4
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-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Geometry

Question (EN): Diagonals were drawn from one vertex of an octagon to the other points. How many triangles are formed in this case?
Question (KO): 어떤 팔각형의 한 꼭짓점에서 다른 점들에 대각선을 그었습니다. 이때 생기는 삼각형의 개수는?

Answer: 6

Solution (Python):
var_a = 8
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

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

Answer: 132

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-1]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e * var_g
print(int(var_h))
Category: Correspondence

Question (EN): When a number that should have been divided by 6 got mistakenly divided by 9, the quotient is 8 and the remainder is 6. Find the correctly calculated value.
Question (KO): 어떤 수를 6으로 나누어야 할 것을 잘못하여 9로 나누었더니 몫이 8이고 나머지가 6이었습니다. 바르게 계산한 몫을 구하시오

Answer: 13

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

Question (EN): There are bags with 2, 3 or 4 marbles. How many two-digit numbers can be made by selecting two different pockets and use one for the tens place and one for the ones place to make a two-digit number?
Question (KO): 구슬이 2개, 3개, 4개 들어있는 주머니가 있다. 그중 서로 다른 주머니 2개를 선택하여 하나는 십의 자리, 하나는 일의 자리로 사용하여 두 자리 수를 만들 때, 만들 수 있는 두자리 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 2
var_b = 3
var_c = 4
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
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))