philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): A cube has an edge length of 3 centimeters (cm). If a cube with an edge length of 1 centimeters (cm) is cut out from this cube as many times as the number of the faces of the cube, what is the volume of the remaining part?
Question (KO): 어떤 정육면체는 모서리의 길이가 3센티미터(㎝)이다. 이 정육면체에서 모서리의 길이가 1센티미터(㎝)인 정육면체를 면의 개수만큼 잘라내었다면, 남은 부분의 부피는 얼마인가?

Answer: 21

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

Question (EN): Express the quotient of the number obtained from dividing the larger number by a smaller number out of numbers 8 and 22, as a decimal number.
Question (KO): 8과 22 중 큰 수를 작은 수로 나눈 몫을 소수로 나타내어 보세요.

Answer: 2.75

Solution (Python):
var_a = 22
var_b = 8
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Correspondence

Question (EN): When 13 is divided by A, the quotient is B and the remainder is 3. A and B are both natural numbers. What is the largest number among possible A's?
Question (KO): 13을 A로 나눴을 때 몫이 B, 나머지가 3이였습니다. A와 B는 모두 자연수입니다. 이 때, 가능한 A 중 가장 큰 수는 무엇인가요?

Answer: 10

Solution (Python):
var_a = 13
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): The sum of the weight of 9 comic books and 7 children's books was 10.98 kilograms (kg). If a comic book weighs 0.8 kilograms (kg), how many kilograms (kg) does a children's book weigh?
Question (KO): 같은 만화책 9권과 같은 동화책 7권의 무게의 합이 10.98킬로그램(㎏)이었습니다. 만화책 한 권의 무게가 0.8킬로그램(㎏)일 때 동화책 한 권의 무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0.54

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

Question (EN): Hancho used 1/5 of the colored tape he had to make a work of art and gave 3/4 of the remaining to Gayeong. If the remaining length of the colored tape was 1 meter (m) and 50 centimeters (cm), how many meters (m) was the length of the colored tape that Hancho had at the beginning?
Question (KO): 한초는 가지고 있던 색 테이프의 1/5를 사용하여 미술 작품을 만들고, 그 나머지의 3/4를 가영이에게 주었습니다. 남은 색 테이프의 길이가 1미터(m) 50센티미터(㎝)라면, 한초가 처음에 가지고 있었던 색 테이프의 길이는 몇 미터(m)입니까?

Answer: 7.5

Solution (Python):
var_a = 1
var_b = 50
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1
var_g = 0.75
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 1
var_k = 0.2
var_l = var_j - var_k
var_m = var_i / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Comparison

Question (EN): How many numbers among 0.8, 1/2, 0.9, 1/3 are less than 0.4?
Question (KO): 0.8, 1/2, 0.9, 1/3 중에서 0.4보다 작은 수는 몇 개입니까?

Answer: 1

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
var_d = 0.3333333333333333
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 = 0.4
list_b = []
for i in list_a:
    if i < var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): It takes 800 meters (m) from the mart to home,1 kilometer (km) and 300 meters (m) from home to the academy, and 1700 meters (m) from the academy to the restaurant. How many meters (m) from the mart to the academy via home is longer than from the academy to the restaurant?
Question (KO): 마트에서 집까지의 거리는 800미터(m)이고, 집에서 학원까지의 거리는 1킬로미터(㎞) 300미터(m), 학원에서 음식점까지의 거리는 1700미터(m)입니다. 마트에서 집을 거쳐 학원까지의 거리는 학원에서 음식점까지의 거리보다 몇 미터(m) 더 멉니까?

Answer: 400

Solution (Python):
var_a = 800
var_b = 1
var_c = 1000
var_d = var_b * var_c
var_e = 300
var_f = var_d + var_e
var_g = var_a + var_f
var_h = 1700
var_i = var_g - var_h
print(int(var_i))
Category: Possibility

Question (EN): We are going to use 2 of our 3 number cards 2, 4, 5  to create a double-digit number. How many possible numbers from those are divisible by 4?
Question (KO): 2, 4, 5 총 3장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에 4로 나누어 떨어지는 수는 모두 몇 개인가요?

