philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Find the sum of the largest and the third largest three-digit number that can be made using the all the numbers 1, 6, and 8 once.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 가장 큰 세 자리 수와 세 번째로 큰 세 자리수의 합을 구하시오.

Answer: 1479

Solution (Python):
var_a = 1
var_b = 6
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
var_h = list_b[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Which four-digit number is the largest among multiples of 3?
Question (KO): 3의 배수 중 가장 큰 네 자리 수는?

Answer: 9999

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Arithmetic calculation

Question (EN): One hotteok requires 6.64 grams (g) of dough. Find the maximum number of hotteok you can make using 212.48 grams (g) of dough.
Question (KO): 호떡 하나는 반죽 6.64그램(g)이 필요합니다. 반죽 212.48그램(g)을 사용하여 만들 수 있는 호떡의 최대 개수를 구하세요.

Answer: 32

Solution (Python):
var_a = 212.48
var_b = 6.64
var_c = var_a // var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There were 52 kilograms (kg) of rice. I ate 9 kilograms (kg) each day for 3 days. How many kilograms (kg) of rice are left?
Question (KO): 쌀이 52킬로그램(㎏) 있었습니다. 3일 동안 매일 9킬로그램(㎏)씩 먹었습니다. 쌀은 몇 킬로그램(㎏) 남아 있습니까?

Answer: 25

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

Question (EN): There are three numbers 10, 11 and 12. Which number is the smallest?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중 가장 작은 수는 무엇입니까?

Answer: 10

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 = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-1]
print(int(var_e))
Category: Possibility

Question (EN): Yoongi wants to buy 3 out of 5 books at the bookstore. How many possible ways can Yoongi buy 3 books?
Question (KO): 윤기는 서점에서 5개의 책 중 3개의 책을 사려고 합니다. 윤기가 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: Comparison

Question (EN): Students lined up to go to the pool. Yoojeong stands in the 5th position, and Hoseok stands right behind Yoojeong. What number does Hoseok stand on?
Question (KO): 수영장을 가기 위해 학생들이 줄을 섰습니다. 유정이는 5번째에 서 있고 호석이는 유정이 바로 뒤에 서 있습니다. 호석이는 몇 번째에 서 있을까요?

Answer: 6

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Find the number of cases when a dice is rolled, and the number that comes up is an odd number and a multiple of 3.
Question (KO): 주사위를 던져서 나온 수가 홀수이면서 3의 배수인 경우의 수를 구하시오.

Answer: 1

Solution (Python):
var_a = 1
var_b = 6
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 = []
var_c = int(var_c)
for i in list_a:
    i = int(i)
    if i % var_c == 0:
        list_b.append(i)
var_d = len(list_b)
print(int(var_d))
Category: Possibility

Question (EN): In Minyoung's house there are 3 dinosaur dolls, 2 fish dolls, and 1 toy car. How many dinosaur dolls are there?
Question (KO): 민영이네 집에는 공룡 인형이 3개, 물고기 인형이 2개, 장난감 자동차가 1개 있습니다. 공룡 인형은 몇 개가 있습니까?

Answer: 3

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

Question (EN): There is a cuboid-shaped swimming pool with a width of 50 meters (m), a length of 35 meters (m), and a depth of 40 meters (m). If you are going to put tiles with a side length of 1 meter (m) on the inside of this swimming pool without any gap, how many tiles will you have to put at least?
Question (KO): 가로 50미터(m), 세로 35(m), 깊이 40(m)인 직육면체 모양의 수영장이 있습니다. 이 수영장의 안쪽에 한 변의 길이가 1미터(m)인 타일을 빈틈없이 붙이려고 한다면, 적어도 몇 개의 타일을 붙여야 합니까?

Answer: 10300

Solution (Python):
var_a = 2
var_b = 50
var_c = 35
var_d = var_b * var_c
var_e = 50
var_f = 40
var_g = var_e * var_f
var_h = var_d + var_g
var_i = 35
var_j = 40
var_k = var_i * var_j
var_l = var_h + var_k
var_m = var_a * var_l
var_n = 1
var_o = 1
var_p = var_n * var_o
var_q = var_m / var_p
print(int(var_q))
Category: Geometry

