philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): Add the number of edges of the triangular pyramid to the number of edges of the triangular prism.
Question (KO): 삼각뿔의 모서리에 개수에 삼각 기둥에 모서리의 개수를 더하시오.

Answer: 15

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

Question (EN): When the book was opened, the sum of the pages on both sides was 217. What is the product of both of these page numbers?
Question (KO): 책을 펼쳤을 때 양 쪽의 쪽수 합이 217이었습니다. 각 쪽수의 곱은 얼마입니까?

Answer: 11772

Solution (Python):
var_a = 217
var_b = 2
var_c = var_a // var_b
var_d = 217
var_e = 2
var_f = var_d // var_e
var_g = 1
var_h = var_f + var_g
var_i = var_c * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Roses are 22 more than lilies and 20 fewer than tulips. If there are 100 flowers of all three types, how many roses are there?
Question (KO): 장미는 백합보다 22송이 많고, 튤립보다 20송이 적습니다. 세 종류의 꽃이 모두 합해서 100송이 있을때, 장미는 몇 송이 있는지 구하시오.

Answer: 34

Solution (Python):
var_a = 100
var_b = 22
var_c = var_a + var_b
var_d = 20
var_e = var_c - var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): If you put 4 yellow balls in a box containing 3 red, 2 blue and 5 yellow balls, how many blue balls are there?
Question (KO): 어떤 원의 반지름은 2센티미터(㎝)라고 합니다. 이 원의 다른 반지름은 몇 센티미터(㎝)입니까?

Answer: 2

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

Question (EN): Kahi has a 1.6 meter (m) ribbon tape. If she used 0.8 meters (m) of ribbon to make a ribbon and 0.3 meters (m) to wrap a gift, how many meters (m) of ribbon tape is left?
Question (KO): 가희에게 리본 테이프가 1.6미터(m) 있습니다. 리본을 만드는 데에 0.8미터(m)를 사용하고 선물을 포장하는 데에 0.3미터(m)를 사용했다면, 남은 리본 테이프는 몇 미터(m)입니까?

Answer: 0.5

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

Question (EN): Hyeonsu went to the mart and picked up candy, and the number coincided with the number of diagonals that could be drawn from one vertex of a regular decagon. How many candies did Hyeonsu pick up?
Question (KO): 현수가 마트에 가서 사탕을 집었는데 그 수가 마침 정십각형의 한 꼭짓점에서 그을 수 있는 대각선의 개수와 같았다. 현수가 집은 사탕은 몇 개인가?

Answer: 7

Solution (Python):
var_a = 10
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): You want to know the length of the hypotenuse of a right triangle. If the two non-hypotenuse sides have lengths of 6 and 8 respectively, what is the length of the hypotenuse?
Question (KO): 직각삼각형의 빗변의 길이를 알고싶습니다. 빗변이 아닌 두 변이 각각 6과 8의 길이를 갖는다면 빗변의 길이는 얼마일까요?

Answer: 10

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a ** var_b
var_d = 8
var_e = 2
var_f = var_d ** var_e
var_g = var_c + var_f
var_h = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You bought 12 pencils and pens in total. The pencils cost 1000 won each and the pens cost 1300 won each. You payed 15,000 won for them with no change. Find how many pencils you purchased.
Question (KO): 한 자루에 1000원짜리 연필과 한 자루에 1300원짜리 볼펜을 합하여 12자루를 사고 15000원을 지불하였더니 거스름돈 없이 딱 맞았다. 연필은 몇 자루를 샀는지 구하시오.

Answer: 2

Solution (Python):
var_a = 1300
var_b = 12
var_c = var_a * var_b
var_d = 15000
var_e = var_c - var_d
var_f = 1300
var_g = 1000
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You have 10.4 kilograms (kg) of dough. Taehyung wants to subdivide this dough into bags by 0.8 kilograms (kg) and store them. Find out how many envelopes he needs at this time.
Question (KO): 반죽 10.4킬로그램(㎏)이 있습니다. 태형이는 이 반죽을 0.8킬로그램(㎏)씩 봉투에 소분하여 보관하려고 합니다. 이 때 필요한 봉투는 몇 개인지 구하세요.

Answer: 13

Solution (Python):
var_a = 10.4
var_b = 0.8
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: Arithmetic calculation

