philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): If Mincheol has 3/4 meter (m) of purple string, 4/5 meter (m) of green string, and 2/3 meter (m) of white string, find out how many meters (m) of string Mincheol has.
Question (KO): 민철이는 보라색 끈 3/4미터(m), 초록색 끈 4/5미터(m), 흰색 끈 2/3미터(m)를 가지고 있을 때, 민철이가 가지고 있는 끈은 모두 몇 미터(m)인지 구하시오.

Answer: 2.22

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

Question (EN): The length of the base of the trapezoid is 6/13 meters (m), and the height is 2 meters (m). How many times the length of its base is the length of its height?
Question (KO): 사다리꼴의 밑변의 길이는 6/13미터(m)이고 높이는 2미터(m) 입니다. 사다리꼴의 밑변의 길이는 높이의 몇 배인가요?

Answer: 0.23

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

Question (EN): Subtracting 2 from a certain number gives 5. What is the value of the certain number plus 2?
Question (KO): 어떤 수에서 2를 빼면 5가 됩니다. 어떤 수에 2를 더한 수는 얼마입니까?

Answer: 9

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

Question (EN): The number of students in Jihoon's class is more than 35 and less than 70. If Jihoon's classmates form groups of 6, there will be 3 left, and if they form groups of 8, 1 will remain. Find the number of students in Jihoon's class.
Question (KO): 지훈이네 반 학생수는 35명보단 많고 70명보단 작습니다. 지훈이네 반 학생들이 6명씩 조를 짜면 3명이 남고 8명씩 조를 짜면 1명이 남는다. 지훈이네 반 학생수를 구하시오.

Answer: 57

Solution (Python):
var_a = 35
var_b = 70
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 = 6
var_g = 3
list_b = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_a:
    i = int(i)
    if i%var_f == var_g:
        list_b.append(i)
var_h = 8
var_i = 1
list_c = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_b:
    i = int(i)
    if i%var_h == var_i:
        list_c.append(i)
var_j = 1
var_k = list_c[var_j-1]
print(int(var_k))
Category: Correspondence

Question (EN): When the apples in the box were divided into 8 baskets in equal amounts, each basket contained 6 apples, leaving 4 apples. What is the number of apples divided by 8?
Question (KO): 박스안에 들어있는 사과를 8개의 바구니에 같은 양으로 나누어 담았더니 바구니마다 6개씩 담고 4개가 남았다. 사과의 개수를 8로 나누면 얼마인가?

Answer: 6.5

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 8
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Correspondence

Question (EN): Yoongi subtracted 10 from a certain number and got 15. What is the value when 5 is added to the number?
Question (KO): 윤기는 어떤 수에서 10을 빼 15를 얻었습니다. 어떤 수에 5를 더하면 얼마일까요?

Answer: 30

Solution (Python):
var_a = 15
var_b = 10
var_c = var_a + var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): The sum of all the lengths of the cube where two sides meet is 108 centimetres (cm). In this cube, what is the length in centimetres of the line segment that connects one vertex to the next?
Question (KO): 한 정육면체에서 면과 면이 만나는 곳의 길이를 전부 더하면 108센티미터(㎝)입니다. 이 정육면체에서 한 꼭짓점과 이웃한 꼭짓점을 연결한 선분의 길이는 몇 센티미터(㎝)입니까?

Answer: 9

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

Question (EN): Find how many centimeters (cm) a wire of length 28 centimeters (cm) becomes when divided into quarters.
Question (KO): 길이가 28센티미터(㎝)인 철사를 4등분하면 몇 센티미터(㎝)로 나뉘는지 구하시오.

Answer: 7

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

Question (EN): There is a pyramid whose sum of the number of vertices and the number of faces is 16. How many edges does this pyramid have?
Question (KO): 꼭짓점의 수와 면의 수의 합이 16인 각뿔이 있다. 이 각뿔의 모서리는 모두 몇개인가?

