philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Hyomin and Jinseop each solved the same math problem book. Hyomin solved 4/15 of the total, and Jinseop solved 6/15 of the total. Who has solved more math problems?
Question (KO): 효민과 진섭은 같은 수학 문제집을 각각 풀었다. 효민은 전체의 4/15를 풀었고, 진섭은 전체의 6/15를 풀었다. 누가 수학 문제를 더 많이 풀었을까?

Answer: Jinseop

Solution (Python):
var_a = 'Hyomin'
var_b = 'Jinseop'
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 = 4
var_d = 15
var_e = var_c / var_d
var_f = 6
var_g = 15
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: Geometry

Question (EN): I made a rectangle and a square using the same area of the paper. If a rectangular-shaped paper has sides of 9 centimeters (cm) and 16 centimeters (cm), how many centimeters (cm) is the length of one side of a square-shaped paper?
Question (KO): 같은 넓이의 종이를 이용해 직사각형과 정사각형을 만들었습니다. 직사각형 종이는 9센티미터(㎝), 16센티미터(㎝)의 변을 갖는다면, 정사각형 종이의 한 변의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 12

Solution (Python):
var_a = 9
var_b = 16
var_c = var_a * var_b
var_d = 0.5
var_e = var_c ** var_d
print(int(var_e))
Category: Geometry

Question (EN): A regular tetrahedron has a side length of 7 centimeters (cm). What is the surface area of this tetrahedron?
Question (KO): 어떤 정사면체는 한 변의 길이가 7센티미터(㎝)입니다. 이 정사면체의 겉넓이는?

Answer: 84.87

Solution (Python):
var_a = 3
var_b = 0.5
var_c = var_a ** var_b
var_d = 7
var_e = 2
var_f = var_d ** var_e
var_g = var_c * var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): What is the sum of the numbers that are greater than 1.1 among five numbers 1.4, 9/10, 1.2, 0.5, and 13/10?
Question (KO): 수 5개 1.4, 9/10, 1.2, 0.5, 13/10 중 1.1보다 큰 숫자를 구하고, 그 숫자들의 합을 구하면 얼마입니까?

Answer: 3.9

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)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): Eunji is doing gymnastics standing in the 8th column from the right, the 14th column from the left, the 7th row from the back, and the 15th row from the front. If the number of students standing in each row is the same, how many students are doing gymnastics?
Question (KO): 은지는 오른쪽에서 8번째 열, 왼쪽에서 14번째 열, 뒤에서 7번째 줄, 앞에서 15번째 줄에 서서 체조를 하고 있습니다. 각 줄마다 서 있는 학생의 수가 같다고 할 때, 체조를 하고 있는 학생은 모두 몇 명입니까?

Answer: 441

Solution (Python):
var_a = 8
var_b = 14
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 7
var_g = 15
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): I bought 7 bags of chocolates, each containing 16 pieces. Thirteen of them have melted in the hot sun. You want to split the remaining chocolate equally into 8 bags. How many chocolates should you put in one bag?
Question (KO): 한 봉지에 16개씩 들어있는 초콜릿을 7봉지 샀습니다. 그중에서 13개는 뜨거운 햇빛에 녹아버렸고, 남은 초콜릿들을 8봉지에 똑같이 나누어 담으려고 할 때, 한 봉지에 몇 개의 초콜릿을 담아야 합니까?

Answer: 12

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

Question (EN): There are five numbers: 10, 11, 12, 13, and 14. What is the sum of the 3rd largest number and the 2nd largest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 3번째로 큰 수와 2번째로 큰 수의 합은 얼마입니까?

Answer: 25

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = var_g + var_i
print(int(var_j))
Category: Geometry

Question (EN): You want to make a square with a side of 8 centimeters (cm) by cutting a square of paper with a side length of 72 centimeters (cm). How many can you make?
Question (KO): 한 변의 길이가 72센티미터(㎝)인 정사각형 모양의 종이를 잘라 한 변의 길이가 8센티미터(㎝)인 정사각형을 만들려고 합니다. 몇 개까지 만들 수 있습니까?

Answer: 81

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

Question (EN): Minsu distributed 240 marbles by putting every 35 marbles in 4 large boxes and putting every 6 marbles in 3 small boxes. How many marbles are left after distributing them into boxes?
Question (KO): 민수는 가지고 있는 구슬 240개를 큰 상자 4개에 35개씩 담고, 남은 구슬을 작은 상자 3개에 6개씩 담았습니다. 상자에 나누어 담고 남은 구슬은 몇 개입니까?

Answer: 82

