philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): What is the sum of the smallest and third smallest numbers that can be formed by moving each digit in 168?
Question (KO): 168의 각 자리의 숫자를 움직여 만들 수 있는 수 중 가장 작은 것과 세 번째로 작은 것의 합은 얼마인가?

Answer: 786

Solution (Python):
var_a = 168
list_a = []
var_a = int(var_a)
while var_a//10 > 0:
    list_a.append(var_a%10)
    var_a = var_a//10
list_a.append(var_a%10)
list_a = list_a[::-1]
var_b = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_b))
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_c = 1
list_c=list_b.copy()
list_c.sort()
var_d = list_c[var_c-1]
var_e = 3
list_d=list_b.copy()
list_d.sort()
var_f = list_d[var_e-1]
var_g = var_d + var_f
print(int(var_g))
Category: Comparison

Question (EN): Nine people are standing in a row in order from the short person. Hoseok is standing in second place from the back, and Yuna is standing right behind Hoseok. If you line up again starting with the tall person, which place will Yuna stand from the front?
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이는 뒤에서부터 4번째에 서 있고, 유나는 호석이로부터 3번째 뒤에 서 있습니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 유나는 앞에서부터 몇 번째에 서게 됩니까?

Answer: 1

Solution (Python):
var_a = 4
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): Find the number of three-digit integers that can be made by drawing 3 cards from 5 cards each containing the numbers 0, 1, 2, 3, 4.
Question (KO): 0, 1, 2, 3, 4의 수가 각각 적힌 5장의 카드에서 3장을 뽑아 만들 수 있는 세 자리의 정수의 개수를 구하시오.

Answer: 48

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_g = len(list_b)
print(int(var_g))
Category: Correspondence

Question (EN): A rice store bought 750 kilograms (kg) of rice. The first week they bought rice, they sold a few kilograms of rice, the next week they sold 3/5 of the remaining rice, and the next week they sold 5/8 of the remaining rice. 75 kg (kg) of rice was left 75 kg (kg) at the end. How many kilograms (kg) of rice did they sell in the first week?
Question (KO): 어느 쌀 가게에서 쌀 750킬로그램(㎏)을 들여 왔습니다. 쌀을 들여 온 첫 주에 쌀을 몇 킬로그램(㎏) 팔았고, 다음 주에 나머지 쌀의 3/5을 팔았고, 그 다음 주에 나머지 쌀의 5/8을 팔았더니 쌀이 75킬로그램(㎏) 남았습니다. 첫 주에는 몇 킬로그램(㎏)의 쌀을 팔았습니까?

Answer: 250

Solution (Python):
var_a = 750
var_b = 75
var_c = 1
var_d = 0.625
var_e = var_c - var_d
var_f = var_b / var_e
var_g = 1
var_h = 0.6
var_i = var_g - var_h
var_j = var_f / var_i
var_k = var_a - var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There are 58 roses. The number of tulips is 15 less than the number of roses and the number of lilies is 25 more than the number of roses. What is the total number of roses, tulips, and lilies?
Question (KO): 장미가 58송이 있습니다. 튤립은 장미보다 15송이 더 적고, 백합은 장미보다 25송이 더 많습니다. 장미, 튤립, 백합 3종류의 꽃은 모두 몇 송이 있습니까?

Answer: 184

Solution (Python):
var_a = 58
var_b = 58
var_c = 15
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 58
var_g = 25
var_h = var_f + var_g
var_i = var_e + var_h
print(int(var_i))
Category: Geometry

Question (EN): The height of a rectangular parallelepiped with a volume of 49 square centimeters (cm2) is 7 centimeters (cm). Find the area of the base.
Question (KO): 부피가 49제곱센티미터(㎠)인 직육면체의 높이가 7센티미터(㎝)이다. 밑면의 넓이를 구하시오.

Answer: 7

Solution (Python):
var_a = 49
var_b = 7
var_c = var_a / var_b
print(int(var_c))
Category: Comparison

