philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): Yoongi tries to subtract 7 from an unknown number. But when he accidentally multiplied it by 5, the result was 30. Find the correct result.
Question (KO): 윤기는 어떤 수에 7을 빼려고 합니다. 하지만 실수로 5를 곱하였더니 결과는 30이 되었습니다. 바르게 계산한 결과를 구하세요.

Answer: -1

Solution (Python):
var_a = 30
var_b = 5
var_c = var_a / var_b
var_d = 7
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): At the presentation, students take turns giving presentations. Eunjung will be the 6th speaker from the back, and the seven students in front of Eunjung will make the presentation. How many students are giving presentations?
Question (KO): 발표회에서 학생들이 차례대로 발표를 합니다. 은정이는 맨 뒤에서 6번째로 발표를 하고 은정이 앞으로 7명의 학생이 발표를 할 것입니다. 발표를 하는 학생은 총 몇 명입니까?

Answer: 13

Solution (Python):
var_a = 6
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There is a white piece of paper in the shape of a rectangle measuring 32 centimeters (cm) wide and 74 centimeters (cm) long. You are going to cut this paper to make several identical square shapes without any excess. How many of th elargest squares can you make?
Question (KO): 가로가 32센티미터(㎝), 세로가 74센티미터(㎝)인 직사각형 모양의 하얀 종이가 있습니다. 이 종이를 잘라 남는 부분 없이 똑같은 정사각형 모양을 여러 장 만들려고 합니다. 만들 수 있는 가장 큰 정사각형은 몇 장입니까?

Answer: 592

Solution (Python):
var_a = 32
var_b = 32
var_c = 74
var_d = math.gcd(int(var_c), int(var_b))
var_e = var_a // var_d
var_f = 74
var_g = 32
var_h = 74
var_i = math.gcd(int(var_h), int(var_g))
var_j = var_f // var_i
var_k = var_e * var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): You bought a total of 8 cookies, 300 won each and 500 won each, and paid 3,000 won. How many cookies did you buy that cost 500 won each?
Question (KO): 한 개에 300원인 과자와 500원인 과자를 합하여 8개를 사고 3000원을 냈습니다. 한 개에 500원인 과자는 몇 개 샀습니까?

Answer: 3

Solution (Python):
var_a = 3000
var_b = 300
var_c = 8
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 500
var_g = 300
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Correspondence

Question (EN): 9 is the number you get when you add 12 to this number and divide it by 8. What is 35 minus half this number?
Question (KO): 어떤 수에서 12를 더하고 8로 나눈 수가 9입니다. 35에서 어떤 수를 반으로 나눈 값을 빼면 얼마인지 구하시오.

Answer: 5

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

Question (EN): Hyeongjun has a two-year age gap with his older sister. If the ages of the siblings added together were 26, how old is Hyungjun's older sister?
Question (KO): 형준이는 누나와 2살 차이가 납니다. 남매의 나이를 더했을 때 26살이었을 때, 형준이 누나의 나이는 몇 살입니까?

Answer: 14

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

Question (EN): Five different drinks are sold in a convenience store. You are going to pick three of them and give one to your friend, one to your younger brother, and one to your older sister. Find the number of cases in this situation.
Question (KO): 5개의 서로 다른 음료수를 편의점에서 팔고 있다. 그 중 세 종류를 골라 하나는 친구에게, 하나는 동생에게, 하나는 누나에게 주려고 한다. 이 상황에서의 경우의 수를 구하시오.

Answer: 60

Solution (Python):
var_a = 5
var_b = 3
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
print(int(var_c))
Category: Correspondence

Question (EN): When you multiply a number by 2, subtract it by 37, and then add it by 25 before dividing it by 8 equals 5. What is the number?
Question (KO): 어떤 수에 2를 곱하고 37를 뺀 다음 8로 나누기 전에 25를 더하면 5입니다. 어떤 수는 얼마입니까?

Answer: 26

Solution (Python):
var_a = 5
var_b = 8
var_c = var_a * var_b
var_d = 25
var_e = var_c - var_d
var_f = 37
var_g = var_e + var_f
var_h = 2
var_i = var_g / var_h
print(int(var_i))
Category: Geometry