Answer: 2

Solution (Python):
var_a = 2
var_b = 4
var_c = 5
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 = 2
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 = 4
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Geometry

Question (EN): You bought 60 centimeters (cm) of wire from a stationery store to make a square with a side length of 9 centimeters (cm). If you use this wire to make a square, how many centimeters (cm) of wire will you have left?
Question (KO): 한 변의 길이가 9센티미터(㎝)인 정사각형을 만들기 위해 문방구에서 60센티미터(㎝)짜리 철사를 샀습니다. 이 철사를 이용해서 정사각형을 만든다면, 몇 센티미터(㎝)의 철사가 남겠습니까?

Answer: 24

Solution (Python):
var_a = 60
var_b = 9
var_c = 4
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e))
Category: Comparison

Question (EN): Jiseong drank 9/25 liters (L) of milk, and Youngpyo drank 0.41 liters (L). Who drank more milk?
Question (KO): 우유를 지성이는 9/25리터(L) 마셨고, 영표는 0.41리터(L) 마셨습니다. 누가 우유를 더 많이 마셨습니까?

Answer: Youngpyo

Solution (Python):
var_a = 'Jiseong'
var_b = 'Youngpyo'
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.36
var_d = 0.41
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: Correspondence

Question (EN): Giving the marbles in the bag to 7 people, 12 each, and 5 left. If you divide these marbles equally among 8 people, how many marbles can you divide for each people?
Question (KO): 주머니 속의 구슬을 7명에게 나누어주었더니 12개씩 나누어주고 5개가 남았습니다. 이 구슬을 8명에게 똑같이 나누어 준다면 몇 개씩 나누어 줄 수 있는지 구하시오.

Answer: 11

Solution (Python):
var_a = 12
var_b = 7
var_c = var_a * var_b
var_d = 5
var_e = var_c + var_d
var_f = 8
var_g = var_e // var_f
print(int(var_g))
Category: Correspondence

Question (EN): If you multiply Jinwoo's younger sibling's age by some natural number, you get 90. Find the age of all possible Jinwoo's younger sibling.
Question (KO): 진우의 동생의 나이에 어떤 자연수를 곱하면 90이다. 가능한 진우의 동생의 나이는 모두 몇 개인지 구하시오.

Answer: 12

Solution (Python):
var_a = 90
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: Geometry

Question (EN): There are three pyramids (a), (b), and (c). Given that the sum of the vertices of the three pyramids is 40, what is the sum of the edges of these pyramids?
Question (KO): 세 각뿔 (가), (나), (다)가 있습니다. 세 각뿔의 꼭짓점의 수의 합이 40개일 때 세 각뿔의 모서리의 수의 합은 몇 개입니까?

Answer: 74

Solution (Python):
var_a = 40
var_b = 3
var_c = var_a - var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): You mistakenly divided 7 to a number instead of adding 36, and got 8. What is the correct calculation result?
Question (KO): 어떤 수에 36을 더해야 할 것을 잘못하여 7을 나눈 결과는 8이 되었습니다. 바르게 계산한 결과는 얼마인가요?

Answer: 92

Solution (Python):
var_a = 8
var_b = 7
var_c = var_a * var_b
var_d = 36
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): In the calculation of subtracting a two-digit number, the number 2 in the tens digit of the subtracting number was mistakenly read as 5, and the number 4 in the units digit was mistakenly read as 9, and the result was 14. How much do get when you calculate correctly?
Question (KO): 두 자리 숫자를 빼는 연산에서 빼는 숫자의 십의 자리 숫자 2를 실수로 5로 보고 일의 자리 숫자 4를 실수로 9로 보고 계산을 했더니 14가 나왔습니다. 바르게 계산하면 얼마입니까?

Answer: 49

Solution (Python):
var_a = 14
var_b = 1
var_c = 4
var_d = 9
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a - var_f
var_h = 10
var_i = 2
var_j = 5
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_g - var_l
print(int(var_m))
Category: Possibility

