philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): In the process of division, Seokjin left out the 0 in the tens place of the three-digit subtracting number, so he saw it as 15 by mistake. If he gets a quotient of 182 without any remainder, find the quotient of the correct calculation.

Question (KO): 석진이가 나눗셈을 하는 과정에서 나누는 세 자리 수의 십의 자리에 있는 0을 빠뜨려서 15로 잘못 보고 계산하였더니 몫이 182로 나누어떨어졌습니다. 바르게 계산한 몫을 구하시오.

Answer: 26

Solution (Python):
var_a = 15
var_b = 182
var_c = var_a * var_b
var_d = 105
var_e = var_c // var_d
print(int(var_e))
Category: Comparison

Question (EN): Which of the five numbers 1.4, 9/10, 1.2, 0.5, and 13/10 is greater than or equal to 1.1? Find the smallest or the equal number.
Question (KO): 5가지 숫자 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: Correspondence

Question (EN): Subtracting 17 from a number gives 55. What number is it when the number is divided by 9?
Question (KO): 어떤 수에 17을 뺐더니 결과가 55가 되었습니다. 9를 어떤 수로 나누면 얼마입니까?

Answer: 8

Solution (Python):
var_a = 55
var_b = 17
var_c = var_a + var_b
var_d = 9
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): How many faces in a tetrahedron meet at one vertex?
Question (KO): 정사면체에서 한 꼭짓점에 모인 면의 수는 모두 몇개인가요?

Answer: 3

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

Question (EN): Using 28 centimeters (cm) long wire, I made a rectangle with a width of 6. Find the area of the rectangle.
Question (KO): 길이가 28센티미터(㎝)인 철사를 사용하여 가로의 길이가 6인 직사각형을 만들었습니다. 직사각형의 넓이를 구하시오.

Answer: 48

Solution (Python):
var_a = 28
var_b = 2
var_c = var_a / var_b
var_d = 6
var_e = var_c - var_d
var_f = 6
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): While Yoongi was subtracting 57 from the three-digit number, Yoongi mistakenly saw the three-digit ones digit 9 as 6. If the difference that Yoongi found is 819, what is the correct calculation?
Question (KO): 윤기는 세 자리 수에 57을 빼던 중, 윤기는 세 자리 수의 일의 자리 숫자 9를 6으로 잘못 봤습니다. 윤기가 구한 차가 819라고 하면, 바르게 계산한 결과는 무엇인가요?

Answer: 822

Solution (Python):
var_a = 819
var_b = 57
var_c = var_a + var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
var_h = 57
var_i = var_g - var_h
print(int(var_i))
Category: Geometry

Question (EN): Find the number of semi-straight lines for three points that are not on a straight line.
Question (KO): 한 직선 위에 있지 않은 세 점에 대하여 반직선의 개수를 구하시오.

Answer: 6

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)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): When three people have marbles, 5 times the number of marbles that Namjoon has is 11 more than what Yoongi has. 2 multiply by the number that Yoongi has is 8 fewer than Hoseok's marbles. Find the sum of marbles for each person: Namjoon, Yoongi, and Hoseok.
Question (KO): 남준이가 가진 구슬 수의 5배는 윤기가 가진 구슬 개수 보다 11개 더 많습니다. 윤기가 가진 구슬 수의 2배는 호석이가 가진 구슬 개수 보다 8개 더 적습니다. 남준, 윤기, 호석이가 가지고 있는 구슬은 모두 몇 개입니까?

Answer: 247

Solution (Python):
var_a = 17
var_b = 17
var_c = 5
var_d = var_b * var_c
var_e = 11
var_f = var_d - var_e
var_g = var_a + var_f
var_h = 17
var_i = 5
var_j = var_h * var_i
var_k = 11
var_l = var_j - var_k
var_m = 2
var_n = var_l * var_m
var_o = 8
var_p = var_n + var_o
var_q = var_g + var_p
print(int(var_q))
Category: Arithmetic calculation