Question (EN): How many vertices are there in a regular icosahedron-shaped box?
Question (KO): 정이십면체 모양의 상자에서 꼭짓점의 개수는 몇 개 일까요?

Answer: 12

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

Question (EN): How many meters (m) of wire are needed to make a rectangle with 480 centimeters (cm) width and 360 centimeters (cm) length?
Question (KO): 철사로 가로가 480센티미터(㎝), 세로가 360센티미터(㎝)인 직사각형을 만드려면 철사 몇 미터(m)가 필요한지 구하시오.

Answer: 16.8

Solution (Python):
var_a = 480
var_b = 100
var_c = var_a / var_b
var_d = 360
var_e = 100
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: Correspondence

Question (EN): Su-geun went fishing, but the fishing line was too long, so he decided to cut it. Su-geun originally intended to divide the fishing line by 2.5, but accidentally divided it into 2 and 2/5, and it became 15/32 centimeters (cm). Find the length of the fishing line in centimeters (cm) when Su-geun did not make a mistake.
Question (KO): 수근이가 낚시를 하러 갔는데 낚시줄이 너무 길어 잘라서 사용하기로 했습니다. 수근이는 원래 낚시줄을 2.5로 나누어서 사용하려 했으나 실수로 2와 2/5로 나누었더니 15/32센티미터(㎝)가 되었습니다. 수근이가 실수를 하지 않았다면 낚시줄의 길이는 몇 센티미터(㎝)일지 구하시오.

Answer: 0.45

Solution (Python):
var_a = 0.46875
var_b = 2
var_c = 0.4
var_d = var_b + var_c
var_e = var_a * var_d
var_f = 2.5
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): Find the number of ways in which the sum of two different numbers from 1 to 9 is greater than 10.
Question (KO): 1부터 9까지의 자연수 중 서로 다른 두 수의 합이 10보다 큰 경우의 수를 구하시오.

Answer: 32

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 = 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]
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 = 10
list_d = []
for i in list_c:
    if i > var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))
Category: Comparison

Question (EN): Taehyung, Minju, Sangmin, Yoonjung, and Yoojung entered the finish line in this order. Who was the first to enter?
Question (KO): 태형, 민주, 상민, 윤정, 유정이 차례로 결승선에 진입했다. 가장 먼저 들어온 사람은?

Answer: Taehyung

Solution (Python):
var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjung'
var_e = 'Yoojung'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Comparison

Question (EN): I made an ade with 3, 2/6 spoons of blueberry syrup, and 21/6 spoons of grapefruit syrup. Find out which syrup is contained more in the ade, the blueberry syrup or the grapefruit syrup?
Question (KO): 블루베리청 3, 2/6숟가락과 자몽청 21/6숟가락으로 에이드를 만들었어요. 에이드는 블루베리청과 자몽청 중 어느 것을 더 많이 포함하는지 구하십시오.

Answer: grapefruit

Solution (Python):
var_a = 'blueberry'
var_b = 'grapefruit'
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 = 2
var_e = 6
var_f = var_d / var_e
var_g = var_c + var_f
var_h = 21
var_i = 6
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_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
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: Arithmetic calculation

Question (EN): Bomi bought candy for 350 won and chocolate for 500 won and paid 1,000 won. How much change should Bomi get?
Question (KO): 보미는 350 원짜리 사탕 한 개와 500 원짜리 초콜릿 한 개를 사고 1000 원을 냈습니다. 보미가 받아야 할 거스름돈은 얼마입니까?

Answer: 150

Solution (Python):
var_a = 1000
var_b = 350
var_c = var_a - var_b
var_d = 500
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Hyunjoo has 3/4 meter (m) of red tape, 4/5 meter (m) of blue tape, and 2/3 meter (m) of yellow tape. Find how many meters (m) all the colored tapes Hyeonju has.
Question (KO): 현주는 빨간색 테이프를 3/4미터(m), 파란색 테이프를 4/5미터(m), 노란색 테이프를 2/3미터(m) 가지고 있습니다. 현주가 가지고 있는 색 테이프는 모두 몇 미터(m)인지 구하시오.

Answer: 2.22

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