Question (EN): Choose three of the natural numbers 5, 3, 1, and 9 to form three-digit numbers. When writing the numbers in order from largest to smallest, find the 10th number.
Question (KO): 자연수 5, 3, 1, 9 중 3장을 골라 세 자리 수를 만듭니다. 큰 수부터 차례로 쓸 때, 10번째 수를 구하시오.

Answer: 531

Solution (Python):
var_a = 5
var_b = 3
var_c = 1
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 = 10
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are a total of 24 students in Year 1 and Year 2. Of these, 50 chocolates were distributed equally to only the first-year students, and two chocolates were left. If the number of second-year students is twice the number of first-year students, how many chocolates did the first-year students get?
Question (KO): 1학년 학생과 2학년 학생이 합하여 24명이 있습니다. 이 중 1학년 학생에게만 초콜릿 50개를 똑같이 나누어 주었더니 2개가 남았습니다. 2학년 학생의 수가 1학년 학생의 수의 2배일 때, 1학년 학생은 초콜릿을 몇 개씩 받았습니까?

Answer: 6

Solution (Python):
var_a = 50
var_b = 2
var_c = var_a - var_b
var_d = 24
var_e = 2
var_f = 1
var_g = var_e + var_f
var_h = var_d // var_g
var_i = var_c // var_h
print(int(var_i))
Category: Correspondence

Question (EN): 24 is the value of a number multiplied by 2/5. What number do you get when the number is multiplied by 1/15?
Question (KO): 24는 어떤 수에 2/5를 곱한 값입니다. 어떤 수에 1/15를 곱하면 얼마가 됩니까?

Answer: 4

Solution (Python):
var_a = 24
var_b = 1
var_c = 0.4
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 0.06666666666666667
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): At first there were 6 more roosters on the farm compared to hens. Today I bought 4 more roosters and 8 more hens, bringing the total to 20 hens. How many roosters are currently on the farm?
Question (KO): 처음 농장에 수탉이 암탉보다 6마리 더 많이 있었습니다. 오늘 수탉 4마리와 암탉 8마리를 더 사왔더니 암탉은 모두 20마리가 되었습니다. 현재 농장에 있는 수탉은 몇 마리입니까?

Answer: 22

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

Question (EN): Seonwoo's school's 3rd graders have 4 classes with 21 students in each class. All 3rd graders are trying to plant 2 seeds in their pots. How many seeds do they need in all?
Question (KO): 선우네 학교 3학년은 한 반에 21명씩 4개 반이 있습니다. 3학년 학생이 모두 자신의 화분에 씨앗을 2개씩 심어 키우려고 합니다. 씨앗은 모두 몇 개가 필요합니까?

Answer: 168

Solution (Python):
var_a = 21
var_b = 4
var_c = var_a * var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Hoseok added 8 to a certain number and got 88. Find the exact result of dividing this number by 10.
Question (KO): 호석이는 어떤 수에 8을 더해 88을 얻었습니다. 어떤 수를 10으로 나눈 결과값을 정확히 구하시오.

Answer: 8

Solution (Python):
var_a = 88
var_b = 8
var_c = var_a - var_b
var_d = 10
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): How much is 1 dollar in Korean money when 140 dollars is converted into 158,760 won in Korean money?
Question (KO): 미국 돈 140달러는 우리나라 돈 158760원으로 바꿀 수 있다고 합니다. 미국 돈에 대한 우리나라 돈의 환율은 얼마인지 구하세요.

Answer: 1134

Solution (Python):
var_a = 158760
var_b = 140
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a cube with a side perimeter of 52 centimeters (cm). What is the surface area of this cube in square centimeters (cm2)?
Question (KO): 한 면의 둘레가 52센티미터(㎝)인 정육면체가 있습니다. 이 정육면체의 겉넓이는 몇 제곱센티미터입니까?

Answer: 1014

Solution (Python):
var_a = 52
var_b = 4
var_c = var_a / var_b
var_d = 52
var_e = 4
var_f = var_d / var_e
var_g = var_c * var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): One farm has a rectangular fence. This fence is 30 meters (m) in circumference, and its width is twice as long as its length. Find the width of the fence in meters (m).
Question (KO): 어느 농장은 직사각형 모양의 울타리를 갖고 있습니다. 이 울타리는 둘레가 30미터(m)이고, 가로의 길이가 세로의 길이의 2배입니다. 울타리의 가로 길이는 몇 미터(m)인지 구하시오.