Question (EN): A large bucket is filled with water. You want to divide this water into 7 smaller buckets of the same shape and size. If you divide it by 900 grams (g), 200 grams (g) remain. How many kilograms (kg) of water is in the large bucket?
Question (KO): 큰 통에 물이 가득 들어 있습니다. 이 물을 모양과 크기가 같은 7개의 작은 물통에 나누어 담으려고 합니다. 900그램(g)씩 나누어 담으면 200그램(g)이 남습니다. 큰 물통에 들어 있는 물은 몇 킬로그램(㎏)입니까?

Answer: 6.5

Solution (Python):
var_a = 900
var_b = 7
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 1000
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Arithmetic calculation

Question (EN): When writing numbers from 1 to 125, find out how many times 2 are written.
Question (KO): 1부터 125까지 수를 쓸 때, 0부터 9까지의 숫자 중 2는 모두 몇 번 쓰는지 구하시오.

Answer: 29

Solution (Python):
var_a = 1
var_b = 125
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
    list_b.append(var_d%10)
    var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 2
var_f = 0
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i == var_e:
        var_f = var_f + 1
print(int(var_f))
Category: Arithmetic calculation

Question (EN): I bought 7 boxes of soda, each box containing 16 cans. Thirteen of them are discarded because the cans were crushed during transport, and I plan to distribute the remaining beverages equally among the eight cartons. How many cans of beverages do not fit in the box?
Question (KO): 한 상자에 16캔씩 들어있는 음료수를 7상자 샀습니다. 그중에서 13개는 운반 도중 캔이 찌그러져서 버리고, 남은 음료수를 8상자에 똑같이 나누어 담으려고 합니다. 상자에 들어가지 못하는 음료수는 몇 캔입니까?

Answer: 3

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

Question (EN): In a running competition, Jungkook came in the 7th and Minyoung came in the 5th. Taehyung did worse than Minyoung but better than Jungkook. In what place did Taehyung come in?
Question (KO): 달리기 시합에서 정국이는 7등을 했고, 민영이는 5등을 했습니다. 태형이는 민영이보다 못했지만 정국이보다는 잘했습니다. 태형이는 몇 등입니까?

Answer: 6

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

Question (EN): When a number is divided by 24, it becomes 19. What number is it?
Question (KO): 어떤 수를 24로 나누었더니 몫이 19 였습니다. 어떤 수는 얼마일까요?

Answer: 456

Solution (Python):
var_a = 19
var_b = 24
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): Find the sum of the vertices, faces, and edges of the octagonal pyramid.
Question (KO): 팔각뿔의 꼭짓점, 면, 모서리의 수의 합을 구하세요.

Answer: 34

Solution (Python):
var_a = 8
var_b = 1
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 = 8
var_i = 1
var_j = var_h + var_i
var_k = var_g + var_j
print(int(var_k))
Category: Comparison

Question (EN): There are three numbers A, B, and C. A is 8 multiplied by 9 minus 3. B is the quotient of A divided by 3. C is equal to 2 times B plus 4. Find the sum of the largest and smallest numbers.
Question (KO): 세 수 A, B, C가 있습니다. A는 8에 9를 곱한 후 3을 뺀 수입니다. B는 A를 3으로 나눈 몫입니다. C는 B를 2배 한 다음 4를 더한 수입니다. 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 92

Solution (Python):
var_a = 8
var_b = 9
var_c = var_a * var_b
var_d = 3
var_e = var_c - var_d
var_f = 8
var_g = 9
var_h = var_f * var_g
var_i = 3
var_j = var_h - var_i
var_k = 3
var_l = var_j / var_k
var_m = 8
var_n = 9
var_o = var_m * var_n
var_p = 3
var_q = var_o - var_p
var_r = 3
var_s = var_q / var_r
var_t = 2
var_u = var_s * var_t
var_v = 4
var_w = var_u + var_v
list_a= []
if "/" in str(var_w):
    var_w = eval(str(var_w))
list_a.append(var_w)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_a.append(var_l)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
list_a.reverse()
var_x = 1
list_b=list_a.copy()
list_b.sort()
var_y = list_b[-var_x]
var_z = 3
list_c=list_a.copy()
list_c.sort()
var_A = list_c[-var_z]
var_B = var_y + var_A
print(int(var_B))
Category: Possibility