Question (EN): The distance from Jeonghyeok's house to my grandmother's house is 100 kilometers (km), and it took 1 hour and 15 minutes to arrive by bus. What is the average distance traveled in 1 hour?
Question (KO): 정혁이네 집에서 할머니 댁까지의 거리는 100킬로미터(㎞)이고, 버스를 타고 1시간 15분이 걸려 도착했습니다. 1시간 동안 간 평균 거리는 얼마입니까?

Answer: 80

Solution (Python):
var_a = 100
var_b = 1
var_c = 15
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a / var_f
print(int(var_g))
Category: Geometry

Question (EN): Jungkook has 5 red balls, 4 blue balls, and 3 yellow balls. When Yoongi gives Jungkook 1 yellow ball, how many blue balls does Jungkook have?
Question (KO): 사면체에서 면의 수를 구하시오.

Answer: 4

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

Question (EN): There are 24 apples in the supermarket. There are 6 times as many tangerines as there are apples, and 8 persimmons. How many times the number of tangerines is the number of persimmons?
Question (KO): 마트에 사과가 24개 있습니다. 사과 수의 6배 만큼 귤이 있고, 감은 8개 있습니다. 귤의 수는 감의 수의 몇 배입니까?

Answer: 18

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

Question (EN): Find the number between 24 and 28 among 20, 23, 26, and 29.
Question (KO): 20, 23, 26, 29 중에서 24와 28 사이의 수를 구하시오.

Answer: 26

Solution (Python):
var_a = 20
var_b = 23
var_c = 26
var_d = 29
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 = 24
list_b = []
for i in list_a:
    if i > var_e:
        list_b.append(i)
var_f = 28
list_c = []
for i in list_b:
    if i < var_f:
        list_c.append(i)
var_g = 1
var_h = list_c[var_g-1]
print(int(var_h))
Category: Geometry

Question (EN): A point P inside the polygon. When each vertex were connected with P, 20 triangles were created. How many diagonals does this polygon have?
Question (KO): 다각형의 내부의 한 점 P와 각각의 꼭짓점을 연결하였더니 20개의 삼각형이 생겼다. 이 다각형의 대각선의 개수는?

Answer: 170

Solution (Python):
var_a = 20
var_b = 20
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): Cube with an edge length of 2 centimeters (cm) was stacked to make a large cube with an edge length of 10 centimeters (cm). If all sides of the large cube are painted orange, how many cubes have only one side painted orange?
Question (KO): 한 모서리의 길이가 2센티미터(㎝)인 정육면체를 쌓아 한 모서리의 길이가 10센티미터(㎝)인 큰 정육면체를 만들었습니다. 큰 정육면체의 모든 면에 주황색 물감을 칠한다고 할 때, 1개의 면에만 주황색이 칠해진 정육면체는 몇 개입니까?

Answer: 54

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c - var_d
var_f = 2
var_g = var_e ** var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): If a pencil sold at a store is 20 won cheaper than 5,000 won, find the price of the pencil in units of 10,000 won.
Question (KO): 어느 가게에서 파는 연필이 5천원보다 2십원 쌀 때, 연필의 가격을 만원 단위로 구하시오.

Answer: 0.5

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

Question (EN): When 26 is divided by 4, the quotient is A and the remainder is B. What is B in this case?
Question (KO): 26을 4로 나눴을 때 몫이 A, 나머지가 B 였습니다. 이 때 B는 무엇인가요?

Answer: 2

Solution (Python):
var_a = 26
var_b = 4
var_c = var_a % var_b
print(int(var_c))
Category: Comparison

Question (EN): There are a total of three numbers: 0.8, 1/2, and 0.6. What is the sum of all numbers greater than or equal to 0.1?
Question (KO): 총 3개의 숫자 0.8, 1/2, 0.6이 있습니다. 이 중 0.1보다 크거나 같은 수를 모두 더하면 얼마인가요?

Answer: 1.9

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.6
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.1
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): There are 37 loaves of bread, and I brought bottles of milk to eat with the bread. There are 52 loaves of bread and bottles of milk in total. How many bottles of milk are there?
Question (KO): 빵이 37개가 있는데 빵과 함께 먹기 위해 우유를 가져왔다. 빵과 우유가 모두 합쳐 52개가 있습니다. 우유는 몇 병 있습니까?

Answer: 15