Answer: 10

Solution (Python):
var_a = 30
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = 2
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 we divide 17 by 5, the quotient is 3, and the remainder is A. Find A here.
Question (KO): 17을 5로 나눴더니 몫이 3가 되었고, 나머지는 A가 되었습니다. 이 때 A를 구하시오.

Answer: 2

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

Question (EN): There are baseballs, soccer balls and volleyballs in the gym. The number of baseballs is 5 times the number of soccer balls, and the number of volleyballs is 3 times the number of soccer balls. If the sum of baseballs and volleyballs is 160, how many soccer balls are there?
Question (KO): 체육관에 야구공, 축구공, 배구공이 있습니다. 야구공 수는 축구공 수의 5배이고, 배구공 수는 축구공 수의 3배입니다. 야구공과 배구공 수의 합이 160개라면 축구공은 몇 개인지 구해 보시오.

Answer: 20

Solution (Python):
var_a = 160
var_b = 5
var_c = 3
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): If a watermelon sold at a store costs 200 won more than 5,000 won, find the price of the watermelon in units of 1,000 won.
Question (KO): 어느 가게에서 파는 수박이 5천원보다 2백원 비쌀 때, 수박의 가격을 천원 단위로 구하시오.

Answer: 5.2

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

Question (EN): Yuna, Yoojung, and Minyoung took number tickets at the bank. Yuna's number is higher than Yoojung's, and Minyoung's number is lower than Yuna's. Who has the largest number?
Question (KO): 유나, 유정, 민영이 은행에서 번호표를 뽑았습니다. 유나의 번호는 유정보다 크고, 민영이의 번호는 유나보다 작습니다. 가장 큰 번호를 가진 사람은 누구입니까?

Answer: Yuna

Solution (Python):
var_a = 'Yuna'
var_b = 'Yoojung'
var_c = 'Minyoung'
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 = 'Yuna'
var_e = 'Yoojung'
var_f = '>'
var_g = 'Minyoung'
var_h = 'Yuna'
var_i = '<'
list_b= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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)
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()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_j = 1
var_k = list_c[var_j-1]
print(var_k)
Category: Comparison

Question (EN): 20 students are lined up in a single line. Jungkook is standing in front of Yoongi, and there are 5 students between Yoongi and Jungkook. There are 6 students standing behind Jungkook. How many students are standing in front of 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: Arithmetic calculation

Question (EN): Electric poles were erected on the road at intervals of 25 meters (m). If the distance between the first and last telephone poles is 1500 m (m), how many telephone poles are there?
Question (KO): 도로에 전봇대를 25미터(m) 간격으로 세웠다. 첫번째 전봇대와 마지막 전봇대 사이의 거리가 1500미터(m)일 때, 전봇대는 모두 몇 대 인지 구하시오.

Answer: 61

Solution (Python):
var_a = 1500
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): The least common multiple of 24 and a number is 168. If the greatest common divisor is 4, what number is it?
Question (KO): 24와 어떤 수는 최소공배수가 168이다. 최대공약수가 4라면 어떤 수는 무엇인가?

Answer: 28

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

Question (EN): What is the smallest three-digit number that is divisible by 2?
Question (KO): 2로 나누어 떨어질 수 있는 세 자리 수 중 가장 작은 수는?

Answer: 100

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 2
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-1]
print(int(var_f))
Category: Comparison

Question (EN): There are 24 vehicles. Of these, red cars make up a quarter of the total, blue cars outnumber red cars by six, and yellow cars make up the rest. What color cars are there the most?
Question (KO): 24대의 차량이 있습니다. 이 중 빨간색 자동차가 전체의 4분의 1을 차지하고 파란색 자동차가 빨간색 자동차보다 6대 더 많으며 나머지는 노란색 자동차입니다. 어떤 색의 자동차가 가장 많습니까?

