philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): You are given three numbers 6, 0 and 3. How many two-digit numbers can be made using given numbers once?
Question (KO): 3개의 숫자 6, 0, 3이 주어져 있습니다. 주어진 숫자를 한 번씩 사용하여 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 4

Solution (Python):
var_a = 6
var_b = 0
var_c = 3
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 = len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): 9 cuboid blocks 18 centimeters (cm) wide, 12 centimeters (cm) long, and 1 centimeters (cm) high are stacked. Assuming that 9 blocks are a set, how many sets are needed to make a cube with this set?
Question (KO): 가로의 길이가 18센티미터(㎝), 세로의 길이가 12센티미터(㎝), 높이가 1센티미터(㎝)인 직육면체 블록이 9개 쌓여있습니다. 9개의 블록을 한 세트라 하였을  때, 이 세트로 정육면체를 만든다면 몇 개의 세트가 필요한지 구하시오

Answer: 24

Solution (Python):
var_a = 18
var_b = 12
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 9
var_e = var_d * var_c / math.gcd(int(var_d), int(var_c))
var_f = 18
var_g = var_e / var_f
var_h = 18
var_i = 12
var_j = var_i * var_h / math.gcd(int(var_i), int(var_h))
var_k = 9
var_l = var_k * var_j / math.gcd(int(var_k), int(var_j))
var_m = 9
var_n = var_l / var_m
var_o = 18
var_p = 12
var_q = var_p * var_o / math.gcd(int(var_p), int(var_o))
var_r = 9
var_s = var_r * var_q / math.gcd(int(var_r), int(var_q))
var_t = 12
var_u = var_s / var_t
var_v = var_n * var_u
var_w = var_g * var_v
print(int(var_w))
Category: Correspondence

Question (EN): The three-digit number A3B is greater than 300 and less than 400. Also, it is divisible by 3 and a multiple of 7. What is B?
Question (KO): 세 자리 수 A3B는 300보다 크고 400보다 작다. 또한 3으로 나누어 떨어지고 7의 배수라고 한다. B는 무엇인가?

Answer: 6

Solution (Python):
var_a = 'A3B'
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 = 300
list_b = []
for i in list_a:
    if i > var_b:
        list_b.append(i)
var_c = 400
list_c = []
for i in list_b:
    if i < var_c:
        list_c.append(i)
var_d = 3
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 = 7
list_e = []
var_e = int(var_e)
for i in list_d:
    i = int(i)
    if i % var_e == 0:
        list_e.append(i)
var_f = 'A3B'
var_g = 'B'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_e:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Arithmetic calculation

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

Answer: 1

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 = 2
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g // var_i
print(int(var_j))
Category: Correspondence

Question (EN): When A is divided by 8, the quotient is B and the remainder is C. A, B, and C are natural numbers. In this, the quotient and remainder are equal. Find the largest number of A which is a divided number.
Question (KO): A를 8로 나누면 몫은 B이고 나머지는 C가 됩니다. A, B, C는 자연수입니다. 이 식에서 몫과 나머지가 같습니다. 나누어지는 수 A 중 가장 큰 수를 구하시오.

Answer: 63

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

Question (EN): Minjae and his father picked apples. Minjae gained 2.6 kilograms (kg), and his father 5.98 kilograms (kg). How many kilograms (kg) are all the apples Minjae and his father picked?
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: Correspondence

Question (EN): When 11 is divided by the natural number A, the remainder is 2 and the quotient is 3. Find the value of A at this time.
Question (KO): 11을 자연수 A로 나누면, 나머지가 2, 몫이 3이 됩니다. 이 때 A의 값을 구하시오.

Answer: 3

Solution (Python):
var_a = 11
var_b = 2
var_c = var_a - var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): There is a cargo of 127000 kilograms (kg). How many more trucks are needed to transport this cargo from Busan to Seoul by 5000 kilograms (kg) trucks than by 8000 kilograms (kg) trucks?
Question (KO): 127000킬로그램(㎏)의 화물이 있습니다. 이 화물을 부산에서 서울까지 5000킬로그램(㎏) 트럭으로 운반하려면 8000킬로그램(㎏) 트럭으로 운반하는 것보다 몇 대가 더 필요합니까?

Answer: 10

Solution (Python):
var_a = 127000
var_b = 5000
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

