philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): When 4 students: Hyunji, Eunjeong, Migeum, and Youngmi stand in a line, find the number of cases in which Hyunji stands at the front or at the back.
Question (KO): 현지, 은정, 미금, 영미 4명의 학생을 한 줄로 세울 때, 현지가 맨 앞 또는 맨 뒤에 서는 경우의 수를 구하여라

Answer: 12

Solution (Python):
var_a = 'Hyunji'
var_b = 'Eunjeong'
var_c = 'Migeum'
var_d = 'Youngmi'
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 = 'Hyunji'
list_b= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_f = len(list_c)
var_g = len(list_c)
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
var_i = 'Front'
var_j = 'Back'
list_d= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_d.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_d.append(var_i)
list_d.reverse()
var_k = len(list_d)
var_l = var_h * var_k
print(int(var_l))
Category: Arithmetic calculation

Question (EN): You are going to overlap 24 pieces of a tape measure and connect them in one line. If the length of one tape measure is 28 centimeters (cm), and the length of all connected tape measures is 580 centimeters (cm), find out how many centimeters (cm) a tape measure is connected each.
Question (KO): 줄자 24장을 겹쳐서 한 줄로 이어 붙이려고 합니다. 줄자 하나의 길이가 28센티미터(㎝)이며 이어 붙인 길이가 580센티미터(㎝)라면 줄자를 몇 센티미터(㎝)씩 이어 붙인 것인지 구해 보세요.

Answer: 4

Solution (Python):
var_a = 28
var_b = 24
var_c = var_a * var_b
var_d = 580
var_e = var_c - var_d
var_f = 24
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): When Yunhwan drinks 182.88 liters (L) of water per month, how much water does Yunhwan drink for a year?
Question (KO): 윤환이는 1달에 182.88리터(L)의 물을 마십니다. 윤환이가 1년 동안 마시는 물의 양은 얼마입니까?

Answer: 2194.56

Solution (Python):
var_a = 182.88
var_b = 12
var_c = var_a * var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Possibility

Question (EN): You want to create two different digit numbers by using 3 and 5 only once. How many two-digit numbers can you make?
Question (KO): 3,5를 한 번씩만 사용해서 서로 다른 두 자리수를 만드려고 합니다. 이때 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 3
var_b = 5
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
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_d = len(list_b)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): What is the sum of all natural numbers greater than 28 and less than or equal to 31?
Question (KO): 28 초과 31 이하인 자연수를 모두 더하면 모두 얼마 입니까

Answer: 90

Solution (Python):
var_a = 28
var_b = 1
var_c = var_a + var_b
var_d = 31
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
list_a = [float(i) for i in list_a]
var_f = sum(list_a)
print(int(var_f))
Category: Comparison

Question (EN): Hoseok is always 4th from the left and 9th from the right in a row. How many students are there if there are 5 lines every time they jump rope and the number of students in each line is the same?
Question (KO): 호석이는 항상 어느 줄의 왼쪽에서 4번째, 오른쪽에서 9번째에 섭니다. 줄넘기를 할 때마다 5줄로 서고 각줄의 학생 수가 같을때 학생들은 모두 몇 명입니까?

Answer: 60

Solution (Python):
var_a = 5
var_b = 4
var_c = 9
var_d = var_b + var_c
var_e = 1
var_f = var_d - var_e
var_g = var_a * var_f
print(int(var_g))
Category: Geometry

Question (EN): In a right triangle, when a hypotenuse is 10, what is the length of the other side of the length of one side other than the hypotenuse is 6?

Question (KO): 직각삼각형에서, 어느 빗변의 길이가 10일 때, 빗변이 아닌 한 변의 길이가 6이라면 나머지 한 변의 길이는?

Answer: 8

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = 2
var_f = var_d ** var_e
var_g = var_c - var_f
var_h = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Comparison

Question (EN): A pumpkin weighs 2 and 9/10 of a kilogram (kg), and a watermelon weighs 41/10 kilograms (kg). Which is heavier, the pumpkin or the watermelon?
Question (KO): 호박의 무게는 2와 9/10킬로그램(㎏), 수박의 무게는 41/10킬로그램(㎏)입니다. 호박과 수박 중 어느 것이 더 무거울까요?