Solution (Python):
var_a = 52
var_b = 37
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): Among 1.4, 9/10, 1.2, 0.5, and 13/10, if you list all the numbers greater than or equal to 1.1, what is the smallest or equal number among them?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 크거나 같은 숫자를 나열한뒤, 가장 작거나 같은 숫자를 구하면 얼마입니까?

Answer: 1.2

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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Geometry

Question (EN): The cuboid-shaped swimming pool is 20 meters (m) long, 12 meters (m) wide, and 2 meters (m) deep. If you want to paint all of the side walls and floor of the pool, how many square meters (m2) of the area needs to be painted?
Question (KO): 직육면체 모양의 수영장의 가로는 20미터(m), 세로는 12미터(m), 깊이는 2미터(m)입니다. 수영장의 옆쪽 벽 모두와 바닥을 페인트로 칠하려고 합니다. 칠할 부분의 넓이는 모두 몇 ㎡입니까?

Answer: 368

Solution (Python):
var_a = 20
var_b = 12
var_c = var_a * var_b
var_d = 20
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 = 12
var_k = 2
var_l = var_j * var_k
var_m = 2
var_n = var_l * var_m
var_o = var_i + var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): Seonghyeon wants to go to his grandfather's house, which is 180 kilometers (km) away. If it takes 2 hours and 30 minutes to travel by car, how many kilometers (km) does the car travel in 1 hour?
Question (KO): 성현이는 180킬로미터(㎞) 떨어진 할아버지 댁에 가려고 합니다. 자동차를 타고 가는 데 걸린 시간이 2시간 30분이라면 자동차는 1시간에 몇 킬로미터(㎞)씩 간 셈입니까?

Answer: 72

Solution (Python):
var_a = 180
var_b = 2
var_c = 30
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a / var_f
print(int(var_g))
Category: Correspondence

Question (EN): Subtracting 5 from a certain number gives 2. What number do you get when you add 3 to it?
Question (KO): 5를 어떤 수에서 빼면 2가 나온다. 어떤 수에 3을 더하면 얼마가 되는가?

Answer: 10

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

Question (EN): A convenience store has four kinds of sandwiches, and three kinds of triangular gimbap. In how many ways can you choose one sandwich and one gimbap?
Question (KO): 어느 편의점에 샌드위치 4종류, 삼각김밥 3종류가 있다. 샌드위치와 삼각김밥을 각각 1개씩 선택하는 경우의 수는?

Answer: 12

Solution (Python):
var_a = 4
var_b = 1
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)
var_d = 3
var_e = 1
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)
for i, elem in enumerate(range(var_e)):
    var_f = var_f / (i+1)
var_g = var_c * var_f
print(int(var_g))
Category: Geometry

Question (EN): Inside a rectangular parallelepiped with dimensions of 350 cm (cm), 260 cm (cm), and 165 cm (cm), there is another rectangular parallelepiped spaced apart by 5 cm (cm) in width, length, and height. We want to fill the cuboid inside it with building blocks with a volume of 1 cubic centimeter (cm3). If one building block costs 1600 won, how much will need?
Question (KO): 가로, 세로, 높이가 각각 350센티미터(㎝), 260센티미터(㎝), 165센티미터(㎝)인 직육면체 안에 가로, 세로, 높이 모두 5센티미터(㎝)씩 띄어져 있는 또 다른 직육면체가 있다. 이 안에 있는 직육면체를 부피가 1세제곱센티미터(㎤)인 쌓기나무로 가득 채우려고 한다. 쌓기나무 하나가 1600원이라면, 얼마가 필요할지 구하시오.

Answer: 21080000000

Solution (Python):
var_a = 350
var_b = 5
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 260
var_g = 5
var_h = 2
var_i = var_g * var_h
var_j = var_f - var_i
var_k = var_e * var_j
var_l = 165
var_m = 5
var_n = 2
var_o = var_m * var_n
var_p = var_l - var_o
var_q = var_k * var_p
var_r = 1600
var_s = var_q * var_r
print(int(var_s))
Category: Correspondence

Question (EN): 10 times a certain number is 17. What is the result of a certain number multiplied by 1/100 and than multiplied by 3?
Question (KO): 어떤 수의 10배는 17입니다, 어떤 수의 1/100배에 3을 곱한 값은 얼마입니까?

Answer: 0.05

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

Question (EN): What is the number of possible A which is from 1 to 9 to make A888<5001?
Question (KO): 1부터 9까지의 수 A 중 A888<5001이 되게 하는 A는 모두 몇 개입니까?