Solution (Python):
var_a = 240
var_b = 4
var_c = 35
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 3
var_g = 6
var_h = var_f * var_g
var_i = var_e - var_h
print(int(var_i))
Category: Correspondence

Question (EN): There are 9 candies in the candy box, but only 3 of them are strawberry-flavored candies. If there are 27 strawberry-flavored candies in multiple candy tins, find the number of candy tins.
Question (KO): 캔디 통에 9개씩 캔디가 들어있는데 그 중 3개만 딸기맛 캔디라고 한다. 여러 개의 캔디 통 안에 딸기맛 캔디가 27개 있을 때 캔디 통의 개수를 구하시오.

Answer: 9

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

Question (EN): Find how many times the area of a square increases if the length of one side of the square is tripled.
Question (KO): 어떤 정사각형에서 한변의 길이가 3배 늘어난다면 넓이는 몇 배 늘어나는지 구하시오.

Answer: 9

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

Question (EN): You want to create a random four-digit number using the four numbers 1, 2, 3, and 6 only once. How many can you make in all?
Question (KO): 4개의 수 1, 2, 3, 6를 한 번씩만 사용하여 임의의 네 자리 수를 만들려고 합니다. 만들 수 있는 수는 모두 몇 개 입니까?

Answer: 24

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
var_d = 6
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 = 4
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 = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): The playground of Kyungsoo's school is 7800 square meters (㎡), and the number of students is 600. And Mira's school's playground is 7000 square meters (㎡), and the number of students is 500. Whose school's students can use more area of the playground each?
Question (KO): 경수네 학교의 운동장은 7800제곱미터(㎡)이고, 학생 수는 600명입니다. 그리고 미라네 학교의 운동장은 7000제곱미터(㎡)이고, 학생 수는 500명입니다. 누구네 학교의 학생들이 운동장을 더 넓게 사용할 수 있습니까?

Answer: Mira

Solution (Python):
var_a = 'Kyungsoo'
var_b = 'Mira'
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 = 7800
var_d = 600
var_e = var_c / var_d
var_f = 7000
var_g = 500
var_h = var_f / var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): There is a drain through which the water drains consistently. When there were 24.7 liters (L) of water, I opened the drain stopper to drain the water, and after 40 minutes, the amount of water have become 17.1 liters (L). Find how many minutes it takes for all the water to drain out.
Question (KO): 물이 일정하게 빠지는 배수구가 있습니다. 물이 24.7리터(L)일 때 배수구의 마개를 열어 물을 빠지게 했더니 40분 후에 물의 양이 17.1리터(L)가 되어있었습니다. 물이 모두 빠지는 데에 걸리는 시간은 몇 분인지 구하시오.

Answer: 130

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

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

Answer: 35

Solution (Python):
var_a = 105
var_b = 0
var_c = 6
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 = 6
var_j = var_h / var_i
var_k = 2
var_l = var_j * var_k
var_m = 6
var_n = 1
var_o = var_m - var_n
var_p = var_l + var_o
print(int(var_p))
Category: Possibility

Question (EN): Round down the largest four-digit number you can make by playing four 7, 9, 3, and 6 cards only once, to the hundredth place.
Question (KO): 7, 9, 3, 6 수 카드 4장을 한 번씩만 사용하여 만들 수 있는 가장 큰 네 자리 수를 내림하여 백의 자리까지 나타내어 보세요.

Answer: 9700