Answer: watermelon

Solution (Python):
var_a = 'pumpkin'
var_b = 'watermelon'
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 = 0.9
var_e = var_c + var_d
var_f = 4.1
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)
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: Arithmetic calculation

Question (EN): There are five numbers: 10, 11, 12, 13, and 14. What is the product of the largest number and the second largest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 큰 수와 2번째로 큰 수의 곱은 얼마입니까?

Answer: 182

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
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
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = var_g * var_i
print(int(var_j))
Category: Geometry

Question (EN): How many right angles are there in a rectangle?
Question (KO): 직사각형에서 직각은 모두 몇 개입니까?

Answer: 4

Solution (Python):
var_a = 4
print(int(var_a))
Category: Arithmetic calculation

Question (EN): Find the smaller one between the two odd numbers when the sum of two consecutive odd numbers is 48.
Question (KO): 연속하는 두 홀수의 합이 48일 때 두 홀수 중 작은 수를 구하시오.

Answer: 23

Solution (Python):
var_a = 48
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): There are three blackboard erasers in each class, but after gathering 12 broken blackboard erasers and throwing them out, there remained 60. Find the number of classes divided by 3 and then added by 12.
Question (KO): 칠판지우개는 각 반마다 3개씩 있는데 망가진 칠판지우개 12개를 모아서 버렸더니 남은 개수가 60개였다. 반의 수를 3으로 나누고 12를 더한 값을 구하시오.

Answer: 20

Solution (Python):
var_a = 60
var_b = 12
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
var_f = 3
var_g = var_e / var_f
var_h = 12
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): Yoongi collected 4 points, and Jungkook collected  6 minus 3 points. Who has the big number?
Question (KO): 윤기는 4, 정국에는 6에서 3을 뺀 수를 모았습니다. 누가 큰 수를 가지고 있나요?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 4
var_d = 6
var_e = 3
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]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Possibility

Question (EN): If there are 5 people A, B, C, D, and E, find the number of ways to select 2 representatives.
Question (KO): A, B, C, D, E 5명이 있을 때, 대표 2명을 뽑는 경우의 수를 구하시오.

Answer: 10

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

Question (EN): Jeongmin saves 300 won every day and Siwoo saves 500 won every day. Currently, there are 12,000 won in Jeongmin's bank account and 4,000 won in Siwoo's bank account. How many days have to pass so that the amounts in Jung-min's and Siwoo's bank accounts be the same?
Question (KO): 정민이는 매일 300원을 저금하고 시우는 매일 500원을 저금한다고 합니다. 현재 정민이의 통장에는 12000원이 들어있고 시우의 통장에는 4000원이 들어있습니다. 며칠이 지나야 정민이와 시우의 통장에 들어있는 금액이 같아지겠습니까?

Answer: 40

Solution (Python):
var_a = 12000
var_b = 4000
var_c = var_a - var_b
var_d = 500
var_e = 300
var_f = var_d - var_e
var_g = var_c / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): What is the smallest 4-digit number that is divisible by 3 numbers 5, 6, and 2?
Question (KO): 3개의 수 5, 6, 2로 나누어 떨어질 수 있는 수 중 가장 작은 네 자리 수는 무엇입니까?

Answer: 1020

Solution (Python):
var_a = 1000
var_b = 9999
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 = 6
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-1]
print(int(var_h))
Category: Geometry

Question (EN): If the length of one diagonal of a square is 12 centimeters (cm), what is the area of the square?
Question (KO): 정사각형의 한 대각선의 길이가 12센티미터(㎝)일 때 이 정사각형의 넓이는?

Answer: 72

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

Question (EN): You incorrectly subtracted 152 when you should have added 152 to a number, resulting in 346. Find what the correct number would be.
Question (KO): 어떤 수에 152를 더해야 할 것을 잘못하여 뺐더니 346이 되었습니다. 바르게 계산하면 얼마인지 구해 보시오.

Answer: 650