Question (EN): The width of a rectangular parallelepiped is 30 centimeters (cm), and the length is 22 centimeters (cm). If the sum of all the edges of this cuboid is 224 centimeters (cm), what is the height in centimeters (cm)?
Question (KO): 직육면체의 가로가 30센티미터(㎝), 세로가 22센티미터(㎝) 입니다. 이 직육면체의 모든 모서리의 합이 224센티미터(㎝)라면, 높이는 몇 센티미터(㎝)입니까?

Answer: 4

Solution (Python):
var_a = 224
var_b = 4
var_c = var_a / var_b
var_d = 30
var_e = var_c - var_d
var_f = 22
var_g = var_e - var_f
print(int(var_g))
Category: Geometry

Question (EN): How many triangles will there be if you draw the diagonals from a vertex of the pentagon?
Question (KO): 오각형의 한 꼭지점에서 대각선을 그으면 몇 개의 삼각형이 생길까요?

Answer: 3

Solution (Python):
var_a = 5
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): Minyoung picked 125 carrots in an hour, and Yoojung picked 137 carrots in an hour. When the two of them pulled carrots at the same speed for 6 hours, how many more carrots did Yoojung pull than Minyoung?
Question (KO): 민영이는 1시간에 125개의 당근을 뽑았고, 유정이는 1시간에 137개의 당근을 뽑았습니다. 두 사람이 같은 빠르기로 당근을 6시간 동안 뽑았을 때, 유정이는 민영이보다 당근을 몇 개 더 많이 뽑았습니까?

Answer: 72

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

Question (EN): A street of 132.6 meters (m) is evenly divided between police officers. The area covered by a single officer is said to be 13.26 meters (m). If the same number of officers are assigned to patrol 6.4 kilometers (km), find how many kilometers (km) of area will be covered by one officer.
Question (KO): 132.6미터(m) 거리를 경찰들이 나눠서 순찰다닌다. 1명의 경찰이 담당하는 구역이 13.26미터(m)라고 한다. 동일한 인원에게 6.4킬로미터(㎞)의 순찰을 맡길 때, 한명의 경찰관이 몇 킬로미터(㎞)의 구역을 담당하게 되는지 구하시오.

Answer: 0.64

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

Question (EN): Jihye wants to form a three-digit natural number by using all three number cards, 8, 6, and 1, once each. She chose the three biggest numbers among the possible three-digit numbers and then calculated the sum of them except the biggest one. What is the result?
Question (KO): 지혜는 숫자 카드 8, 6, 1을 한 번씩 모두 사용하여 세 자리 자연수를 만들고자 한다. 이 때, 만들 수 있는 세 자리 수 중 큰 순서대로 3개를 고르고, 그 중 가장 큰 것을 뺀 나머지의 합을 구하였다. 답은 얼마인가?

Answer: 1497

Solution (Python):
var_a = 8
var_b = 6
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[-var_g]
var_i = var_f + var_h
print(int(var_i))
Category: Correspondence

Question (EN): A number multiplied by 4 and then multiplied by 4 again is 32. Find out what number this is.
Question (KO): 어떤 수에 4를 곱하고 다시 4를 곱하면 32가 됩니다. 어떤 수는 얼마인지 구하시오.

Answer: 2

Solution (Python):
var_a = 32
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the sum of 123 consecutive even numbers from 2.
Question (KO): 2부터 연속하는 짝수 123개의 합을 구하시오.

Answer: 15252

Solution (Python):
var_a = 2
var_b = 123
var_c = 1
var_d = var_b - var_c
var_e = 2
var_f = var_d * var_e
var_g = 2
var_h = var_f + var_g
var_i = 2
list_a = [i for i in range(var_a, var_h + 1, var_i)]
list_a = [float(i) for i in list_a]
var_j = sum(list_a)
print(int(var_j))
Category: Comparison

Question (EN): Considering Jungkook has a number of 6 minus 3, and Yoongi has 4. Find the one with the bigger number.
Question (KO): 정국에는 6에서 3을 뺀 수를 모았고, 윤기는 4를 모았습니다. 누가 큰 수를 가지고 있나요?