Question (EN): Which one has the greater volume, a card holder in the shape of a cuboid with a base area of 8 square centimeters (cm2) and a height of 3 centimeters (cm), or a dice with a side length of 6 centimeters (cm)?
Question (KO): 밑면의 넓이가 8제곱센티미터(㎠)이고 높이가 3센티미터(㎝)인 직육면체 모양의 명함보관함과 한 변의 길이가 6센티미터(㎝)인 주사위 중 부피가 더 큰 것은 무엇인가요?

Answer: dice

Solution (Python):
var_a = 'holder'
var_b = 'dice'
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 = 8
var_d = 3
var_e = var_c * var_d
var_f = 5
var_g = 5
var_h = var_f * var_g
var_i = 5
var_j = var_h * var_i
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)
Category: Correspondence

Question (EN): Hansol is going to Busan by train. On the way, 263 passengers got off and 419 got on. When he counted the number of passengers arriving at his destination, Busan, there were 725 passengers. How many passengers were on the train at first?
Question (KO): 한솔이는 기차를 타고 부산에 가고 있습니다. 도중에 승객 263명이 내리고, 419명이 탔습니다. 목적지인 부산에 도착하여 내리는 승객을 세어 보니 725명이었습니다. 처음에 기차에 타고 있던 승객은 몇 명이었습니까?

Answer: 569

Solution (Python):
var_a = 725
var_b = 419
var_c = var_a - var_b
var_d = 263
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Which of the four numbers among 5, 8, 3, 2 is the smallest?
Question (KO): 4개의 숫자 5, 8, 3 2중 가장 작은 것은 무엇입니까?

Answer: 2

Solution (Python):
var_a = 5
var_b = 8
var_c = 3
var_d = 2
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-1]
print(int(var_f))
Category: Possibility

Question (EN): If you make two-digit numbers by picking two out of six number cards 8, 3, 6, 5, 0, 7, the second largest number is A and the third largest number is B. Find (A-B)×6.
Question (KO): 여섯 장의 숫자 카드 8, 3, 6, 5, 0, 7 중 두 장을 뽑아 만든 두 자리 수 중에서 두번째로 큰 수를 A, 세번째로 큰 수를 B라고 할 때, (A-B)×6의 값을 구하시오.

Answer: 6

Solution (Python):
var_a = 8
var_b = 3
var_c = 6
var_d = 5
var_e = 0
var_f = 7
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_g = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = 2
list_c=list_b.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = 3
list_d=list_b.copy()
list_d.sort()
var_k = list_d[-var_j]
var_l = var_i - var_k
var_m = 6
var_n = var_l * var_m
print(int(var_n))
Category: Correspondence

Question (EN): I multiplied a particular number by 25, when I should have divided that particular number by 4. As a result, I got 812. Find the correct calculated value.
Question (KO): 어떤 수를 4로 나눠야 할 것을 25를 곱하였더니 812가 되었다. 바르게 계산한 값을 구하시오.

Answer: 8.12

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

Question (EN): One year before my older brother was 10, my younger brother was 7 years old, and my mother was 32 when my younger brother was 5 years old. Find the sum of the ages of the younger brother and mother when the older brother is 12 years old.
Question (KO): 형이 10살이기 1년 전에 동생은 7살이고, 동생이 5살일 때 어머니는 32살입니다. 형이 12살일 때 동생과 어머니의 나이의 합을 구하시오.

Answer: 46

Solution (Python):
var_a = 12
var_b = 7
var_c = 10
var_d = 1
var_e = var_c - var_d
var_f = var_b - var_e
var_g = var_a + var_f
var_h = 12
var_i = 7
var_j = 10
var_k = var_i - var_j
var_l = var_h + var_k
var_m = 32
var_n = 5
var_o = var_m - var_n
var_p = var_l + var_o
var_q = var_g + var_p
print(int(var_q))
Category: Possibility

Question (EN): If 6 soccer teams play with each other once, how many matches will take place in total?
Question (KO): 6개의 축구팀이 서로 한 번씩 시합을 가진다면 모두 몇 번의 시합이 이루어지는지 모두 구하시오