Solution (Python):
var_a = 346
var_b = 152
var_c = var_a + var_b
var_d = 152
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Eunji was the 100th person riding the train, and Yuna was the 11th one after Eunji. What place did Yuna take to get on the train out of total people? 
Question (KO): 은지는 기차에 100번째로 탔고, 유나는 은지가 탄 후 11번째로 기차에 탔습니다. 유나는 몇 번째로 기차에 탔습니까?

Answer: 111

Solution (Python):
var_a = 100
var_b = 11
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): How many faces does a tetrahedron have?
Question (KO): 정팔면체에서 한 꼭짓점에 모인 면은 몇 개 인가요?

Answer: 4

Solution (Python):
var_a = 4
print(int(var_a))
Category: Correspondence

Question (EN): There are three-digit numbers with a hundreds digit of 9. When these numbers are divisible by 7, how many of these three-digit numbers are there?
Question (KO): 백의 자리가 9인 세자리 수가 있습니다. 이 수는 7로 나누어 떨어질때 이러한 세 자리 수는 모두 몇 개입니까?

Answer: 14

Solution (Python):
var_a = 9
var_b = 100
var_c = var_a * var_b
var_d = 9
var_e = 100
var_f = var_d * var_e
var_g = 99
var_h = var_f + var_g
var_i = 1
list_a = [i for i in range(var_c, var_h + 1, var_i)]
var_j = 7
list_b = []
var_j = int(var_j)
for i in list_a:
    i = int(i)
    if i % var_j == 0:
        list_b.append(i)
var_k = len(list_b)
print(int(var_k))
Category: Possibility

Question (EN): You want to make a four-digit number by drawing four out of 5, 6, 4, and 7 and using them only once. Find the number of even 4-digit numbers that can be made.
Question (KO): 5, 6, 4, 7 중에서 4개를 뽑아 한 번씩만 사용하여 네 자리 수를 만들려고 합니다. 만들 수 있는 네 자리 수 중 짝수의 개수를 구하시오.

Answer: 12

Solution (Python):
var_a = 5
var_b = 6
var_c = 4
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 = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 2
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 = len(list_c)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Namjoon ate 8 cookies, and when he gave 7 cookies to Hoseok, there are 9 cookies left. How many cookies did Namjoon have at first?
Question (KO): 남준이가 8개의 과자를 먹었고, 호석이에게 7개의 과자를 주었더니 9개의 과자가 남았습니다. 남준이가 처음에 가진 과자는 몇 개입니까?

Answer: 24

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a + var_b
var_d = 8
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): When you select three of the numbers 1, 2, 3, 4, and 5 and use each of them once to make a number less than 1000, find the sum of the third largest number and the third smallest number that you can make.
Question (KO): 숫자 1, 2, 3, 4, 5 중 3개를 선택하여 한 번씩 모두 사용하여 1000미만의 수를 만들 때, 만들 수 있는 세 번째 큰 수와 세 번째 작은 수의 합을 구해라.

Answer: 666

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
var_d = 4
var_e = 5
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 = 1000
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
var_j = 3
list_e=list_c.copy()
list_e.sort()
var_k = list_e[var_j-1]
var_l = var_i + var_k
print(int(var_l))
Category: Correspondence

Question (EN): A, B, and C are single digit numbers. The number A47BC is a multiple of 4, 5, and 9. Find the number of all possible numbers in A.
Question (KO): A, B, C는 한 자리 수입니다. 숫자 A47BC는 4, 5, 9의 배수입니다. A가 될 수 있는 모든 숫자의 개수를 구하시오.

Answer: 5

Solution (Python):
var_a = 'A47BC'
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 = 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 = 5
list_c = []
var_c = int(var_c)
for i in list_b:
    i = int(i)
    if i % var_c == 0:
        list_c.append(i)
var_d = 9
list_d = []
var_d = int(var_d)
for i in list_c:
    i = int(i)
    if i % var_d == 0:
        list_d.append(i)
