philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): If 1/1000 of a certain number is 0.735, what number is 10 times that certain number?
Question (KO): 어떤 수의 1/1000인 수가 0.735이면 어떤 수의 10배인 수는 얼마입니까?

Answer: 7350

Solution (Python):
var_a = 0.735
var_b = 0.001
var_c = var_a / var_b
var_d = 10
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): Seung-hee wants to make a three-digit number by throwing the dice three times and using all the numbers that come out. When 3, 4, and 6 came out after rolling the dice, how many cases are possible to make a number bigger than 450?
Question (KO): 승희는 주사위를 세 번 던져 나온 수를 모두 사용하여 세 자리 수를 만들고자 한다. 주사위를 던져 3, 4, 6이 나왔을 때, 450보다 큰 수를 만드는 경우는 모두 몇 가지인가?

Answer: 3

Solution (Python):
var_a = 3
var_b = 4
var_c = 6
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 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 = 450
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Possibility

Question (EN): I'm going to give 7 identical books to Yoongi and Hoseok. Yoongi and Hoseok will receive at least one book. How many ways can the books be distributed in total?
Question (KO): 서점에서 7개의 똑같은 책을 윤기와 호석이에게 나누어주려고 합니다. 윤기와 호석이는 적어도 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): How many numbers from 1 to 100 are even and multiples of 3?
Question (KO): 1부터 100까지의 수 중 짝수이며, 3의 배수인 수는 몇 개입니까?

Answer: 16

Solution (Python):
var_a = 1
var_b = 100
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 = []
var_c = int(var_c)
for i in list_a:
    i = int(i)
    if i % var_c == 0:
        list_b.append(i)
var_d = len(list_b)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There are 17 dogs and cats in total. If there are 8 cats, how many dogs are there?
Question (KO): 개와 고양이를 합하면 17마리입니다. 그중에서 고양이가 8마리라면 개는 몇 마리입니까?

Answer: 9

Solution (Python):
var_a = 17
var_b = 8
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): There are three different natural numbers A, B, and C. When A is divided by 25, the quotient is B and the remainder is C. Find the largest number that can be C.
Question (KO): 서로 다른 세 자연수 A, B, C가 있습니다. A를 25로 나누면 몫은 B이고 나머지는 C가 됩니다. 나머지 C가 될 수 있는 가장 큰 수를 구하시오.

Answer: 24

Solution (Python):
var_a = 25
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Comparison

Question (EN): 13 students stand in a line. Minyoung stands at the 8th from the left, and Hoseok stands at the 9th from the right. How many students are standing between Minyoung and Hoseok?
Question (KO): 학생 13명이 한 줄로 서 있습니다. 민영이는 왼쪽에서 8번째에 서 있고, 호석이는 오른쪽에서 9번째에 서 있습니다. 민영이와 호석이 사이에 서 있는 학생은 몇 명입니까?

Answer: 2

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

Question (EN): If 3 male students and 3 female students pass through the door one by one, find the number of cases in which 3 male students pass through the door in succession.
Question (KO): 남학생 3명과 여학생 3명이 한 명씩 출입문을 지날 때, 남학생 3명이 연속으로 출입문을 지나는 경우의 수를 구하시오.

Answer: 144

Solution (Python):
var_a = 3
var_b = 3
var_c = var_a + var_b
var_d = 3
var_e = 1
var_f = var_d - var_e
var_g = var_c - var_f
var_h = 3
var_i = 3
var_j = var_h + var_i
var_k = 3
var_l = 1
var_m = var_k - var_l
var_n = var_j - var_m
var_o = 1
var_g = int(var_g)
var_n = int(var_n)
for i, elem in enumerate(range(var_n)):
    var_o = var_o * (var_g-i)
var_p = 3
var_q = 3
var_r = 1
var_p = int(var_p)
var_q = int(var_q)
for i, elem in enumerate(range(var_q)):
    var_r = var_r * (var_p-i)
var_s = var_o * var_r
print(int(var_s))
Category: Comparison

Question (EN): When students are lined up in a single line, how many students are there when 6 people are in front of Yoonjung? (Yoonjung is at 5th from the back.)
Question (KO): 학생들이 일렬로 줄을 섰을 때 윤정이 앞에 6명이 있고 윤정이는 뒤에서 5번째에 서 있을 때 줄을 선 학생은 모두 몇 명입니까?

Answer: 11

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

Question (EN): If 3/4 meter (m) of reinforcing bar weighs 15/2 kilograms (kg), how many kilograms (kg) does 1 meter (m) of reinforcing bar weigh?
Question (KO): 철근 3/4미터(m)의 무게가 15/2킬로그램(㎏)일 때 철근 1미터(m)의 무게는 몇 킬로그램(㎏)입니까?

Answer: 10