Question (EN): In a park with a circumference of 1 kilometer (km) and 500 meters (m), trees are to be planted at intervals of 30 meters (m). If the cost of one tree is 5,000 mill, how much does it cost to buy the tree you need?
Question (KO): 둘레가 1킬로미터(㎞) 500미터(m)인 공원에 나무를 30미터(m) 간격으로 심으려고 합니다. 나무 한 그루의 값이 5000원일 때, 필요한 나무를 사는 데 드는 비용은 얼마입니까?

Answer: 250000

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 500
var_e = var_c + var_d
var_f = 30
var_g = var_e / var_f
var_h = 5000
var_i = var_g * var_h
print(int(var_i))
Category: Comparison

Question (EN): Nine students are standing in a line at the bus stop waiting for the bus. How many students are between the second student from the back and the third student from the front?
Question (KO): 버스 정류장에 버스를 기다리는 9명의 학생들이 한 줄로 서 있습니다. 뒤에서 2번째 학생과 앞에서 3번째 학생 사이의 학생은 몇 명입니까?

Answer: 4

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

Question (EN): It is said that a 30 centimeters (cm) long candle shrinks by 1 centimeter (cm) per minute, and a 20 centimeters (cm) long candle shrinks by 0.5 centimeters (cm) per minute. Find the length of the candle when both candles become equally long.
Question (KO): 길이가 30센티미터(㎝)인 양초는 분당 1센티미터(㎝)씩 줄어들고, 길이가 20센티미터(㎝)인 양초는 분당 0.5센티미터(㎝)씩 길이가 줄어든다고 한다. 두 양초의 길이가 같아졌을 때 양초의 길이를 구하여라

Answer: 10

Solution (Python):
var_a = 30
var_b = 30
var_c = 20
var_d = var_b - var_c
var_e = 1
var_f = 0.5
var_g = var_e - var_f
var_h = var_d / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Correspondence

Question (EN): Which of 15, 18, 29, and 21 is a multiple of 2 that is less than 20?
Question (KO): 15, 18, 29, 21 중 20보다 작은 2의 배수는 무엇인지 구하시오.

Answer: 18

Solution (Python):
var_a = 15
var_b = 18
var_c = 29
var_d = 21
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 = []
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if i % var_e == 0:
        list_b.append(i)
var_f = 20
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): There is a rectangular parallelepiped with a width of 28 centimeters (cm), a length of 24 centimeters (cm) and a height of 19 centimeters (cm). I made a new cuboid using these several identical cuboids, and each of the width, length, and height was twice the original length. How many times did the volume increase?
Question (KO): 가로 28센티미터(㎝), 세로 24센티미터(㎝), 높이 19센티미터(㎝)인 직육면체가 있다. 이것과 동일한 직육면체를 몇 개 사용해서 새로운 직육면체를 만들었더니, 가로, 세로, 높이가 각각 원래 길이의 2배가 되었다. 부피는 몇 배가 되었을까?

Answer: 8

Solution (Python):
var_a = 28
var_b = 2
var_c = var_a * var_b
var_d = 24
var_e = var_c * var_d
var_f = 2
var_g = var_e * var_f
var_h = 19
var_i = var_g * var_h
var_j = 2
var_k = var_i * var_j
var_l = 28
var_m = 24
var_n = var_l * var_m
var_o = 19
var_p = var_n * var_o
var_q = var_k // var_p
print(int(var_q))
Category: Geometry

Question (EN): I have made a cube with a side of 10 centimeters (cm) by stacking several blocks with a side of 2 centimeters (cm). If I paint all the faces of this cube red, how many blocks have only one coloured face?
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: Possibility

Question (EN): How many numbers in a three-digit number add up to 25?
Question (KO): 세 자리 수중에서 모든 자리 수를 더했을때 25가 되는 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 100
var_b = 1000
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)]
list_b=[]
for i in list_a:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_b.append(var_f)
var_g = 25
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = 25
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = len(list_d)
print(int(var_i))
Category: Arithmetic calculation

Question (EN): What is the largest three-digit number divisible by 5, 8, and 2?
Question (KO): 3개의 수 5, 8, 2로 나누어 떨어질 수 있는 수 중 가장 큰 세 자리 수는?

Answer: 960

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 = 5
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 = 8
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 = 2
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 1
list_e=list_d.copy()
list_e.sort()
var_h = list_e[-var_g]
print(int(var_h))
Category: Possibility