Answer: 14

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

Question (EN): Find the average of the multiples of 6 among the natural numbers from 1 to 100.
Question (KO): 1부터 100까지의 자연수 중 6의 배수들의 평균을 구하시오.

Answer: 51

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 = 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)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)/len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): How many diagonals can be drawn in the figure below? : 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: Geometry

Question (EN): Given two distinct points, how many straight lines pass through these two points?
Question (KO): 서로 다른 두 점이 있을 때, 이 두 점을 지나는 직선의 수는?

Answer: 1

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

Question (EN): Ten friends are standing on the playground in the shape of a decagon. If you shake hands with all of your friends once, except for the person standing next to you, how many handshakes will you make?
Question (KO): 운동장에 10명의 친구가 십각형을 그리고 서 있습니다. 자신의 양옆에 선 사람을 제외하고 모든 친구들과 악수를 한 번씩 할 때, 악수는 모두 몇 번 이루어집니까?

Answer: 35

Solution (Python):
var_a = 10
var_b = 10
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): Cars are equally spaced from the front and back on the road. If the distance between the first car and the last car is 242 meters (m), and the distance between the cars is 5.5 meters (m), how many cars are on the street?
Question (KO): 도로에서 자동차들이 앞 뒤로 같은 간격으로 서 있습니다. 맨 앞 자동차와 맨 뒤 자동차의 거리가 242 미터(m)이고, 자동차 사이의 거리가 5.5미터(m)라면 거리에 있는 자동차는 모두 몇 대입니까?

Answer: 45

Solution (Python):
var_a = 242
var_b = 5.5
var_c = var_a // var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): I have to add 273 to a number, but I accidentally subtract it from a number, and it became 477. How much is it if I calculate it correctly?
Question (KO): 어떤 수에 273을 더해야 할 것을 잘못해서 빼었더니 477이 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 1023

Solution (Python):
var_a = 477
var_b = 273
var_c = var_a + var_b
var_d = 273
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When adding a four-digit number to a two-digit number, the 8 in the ones place of the four-digit number was mistaken for 5, and the tens and ones places of the two-digit number were swapped and the number was mistaken for 63. In these circumstances, the result of the calculation was 2708. Find the result of the correct calculation.
Question (KO): 네 자리 수와 두 자리 수의 덧셈에서 네 자리 수의 일의 자리 숫자 8을 5로 잘못 보고, 두 자리 수의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 63으로 잘못 보고 계산하였더니 그 값이 2708이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 2738

Solution (Python):
var_a = 2708
var_b = 8
var_c = 5
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 63
var_g = 36
var_h = var_f - var_g
var_i = var_e + var_h
print(int(var_i))
Category: Possibility

Question (EN): I'm trying to seat three sophomores and two freshmen in five single-row chairs. Find the case where three sophomores are sitting right next to each other.
Question (KO): 5개의 1열로 있는 의자에 2학년 3명과 1학년 2명을 앉히려고 한다. 2학년 3명을 연속해서 앉히는 경우를 구하시오.

Answer: 36

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
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 = 'A'
var_g = 'C'
list_b= []
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)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_h = len(list_c)
var_i = len(list_c)
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 = 'A'
var_l = 'C'
var_m = 'E'
list_d= []
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_d.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_d.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_d.append(var_k)
list_d.reverse()
var_n = len(list_d)
var_o = len(list_d)
var_p = 1
var_n = int(var_n)
var_o = int(var_o)
for i, elem in enumerate(range(var_o)):
    var_p = var_p * (var_n-i)
var_q = var_j * var_p
print(int(var_q))
Category: Arithmetic calculation

Question (EN): The sum of 5 consecutive odd numbers is 195. Write the 2nd largest of these 5 odd numbers.
Question (KO): 5개의 연속된 홀수의 합이 195입니다. 이 연속된 5개의 홀수 중 2번째로 큰 수를 쓰시오.