Question (EN): Find the sum of possible four digit numbers that can be formed by using each 3, 5, 7, and 9.
Question (KO): 네 개의 숫자 3, 5, 7, 9를 각각 한 번씩만 사용하여 만들 수 있는 네 자리 수의 총합을 구하여라.

Answer: 159984

Solution (Python):
var_a = 3
var_b = 5
var_c = 7
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 = 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]
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print(int(var_f))
Category: Possibility

Question (EN): You are going to clean the classroom with 5 friends including Eunhee. When picking 2 people in charge of the classroom floor and 1 person in charge of the window, find the number of cases where Eunhee be in charge of the classroom floor.
Question (KO): 은희를 포함하여 5명의 친구들과 함께 교실 청소를 하려 한다. 교실 바닥 담당 2명, 창문 담당 1명을 뽑는다고 할 때, 은희가 교실 바닥 담당이 되는 경우의 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a - var_b
var_d = 2
var_e = 1
var_f = var_d - var_e
var_g = 1
var_h = var_f + var_g
var_i = 1
var_c = int(var_c)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_c-i)
print(int(var_i))
Category: Geometry

Question (EN): A lake has a circumference of 30 meters (m) and a circumference of 94.2 meters (m). How many times the circumference of the lake is greater than its diameter?
Question (KO): 어느 호수의 둘레는 30미터(m)이며, 둘레는 94.2미터(m)이다. 호수의 둘레는 지름의 몇 배인가?

Answer: 3.14

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

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

Answer: 1

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

Question (EN): Sumin has 6 square-shaped pieces of paper with each side measuring 30 centimeters (cm). To connect these papers in a single line, she overlapped them by 7 centimeters (cm) and attached them with glue. Find the area of the connected paper.
Question (KO): 수민이는 한 변의 길이가 30센티미터(㎝)인 정사각형 모양의 종이를 6장 가지고 있습니다. 이 종이를 한 줄로 연결하기 위해 7센티미터(㎝)씩 겹쳐 놓고 풀로 붙였습니다. 연결된 종이의 넓이를 구하시오.

Answer: 4350

Solution (Python):
var_a = 30
var_b = 6
var_c = var_a * var_b
var_d = 7
var_e = 6
var_f = 1
var_g = var_e - var_f
var_h = var_d * var_g
var_i = var_c - var_h
var_j = 30
var_k = var_i * var_j
print(int(var_k))
Category: Possibility

Question (EN): You want to divide 7 bananas into 2 different baskets. The basket must contain at least 1 banana. How many ways are there to share bananas?
Question (KO): 바나나 7개를 서로 다른 2개의 바구니에 나누어 담으려고 합니다. 바구니에는 적어도 바나나 1개를 담아야 합니다. 바나나를 나누어 담는 방법은 모두 몇 가지입니까?

Answer: 6

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

Question (EN): Some school divides classes into upper and lower classes according to math skills. If there are a total of 120 students and there are 36 more students in the lower class than in the upper class, how many students are in the lower class?
Question (KO): 어느 학교는 수학 실력에 따라 상반과 하반으로 나누어서 수업을 한다. 학생이 총 120명이고 하반 학생이 상반 학생보다 36명 더 많다면 하반 학생은 몇 명입니까?

Answer: 78

Solution (Python):
var_a = 120
var_b = 36
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 36
var_g = var_e + var_f
print(int(var_g))
Category: Comparison

Question (EN): There are 2 people standing in front of Jungkook and four people behind him. If there are a total of 8 lines with the same number of people for each line, how many people are there?
Question (KO): 정국 앞에 2명이 서 있고, 정국 뒤에 4명이 서있다. 총 8줄이 있고 각 줄에 서 있는 사람의 수가 같다면 총 몇 명입니까?

Answer: 56

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 1
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 3 numbers: 3/25, 1/5, and 55.21. What is the sum of these numbers?
Question (KO): 3/25, 1/5, 55.21 총 3개의 숫자가 있습니다. 숫자의 합은 얼마인가요?

Answer: 55.53

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