Question (EN): Find the largest two-digit number that can be formed by picking two different numbers from 4, 2, and 1.
Question (KO): 4, 2, 1 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 가장 큰 두 자리 수를 구하시오.

Answer: 42

Solution (Python):
var_a = 4
var_b = 2
var_c = 1
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Possibility

Question (EN): Yoongi wants to read 3 of the 5 different books. Taking into account the order in which he reads them, how many ways can Yoongi read three books?
Question (KO): 윤기는 5개의 책 중 3개의 책을 읽으려고 합니다. 윤기가 3개의 책을 읽는 경우는 모두 몇 가지인가요?

Answer: 60

Solution (Python):
var_a = 5
var_b = 3
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
print(int(var_c))
Category: Correspondence

Question (EN): Jimin gave 2 persimmons to Yuna and 7 apples to Minyoung. How many fruits did Jimin share?
Question (KO): 지민이가 유나에게 감 2개를 주고 민영에게 사과 7개를 주었습니다. 지민이가 나누어준 과일의 수는 몇 개인가요?

Answer: 9

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

Question (EN): Seokjin put 2 persimmons in the box. How many fruits are in the box when 7 more apples are added to the box?
Question (KO): 석진이가 상자에 감 2개를 넣었습니다. 사과 7개를 추가로 상자에 넣었을 때 상자에 들어있는 과일의 수는 몇인가요?

Answer: 9

Solution (Python):
var_a = 2
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): With the same number of students standing in each row, Yoongi is at 7 rows from the left, 13 rows from the right, 8 rows from the front, and 14 rows from the back. What is the total number of students?
Question (KO): 각 줄마다 같은 수의 학생이 서 있을 때, 윤기는 왼쪽에서 7번째 열, 오른쪽에서 13번째 열, 앞에서 8번째 줄, 뒤에서 14번째 줄에 있다. 줄을 서 있는 모든 학생의 수는 몇 명인가?

Answer: 399

Solution (Python):
var_a = 7
var_b = 13
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 8
var_g = 14
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k))
Category: Correspondence

Question (EN): 84 is the result of subtracting 27 from a certain number and adding 19 by mistake instead of subtracting 19 and adding 27. What is the certain number if you calculate correctly?
Question (KO): 84는 어떤 수에서 19를 빼고 27을 더해야 할것을 실수로 27을 빼고 19를 더하여 나온 결과입니다. 바르게 계산하면 얼마입니까?

Answer: 100

Solution (Python):
var_a = 84
var_b = 19
var_c = var_a - var_b
var_d = 27
var_e = var_c + var_d
var_f = 19
var_g = var_e - var_f
var_h = 27
var_i = var_g + var_h
print(int(var_i))
Category: Correspondence

Question (EN): There are N natural numbers. These natural numbers are consecutive from 1 to N, and the sum of even numbers in these numbers is 90 and the sum of odd numbers in these numbers is 100. What is the value of N?
Question (KO): 자연수 N개가 있다. 이 자연수들은 1부터 N까지 연속되었으며 이들 중 짝수의 합은 90이고 홀 수의 합은 100이다. N의 값은 무엇인가?

Answer: 19

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

Question (EN): A number is said to be not less than 30 and not more than 50. Find the sum of all the possible values of the number.
Question (KO): 어떤 수가 30이상 50이하라고 한다. 가능한 어떤 수의 총합을 구하시오.

Answer: 840

Solution (Python):
var_a = 30
var_b = 50
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): Junhyun took a bus for a distance of 2.6 kilometers (km) and a subway for a distance of 5.98 kilometers (km) to go to the meeting place. How many kilometers (km) did Junhyun take public transportation?
Question (KO): 준현이는 약속 장소에 가기 위해 2.6킬로미터(㎞) 거리는 버스를 탔고, 5.98킬로미터(㎞)의 거리는 지하철을 탔습니다. 준현이가 대중교통을 탄 거리는 몇 킬로미터(㎞)입니까?

Answer: 8.58

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

Question (EN): In class presidential elections, the candidate with the highest percentage of votes becomes the class representative. 30 classmates voted, A got 12 votes, B got 3 votes, and C got 15 votes. Who is the winner of this election?
Question (KO): 학급임원 선거에서는 득표율이 가장 높은 후보가 회장이 됩니다. 반 친구들 30명이 투표에 참여하여 가는 12표, 나는 3표, 다는 15표를 받았습니다. 회장으로 당선된 후보는 누구인가요?

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 = 12
var_e = 3
var_f = 15
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Geometry