Answer: 15

Solution (Python):
var_a = 6
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: Comparison

Question (EN): The distance from the house to the park is 150 meters (m) more than 3 kilometers (km), and the distance from the house to the bank is 3095 meters (m). Which is farther from home, the park or the bank?
Question (KO): 집에서 공원까지의 거리는 3킬로미터(㎞)보다 150미터(m) 더 멀고 집에서 은행까지의 거리는 3095미터(m)입니다. 공원과 은행 중에서 집에서 더 먼 곳은 어느 곳입니까?

Answer: park

Solution (Python):
var_a = 'park'
var_b = 'bank'
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 = 3
var_d = 1000
var_e = var_c * var_d
var_f = 150
var_g = var_e + var_f
var_h = 3096
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]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Geometry

Question (EN): 5 rows of 8 square-shaped checkerboards that are each 30 centimeters (cm) wide and 30 centimeters (cm) long were attached on the floor. Find the area of the plane on the checkerboard in square centimeters (m2).
Question (KO): 바닥에 가로가 30센티미터(㎝), 세로가 30센티미터(㎝)인 정사각형 모양의 바둑판을 8개씩 5줄 붙였습니다. 바둑판 위의 평면의 넓이가 몇 제곱미터 (m2)인지 구하시오.

Answer: 3.6

Solution (Python):
var_a = 30
var_b = 100
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 8
var_g = var_e * var_f
var_h = 5
var_i = var_g * var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Arithmetic calculation

Question (EN): The sum of 3 consecutive odd numbers is 52 greater than the largest odd number of 3 odd numbers. Write down the smallest one of the three odd numbers.
Question (KO): 3개의 연속된 홀수의 합은 3개의 홀수 중 가장 큰 홀수보다 52만큼 큽니다. 3개의 홀수 중 가장 작은 수를 쓰시오.

Answer: 25

Solution (Python):
var_a = 52
var_b = 2
var_c = 1
var_d = var_b * var_c
var_e = 2
var_f = 2
var_g = var_e * var_f
var_h = var_d + var_g
var_i = var_a + var_h
var_j = 3
var_k = 1
var_l = var_j - var_k
var_m = var_i / var_l
var_n = 2
var_o = 2
var_p = var_n * var_o
var_q = var_m - var_p
print(int(var_q))
Category: Comparison

Question (EN): There are 6 numbers 1, 4, 25, 16, 22, and 14. What is the 2nd smallest number?
Question (KO): 6개의 숫자 1, 4, 25, 16, 22, 14가 있습니다. 2번째로 작은 숫자는 무엇입니까?

Answer: 4

Solution (Python):
var_a = 1
var_b = 4
var_c = 25
var_d = 16
var_e = 22
var_f = 14
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_g = 2
list_b=list_a.copy()
list_b.sort()
var_h = list_b[var_g-1]
print(int(var_h))
Category: Comparison

Question (EN): The distance from the house to the orchard is 396 meters (m) and the distance from the house to the market is 0.389 kilometers (km). Which is closer to the house, the orchard or the market?
Question (KO): 집에서 과수원까지의 거리가 396미터(m)이고, 집에서 마트까지의 거리가 0.389킬로미터(㎞)라고 합니다. 집에서 과수원과 마트 중 어디가 더 가깝습니까?

Answer: mart

Solution (Python):
var_a = 'orchard'
var_b = 'mart'
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 = 396
var_d = 0.389
var_e = 1000
var_f = var_d * var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Correspondence

Question (EN): Divide 244.8 by some number to get 51. Find the value multiplied by 15.
Question (KO): 244.8을 어떤 수로 나누었더니 51 이 되었습니다. 어떤 수에 15를 곱한 값을 구하시오.

Answer: 72