Answer: Yoongi

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 6
var_d = 3
var_e = var_c - var_d
var_f = 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)
list_b.reverse()
var_g = 1
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: Geometry

Question (EN): There are two distinct points. Find the number of straight lines passing through these two points.
Question (KO): 서로 다른 점이 두 개 있습니다. 이 두 점을 지나는 직선의 수를 구하시오.

Answer: 1

Solution (Python):
var_a = 1
print(int(var_a))
Category: Arithmetic calculation

Question (EN): Jimin wants to fold 220 scabs within a week. Find at least how many scabs she have to fold in 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): Find the number of line segments for three points not on a straight line.
Question (KO): 한 직선 위에 있지 않은 세 점에 대하여 선분의 개수를 구하시오.

Answer: 3

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

Question (EN): My mother used 300 grams (g) more than 2/5 of the cooking oil in the house yesterday, and 200 grams (g) less than 1/2 of the remaining cooking oil today. If the remaining cooking oil is 800 grams (g), how many kilograms (kg) of cooking oil were there before mother used it yesterday?
Question (KO): 어머니가 어제는 집에 있던 식용유의 2/5보다 300그램(g) 더 많이 사용했고, 오늘은 나머지 식용유의 1/2보다 200그램(g) 더 적게 사용했습니다. 남은 식용유가 800그램(g)이라면, 어제 어머니가 사용하기 전 집에 있던 식용유는 몇 킬로그램(㎏)입니까?

Answer: 2.5

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 = 0.4
var_l = var_j - var_k
var_m = var_i / var_l
var_n = 1000
var_o = var_m / var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Arithmetic calculation

Question (EN): How many of the common divisors of 56 and 72 are multiples of 4?
Question (KO): 56, 72의 공약수 중 4의 배수는 모두 몇 개인지 구하세요

Answer: 2

Solution (Python):
var_a = 56
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 = 72
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 = 4
list_d = []
var_c = int(var_c)
for i in list_c:
    i = int(i)
    if i % var_c == 0:
        list_d.append(i)
var_d = len(list_d)
print(int(var_d))
Category: Correspondence

Question (EN): When you add 14 to a certain number, the result is 56. What is the value of the certain number multiplied by 3?
Question (KO): 어떤 수에 14를 더했더니 결과가 56이 되었습니다. 어떤 수에 3을 곱하면?

Answer: 126

Solution (Python):
var_a = 56
var_b = 14
var_c = var_a - var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Shinyoung ate 1/3 of the cake, Seokgi ate 1/4, and Woong ate 1/5. Who ate the most cake?
Question (KO): 하나의 케익을 신영이는 전체의 1/3, 석기는 전체의 1/4, 웅이는 전체의 1/5을 먹었습니다. 케익을 가장 많이 먹은 사람은 누구입니까?

Answer: Shinyoung

Solution (Python):
var_a = 'Shinyoung'
var_b = 'Seokgi'
var_c = 'Woong'
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 0.3333333333333333
var_e = 0.25
var_f = 0.2
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]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Arithmetic calculation

Question (EN): A chicken farm produces an average of 230 eggs per day. How many eggs will you produce in 15 days?
Question (KO): 어느 양계장에서 하루에 평균 230 개의 달걀을 생산한다고 합니다. 15 일 동안에는 모두 몇 개의 달걀을 생산 하겠습니까?

Answer: 3450

Solution (Python):
var_a = 230
var_b = 15
var_c = var_a * var_b
print(int(var_c))
Category: Possibility

Question (EN): There are 2 types of coffee and 3 types of bread, and you want to choose one coffee and one bread. Find the number of cases.
Question (KO): 커피와 빵을 각각 하나씩 고르려 하는데 커피의 종류가 2가지, 빵의 종류가 3가지이다. 경우의 수를 구하시오.

Answer: 6

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

Question (EN): A cube has 12 edges, and the sum of these edges is 96 centimeters (cm). What is the length of one edge?
Question (KO): 정육면체는 12개의 모서리가 있고, 이 모서리의 합은 96센티미터(㎝)입니다. 한 모서리의 길이는 얼마입니까?