Question (EN): Find the number of vertices of a solid figure whose bases are parallel and congruent polygons and whose sides are six rectangles.
Question (KO): 밑면이 서로 평행하고 합동인 다각형이며, 옆면은 여섯 개의 직사각형인 입체도형의 꼭짓점의 개수를 구하시오.

Answer: 12

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

Question (EN): You want to find the width and length of a rectangle whose perimeter is 16 centimeters (cm) and its width is 2 centimeters (cm) longer than its length. How long is its width?
Question (KO): 둘레의 길이가 16 센티미터(㎝)이고, 가로의 길이가 세로의 길이보다 2 센티미터(㎝)만큼 긴 직사각형의 가로의 길이와 세로의 길이를 구하려고 한다. 가로의 길이는 얼마인가?

Answer: 5

Solution (Python):
var_a = 16
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 = 2
var_i = var_g + var_h
print(int(var_i))
Category: Geometry

Question (EN): Village A is rectangular in shape, measuring 6 kilometers (km) wide and 9 kilometers (km) long, and village B is square, measuring 8 kilometers (km) wide and 8 kilometers (km) long. Find which town has the greater perimeter.
Question (KO): 마을 A는 가로 6킬로미터(㎞), 세로 9킬로미터(㎞)인 직사각형 모양이고, 마을 B는 가로 8킬로미터(㎞), 세로 8킬로미터(㎞)인 정사각형 모양입니다. 어느 마을의 둘레가 더 긴지 구하시오.

Answer: B

Solution (Python):
var_a = 'A'
var_b = 'B'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 6
var_d = 9
var_e = var_c + var_d
var_f = 8
var_g = 8
var_h = var_f + var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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: Arithmetic calculation

Question (EN): You want to divide 12 kilograms (kg) and 400 grams (g) of strawberries into two different baskets. How many kilograms (kg) will the large basket contain if the large basket contains 2 kilograms (kg) 600 grams (g) more than the small basket?
Question (KO): 12킬로그램(㎏) 400그램(g)의 딸기를 바구니에 나누어 담으려 합니다. 큰 바구니에는 작은 바구니보다 2킬로그램(㎏) 600그램(g) 더 담으려고 할 때 큰 바구니에는 몇 킬로그램(㎏)을 담게 됩니까?

Answer: 7.5

Solution (Python):
var_a = 12
var_b = 400
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = 600
var_j = 1000
var_k = var_i / var_j
var_l = var_h + var_k
var_m = 2
var_n = var_l / var_m
var_o = var_g + var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Geometry

Question (EN): If you want to make the smallest possible square-shaped piece of paper by attaching rectangular pieces of paper with a width of 20 centimeters (cm) and a length of 8 centimeters (cm) without overlapping, find how many sheets of paper you will need.
Question (KO): 가로의 길이가 20센티미터(㎝), 세로의 길이가 8센티미터(㎝)인 직사각형 모양의 종이를 겹치는 부분 없이 이어붙여 최대한 작은 정사각형 모양의 종이를 만들려고 할 때, 종이는 몇 장 필요한지 구하시오.

Answer: 10

Solution (Python):
var_a = 20
var_b = 8
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 2
var_e = var_c ** var_d
var_f = 20
var_g = 8
var_h = var_f * var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): You want to make a rectangle that is 63 centimeters (cm) wide by 42 centimeters (cm) tall by joining several squares together without overlapping them. To minimize the number of squares, find how many centimeters (cm) each side of the square must be.
Question (KO): 정사각형 여러 개를 겹치는 부분 없이 이어 붙여 가로 63센티미터(㎝), 세로 42센티미터(㎝)의 직사각형을 만드려고 합니다. 정사각형의 개수를 최소로 하기 위해서는 정사각형의 한 변의 길이는 몇 센티미터(㎝)로 해야 하는지 구하시오.

Answer: 21

Solution (Python):
var_a = 63
var_b = 42
var_c = math.gcd(int(var_b), int(var_a))
print(int(var_c))