var_e = 'A47BC'
var_f = 'A'
var_e = str(var_e)
var_f = str(var_f)
unk_idx = var_e.index(var_f)
list_e = []
for elem in list_d:
    elem = str(elem)
    list_e.append(int(elem[unk_idx]))
list_e = list(set(list_e))
var_g = len(list_e)
print(int(var_g))
Category: Correspondence

Question (EN): When A is divided by 7, the quotient is 5 and the remainder is 3. Find A at this time.
Question (KO): A는 7로 나누면 몫이 5, 나머지가 3인 수가 이다. 이때 A를 구하여라.

Answer: 38

Solution (Python):
var_a = 7
var_b = 5
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): During the presentation, students take turns giving their presentations. Eunjeong is 6th from the back, and The 7 students are in front of Eunjung. How many students are there in total?
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: Comparison

Question (EN): Taehyung, Minju, Sangmin, Yoonjeong, and Yoojung borrowed the most books from the library in that order. Who borrowed the second most books?
Question (KO): 태형, 민주, 상민, 윤정, 유정 순서로 도서관에서 책을 많이 빌렸습니다. 2번째로 책을 가장 많이 빌린 사람은 누구입니까?

Answer: Minju

Solution (Python):
var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjeong'
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 = 2
var_g = list_a[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): All boxes contain 100 marbles each. How many marbles are in all 10 boxes?
Question (KO): 모든 상자에는 각각 구슬이 100개씩 들어 있습니다. 상자 10개에는 구슬이 모두 몇 개 들어 있습니까?

Answer: 1000

Solution (Python):
var_a = 100
var_b = 10
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Trees are to be planted at intervals of 6.4 meters (m) on one side of a 268.8-meter (m) long walkway. How many trees will you need if you plant trees at both the beginning and end of the trail?
Question (KO): 길이가 268.8미터(m)인 산책로의 한쪽에 6.4미터(m) 간격으로 나무를 심으려고 합니다. 산책로의 처음과 끝에 모두 나무를 심을 때 필요한 나무는 몇 그루입니까?

Answer: 43

Solution (Python):
var_a = 268.8
var_b = 6.4
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): How much is it when the diameter of a circle is divided by its radius?
Question (KO): 10, 50, 100원짜리 동전 1개 씩을 던졌을 때, 10원짜리는 앞면이, 100원짜리는 뒷면이 나오는 경우의 수를 구하시오.

Answer: 2

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

Question (EN): How many triangles are formed when the diagonals of a pentagon are drawn from one vertex?
Question (KO): 오각형의 한 꼭지점에서 대각선을 그을 때 생기는 삼각형의 개수는?

Answer: 3

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): All 20 cars are parked. If a black car is 16th from the right and a white car is 11th from the left, how many cars are parked between the two cars?
Question (KO): 주차된 자동차는 모두 20대입니다. 오른쪽에서 16번째에는 검은색 자동차가 있고, 흰색 자동차는 왼쪽에서 11번째에 있다면, 두 자동차 사이에는 몇 대가 주차되어 있습니까?

Answer: 5

Solution (Python):
var_a = 16
var_b = 11
var_c = var_a + var_b
var_d = 20
var_e = var_c - var_d
var_f = 2
var_g = var_e - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You want to find the average length of 5 tapes. If they are 35 centimeters (cm), 35.5 centimeters (cm), 36 centimeters (cm), and 30.5 centimeters (cm), what is the average length in centimeters (cm)?
Question (KO): 5개의 테이프의 평균 길이를 구하려 합니다. 각각 35센티미터(cm), 35.5센티미터(cm), 36센티미터(cm), 30.5센티미터(cm)이라면 평균 길이는 몇 센티미터(cm)인지 구하시오.

Answer: 33.2

Solution (Python):
var_a = 35
var_b = 29
var_c = 35.5
var_d = 36
var_e = 30.5
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()
list_a = [float(i) for i in list_a]
var_f = sum(list_a)/len(list_a)
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Possibility

Question (EN): If there are 6 students A, B, C, D, E, F, find the number of ways to elect 1 president, 1 vice-president, 1 secretary, and 1 secretary.
Question (KO): A, B, C, D, E, F 6명의 학생이 있을 때, 회장 1명, 부회장 1명, 총무 1명, 서기 1명을 뽑는 경우의 수를 구하시오.