Solution (Python):
var_a = 7
var_b = 9
var_c = 3
var_d = 6
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 = 4
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 = 3
var_i=int((var_g//(10**(var_h-1)))*10**(var_h-1))

print(int(var_i))
Category: Correspondence

Question (EN): There are two different natural numbers, A and B. When A is divided by 7, the quotient is 15 and the remainder is B. Find A when the remainder B is the smallest number.
Question (KO): 서로 다른 두 자연수 A, B가 있습니다. A를 7로 나누면 몫은 15이고 나머지는 B가 됩니다. 나머지 B가 가장 작은 수일 때 A를 구하시오.

Answer: 105

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

Question (EN): There are 44 students in the A class. A class has 2 fewer students than B class, and B class has 1 more student than C class. How many students are there in C class?
Question (KO): (가) 반 학생은 모두 44명입니다. (가) 반은 (나) 반보다 2명 더 적고, (나) 반은 (다) 반보다 1명 더 많습니다. (다) 반 학생은 모두 몇 명입니까?

Answer: 45

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

Question (EN): Seong-ho and Min-soo are trying to interpret a page from an English newspaper. It takes 5 hours for Seong-ho alone and 3 hours for Min-su alone to complete the translation. Find out the time it takes for the two people to complete the task together when the amount of pages to be interpreted is 16 pages.
Question (KO): 성호와 민수가 영어 신문 1장을 해석을 하는데, 성호 혼자서 하면 5시간이 걸리고 민수 혼자서 하면 3시간이 걸린다고 합니다. 해석해야 할 양이 16장일 때, 두 사람이 함께 일을 마치는 데 걸리는 시간을 구하여라.

Answer: 30

Solution (Python):
var_a = 1
var_b = 16
var_c = var_a * var_b
var_d = 1
var_e = 5
var_f = var_d / var_e
var_g = 1
var_h = 3
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): When I investigated the amount of time 10 students in Seyoon's class spent doing volunteer work this month, they were 5, 6, 5, 5, 6, 4, 5, 5, 6, and 7 hours respectively. Find how many students did 5 hours of volunteer work this month.
Question (KO): 세윤이네 반 학생 10명이 이번 달에 봉사 활동을 하는 데 쓴 시간을 조사해보니, 각각 5, 6, 5, 5, 6, 4, 5, 5, 6, 7시간이었습니다. 이번 달에 5시간의 봉사 활동을 한 학생은 몇 명인지 구하시오.

Answer: 5

Solution (Python):
var_a = 5
var_b = 6
var_c = 5
var_d = 5
var_e = 6
var_f = 4
var_g = 5
var_h = 5
var_i = 6
var_j = 7
list_a= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_a.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_k = 5
var_l = 0
var_k = int(var_k)
for i in list_a:
    i = int(i)
    if i == var_k:
        var_l = var_l + 1
print(int(var_l))
Category: Geometry

Question (EN): Fifteen pieces of colored paper in the shape of a rectangle, 9.4 cm (cm) wide and 3.7 cm (cm) long, overlap each other by 0.6 centimeters (cm). What is the total area of the colored paper glued together?
Question (KO): 가로가 9.4센티미터(㎝), 세로가 3.7센티미터(㎝)인 직사각형 모양의 색종이를 가로 부분이 0.6센티미터(㎝)씩 겹치도록 15장을 이어 붙였습니다. 이어 붙인 색종이의 전체 넓이는 얼마입니까?

Answer: 490.62

Solution (Python):
var_a = 9.4
var_b = 15
var_c = var_a * var_b
var_d = 15
var_e = 1
var_f = var_d - var_e
var_g = 0.6
var_h = var_f * var_g
var_i = var_c - var_h
var_j = 3.7
var_k = var_i * var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Geometry

Question (EN): Some parks are shaped like a regular hexagon with sides measuring 5 meters (m). Find the length of the perimeter of this park.
Question (KO): 어떤 공원은 한 변의 길이가 5미터(m)인 정육각형 모양으로 되어 있습니다. 이 공원의 둘레의 길이를 구하시오.

Answer: 30

Solution (Python):
var_a = 5
var_b = 6
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): What is the length in centimeters (cm) of the radius of a bicycle wheel with a diameter of 26 centimeters (cm)?
Question (KO): 지름이 26센티미터(㎝)인 자전거 바퀴의 반지름의 길이는 몇 센티미터(㎝)인가?

Answer: 13

Solution (Python):
var_a = 26
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): There is a company with a total of 450 people. Among them, employees working abroad accounted for 0.06 of the total number of employees. How many employees work abroad?
Question (KO): 전체 인원이 450명인 어떤 회사가 있다. 그 중 해외에서 근무하는 직원은 전체 직원의 0.06만큼이다. 해외에서 근무하는 직원은 몇 명인가?

Answer: 27

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

Question (EN): Find how many times the number 2 appears in a list of all natural numbers less than or equal to 50 that are multiples of 5 or 2.
Question (KO): 50 이하의 자연수 중 5의 배수이거나 2의 배수인 수를 나열했을 때 2는 몇 번 등장하는지 구하시오.

Answer: 11

Solution (Python):
var_a = 1
var_b = 50
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 = 1
var_f = 50
list_c = []
if var_e%2!=0:
    for i in range(var_e+1, var_f+1, 2):
        list_c.append(i)
else:
    for i in range(var_e, var_f+1, 2):
        list_c.append(i)
list_d = list(set(list_b) | set(list_c))
var_g=""
for i in list_d:
    i = str(i)
    var_g = var_g + i
list_e = []
var_g = int(var_g)
while var_g//10 > 0:
    list_e.append(var_g%10)
    var_g = var_g//10