Answer: 41

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

Question (EN): You went fishing and caught 4 fish (a) and 3 fish (b) in the morning. I caught a few more fish in the afternoon, so today you caught 10 fish in total. How many fish did you catch in the afternoon?
Question (KO): 낚시에 가서 오전에 (가) 물고기 4마리와 (나) 물고기 3마리를 잡았습니다. 오후에 물고기를 몇 마리 더 잡았더니 오늘 잡은 물고기는 모두 10마리가 되었습니다. 오후에 잡은 물고기는 몇 마리입니까?

Answer: 3

Solution (Python):
var_a = 10
var_b = 4
var_c = 3
var_d = var_b + var_c
var_e = var_a - var_d
print(int(var_e))
Category: Correspondence

Question (EN): A certain number is a single digit. This number is greater than 0 and less than 2. Find this number.
Question (KO): 어떤 수는 한 자리 수입니다. 어떤 수는 0보다 크고 2보다 작습니다. 어떤 수를 구하시오.

Answer: 1

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 = 0
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
var_e = 2
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = 1
var_g = list_c[var_f-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If Miseon has 5 10,000 won bills, 3 1,000 won bills, and 9 100 won coins, find how much money he has in total.
Question (KO): 미선이에게 만 원짜리 지폐가 5장, 천 원짜리 지폐가 3장, 백 원짜리 동전이 9개 있다면, 총 얼마가 있는지 구하시오.

Answer: 53900

Solution (Python):
var_a = 10000
var_b = 5
var_c = var_a * var_b
var_d = 1000
var_e = 3
var_f = var_d * var_e
var_g = 100
var_h = 9
var_i = var_g * var_h
var_j = var_f + var_i
var_k = var_c + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There were several pieces of colored paper. When 9 of them were used, 12 were left. How many sheets of colored paper were there at the beginning?
Question (KO): 색종이가 몇 장 있었습니다. 그중에서 9장을 사용하였더니 12장이 남았습니다. 처음에 있던 색종이는 몇 장입니까?

Answer: 21

Solution (Python):
var_a = 12
var_b = 9
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): What is the area in square meters (m2) of a square field with a side length of 14.25 meters (m)?
Question (KO): 한 변의 길이가 14.25미터(m)인 정사각형 모양의 밭의 넓이는 몇 제곱미터(㎡)입니까?

Answer: 203.06

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

Question (EN): A horse, a cow, a pig, a sheep, a rabbit, and a squirrel entered the fence in that order. Which animal came in fourth place?
Question (KO): 말, 소, 돼지, 양, 토끼, 다람쥐 순으로 담장에 들어섰다. 4위에 들어간 동물은?

Answer: sheep

Solution (Python):
var_a = 'horse'
var_b = 'cow'
var_c = 'pig'
var_d = 'sheep'
var_e = 'rabbit'
var_f = 'squirrel'
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 = 4
var_h = list_a[var_g-1]
print(var_h)
Category: Correspondence

Question (EN): 3A-21=14. Find the value of A.
Question (KO): 3A-21=14입니다. A는 얼마인가요?

Answer: 5

Solution (Python):
var_a = '3A-21=14'
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): 6 is the result of accidentally dividing a number by 15 when it is supposed to be multiplied by 15. How much do you get if you calculate correctly?
Question (KO): 6은 어떤 수에 15를 곱해야 하는데 실수로 15를 나누어서 나온 결과입니다. 바르게 계산하면 얼마입니까?

Answer: 1350

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

Question (EN): You are going to use all of the 30 centimeters (cm) of wire to make one rectangular shape. If the short side of the rectangle is 7 centimeters (cm), how many centimeters (cm) should the long side be?
Question (KO): 길이가 30 센티미터(㎝) 인 철사를 모두 사용하여 직사각형 모양을 한 개 만들려고 합니다. 직사각형의 짧은 변을 7센티미터(㎝) 로 할 때, 긴 변은 몇 센티미터(㎝) 로 해야 합니까?