Answer: 8

Solution (Python):
var_a = 96
var_b = 12
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): 5 people collected items. Three people collected 8 kilograms (kg) each, and two people each collected 7 kilograms (kg). How many kilograms (kg) are all the objects the 5 people collected in total?
Question (KO): 5명이 (가) 물건을 모았습니다. 3명은 각각 8킬로그램(㎏)씩 모았고, 2명은 각각 7킬로그램(㎏)씩 모았습니다. 5명이 모은 (가) 물건은 모두 몇 킬로그램(㎏)입니까?

Answer: 38

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

Question (EN): What is the number of faces of a pentagonal pyramid?
Question (KO): 오각뿔의 면의 개수는?

Answer: 6

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): Jina has a piece of colored paper in the shape of a square with a side length of 10 centimeters (cm). She is going to cut this piece of colored paper into several pieces of right triangles with a width of 1 centimeter (cm) and a height of 3 centimeters (cm). How many right triangle-shaped pieces can she have?
Question (KO): 진아는 한 변의 길이가 10센티미터(㎝)인 정사각형 모양의 색종이를 갖고 있습니다. 이 색종이를 가로가 1센티미터(㎝), 높이가 3센티미터(㎝)인 직각삼각형 모양으로 여러개 자르려고 합니다. 직각삼각형 모양의 색종이는 최대 몇 개를 가질 수 있겠습니까?

Answer: 66

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): When you subtract 24 from 3/4 of a number, and then divide by 7, and then add 50 and divide by 2, you get 100. What is that number in question?
Question (KO): 어떤 수의 3/4에서 24를 빼고 7로 나눈 뒤 50을 더한 후 2로 나누면 100이 됩니다. 어떤 수를 구하시오.

Answer: 1432

Solution (Python):
var_a = 100
var_b = 2
var_c = var_a * var_b
var_d = 50
var_e = var_c - var_d
var_f = 7
var_g = var_e * var_f
var_h = 24
var_i = var_g + var_h
var_j = 0.75
var_k = var_i / var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Hoseok picked 35 persimmons. It is said that the number of persimmons picked by Hoseok is 3 more than 4 times the number of persimmons picked by Jungkook. How many persimmons did Jungkook pick?
Question (KO): 호석이는 감을 35개 땄습니다. 호석이가 딴 감은 정국이가 딴 감의 수의 4배보다 3개가 더 많다고 합니다. 정국이가 딴 감은 몇 개입니까?

Answer: 8

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

Question (EN): There are four-digit addition expressions such as ABCD+ABCD=2478. What is the sum of A, B, C, and D?
Question (KO): ABCD+ABCD=2478과 같은 네 자리 수 덧셈식이 있습니다. 여기서 A, B, C, D의 합은 얼마인가요?

Answer: 15

Solution (Python):
var_a = 2478
var_b = 2
var_c = var_a / var_b
list_a = []
var_c = int(var_c)
while var_c//10 > 0:
    list_a.append(var_c%10)
    var_c = var_c//10
list_a.append(var_c%10)
list_a = list_a[::-1]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)
print(int(var_d))
Category: Geometry

Question (EN): There is a picture frame with a height length of 12 centimeters (cm) and a circumference of 38 centimeters (cm). Find the width of the frame.
Question (KO): 세로 길이가 12센티미터(㎝)이고 둘레의 길이가 38센티미터(㎝)인 액자가 있다. 액자의 가로 길이를 구하시오.

Answer: 7

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

Question (EN): 10 red balls are divided equally into 5 boxes. How many red balls are in 1 box?
Question (KO): 빨간 공 10개를 5개의 상자에 똑같이 나누어 담았습니다. 1개의 상자에 들어 있는 빨간 공의 개수는?

Answer: 2

Solution (Python):
var_a = 10
var_b = 5
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The sum of the ages of the older brother and the younger brother, who have a two-year age difference, is 26 years old. How old is the brother?
Question (KO): 2살 차이 나는 형과 동생의 나이의 합이 26살이다. 형의 나이는?

Answer: 14

Solution (Python):
var_a = 26
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
print(int(var_g))
Category: Geometry