Answer: 360

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

Question (EN): You mistakenly subtracted 59 instead of 46 from a certain number and got 43. Find the result of the correct calculation.
Question (KO): 어떤 수에서 46을 빼야 하는데 잘못하여 59를 뺐더니 43이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 56

Solution (Python):
var_a = 43
var_b = 59
var_c = var_a + var_b
var_d = 46
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): You want to pack a box in the shape of a cube. If the width of the wrapping paper is 600 to wrap without overlapping, what is the volume of this box?
Question (KO): 정육면체 모양의 상자를 포장하려고 합니다. 겹치지 않고 포장하기 위해서는 포장지의 넓이가 600이어야 할 때, 이 상자의 부피는 얼마인가요?

Answer: 1000

Solution (Python):
var_a = 600
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 3
var_g = var_e ** var_f
print(int(var_g))
Category: Geometry

Question (EN): If the volume of a rectangular cuboid whose two sides are 7 centimeters (cm) and 6 centimeters (cm) respectively is 16 cubic centimeters (cm2), what is the surface area of the cuboid, in square centimeters (cm2)?
Question (KO): 밑면의 두 변의 길이가 각각 7센티미터(㎝), 6센티미터(㎝)인 직육면체의 부피가 16세제곱센티미터(㎤)일 때, 직육면체의 겉넓이는 몇 제곱센티미터(㎠)인가요?

Answer: 93.9

Solution (Python):
var_a = 16
var_b = 7
var_c = var_a / var_b
var_d = 6
var_e = var_c / var_d
var_f = 7
var_g = 6
var_h = var_f + var_g
var_i = var_e * var_h
var_j = 7
var_k = 6
var_l = var_j * var_k
var_m = var_i + var_l
var_n = 2
var_o = var_m * var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Eun-young is 1 meter (m) 35 centimeters (cm) tall, and Mi-seon is 9 centimeters (cm) taller than Eun-young. How many meters (m) is Mi-seon's height as a decimal number?
Question (KO): 은영이의 키는 1미터(m) 35센티미터(㎝) 이고, 미선이의 키는 은영이보다 9센티미터(㎝) 더 크다고 합니다. 미선이의 키는 몇 미터(m)인지 소수로 나타내시오.

Answer: 1.44

Solution (Python):
var_a = 1
var_b = 35
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 9
var_g = 100
var_h = var_f / var_g
var_i = var_e + var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): There is a hexagonal pyramid whose base is a regular hexagon with one side of 8 centimeters (cm) and the sides are all isosceles triangles. If the sides of an isosceles triangle are 13 centimeters (cm), 13 centimeters (cm), and 8 centimeters (cm), how many centimeters (cm) are the sum of all the edges of the pyramid?
Question (KO): 밑면은 한 변이 8센티미터(㎝)인 정육각형이고 옆면이 모두 이등변 삼각형인 육각뿔이 있다. 이등변 삼각형의 각 변이 13센티미터(㎝), 13센티미터(㎝), 8센티미터(㎝)라면, 이 육각뿔의 모든 모서리의 합은 몇 센티미터(㎝)인가?

Answer: 126

Solution (Python):
var_a = 13
var_b = 6
var_c = var_a * var_b
var_d = 8
var_e = 6
var_f = var_d * var_e
var_g = var_c + var_f
print(int(var_g))
Category: Comparison

Question (EN): Jungkook's basket contains 5 strawberries, and Minyoung's basket contains 7 strawberries. Taehyung's basket had more strawberries than Jungkook's and fewer than Minyoung's. How many strawberries are in Taehyung's basket?
Question (KO): 정국이의 바구니에는 딸기 5개가 들어있고, 민영이의 바구니에는 딸기 7개가 들어있습니다. 태형이의 바구니에는 정국이보다 딸기의 수가 많고, 민영이보다는 적었습니다. 태형이의 바구니 속 딸기의 개수는 모두 몇 개입니까?

Answer: 6

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