Answer: 8

Solution (Python):
var_a = 30
var_b = 2
var_c = var_a / var_b
var_d = 7
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Which of the three numbers 5, 8, and 4 is the second largest?
Question (KO): 3개의 숫자 5, 8, 4 중 두 번째로 큰 숫자는 무엇입니까?

Answer: 5

Solution (Python):
var_a = 5
var_b = 8
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=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
print(int(var_e))
Category: Geometry

Question (EN): There is an icosagon. How many diagonals can be drawn from a vertex?
Question (KO): 이십각형이 있습니다. 한 꼭짓점에서 그을 수 있는 대각선의 개수는 모두 몇 개 인가요?

Answer: 17

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

Question (EN): A, B, and C are three different natural numbers. When A is divided by 11, the quotient is B and the remainder is C. Find the largest number that can be C.
Question (KO): A, B, C는 서로 다른 세 자연수이다. A는 11로 나누면 몫이 B, 나머지가 C이다. C가 될 수 있는 수 중에 가장 큰 수를 구하여라.

Answer: 10

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

Question (EN): I need to add 32, but I accidently added 23 to some number, and I got 68 as a result. What number is this?
Question (KO): 32를 더해야 하는데 23을 어떤 수에 잘못 더하였더니 68이 됐습니다. 어떤 수를 구하시오.

Answer: 45

Solution (Python):
var_a = 68
var_b = 23
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): What is the difference between the largest number and the third smallest number possible when forming a number greater than or equal to 100 and less than 1000 with using odd numbers less than or equal to 5 only once?
Question (KO): 5 이하의 홀수를 한 번씩만 이용하여 100이상 1000미만의 수를 만들 때, 가장 큰 수와 세 번째로 작은 수의 차는 얼마인가?

Answer: 216

Solution (Python):
var_a = 0
var_b = 5
list_a = []
if var_a%2==0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = 3
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]
var_f = 3
list_d=list_b.copy()
list_d.sort()
var_g = list_d[var_f-1]
var_h = var_e - var_g
print(int(var_h))
Category: Geometry

Question (EN): What is the perimeter in centimeters (cm) of an isosceles triangle with two sides measuring 12 centimeters (cm) and the other side measuring 17 centimeters (cm)?
Question (KO): 양변의 길이가 12 센티미터(㎝)이고, 다른 변의 길이가 17 센티미터(㎝)인 이등변삼각형의 둘레의 길이는 몇 센티미터(㎝)입니까?

Answer: 41

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a * var_b
var_d = 17
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): A regular pentagon with one edge 16 centimetres (cm) long is made with one piece of thread. If the same thread is used to make an octagon, find the length of one edge of the octagon.
Question (KO): 한 변의 길이가 16센티미터(㎝)인 정오각형을 실을 사용하여 만들었습니다. 똑같은 실을 사용하여 정팔각형을 만들 때, 정팔각형의 한 모서리의 길이를 구하시오.

Answer: 10

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

Question (EN): There are 4 types of pencils and 6 types of ballpoint pens. How many ways can you choose one type of pencil and one type of ballpoint pen?
Question (KO): 연필 4종류와 볼펜 6종류가 있다. 연필과 볼펜을 각각 한 종류씩 고르는 경우의 수는?

Answer: 24

Solution (Python):
var_a = 4
var_b = 6
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): A and 24 are different natural numbers. If these two numbers are divisors or multiples of each other, find the third smallest of the two-digit numbers corresponding to A.
Question (KO): A와 24는 서로 다른 자연수이다. 이 두 수가 약수 또는 배수 관계일 때 A에 해당하는 두 자리 수 중에서 세번째로 작은 수를 구하여라