Question (EN): When 94 centimeters (cm) toilet paper is folded so that the middle overlaps to make 68 centimeters (cm), find the length of the overlapped part.
Question (KO): 94센티미터(㎝)의 화장지를 중간이 겹치도록 접어 68센티미터(㎝)로 만들었을 때, 겹쳐진 부분의 길이를 구하시오.

Answer: 13

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

Question (EN): 43 people came to participate in the tuho game. They were divided into two teams of 11 to play tuho, and the rest lined up to wait. Find out how many students were in line.
Question (KO): 투호놀이에 참가하려고 43명이 왔는데 그중에서 11명씩 2팀으로 나누어 투호놀이를 하고 나머지는 대기하기 위해 줄을 섰습니다. 줄을 선 학생은 모두 몇 명인지 알아봅시다.

Answer: 25

Solution (Python):
var_a = 43
var_b = 11
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 4
var_g = var_e + var_f
print(int(var_g))
Category: Possibility

Question (EN): There is 1 red bead, 1 blue bead, and 1 yellow bead each. Choose two of these and find out how many cases there are when A and B try to have one.
Question (KO): 빨간색 구슬, 파란색 구슬, 노란색 구슬이 1개씩 있습니다. 이 중 2개를 골라서 (가)와 (나)가 하나씩 가지려고 할 때, 몇 가지 경우의 수가 있을지 구하시오.

Answer: 6

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
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)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
print(int(var_f))
Category: Comparison

Question (EN): How many numbers are greater than 3200 and less than 4300?
Question (KO): 3200보다 크고 4300보다 작은 수는 모두 몇 개입니까?

Answer: 1099

Solution (Python):
var_a = 3200
var_b = 1
var_c = var_a + var_b
var_d = 4300
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = len(list_a)
print(int(var_h))
Category: Correspondence

Question (EN): 43 is the result of accidentally adding 5 to a number that should be multiplied by 5. How much do you calculate correctly?
Question (KO): 43은 어떤 수에 5를 곱해야 하는데 실수로 5를 더하여 나온 결과입니다. 바르게 계산하면 얼마입니까?

Answer: 190

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

Question (EN): When 30 can divided by some numbers, how many divisible numbers are there?
Question (KO): 30을 어떤 수로 나누었을 때, 나누어떨어지게 하는 수는 모두 몇 개입니까?

Answer: 8

Solution (Python):
var_a = 30
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 = len(list_a)
print(int(var_b))
Category: Possibility

Question (EN): The numbers 2, 5, 6, and 9 are written on the target board. What is the sum of the third largest and third smallest numbers that can be made using three of these?
Question (KO): 과녁판에 숫자 2, 5, 6, 9가 적혀 있다. 이 중 3개를 사용하여 만들 수 있는 세 번째로 큰 수와 세 번째로 작은 수의 합은 얼마인가?

Answer: 1221

Solution (Python):
var_a = 2
var_b = 5
var_c = 6
var_d = 9
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 = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 3
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: Arithmetic calculation

Question (EN): Minsu wants to divide a number by a three-digit number. At this time, he did not see the 0 in the units digit of the divisor and miscalculated it as 12, and as a result, the quotient was 210. Find the correctly calculated quotient.
Question (KO): 민수는 세 자리 수로 어떤 수를 나누려고 합니다. 이 때 나누는 수의 일의 자리에 있는 0을 보지 못하고 이를 12로 잘못 보고 계산한 결과, 몫이 210 이었습니다. 바르게 계산한 몫을 구하시오.

Answer: 21

Solution (Python):
var_a = 210
var_b = 12
var_c = var_a * var_b
var_d = 120
var_e = var_c // var_d
print(int(var_e))
Category: Comparison

Question (EN): I planted roses in 2/7 of the flower garden and sunflowers in 3/8. Which flower is planted in the larger area?
Question (KO): 꽃밭의 2/7에는 장미와 3/8에는 해바라기를 심었습니다. 어느 꽃 영역이 더 넓습니까?

Answer: sunflowers

Solution (Python):
var_a = 'roses'
var_b = 'sunflowers'
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 = 0.2857142857142857
var_d = 0.375
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)