var_f = 127000
var_g = 8000
var_h = var_f / var_g
var_i = 1
var_j=int(((var_h+9*10**(var_i-2))//(10**(var_i-1)))*10**(var_i-1))

var_k = var_e - var_j
print(int(var_k))
Category: Correspondence

Question (EN): The number of students in Seungju's class is between 50 and 70. If the students in Seungju's class form 5 lines, there will be 3 left, and if they form 7 lines, 2 will remain. How many students are in Seungju's class?
Question (KO): 승주네 반 학생수는 50명이상 70명 이하이다. 승주네 반 학생들이 5줄로 서면 3명이 남고 7줄로 서면 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: Possibility

Question (EN): If there are 6 cats A, B, C, D, E, and F, find the number of ways to select 2 vice captains and 1 captain.
Question (KO): A, B, C, D, E, F 6마리의 고양이가 있을 때, 부대장 2마리, 대장 1마리를 뽑는 경우의 수를 구하시오.

Answer: 60

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
var_f = 'F'
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_g = len(list_a)
var_h = 2
var_i = 1
var_j = var_h + var_i
var_k = 1
var_g = int(var_g)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_g-i)
var_l = 2
var_m = 2
var_n = 1
var_l = int(var_l)
var_m = int(var_m)
for i, elem in enumerate(range(var_m)):
    var_n = var_n * (var_l-i)
var_o = var_k / var_n
print(int(var_o))
Category: Correspondence

Question (EN): When you add 3 to a certain number, you get 226. Find the value of the certain number multiplied by 3.
Question (KO): 어떤 수에 3을 더했더니 226이 되었습니다. 어떤 수에 3을 곱한 값을 구하시오.

Answer: 669

Solution (Python):
var_a = 226
var_b = 3
var_c = var_a - var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Yoongi collected 7 points, Jungkook got 6 points, Yuna got 9 points, and Yoojung got 8 points. Who has the largest number?
Question (KO): 윤기는 7, 정국은 6, 유나는 9, 유정은 8만큼 모았습니다. 제일 큰 숫자를 가진 사람은 누구입니까?

Answer: Yuna

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
var_d = 'Yoojung'
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 = 7
var_f = 6
var_g = 9
var_h = 8
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_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_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: Possibility

Question (EN): I am trying to create two-digit natural numbers with 2, 3, and 7. Find the third largest possible number that can be made by allowing duplicates.
Question (KO): 2, 3, 7로 두 자리 자연수를 만들려고 한다. 중복을 허락하여 만들 수 있는 수 중 세 번째로 큰 수를 구하시오.

Answer: 72

Solution (Python):
var_a = 2
var_b = 3
var_c = 7
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.product(list_b, repeat=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 = 3
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Geometry

Question (EN): Five sheets of 2.7meters (m) long color tape were attached together overlapping each other by 0.3meters (m). How many meters (m) is the length of one layer of colored tape if it is divided equally into 6 layers?
Question (KO): 길이가 2.7미터(m)인 색테이프 5장을 0.3미터(m)씩 겹치게 이어 붙였습니다. 이어 붙인 색테이프를 6도막으로 똑같이 나누면 한 도막의 길이는 몇 미터(m)입니까?

Answer: 2.05

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

Question (EN): What is the largest five-digit number that is a multiple of 3 and a multiple of 4?
Question (KO): 3의 배수이면서 4의 배수인 수 중 가장 큰 다섯 자리 수는?

Answer: 99996

Solution (Python):
var_a = 10000
var_b = 99999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
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 = 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 = 1
list_d=list_c.copy()
list_d.sort()
var_g = list_d[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 11 white rabbits and 13 black rabbits. How many female rabbits are there if 15 of them are male rabbits?
Question (KO): 흰색 토끼 11마리와 검은색 토끼 13마리가 있습니다. 이 중 15마리가 수컷 토끼일 때 암컷 토끼는 몇 마리입니까?

Answer: 9

Solution (Python):
var_a = 11
var_b = 13
var_c = var_a + var_b
var_d = 15
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Find a number less than 1.11 among five numbers 4, 9/10, 1.2, 0.5, and 13/10, and then find the largest among them.
Question (KO): 수 5개 1.4, 9/10, 1.2, 0.5, 13/10 중 1.1보다 작은 숫자를 구하고, 그 중에서 가장 큰 숫자를 구하면 무엇입니까?

Answer: 0.9

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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Possibility

Question (EN): There are magnets with numbers 8, 7 and 0 written respectively. What is the largest number you can make by arranging them?
Question (KO): 숫자 자석 8, 7, 0 이 있습니다. 이를 배치하여 만들 수 있는 가장 큰 수는 무엇입니까?

Answer: 870

Solution (Python):
var_a = 0
var_b = 8
var_c = 7
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 = len(list_a)
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): There are 2 balls in each of the 3 boxes that Jungkook has. How many balls does Jungkook have?
Question (KO): 정국이가 가지고 있는 상자 3개에는 공이 각각 2개씩 들어 있습니다. 정국이가 가지고 있는 공의 개수는?

Answer: 6

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

Question (EN): It is said that Gyeonghun climbed the mountain at a speed of 3 kilometers (km) per hour when going up, and 4 kilometers (km) per hour when going down as he changed the route, which takes 2 kilometers (km) longer than the previous one. If he took a total of 4 hours for climbing, how long did it take to go up?
Question (KO): 경훈이가 등산을 하는데 올라갈 때는 시속 3 킬로미터(㎞)로 걷고, 내려올 때는 올라갈 때보다 2 킬로미터(㎞) 더 먼 길을 택하여 시속 4 킬로미터(㎞)로 걸어서 총 4시간이 걸렸다고 한다. 올라가는 데 걸린 시간은?

Answer: 2

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

Question (EN): The taxi driven by Boeun's father travels 100 kilometers (km) in 1 hour and 15 minutes. What is the average distance the taxi traveled in 1 hour in kilometers (km)?
Question (KO): 보은이의 아버지가 운전하는 택시는 1시간 15분 동안 100킬로미터(㎞)를 갑니다. 택시가 1시간 동안 이동한 평균 거리는 몇 킬로미터(㎞)입니까?

Answer: 80

Solution (Python):
var_a = 100
var_b = 1
var_c = 15
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a / var_f
print(int(var_g))
Category: Possibility

Question (EN): Three out of five digits 0, 1, 2, 3, and 4 were chosen to make a three-digit odd number. If you can use the same number multiple times, what is the total of all the odd numbers that can be made?
Question (KO): 다섯 개의 숫자 0, 1, 2, 3, 4 중에서 3개를 골라 세 자리의 홀수를 만들었다. 같은 수를 여러 번 사용해도 된다면, 만들 수 있는 모든 홀수의 총합은 얼마인가?

Answer: 10880

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

Question (EN): While hiking, Yunsu drank 7/15 of the water on the first day, 5/8 of the remaining water on the second day, and 2/3 of the rest on the third day. If the amount of remaining water is 2.6 liters (L), what is the amount of water Yunsu had at the beginning?
Question (KO): 윤수는 등산을 하면서 첫째 날 물의 7/15를 마시고, 둘째 날 남은 물의 5/8을 마셨으며, 셋째 날 그 나머지의 2/3을 마셨다. 남은 물의 양이 2.6리터(L)라면 처음 윤수가 가지고 있던 물의 양은 얼마인지 구하시오.

Answer: 39

Solution (Python):
var_a = 2.6
var_b = 1
var_c = 0.4666666666666667
var_d = var_b - var_c
var_e = 1
var_f = 0.625
var_g = var_e - var_f
var_h = var_d * var_g
var_i = 1
var_j = 0.6666666666666666
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_a / var_l
print(int(eval('{:.2f}'.format(round(var_m+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): There are 14 boxes containing 105 apples each. 84 of these apples were rotten and discarded, and the rest were put in 6 per bag and 7 bags per box. Find how many boxes there are in total.
Question (KO): 사과가 105개씩 들어있는 박스가 14개 있다. 이 사과들 중 84개가 썩어서 버렸고 나머지를 6개씩 한 봉투에 넣어 7봉투를 한 박스에 넣었다. 총 몇 박스가 나오는지 구하시오.

Answer: 33

Solution (Python):
var_a = 105
var_b = 14
var_c = var_a * var_b
var_d = 84
var_e = var_c - var_d
var_f = 6
var_g = 7
var_h = var_f * var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): How many vertices are there in a 14-sided pyramid?
Question (KO): 모서리가 14개인 각뿔에서 꼭짓점은 몇 개입니까?

Answer: 8

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

Question (EN): There are 15 red apples, 8 green apples, and 32 pears. How many more pears are there than apples?
Question (KO): 빨간색 사과 15개, 초록색 사과 8개, 배 32개가 있습니다. 배는 사과보다 몇 개 더 많습니까?

Answer: 9

Solution (Python):
var_a = 32
var_b = 15
var_c = 8
var_d = var_b + var_c
var_e = var_a - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): How many four-digit numbers are multiples of 5, multiples of 6, and multiples of 2 at the same time?
Question (KO): 5의 배수이면서 6의 배수이면서 2의 배수인 수 중 네 자리 수는 모두 몇 개 입니까?

Answer: 300

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 = len(list_d)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Among three numbers of 10, 11 and 12, what is the quotient if the smallest number is divided by the next smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 작은 수와 그 다음으로 작은 수로 나눈 몫은 얼마입니까?

Answer: 0

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-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: Arithmetic calculation

Question (EN): There is a barrel with 10.4 kilograms (kg) of water. If you want to divide this water by 0.8 kg (kg) into each small bucket, how many buckets are needed?
Question (KO): 물 10.4킬로그램(㎏)이 담긴 통이 있습니다. 이 물을 작은 물통 한 개에 0.8킬로그램(㎏) 씩 나누어 담으려고 할 때, 필요한 물통은 모두 몇 개 인가요?

Answer: 13

Solution (Python):
var_a = 10.4
var_b = 0.8
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): When 52.5 kg (kg) of sweet potatoes are divided by 5 kg (kg) per person, find how many kg (kg) of sweet potatoes are left after sharing.
Question (KO): 고구마 52.5킬로그램(㎏)을 한 사람 당 5킬로그램(㎏)씩 나누어 줄 때, 나누어 주고 남는 고구마는 몇 킬로그램(㎏)인지 구하시오.

Answer: 2.5

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

Question (EN): When writing a natural number less than 100 on a piece of paper, find how many times the number 1 must be written down.
Question (KO): 100이하인 자연수를 종이에 적을 때, 숫자 1을 몇 번 적어야 하는지 구하시오.

Answer: 21

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

Question (EN): There is a box 9 centimeters (cm) wide, 4 centimeters (cm) long, and 7 centimeters (cm) high. What is the volume of this box in cubic centimeters (cm3)?
Question (KO): 가로가 9센티미터(㎝), 세로가 4센티미터(㎝), 높이가 7센티미터(㎝)인 상자가 있습니다. 이 상자의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 252

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

Question (EN): Jinwoo said that he had to multiply by 1.36 while calculating, but he made a mistake and divided it by 1.36 resulting in 0.5. What was the value Jinwoo was originally trying to find?
Question (KO): 진우가 계산을 하다 1.36을 곱해야 하는데 실수하여 1.36으로 나눈 값이 0.5였다고 한다. 진우가 원래 구하려고 하던 값은 얼마인가?

Answer: 0.92

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

Question (EN): A hare and a tortoise are racing. A tortoise can cover 5 meters (m) in 3 minutes when a hare can get to 5 meters (m) in 2 minutes. If the hare starts running 20 meters (m) behind the tortoise, in how many minutes will the hare and the tortoise meet?
Question (KO): 토끼와 거북이가 경주를 합니다. 거북이는 3분에 5미터(m)를 갈 수 있고 토끼는 2분에 5미터(m)를 갈 수 있습니다. 토끼가 거북이보다 20미터(m) 뒤에서 출발한다면 몇 분 후에 토끼와 거북이가 만나게 됩니까?

Answer: 24

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

Question (EN): When Hoseok bought item (a) at the mart, he paid 7, 4, and 5 1,000 won, 100 won, and 10 won coins, respectively. What is the price of the item (a)?
Question (KO): 호석이가 마트에서 (가) 물건을 사면서 지불한 값은 1,000원짜리, 100원짜리, 10원짜리 동전이 각각 7장, 4개, 5개입니다. (가) 물건의 가격은 얼마입니까?

Answer: 7450

Solution (Python):
var_a = 1000
var_b = 7
var_c = var_a * var_b
var_d = 100
var_e = 4
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 10
var_i = 5
var_j = var_h * var_i
var_k = var_g + var_j
print(int(var_k))
Category: Correspondence

Question (EN): When you divide a certain number by 4 and add 3, you get 5. Find that number.
Question (KO): 어떤 수를 4로 나눈 후 3을 더했더니 5가 되었습니다. 어떤 수를 구하시오.

Answer: 8

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a - var_b
var_d = 4
var_e = var_c * var_d
print(int(var_e))