Solution (Python):
var_a = 244.8
var_b = 51
var_c = var_a / var_b
var_d = 15
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Each gift box contains 156 candies. How many candies will you need in total if you are going to distribute each gift box to 20 children?
Question (KO): 선물 상자 하나에는 사탕이 156개 들어있습니다. 20명의 아이들에게 선물 상자를 하나씩 나누어 주려고 할 때 사탕은 모두 몇 개가 필요할까요?

Answer: 3120

Solution (Python):
var_a = 156
var_b = 20
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): A trapezoid is a quadrilateral with one pair of opposite sides parallel to each other. A triangle shape was cut out of this trapezoid so that the remaining opposite sides were parallel. If the base of a shape made like this is 9.51 centimeters (cm) and the height is 4.8 centimeters (cm), what is the area?
Question (KO): 사다리꼴은 마주 보는 한 쌍의 변이 서로 평행한 사각형입니다. 이 사다리꼴에서 삼각형 모양을 잘라내어 나머지 마주 보는 변도 평행하도록 만들었습니다. 이렇게 만들어진 도형의 밑변이 9.51센티미터(㎝), 높이가 4.8센티미터(㎝)라면 넓이는 얼마인지 구하시오.

Answer: 45.65

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

Question (EN): Find the sum of the following six natural numbers. 36, 17, 32, 54, 28, 3.
Question (KO): 다음 여섯 자연수의 총합을 구하시오. 36, 17, 32, 54, 28, 3

Answer: 170

Solution (Python):
var_a = 36
var_b = 17
var_c = 32
var_d = 54
var_e = 28
var_f = 3
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
list_a = [float(i) for i in list_a]
var_g = sum(list_a)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): To make ribbons in Dayeon's class, 10 students divided the ribbon tapes by 0.84 meters (m). If the ribbon tape had 50 centimeters (cm) left after it was divided, how many meters (m) were it before it was divided?
Question (KO): 다연이네 반에서 리본 만들기를 하기 위해 10명의 친구들이 리본 테이프를 0.84미터(m)씩 나눠 가졌습니다. 리본 테이프가 나눠 가진 후에 50센티미터(㎝) 남았다면 나눠 가지기 전에는 몇 미터(m)였을까요?

Answer: 8.9

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

Question (EN): There are three numbers 10, 11, and 12. What is the largest number divided by the second smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 큰 수를 2번째로 작은 수로 나눈 값은 얼마입니까?

Answer: 1.09

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]
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('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Possibility

Question (EN): Using the number cards 1, 6, and 8 all at least once, find the difference between the largest three-digit number and the third largest three-digit number.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 가장 큰 세 자리 수와 세 번째로 큰 세 자리수의 차를 구하시오.

Answer: 243

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
var_j = abs(var_i)
print(int(var_j))
Category: Arithmetic calculation

Question (EN): What is the largest number that is a multiple of 4 and a factor of 108?
Question (KO): 4의 배수이면서 108의 약수인 수 중에서 가장 큰 수는 얼마입니까?

Answer: 108

Solution (Python):
var_a = 108
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 = 4
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = 1
list_c=list_b.copy()
list_c.sort()
var_d = list_c[-var_c]
print(int(var_d))
Category: Geometry

Question (EN): I have decided to mark two lines every 4 meters (m) on a 68 meter (m) line. How many marks are there? (Note that both ends of the string are also marked).
Question (KO): 68미터(m)의 줄에 4미터(m)마다 두 줄로 표시를 남기기로 하였습니다. 표시로 남겨지는 줄은 몇 개입니까? (단, 줄의 양 끝 역시 표시를 남깁니다.)

Answer: 36

Solution (Python):
var_a = 68
var_b = 4
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 even numbers from 2 to 20. What is the 3rd largest number minus the 4th smallest number?
Question (KO): 2부터 20까지의 짝수가 있습니다. 그중에서 3번째로 큰 수에서 4번째로 작은 수를 뺀 값은 얼마입니까?

Answer: 8

Solution (Python):
var_a = 2
var_b = 20
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=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
var_e = 4
list_c=list_a.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = var_d - var_f
print(int(var_g))
Category: Correspondence

Question (EN): The quotient of 59 divided by the natural number A is 6 and the remainder is 5. What is the value of A?
Question (KO): 59에 대해 자연수 A로 나눈 몫은 6, 나머지는 5입니다. A의 값은 무엇일까요?

Answer: 9

Solution (Python):
var_a = 59
var_b = 5
var_c = var_a - var_b
var_d = 6
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): When you divide a certain number by 3, you get a result equal to the number you divided. What number is it?
Question (KO): 어떤 수를 3으로 나누었더니 나누어준 값과 같은 수가 나왔습니다. 어떤 수는 얼마입니까?