Answer: blue

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 = 24
var_e = 4
var_f = var_d / var_e
var_g = 24
var_h = 4
var_i = var_g / var_h
var_j = 6
var_k = var_i + var_j
var_l = 24
var_m = 24
var_n = 4
var_o = var_m / var_n
var_p = 6
var_q = var_o + var_p
var_r = var_l - var_q
var_s = 24
var_t = 4
var_u = var_s / var_t
var_v = var_r - var_u
list_b= []
if "/" in str(var_v):
    var_v = eval(str(var_v))
list_b.append(var_v)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_w = 1
list_c=list_b.copy()
list_c.sort()
var_x = list_c[-var_w]
var_y = list_b.index(var_x)+1
var_z = list_a[var_y-1]
print(var_z)
Category: Arithmetic calculation

Question (EN): During the athletic meeting, the students in Jimin's class stand at the same intervals back and forth. If the distance between the student in the front and the student at the back is 242 meters (m), and the distance between Jimin and the next student is 5.5 meters (m), how many students are in Jimin's class?
Question (KO): 체육대회 시간에 지민이 반 학생들이 앞 뒤로 같은 간격으로 서 있다. 맨 앞 학생과 맨 뒤 학생의 거리가 242 미터(m)이고, 지민이 바로 앞 학생과의 거리가 5.5미터(m)라면 지민이 반 학생 수는 몇 명인가?

Answer: 45

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

Question (EN): Today, 35046 tourists visited the cherry blossom festival. A third of them used their own cars, and half came from Seoul. Check out how many people came to the cherry blossom festival by car from Seoul.
Question (KO): 오늘은 35046명의 관광객이 벚꽃축제를 찾았다. 그 중 3분의 1이 자가용을 이용하고 절반이 서울에서 왔다. 서울에서 차로 얼마나 많은 사람들이 벚꽃 축제에 왔는지 확인하십시오.

Answer: 5841

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

Question (EN): There can be some polygon with A as the number of vertices inside the square if you draw two diagonals in it. If B stands for the number of polygons, what is the answer for the following equation: AxB?
Question (KO): 사각형에서 두 개의 대각선을 그으면, A각형이 B개 만들어진다. A×B는 얼마인가?

Answer: 12

Solution (Python):
var_a = 3
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): We are going to install a rockfall warning sign to prepare for landslides. If the sign is installed from the beginning to the end by dividing it into 4 sections equally from the 0.35 kilometer (km) point to the 0.37 kilometer (km) point, indicate the  kilometers (km) of the location of the sign installed at the fourth point as a decimal number.
Question (KO): 산사태를 대비하기 위한 낙석 주의 표지판을 설치하려고 합니다. 0.35킬로미터(㎞) 지점에서 0.37킬로미터(㎞) 지점까지 똑같이 4구간으로 나누어 처음부터 끝까지 표지판을 설치한다면 네 번째 지점에 설치하는 표지판의 위치는 몇 킬로미터(㎞) 지점인지 소수로 나타내시오.

Answer: 0.37

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

Question (EN): What is the total volume of a box measuring 30 centimeters (cm) long, 1 centimeter (cm) wide, and 1 centimeter (cm) high when stacked in 7 horizontal rows, 5 vertical rows, and 3 floors?
Question (KO): 가로 30센티미터(㎝), 세로, 높이가 1센티미터(㎝)인 상자를 가로로 7줄, 세로로 5줄, 높이를 3층으로 쌓아 올렸다면 전체 부피는 얼마입니까?

Answer: 3150

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

Question (EN): The distance from Suji's house to the supermarket is 2 kilometers (km) and 280 meters (m), and the distance to the bakery is 4125 meters (m). Which is closer to Suji's house, a supermarket or a bakery?
Question (KO): 수지네 집에서 대형마트까지의 거리는 2킬로미터(㎞) 280미터(m)이고, 빵집까지의 거리는 4125미터(m)입니다. 수지네 집에서 더 가까운 곳은 대형마트와 빵집 중 어디입니까?

Answer: supermarket

Solution (Python):
var_a = 'supermarket'
var_b = 'bakery'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 2
var_d = 1000
var_e = var_c * var_d
var_f = 280
var_g = var_e + var_f
var_h = 4125
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)