list_e.append(var_g%10)
list_e = list_e[::-1]
var_h = 2
var_i = 0
var_h = int(var_h)
for i in list_e:
    i = int(i)
    if i == var_h:
        var_i = var_i + 1
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Potatoes were planted in 3/5 of Woojin's field, and sweet potatoes were planted in 2/3 of the remaining. What fraction of the whole is the unplanted part?
Question (KO): 우진이네 밭의 3/5에는 감자를 심었고, 나머지의 2/3에는 고구마를 심었다. 아무것도 심지 않은 부분은 전체의 몇 분의 몇 인가?

Answer: 0.13

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

Question (EN): How many three-digit integers can be made with 4 cards each numbered 0, 1, 2, 3?
Question (KO): 0, 1, 2, 3의 숫자가 각각 적힌 4장의 카드로 만들 수 있는 세 자리 정수는 모두 몇 가지입니까?

Answer: 18

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
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 = len(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): There are 225 students in class giraffe, and class elephant as 48 more students than class giraffe. Class rabbit has 24 less students than class giraffe. How many students are in the three classes of this kindergarten on average?
Question (KO): 어느 유치원의 기린반에는 225명의 학생이 있고, 코끼리반에는 기린반보다 48명의 학생이 더 있습니다. 토끼반은 기린 반보다 24명의 학생이 덜 있습니다. 세 반의 평균 학생 수는 몇 명입니까?

Answer: 233

Solution (Python):
var_a = 225
var_b = 225
var_c = 48
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 225
var_g = 24
var_h = var_f - var_g
var_i = var_e + var_h
var_j = 3
var_k = var_i / var_j
print(int(var_k))
Category: Possibility

Question (EN): There are five number cards 1, 3, 5, 7, and 9. What is the sum of the three-digit natural numbers that can be made using these cards that are greater than 500? (However, the card can be used repeatedly.)
Question (KO): 1, 3, 5, 7, 9 다섯 장의 숫자카드가 있다. 이 카드를 사용하여 만들 수 있는 3자리 자연수 중 500 초과인 수의 합은 얼마인지 구하시오. (단, 카드는 중복사용 가능하다.)

Answer: 56625

Solution (Python):
var_a = 1
var_b = 3
var_c = 5
var_d = 7
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.product(list_b, repeat=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 = 500
list_c = []
for i in list_b:
    if i > var_g:
        list_c.append(i)
list_c = [float(i) for i in list_c]
var_h = sum(list_c)
print(int(var_h))
Category: Possibility

Question (EN): You are going to create a two-digit number by drawing two cards among 2, 4, 6, 8, and 9 and you can use them only once. Find the product of the largest and smallest two-digit numbers that can be made.
Question (KO): 2, 4, 6, 8, 9 중에서 2장을 뽑아 한 번씩만 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 두 자리 수 중에서 가장 큰 수와 가장 작은 수의 곱을 구하시오.

Answer: 2352

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

Question (EN): There are 5 boxes of 50 yellow balls each weighing 50 grams (g). There are 6 boxes of 60 white balls each weighing 45 grams (g). There are also 4 boxes of 40 blue balls each weighing 55 grams (g). All the empty boxes weigh the same. What is the color of the ball in the box with the lightest weight?
Question (KO): 1개의 무게가 50그램(g)인 노란색 공을 50개씩 담은 상자가 5개 있습니다. 1개의 무게가 45그램(g)인 흰색 공을 60개씩 담은 상자가 6개 있습니다. 또 1개의 무게가 55그램(g)인 파란색 공을 40개씩 담은 상자가 4개 있습니다. 빈 상자의 무게는 모두 같습니다. 한 상자의 무게가 가장 가벼운 상자 안에 들어 있는 공의 색깔은 무엇입니까?

Answer: blue

Solution (Python):
var_a = 'yellow'
var_b = 'white'
var_c = 'blue'
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 = 50
var_e = 50
var_f = var_d * var_e
var_g = 45
var_h = 60
var_i = var_g * var_h
var_j = 55
var_k = 40
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-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Comparison

Question (EN): The distance from Sol's house to the community-center is 2 kilometers (km) and 280 meters (m), and the distance to the nearest subway-station is 4125 meters (m). Which is closer to Sol's house, the community-center or the subway-station?
Question (KO): 솔이네 집에서 주민센터까지의 거리는 2킬로미터(㎞) 280미터(m)이고, 가장 가까운 지하철역까지의 거리는 4125미터(m)입니다. 솔이네 집에서 더 가까운 곳은 주민센터와 지하철역 중 어디입니까?

Answer: community-center

Solution (Python):
var_a = 'community-center'
var_b = 'subway-station'
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 = 2
var_d = 1000
var_e = var_c * var_d
var_f = 280
var_g = var_e + var_f
var_h = 4125
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)
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)