Answer: 9

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

Question (EN): If the height of a parallelogram with an area of 108 square centimeters is 9 centimeters (cm), what is the length of the base in centimeters (cm)?
Question (KO): 넓이가 108제곱센티미터인 평행사변형의 높이가 9센티미터(㎝)라고 할 때, 밑변의 길이는 몇 센티미터(㎝)입니까?

Answer: 12

Solution (Python):
var_a = 108
var_b = 9
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Watermelons of the same size and weight were filled in a basket, and the basket weighed 63 kilograms (kg). After removing half of the watermelons, the basket weighed 34 kilograms (kg). What was the weight of the watermelons without the basket before they were removed?
Question (KO): 크기와 무게가 같은 수박을 바구니에 가득 담아 무게를 재었더니 63킬로그램(㎏)이었습니다. 이 중 절반의 수박을 덜어낸 후에 바구니와 함께 무게를 재어 보니 34킬로그램(㎏)이 되었습니다. 원래 있던 수박만의 무게는 몇 킬로그램(㎏)입니까?

Answer: 58

Solution (Python):
var_a = 63
var_b = 34
var_c = var_a - var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Jiwoo is 1.32 meters (m) tall and Heejin is 1.3 meters (m) tall. If the class numbers students from the shortest to the tallest, which of Jiwoo's and Heejin's numbers is higher?
Question (KO): 지우의 키는 1.32미터(m)이고, 희진이의 키는 1.3미터(m)입니다. 두 사람의 학급은 키가 작은 사람부터 키 번호를 매긴다고 할 때, 지우와 희진이 중 키 번호가 큰 사람은 누구입니까?

Answer: Jiwoo

Solution (Python):
var_a = 'Jiwoo'
var_b = 'Heejin'
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 = 1.32
var_d = 1.3
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)
Category: Comparison

Question (EN): When 45 boxes of different sizes are arranged in order from smallest to largest, the red box is 29th from the right. If the boxes are arranged in order of size starting from the largest, how far from the right should the red box be?
Question (KO): 크기가 서로 다른 상자 45개를 작은 것부터 크기순으로 나열하였을 때 빨간색 상자는 오른쪽에서 29번째에 있습니다. 상자를 큰 것부터 다시 크기순으로 나열 하였다면 빨간색 상자는 오른쪽에서 몇 번째에 놓입니까?

Answer: 17

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

Question (EN): How many diagonals are there in a figure composed of ten angles?
Question (KO): 10개의 각으로 이루어진 도형의 대각선은 몇 개입니까?

Answer: 35

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

Question (EN): Yuna's family drank 0.4 of the milk today, and the amount of milk was 0.69 liters (L). Find how many liters (L) of milk were in the beginning.
Question (KO): 유나네 가족이 오늘 우유를 전체의 0.4만큼 마신 우유의 양이 0.69리터(L)였습니다. 처음에 있던 우유는 몇 리터(L)인지 구하시오.

Answer: 1.73

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

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

Answer: 20

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

Question (EN): There are 3 tulips and 4 carnations in the flower bed. How many flowers are there in the flower bed in total?
Question (KO): 화단에 튤립이 3송이, 카네이션이 4송이 있습니다. 화단에 있는 전체 꽃의 개수는?

Answer: 7

Solution (Python):
var_a = 3
var_b = 4
var_c = var_a + var_b
print(int(var_c))