Solution (Python):
var_a = 7.5
var_b = 0.75
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): From a cube with one edge length of 9 centimeters (cm), cut a cube with one edge length of 3 centimeters (cm) as many as the number of edges, and find out how many cubic centimeters (cm3) the volume of the remaining part is.
Question (KO): 한 모서리의 길이가 9센티미터(㎝)인 정육면체에서 한 모서리의 길이가 3센티미터(㎝)인 정육면체를 모서리의 개수만큼 잘라내고 남은 부분의 부피는 몇 세제곱센티미터(㎤)인지 알아보아라.

Answer: 405

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

Question (EN): There are 10 go stones in 1 bundle. If there are 3 bundles of black go stones and 16 white go stones, how many go stones are there in all?
Question (KO): 1묶음의 개수는 10개 입니다. 검은색 바둑돌이 3묶음 있고, 흰색 바둑돌이 16개 있다면 바둑돌은 모두 몇 개 있습니까?

Answer: 46

Solution (Python):
var_a = 10
var_b = 3
var_c = var_a * var_b
var_d = 16
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): You are trying to write natural numbers from 1 to 200. How many times should the number 1 be written in all?
Question (KO): 1부터 200까지 자연수를 쓰려고 합니다. 숫자 1은 모두 몇 번 써야 합니까?

Answer: 140

Solution (Python):
var_a = 1
var_b = 200
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 = 1
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: Correspondence

Question (EN): 48 is the result of accidentally adding 12 to a number where 22 should have been added. How much do you get if you calculate correctly?
Question (KO): 48은 어떤 수에 22를 더해야 하는데 실수로 12를 더하여 나온 결과입니다. 바르게 계산하면 얼마가 됩니까?

Answer: 58

Solution (Python):
var_a = 48
var_b = 12
var_c = var_a - var_b
var_d = 22
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): A parallelogram with an area of 33.3 square centimeters (cm2) has a base of 9 centimeters (cm). What is the height of the parallelogram?
Question (KO): 넓이가 33.3제곱센티미터(㎠)인 평행사변형의 밑변이 9센티미터(㎝)입니다. 평행사변형의 높이는 얼마입니까?

Answer: 3.7

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

Question (EN): How many millimeters (mm) is the length of one edge of a dice with a volume of 8 cubic centimeters (cm3)?
Question (KO): 부피가 8세제곱센티미터(㎤)인 주사위의 한 모서리의 길이는 몇 밀리미터(㎜)입니까?

Answer: 20

Solution (Python):
var_a = 8
var_b = 0.3333333333333333
var_c = var_a ** var_b
var_d = 10
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): 8500 is 8A19 rounded to the hundred place. Find the value of A.
Question (KO): 8A19를 반올림하여 백의 자리까지 나타내면 8500입니다. A를 구하시오

Answer: 5

Solution (Python):
var_a = '8A19'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_a) == len(str(int(temp))):
        new_elem = int(temp)
        list_a.append(new_elem)
var_b = 8500
var_c = 50
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = 8500
var_f = 50
var_g = var_e + var_f
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = '8A19'
var_i = 'A'
var_h = str(var_h)
var_i = str(var_i)
unk_idx = var_h.index(var_i)
var_j = 0
for elem in list_c:
    elem = str(elem)
    var_j = int(elem[unk_idx])
print(int(var_j))
Category: Comparison

Question (EN): Yoongi has 4 apples, and Jungkook, who had 6 apples, got 3 more. When Yuna has 5 apples, who has the fewest apples?
Question (KO): 윤기는 사과를 4개를 가지고 있고, 6개의 사과를 가지고 있던 정국이는 3개의 사과를 더 받았습니다. 유나는 5개의 사과를 가지고 있을 때, 누가 가장 사과를 적게 가지고 있습니까?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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 = 4
var_e = 6
var_f = 3
var_g = var_e + var_f
var_h = 5
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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)
Category: Geometry

Question (EN): If two 8.5 centimeters (cm) wooden planks and two 7.8 centimeters (cm) wooden planks are connected so that the overlapping part is 5 millimeters (mm), calculate how many centimeters (cm) the overall length of the planks will be.
Question (KO): 8.5센티미터(㎝)의 나무 판자 2장과 7.8센티미터(㎝)의 나무 판자 두 장을 겹치는 부분이 5밀리미터(㎜)가 되도록 연결했을 때, 나무 판자의 전체 길이는 몇 센티미터(㎝)가 되는지 구하시오.

Answer: 31.1

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

Question (EN): If there are 2 lines of people in front of Jungkook and 4 lines behind Jungkook, and the number of people standing in each line is equal to 8, how many people are standing in all?
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: Possibility