Question (EN): If A and B are the numbers of sides and vertices of a pentagon, what is the value of A+B?
Question (KO): 오각형의 변과 꼭짓점의 개수를 각각 A, B라 할 때, A+B의 값은?

Answer: 10

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

Question (EN): Find the number of combinations of numbers that add up to 19 by selecting 3 of the number cards from 1 to 9.
Question (KO): 1부터 9까지의 수가 적힌 숫자 카드들 중 3장을 골라서 합이 19가 되게 하는 수의 조합의 개수를 구하시오.

Answer: 30

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 = 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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 19
var_g = 0
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))
Category: Comparison

Question (EN): Which of 2.23, 3.12, 9.434, and 2.453 is the second smallest number?
Question (KO): 2.23, 3.12, 9.434 및 2.453중 2번째로 작은 수는?

Answer: 2.45

Solution (Python):
var_a = 2.23
var_b = 3.12
var_c = 9.434
var_d = 2.453
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 = 2
list_b=list_a.copy()
list_b.sort()
var_f = list_b[var_e-1]
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Of the students who played on the playground, 16 went home, and 9 more came, resulting in a total of 25. How many students were playing on the playground at first?
Question (KO): 운동장에서 놀던 학생 중에서 16명이 집에 가고, 9명이 더 와서 25명이 되었습니다. 처음에 운동장에서 놀던 학생은 몇 명입니까?

Answer: 32

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

Question (EN): Yuna and her friends are of different heights. The teacher lined up in order from the smallest height, and Yuna was 4th from the front and 6th from the back. How many Yuna and her friends are there?
Question (KO): 유나와 친구들은 서로 키가 다릅니다. 선생님께서 앞에서부터 키가 작은 순서대로 줄을 세웠더니 유나는 앞에서 4번째, 뒤에서 6번째에 있었습니다. 유나와 친구들은 모두 몇 명입니까?

Answer: 9

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

Question (EN): There are 240 pencils and erasers in the pencil case. If there are 2 fewer pencils than erasers, how many erasers are there in the pencil case?
Question (KO): 필통에 연필과 지우개가 모두 240개 있습니다. 연필이 지우개보다 2개 적게 들어있다면 필통 속의 지우개는 모두 몇 개입니까?

Answer: 121

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

Question (EN): There are numbers which are 38, 114, 152, and 95. What is the value when the largest number is divided by the smallest number?
Question (KO): 38, 114, 152, 95가 있습니다. 그중에서 가장 큰 수를 가장 작은 수로 나눈 값은 얼마입니까?

Answer: 4

Solution (Python):
var_a = 38
var_b = 114
var_c = 152
var_d = 95
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f / var_h
print(int(var_i))
Category: Comparison

Question (EN): 5 different boxes contain 20, 15, 18, 17, and 20 chocolates respectively. If all the chocolates are taken out of boxes containing 18 or more chocolates and put into one large box, find how many chocolates will fit in this box.
Question (KO): 5개의 서로 다른 상자에 초콜릿이 각각 20개, 15개, 18개, 17개, 20개 들어있습니다. 초콜릿이 18개 이상 들어있는 상자들에서 초콜릿을 모두 꺼내 큰 상자 하나에 담았을 때, 이 상자에는 몇 개의 초콜릿이 담길지 구하시오.

Answer: 58

Solution (Python):
var_a = 20
var_b = 15
var_c = 18
var_d = 17
var_e = 20
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 = 18
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(int(var_g))
Category: Arithmetic calculation

Question (EN): Father's age divided by daughter's age equals 4. When the sum of their ages after 5 years is 50, how old is your father this year?
Question (KO): 아버지의 나이를 딸의 나이로 나누면 4입니다. 5년 후 두 사람의 나이를 합하면 50일 때, 올해 아버지는 몇 세입니까?

Answer: 32

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

Question (EN): The length of each side of the parallelogram is 18 centimeters (cm) and 12 centimeters (cm), respectively. Find the circumference of this parellelogram.
Question (KO): 평행사변형의 각 변의 길이는 각각 18센티미터(㎝), 12센티미터(㎝)이다. 둘레를 구하라.

Answer: 60