Answer: 3

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 = 24
var_c = 99
var_d = 24
list_b = [i for i in range(var_b, var_c + 1, var_d)]
list_c = list(set(list_a) | set(list_b))
var_e = 3
list_d=list_c.copy()
list_d.sort()
var_f = list_d[var_e-1]
print(int(var_f))
Category: Possibility

Question (EN): If there are five number cards 4, 2, 8, 1, and 9, what is the value when each number card is used only once to make the largest quotient from (three-digit number)/(double-digit number)? 
Question (KO): 다섯 개의 수 카드가 4, 2, 8, 1, 9로 있다면, 각 수 카드를 한 번씩만 사용하여 몫이 가장 큰 (세 자리 수)/(두 자리 수)를 만들었을 때의 몫이 어떻게 될까요?

Answer: 82

Solution (Python):
var_a = 4
var_b = 2
var_c = 8
var_d = 1
var_e = 9
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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 2
list_d = [str(i) for i in list_a]
list_d = list(itertools.permutations(list_d, var_i))
list_d = [''.join(num_list) for num_list in list_d]
list_d = [str_num for str_num in list_d if str_num[0] != '0']
list_d = [float(i) for i in list_d]
var_j = 1
list_e=list_d.copy()
list_e.sort()
var_k = list_e[var_j-1]
var_l = var_h // var_k
print(int(var_l))
Category: Arithmetic calculation

Question (EN): Suppose you have 49 rabbits and 37 frogs on the farm. The total number of frogs and chickens is larger than rabbits by 9. How many chickens do you have?
Question (KO): 농장에서 토끼 49마리와 개구리 37마리를 기릅니다. 개구리와 닭의 수를 합하면 토끼보다 9마리 많습니다. 닭은 몇 마리입니까?

Answer: 21

Solution (Python):
var_a = 49
var_b = 9
var_c = var_a + var_b
var_d = 37
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Nine people stand in a line in order of shortest to tallest. Hoseok stands at the very back. If you line up again in order of the tallest to the tallest, what number will Hoseok stand from the back?
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이가 가장 뒤에 서 있습니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 호석이는 뒤에서부터 몇 번째에 서게 됩니까?

Answer: 9

Solution (Python):
var_a = 9
var_b = 1
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): A triangular pyramid has a base area of 3 square centimeters (cm2) and a side area of 6 square centimeters (cm2). Find the surface area of this triangular pyramid.
Question (KO): 밑면의 넓이가 3제곱센티미터(㎠)이고 옆면의 넓이가 6제곱센티미터(㎠)인 삼각뿔이 있다. 이 삼각뿔의 겉넓이를 구하시오.

Answer: 21

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

Question (EN): You have 2 chances to draw from the basket. If there are 1 apple, 1 peach, 1 pear, and 1 melon in each basket, how many ways can you pick them?
Question (KO): 바구니에서 뽑을 수 있는 기회는 2번입니다. 바구니 속에 사과, 복숭아, 배, 참외가 각각 1개씩 들어가 있다면, 뽑을 수 있는 경우의 수는 모두 몇 가지 입니까?

Answer: 6

Solution (Python):
var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
var_d = 'melon'
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = len(list_a)
var_f = 2
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_e-i)
for i, elem in enumerate(range(var_f)):
    var_g = var_g / (i+1)
print(int(var_g))
Category: Comparison

Question (EN): There is a cube whose length is 5 centimeters (cm), and a cuboid B with the width, depth, and height of 4 centimeters (cm), 5 centimeters (cm), and 6 centimeters (cm), respectively. Find which of A and B has the greater volume.
Question (KO): (가) 정육면체의 한 모서리의 길이는 5센티미터(㎝)이고, (나) 직육면체의 가로, 세로, 높이의 길이는 각각 4센티미터(㎝), 5센티미터(㎝), 6센티미터(㎝)입니다. (가)와 (나) 중에서 어느 것의 부피가 더 큰지 구하시오.

Answer: A

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