Answer: 4

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

Question (EN): Eunji is 16 years old this year. Eunji's mother was 35 when Eunji was 8 years old. How old is the mother this year?
Question (KO): 은지는 올해 16살입니다. 은지의 어머니는 은지가 8살이었을 때 35세였습니다. 올해 어머니의 나이는 몇입니까?

Answer: 43

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

Question (EN): If the sum of two consecutive odd numbers is 48, find the larger of the two odd numbers.
Question (KO): 연속하는 두 홀수의 합이 48일 때 두 홀수 중 큰 수를 구하시오.

Answer: 25

Solution (Python):
var_a = 48
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): Given that 2 coins and 1 dice are tossed at the same time, what is the number of cases that two coins come out on different sides and the dice divided by 3 gives a remainder of 1?
Question (KO): 동전 2개와 주사위 1개를 동시에 던질 때, 두 동전은 서로 다른 면이 나오고 주사위의 눈은 3으로 나눈 나머지가 1인 경우의 수는?

Answer: 4

Solution (Python):
var_a = 2
var_b = 1
var_c = 6
var_d = 1
list_a = [i for i in range(var_b, var_c + 1, var_d)]
var_e = 3
list_b = []
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if i % var_e == 0:
        list_b.append(i)
var_f = len(list_b)
var_g = var_a * var_f
print(int(var_g))
Category: Possibility

Question (EN): I'm trying to make a two-digit number, but I only want to use 3 and 5 once. How many different two-digit numbers can you make?
Question (KO): 두 자리 수를 만드려고 하는데 3,5를 한 번씩만 사용하려고 합니다. 이때 만들 수 있는 서로 다른 두 자리 수는 모두 몇가지 입니까?

Answer: 2

Solution (Python):
var_a = 3
var_b = 5
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
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 = len(list_b)
print(int(var_d))
Category: Geometry

Question (EN): There is a rectangular shaped playground with a width of 480 meters (m) and a length of 360 meters (m). Find how many kilometers (km) it is if you go around the edge of the field once.
Question (KO): 가로가 480미터(m), 세로가 360미터(m)인 직사각형 모양의 운동장이 있다. 운동장의 가장자리를 따라 한바퀴 돈다면 몇 킬로미터(㎞)인지 구하시오.

Answer: 1.68

Solution (Python):
var_a = 480
var_b = 1000
var_c = var_a / var_b
var_d = 360
var_e = 1000
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 2
var_i = var_g * var_h
var_j = 2
var_k = round(float(var_i)+1e-10, var_j)
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Arithmetic calculation

Question (EN): There were 2754 baseballs and 1938 ping pong balls in the shop. Among them, 1095 baseballs and a few ping-pong balls were sold, and a total of 3021 balls were left. How many ping-pong balls were sold?
Question (KO): 마트에 야구공이 2754개, 탁구공이 1938개 있었습니다. 그중에서 야구공 1095개와 탁구공 몇 개를 팔았더니 야구공과 탁구공이 합해서 3021개 남았습니다. 탁구공은 몇 개 팔았는지 구하시오.

Answer: 576

Solution (Python):
var_a = 2754
var_b = 1938
var_c = var_a + var_b
var_d = 1095
var_e = var_c - var_d
var_f = 3021
var_g = var_e - var_f
print(int(var_g))
Category: Correspondence

Question (EN): I mistakenly subtracted 7 from this number when I was supposed to multiply it, and I got 0.45. How much is it if I calculate it correctly?
Question (KO): 어떤 수에 7 을 곱할 것을 잘못하여 뺐더니 0.45 가 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 52.15

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

Question (EN): Sanghyun's class donated unread books to the library. There are 20 students in her class and they planned to donate 15 books per student. If the library got 6 books less than they expected, how many books the library got?
Question (KO): 상현이네 반 학생들이 안 보는 책을 도서관에 기부했다. 상현이네 반 학생은 20명이고 학생 당 15권의 책을 기부한다고 하였다. 그러나 도서관에서 받은 책의 수가 예상했던 책 수보다 6 권이 부족했다면 도서관에서 실제로 받은 도서 수는 몇권 입니까?

Answer: 294

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