Question (EN): Find the sum of all the numbers that are divisible by 3 and 5 when 3 different numbers, 2, 3, 5, and 7, are used to make a number less than or equal to 1000 and greater than 100.
Question (KO): 2, 3, 5, 7 중 서로 다른 3개의 숫자로 1000이하, 100이상의 숫자를 만들 때 3과 5로 나누어 떨어지는 모든 수의 합을 수하시오.

Answer: 1110

Solution (Python):
var_a = 2
var_b = 5
var_c = 3
var_d = 7
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 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 = 3
list_c = []
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
var_g = 5
list_d = []
var_g = int(var_g)
for i in list_c:
    i = int(i)
    if i % var_g == 0:
        list_d.append(i)
list_d = [float(i) for i in list_d]
var_h = sum(list_d)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Water flows out of the faucet at a rate of 10.8 liters (l) per hour. If you left the tap open for 1 hour and 24 minutes, find how many liters (L) of water flowed out.
Question (KO): 수도꼭지에서 시간 당 10.8리터(L)씩 물이 흘러나온다. 수도꼭지를 1시간 24분 동안 열어 두었다면 몇 리터(L)의 물이 흘러나왔는지 구하시오.

Answer: 15.12

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

Question (EN): Yoongi has 4 apples and Jungkook had 6 apples, but he ate 3. If Yuna has 5 apples, who has the most apples?
Question (KO): 윤기가 가진 사과가 4개, 정국이는 6개의 사과를 가지고 있었지만 3개를 먹었습니다. 유나가 가진 사과가 5개라면 누가 가장 많은 사과를 가지고 있나요?

Answer: Yuna

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
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 = 4
var_e = 6
var_f = 3
var_g = var_e - var_f
var_h = 5
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
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): There are three numbers 10, 11 and 12. What is the sum of the 3rd and 2nd smallest numbers?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 3번째로 작은 수와 2번째로 작은 수의 합은 얼마입니까?

Answer: 23

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

Question (EN): There is a number that is greater than 50 and less than 70. Also, this number has a remainder of 3 when divided by 5, a remainder of 2 when divided by 7, and a remainder of 2 when divided by 8. What is this number?
Question (KO): 어떤 수는 50보다 크고 70보다 작습니다. 또한 이 수는 5로 나누었을 때 나머지가 3이고 7로 나누었을 때 나머지가 2이고 8로 나누었을 때 나머지가 2입니다. 이 수는 무엇입니까?

Answer: 58

Solution (Python):
var_a = 50
var_b = 70
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
var_f = 5
var_g = 3
list_b = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_a:
    i = int(i)
    if i%var_f == var_g:
        list_b.append(i)
var_h = 7
var_i = 2
list_c = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_b:
    i = int(i)
    if i%var_h == var_i:
        list_c.append(i)
var_j = 1
var_k = list_c[var_j-1]
print(int(var_k))
Category: Comparison

Question (EN): There is a book of 270 pages. If Kunyoung read 1/3 of the total in one day and Suhwan read 4/9 of the total, find out who read more books in a day.
Question (KO): 270쪽의 책이 있습니다. 건영이는 하루 동안 전체의 1/3을 읽었고, 수환이는 전체의 4/9를 읽었다면, 하루 동안 책을 더 많이 읽은 사람은 누구인지 구하시오.

Answer: Suhwan

Solution (Python):
var_a = 'Kunyoung'
var_b = 'Suhwan'
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.3333333333333333
var_d = 0.4444444444444444
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: Arithmetic calculation

Question (EN): There were 78 people on the train. Of these, 27 got off and a few got on, making the total people in the train to 63. How many people got on the train?
Question (KO): 기차에 78명이 타고 있었습니다. 이 중에서 27명이 내리고 몇 명이 타서 63명이 되었습니다. 기차에 탄 사람은 몇 명입니까?

Answer: 12

Solution (Python):
var_a = 63
var_b = 27
var_c = var_a + var_b
var_d = 78
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): There is a number 32BA33. If this number is rounded to the nearest hundred, it is 323400. What is A?
Question (KO): 숫자 32BA33이 있습니다. 이 숫자를 반올림 하여 백의 자리까지 나타내면 323400입니다. A는 무엇입니까?

Answer: 4

Solution (Python):
var_a = '32BA33'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_a) == len(str(int(temp))):
        new_elem = int(temp)
        list_a.append(new_elem)
var_b = 323400
var_c = 50
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = 323400
var_f = 50
var_g = var_e + var_f
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = '32BA33'
var_i = 'A'
var_h = str(var_h)
var_i = str(var_i)
unk_idx = var_h.index(var_i)
var_j = 0
for elem in list_c:
    elem = str(elem)
    var_j = int(elem[unk_idx])
print(int(var_j))
Category: Arithmetic calculation

Question (EN): There are 5/6 and 19/12. What is the sum of them?
Question (KO): 5/6과 19/12가 있습니다. 이들을 모두 더하면 얼마인가요?

Answer: 2.42

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