Solution (Python):
var_a = 18
var_b = 12
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): A total of 30 trees are planted 9 meters (m) apart on either side of a road from beginning to end. Find the length of this road in meters (m).
Question (KO): 도로의 양쪽에 처음부터 끝까지 총 30그루의 나무가 9미터(m) 간격으로 심어져 있습니다. 이 도로의 길이는 몇 미터(m)인지 구해 보시오.

Answer: 126

Solution (Python):
var_a = 30
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
var_f = 9
var_g = var_e * var_f
print(int(var_g))
Category: Comparison

Question (EN): There are three numbers A, B, and C. A is 1/2 and B is 9/10. If C is 2/5, what is the smallest among A, B, or C?
Question (KO): 세 개의 숫자 A, B, C가 있습니다. A는 1/2이고 B는 9/10입니다. C가 2/5이면 A, B, C 중 작은 수는 무엇입니까?

Answer: C

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1
var_e = 2
var_f = var_d / var_e
var_g = 9
var_h = 10
var_i = var_g / var_h
var_j = 2
var_k = 5
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: Geometry

Question (EN): There are planks that are 36 centimeters (cm), 42 centimeters (cm), and 48 centimeters (cm) respectively. After cutting out 1/6 of this plank while trimming it, I overlapped and glued certain parts together, and the total length is 97 centimeters (cm). If all overlapping parts are the same length, find how many centimeters (cm) is the overlapping part.
Question (KO): 길이가 각각 36센티미터(㎝), 42센티미터(㎝), 48센티미터(㎝) 인 판자가 있다. 이 판자를 다듬느라 1/6을 잘라낸 후 일정 부분을 겹쳐서 붙혔더니 총 길이가 97센티미터(㎝)이다. 겹처진 부분의 길이는 모두 같을때, 겹처진 부분은 몇 센티미터(㎝)인지 구하시오.

Answer: 4

Solution (Python):
var_a = 36
var_b = 42
var_c = var_a + var_b
var_d = 48
var_e = var_c + var_d
var_f = 1
var_g = 0.16666666666666666
var_h = var_f - var_g
var_i = var_e * var_h
var_j = 97
var_k = var_i - var_j
var_l = 3
var_m = 1
var_n = var_l - var_m
var_o = var_k / var_n
print(int(var_o))
Category: Correspondence

Question (EN): A number needs to be multiplied by 5, but I mistakenly added 5 to get 43. Find the result of the correct calculation.
Question (KO): 어떤 수에 5를 곱해야 하는데 잘못하여 5를 더했더니 43이 되었습니다. 바르게 계산한 결과를 구하시오.

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

Question (EN): You want to plant trees at intervals of 4 meters (m) in a circle-shaped park with a circumference of 28 meters (m). Find how many trees you can plant.
Question (KO): 둘레가 28 미터(m) 인 원 모양의 공원에 4 미터(m) 간격으로 나무를 심으려고 합니다. 나무를 몇 그루 심을 수 있는 지 구하시오.

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 prism whose sum of the number of edges, faces, and vertices is 50. How many edges of the pyramid have the same base shape as the prism?
Question (KO): 모서리, 면, 꼭짓점의 수의 합이 50개인 각기둥이 있다. 이 각기둥과 밑면의 모양이 같은 각뿔의 모서리의 수는 몇개인가요?

Answer: 16

Solution (Python):
var_a = 50
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = 3
var_f = var_d + var_e
var_g = 1
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: Possibility

Question (EN): You want to draw two numbers from the digits 0, 1, 2, and 5 to create a number greater than 10 and less than 100. In how many cases does each digit of the drawn number differ?
Question (KO): 0, 1, 2, 5의 숫자 중 두 개의 숫자를 뽑아 10보다 크고 100보다 작은 수를 만들고자 한다. 뽑은 수 중 각 자리 숫자가 다른 경우는 몇 가지인가?

Answer: 8

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 5
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 = 2
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 = 10
list_c = []
for i in list_b:
    if i > var_f:
        list_c.append(i)
var_g = 100
list_d = []
for i in list_c:
    if i < var_g:
        list_d.append(i)
var_h = len(list_d)
print(int(var_h))