Question (EN): There are 19 toys in all, each in a different sizes. If you put these toys in order from the smallest, toy (a) is at 9th and toy (b) is at 15th place. How many toys are there between toy (a) and toy (b)?
Question (KO): 각각의 크기가 다른 장난감이 모두 19개 있습니다. 이 장난감을 크기가 작은 것부터 순서대로 놓으면 장난감 (가)는 왼쪽에서 9번째에 있고, 장난감 (나)는 왼쪽에서 15번째에 있습니다. 장난감 (가)와 장난감 (나) 사이에 있는 장난감은 몇 개입니까?

Answer: 5

Solution (Python):
var_a = 15
var_b = 9
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Your older brother is 1/10 meter (m) taller than you, and your younger brother is 0.2 meter (m) shorter than you. If the younger brother is 1.1 meters (m), how tall is the older brother in meters (m)?
Question (KO): 형은 나보다 1/10미터(m) 더 크고, 동생은 나보다 0.2미터(m) 작습니다. 동생의 키가 1.1미터(m)라면 형의 키는 몇 미터(m)인지 구하시오.

Answer: 1.4

Solution (Python):
var_a = 0.2
var_b = 1.1
var_c = var_a + var_b
var_d = 0.1
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): Subtracting 3 from the number is a multiple of 6, and subtracting 1 from the number is a multiple of 8. Find the number. However, any number is a natural number greater than 35 and less than 70.
Question (KO): 어떤 수에서 3을 빼면 6의 배수이고, 어떤 수에서 1을 빼면 8의 배수이다. 어떤 수를 구하시오. 단, 어떤 수는 35보다 크고 70보다 작은 자연수이다.

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: Possibility

Question (EN): There are 4 cards numbered 3, 8, 2, and 7. If each card is used only once when forming a number with two-digit decimal number, what is the third largest number?
Question (KO): 3, 8, 2, 7의 숫자가 적힌 4 장의 카드가 있다. 각 카드를 딱 한 번씩만 사용하여 소수점 두 자리 수를 만들 때 세 번째로 큰 수는 무엇일까요?

Answer: 83.72

Solution (Python):
var_a = 3
var_b = 8
var_c = 2
var_d = 7
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 = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Comparison

Question (EN): Jungkook has a 0.8 number card and Yoongi has a 1/2 number card. How many people have a number card less than 0.3?
Question (KO): 정국이는 0.8, 윤기는 1/2의 숫자카드를 갖고 있습니다. 0.3보다 작은 숫자카드를 가지고 있는 사람은 몇 명입니까?

Answer: 0

Solution (Python):
var_a = 0.8
var_b = 0.5
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.3
list_b = []
for i in list_a:
    if i < var_c:
        list_b.append(i)
var_d = len(list_b)
print(int(var_d))
Category: Geometry

Question (EN): There is a rectangular farm. If the circumference of this farm is 46 kilometers (km) and the width is 7 kilometers (km) longer than the length, how many kilometers (km) is the width of this farm?
Question (KO): 직사각형 모양의 농장이 있습니다. 이 농장의 둘레의 길이는 46킬로미터(㎞)이고, 가로의 길이는 세로의 길이보다 7킬로미터(㎞) 더 길다고 할 때, 이 농장의 가로의 길이는 몇 킬로미터(㎞)입니까?

Answer: 15

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

Question (EN): You are comparing the heights of 20 students. Jungkook is shorter than Yoongi, and there are 5 students between Yoongi and Jungkook. There are 6 students who are taller than Jungkook. How many students are shorter than Yoongi?
Question (KO): 20명의 학생들의 키를 비교하고 있습니다. 정국이는 윤기보다 키가 작고, 윤기와 정국이 사이에는 5명의 학생이 있습니다. 정국이보다 키가 큰 학생은 모두 6명입니다. 윤기보다 작은 학생은 몇 명입니까?

Answer: 19

Solution (Python):
var_a = 20
var_b = 6
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Yuri ate 6 hamburgers in a hamburger eating contest, and Jisoo ate 8 hamburgers. Changhyun ate more than Yuri and less than Jisu. How many hamburgers did Changhyun eat?
Question (KO): 유리는 햄버거 먹기 대회에서 햄버거 6개를 먹었고, 지수는 햄버거 8개를 먹었습니다. 창현이는 유리보다는 많이 먹고 지수보다는 적게 먹었습니다. 창현이가 먹은 햄버거는 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a + var_b
var_d = 2
var_e = var_c // var_d
print(int(var_e))