Question (EN): Find the number of faces of a cuboid that meet at a vertex.
Question (KO): 직육면체의 한 점에서 만나는 면의 개수를 구하시오.

Answer: 3

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

Question (EN): Out of 5 numbers: 1.4, 9/10, 1.2, 0.5, 13/10, how many are less than or equal to 1.1?
Question (KO): 수 5개 1.4, 9/10, 1.2, 0.5, 13/10 중 1.1보다 작거나 같은 숫자를 구하면, 몇 개인가요?

Answer: 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 = len(list_b)
print(int(var_g))
Category: Correspondence

Question (EN): When you add 12 to a number and divide it by 4, the quotient is 12 and the remainder is 3. Add 12 to that number in question and multiply it by 4 to find the value.
Question (KO): 어떤 수에 12를 더한 뒤 4로 나누었더니 몫이 12이고 나머지가 3이 되었습니다. 어떤 수에 12를 더하고 4를 곱한 값을 구하시오.

Answer: 204

Solution (Python):
var_a = 12
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
var_f = 12
var_g = var_e - var_f
var_h = 12
var_i = var_g + var_h
var_j = 4
var_k = var_i * var_j
print(int(var_k))
Category: Comparison

Question (EN): Mom, Dad, and Grandpa bought clothes at the department store. Dad bought more clothes than Mom, and Grandpa bought more clothes than Dad. If you lined up people based on the number of clothes they bought in ascending order, in what position will Mom be? Please answer using an natural number.
Question (KO): 엄마, 아빠, 할아버지가 백화점에서 옷을 구매했습니다. 엄마보다 아빠가 옷을 더 많이 샀고, 아빠보다 할아버지가 옷을 더 많이 샀습니다. 엄마는 몇 번째로 옷을 적게 샀습니까?

Answer: 1

Solution (Python):
var_a = 'Mom'
var_b = 'Dad'
var_c = 'Grandpa'
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 = 'Mom'
var_e = list_a.index(var_d)+1
print(int(var_e))
Category: Geometry

Question (EN): If the width of a rectangle with an area of 6 square meters (m2) is 150 centimeters (cm), what is the length in centimeters (cm)?
Question (KO): 넓이가 6제곱미터(㎡)인 직사각형의 가로의 길이가 150센티미터(㎝)이면, 세로의 길이는 몇 센티미터(㎝)입니까?

Answer: 400

Solution (Python):
var_a = 6
var_b = 100
var_c = 2
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 150
var_g = var_e / var_f
print(int(var_g))
Category: Possibility

Question (EN): We are going to divide Apples, Peaches, Pears, and Melons into two fruit baskets. How many possible cases are there?
Question (KO): 사과, 복숭아, 배, 참외를 2개의 과일 바구니에 나누어 담으려고 합니다. 가능한 경우의 수는 모두 몇 가지입니까?

Answer: 16

Solution (Python):
var_a = 2
var_b = 'Apple'
var_c = 'Peach'
var_d = 'Pear'
var_e = 'Melon'
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)
list_a.reverse()
var_f = len(list_a)
var_g = var_a ** var_f
print(int(var_g))
Category: Possibility

Question (EN): When 2 female students and 3 male students are lined up in a row, find the number of cases where the female students must stand next to each other.
Question (KO): 여학생 2명, 남학생 3명을 한 줄로 세울 때, 여학생끼리는 반드시 이웃하게 세우는 경우의 수를 구하시오.

Answer: 48

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

Question (EN): Find the number of ways in which one president and one secretary are selected from five different people.
Question (KO): 서로 다른 다섯 명의 사람 중 회장 1명과 총무 1명을 뽑는 경우의 수를 구하시오.

Answer: 20

Solution (Python):
var_a = 5
var_b = 1
var_c = 1
var_d = var_b + var_c
var_e = 1
var_a = int(var_a)
var_d = int(var_d)
for i, elem in enumerate(range(var_d)):
    var_e = var_e * (var_a-i)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You want to cut a string that is 60 meters (m) long into 0.6 meters (m) each. How many pieces of string can you cut in total?
Question (KO): 길이가 60미터(m)인 끈을 0.6미터(m)씩 모두 자르려고 합니다. 끈을 모두 몇 개로 자를 수 있습니까?

Answer: 100

Solution (Python):
var_a = 60
var_b = 0.6
var_c = var_a // var_b
print(int(var_c))
Category: Geometry

Question (EN): A rhombus is formed by joining the points that divide each of the four sides of a square into two halves. If the side of a square is 4 centimeters (cm), what is the area of the rhombus in square centimeters (cm2)?
Question (KO): 어떤 정사각형의 네 변을 각각 둘로 나눈 점들을 이어 마름모를 만들었습니다. 어떤 정사각형의 변의 길이가 4센티미터(㎝)라고 할 때, 마름모의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 8

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