philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Yuna threaded 380 beads and Eunji threaded 325 beads in 1 hour. How many beads did Yuna thread more than Eunji when the two of them threaded at a constant speed for 8 hours?
Question (KO): 380개의 구슬을 유나가, 325개의 구슬을 은지가 1시간동안 꿰었다. 8시간동안 같은 빠르기로 두 사람이 꿰었을 때, 유나는 은지보다 몇 개의 구슬을 더 꿰었는가?

Answer: 440

Solution (Python):
var_a = 380
var_b = 325
var_c = var_a - var_b
var_d = 8
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the number of faces of a square pillar.
Question (KO): 사각 기둥의 면의 개수는 몇 개인지 구하시오.

Answer: 6

Solution (Python):
var_a = 4
var_b = 2
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are persimmons of the same size and weight. Five persimmons weigh 1 kilogram (kg). How many persimmons are there if all persimmons are 3 kg (kg)?
Question (KO): 크기와 무게가 모두 같은 감이 있습니다. 감 5개의 무게는 1킬로그램(㎏)입니다. 감이 모두 3킬로그램(㎏) 있다면 감은 모두 몇 개입니까?

Answer: 15

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a * var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): A rectangular parallelepiped barrel with the lengths of the bottom two sides measuring 6 meters (m) 40 centimeters (cm) and 9 meters (m) respectively and the height measuring 5 meters (m) 20 centimeters (cm) is filled with sand. We want to divide this sand into several barrels whose volume is one cubic meter (m3). Find at least how many barrels you need.
Question (KO): 밑면의 두 변의 길이가 각각 6미터(m) 40센티미터(㎝), 9미터(m)이고 높이가 5미터(m) 20센티미터(㎝)인 직육면체 모양의 통에 가득 들어 있는 모레를 부피가 1세제곱미터(㎥)인 통 여러 개에 모두 나누어 담으려고 합니다. 통은 적어도 몇 개 필요한지 구해보시오.

Answer: 300

Solution (Python):
var_a = 6
var_b = 40
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 9
var_g = var_e * var_f
var_h = 5
var_i = 20
var_j = 100
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_g * var_l
var_n = 1
var_o = var_m / var_n
var_p = 1
var_q=int(((var_o+9*10**(var_p-2))//(10**(var_p-1)))*10**(var_p-1))

print(int(var_q))
Category: Correspondence

Question (EN): A number multiplied by 2 subtracted by 3 equals 7. Find the number.
Question (KO): 어떤 수를 2배 한 것에 3을 빼면 7이다. 어떤 수를 구하시오

Answer: 5

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

Question (EN): When I cut wire into pieces of 7 centimeters (cm), it becomes 12 pieces leaving 4 centimeters (cm). If you cut this wire into pieces of 3 centimeters (cm), how many centimeters (cm) remains?
Question (KO): 철사를 한 도막에 7센티미터(㎝)씩 잘랐더니 12도막이 되고, 4센티미터(㎝)가 남았습니다. 이 철사를 3센티미터(㎝)씩 자르면 몇 센티미터(㎝)가 남습니까?

Answer: 1

Solution (Python):
var_a = 7
var_b = 12
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 3
var_g = var_e % var_f
print(int(var_g))
Category: Arithmetic calculation

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

Answer: 2

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 = 2
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: Geometry

Question (EN): I made a square by arranging go stones without gaps. If the number of go stones on the perimeter is 52, how many go stones are on the outermost of one side?
Question (KO): 바둑돌을 빈틈없이 늘어놓아 정사각형을 만들었습니다. 둘레에 놓인 바둑돌의 개수가 52개라면, 가장 바깥쪽의 한 변에 놓인 바둑돌의 개수는 몇 개입니까?

Answer: 14

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

Question (EN): How many square centimeters (cm2) is the sum of the widths of two squares, every 11 centimeters (cm) and 5 centimeters (cm) long?

Question (KO): 한 변의 길이가 각각 11센티미터(㎝), 5센티미터(㎝)인 두 정사각형의 넓이의 합은 몇 제곱센티미터(㎠)입니까?

Answer: 146

Solution (Python):
var_a = 11
var_b = 2
var_c = var_a ** var_b
var_d = 5
var_e = 2
var_f = var_d ** var_e
var_g = var_c + var_f
print(int(var_g))
Category: Possibility

Question (EN): There are one card 5, one card 1, one card 7, and one card 6 in the pocket. When you want to make decimal numbers with three decimal places bigger than 7 with all of each card, how many can you make?
Question (KO): 주머니에 5, 1, 7, 6이 적힌 카드가 한 장씩 들어있다. 이를 모두 뽑아 7보다 큰 소수 세 자리 수를 만들려고 할 때, 모두 몇 개 만들 수 있습니까?

Answer: 6

Solution (Python):
var_a = 5
var_b = 1
var_c = 7
var_d = 6
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 = 7
var_g = 10
var_h = 4
var_i = 1
var_j = var_h - var_i
var_k = var_g ** var_j
var_l = var_f * var_k
list_c = []
for i in list_b:
    if i > var_l:
        list_c.append(i)
var_m = len(list_c)
print(int(var_m))
Category: Comparison

Question (EN): A is the sum of 4 groups of 10 and 8 units. B is 50 minus 1. C is 40 plus 7. Which of the three numbers A, B, and C is the greatest?
Question (KO): A는 10개씩 4묶음과 낱개 8개를 더한 수이다. B는 50에서 1을 뺀 수이다. C는 40에서 7을 더한 수이다. 세 수 A, B, C 중 가장 큰 수는 무엇인가?

Answer: B

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 = 10
var_e = 4
var_f = var_d * var_e
var_g = 8
var_h = var_f + var_g
var_i = 50
var_j = 1
var_k = var_i - var_j
var_l = 40
var_m = 7
var_n = var_l + var_m
list_b= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r)
Category: Arithmetic calculation

Question (EN): Ji-yeon bought tteokbokki with 1/2 of her pocket money. And she used 3/8 of the rest to buy pencils. How much is the tteokbokki Jiyeon bought when the remaining money is 2,500 won?
Question (KO): 지연이는 용돈의 1/2을 가지고 떡볶이를 사먹었습니다. 그리고 나머지의 3/8은 연필을 사는 데 사용했습니다. 남은 돈이 2500원일 때 지연이가 사먹은 떡볶이는 얼마입니까?

Answer: 4000

Solution (Python):
var_a = 2500
var_b = 1
var_c = 0.375
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 0.5
var_g = var_e / var_f
var_h = 0.5
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): I made a rectangular parallelepiped by attaching certain cubes, and the length and width of its base were twice the height. If the sum of the lengths of all the edges of this rectangular parallelepiped is 100 centimeters (cm), what is the surface area of this rectangular parallelepiped?
Question (KO): 어떤 정육면체를 이어 붙여서 직육면체를 만들었는데, 밑면의 세로와 가로의 길이가 높이의 2배가 되도록 하였다. 이 직육면체의 모든 모서리의 길이의 합이 100센티미터(㎝)라면, 겉넓이는 몇이겠는가?

Answer: 400

Solution (Python):
var_a = 100
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = 2
var_f = var_d + var_e
var_g = 1
var_h = var_f + var_g
var_i = var_c / var_h
var_j = 2
var_k = var_i ** var_j
var_l = 2
var_m = 2
var_n = var_l * var_m
var_o = 2
var_p = var_n * var_o
var_q = 1
var_r = 2
var_s = var_q * var_r
var_t = 2
var_u = var_s * var_t
var_v = 1
var_w = 2
var_x = var_v * var_w
var_y = 2
var_z = var_x * var_y
var_A = var_u + var_z
var_B = var_p + var_A
var_C = var_k * var_B
print(int(var_C))
Category: Comparison

Question (EN): Nine students are standing in a line to get on the bus. How many students are standing between the student standing third from the front and the student standing second from the back?
Question (KO): 버스를 타기 위해 9명의 학생들이 한 줄로 서 있습니다. 앞에서 3번째에 서 있는 학생과 뒤에서 2번째에 서 있는 학생 사이에는 모두 몇 명의 학생이 서 있습니까?

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): Dohyeon is 1.46 meters (m) tall, and his older brother's height is 1.15 times of Dohyeon's. How tall is his brother in meters (m)?
Question (KO): 도현이의 키는 1.46미터(m)이고, 형의 키는 도현이의 키의 1.15배입니다. 형의 키는 몇 미터(m)인가?

Answer: 1.68

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

Question (EN): If the area of a cube-shaped box is 600, 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: Possibility

Question (EN): If 6 basketball teams play with each other once, how many matches will there be in total?
Question (KO): 6개의 농구팀이 서로 한 번씩 시합을 가진다면 모두 몇 번의 시합이 이루어지는지 모두 구하시오

Answer: 15

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

Question (EN): Yoongi wants to add a four-digit number to 57. Yoongi saw 9 in the ones place of a four-digit number wrong, and saw it as 6. When the sum Yoongi got is 1823, find this four-digit number.
Question (KO): 윤기는 네 자리 수와 57의 덧셈을 하려 합니다. 윤기는 네 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 합은 1823 일 때, 네 자리 수를 구하시오.

Answer: 1769

Solution (Python):
var_a = 1823
var_b = 57
var_c = var_a - var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): When performing multiplication between two-digit numbers, when the tens digit of the multiplier is mistakenly considered as 6 instead of 2, the calculated value is 2496. However, the correct calculation yields 936. What is the sum of these two two-digit numbers?
Question (KO): 두 자리 수끼리의 곱셈을 할때 곱하는 수의 십의 자리 숫자 2를 6으로 보고 계산한 값이 2496이고, 바르게 계산한 값이 936일 때, 2개의 두 자리 수의 합을 구하시오.

Answer: 63

Solution (Python):
var_a = 2496
var_b = 936
var_c = var_a - var_b
var_d = 6
var_e = 2
var_f = var_d - var_e
var_g = 10
var_h = var_f * var_g
var_i = var_c / var_h
var_j = 936
var_k = 2496
var_l = 936
var_m = var_k - var_l
var_n = 6
var_o = 2
var_p = var_n - var_o
var_q = 10
var_r = var_p * var_q
var_s = var_m / var_r
var_t = var_j / var_s
list_a= []
if "/" in str(var_t):
    var_t = eval(str(var_t))
list_a.append(var_t)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
list_a.reverse()
list_a = [float(i) for i in list_a]
var_u = sum(list_a)
print(int(var_u))
Category: Arithmetic calculation

Question (EN): There are 8 boxes of soccer balls of 12 each, and 5 boxes of basketballs of 12 each. How many more soccer balls are there than basketballs?
Question (KO): 축구공이 한 상자에 12개씩 8상자 있고, 농구공이 한 상자에 12개씩 5상자 있습니다. 축구공은 농구공보다 몇 개 더 많습니까?

Answer: 36

Solution (Python):
var_a = 12
var_b = 8
var_c = var_a * var_b
var_d = 12
var_e = 5
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Possibility

Question (EN): Find the number of ways when the value of one of the cards numbered from 1 to 9 is drawn and multiplied by 65, and is greater than the value of 57 multiplied by 7.
Question (KO): 1부터 9까지의 카드 중 하나를 뽑아서 65을 곱했을 때 57에 7을 곱한 값보다 커지는 경우의 수를 구하시오.

Answer: 6

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 = 57
var_e = 7
var_f = var_d * var_e
var_g = 65
var_h = var_f / var_g
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
var_i = len(list_b)
print(int(var_i))
Category: Comparison

Question (EN): Choose a number greater than or equal to 1.1 from 1.4, 9/10, 1.2, 0.5, and 13/10, and count the number of selected numbers.
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10 중에서 1.1보다 크거나 같은 숫자를 고르고, 선택된 숫자들의 개수를 구하세요

Answer: 3

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: Arithmetic calculation

Question (EN): Hyeonsu went around the promenade for 4 hours. What is the ratio of the distance Hyeonsoo walked in 1 hour on the walking trail?
Question (KO): 현수는 4시간을 걸어서 산책길을 한바퀴 돌았다. 현수가 1시간 동안 걸은 거리는 전체 산책길의 얼마입니까?

Answer: 0.25

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

Question (EN): Miho has a field with a side measuring 6 meters (m). How big is this field?
Question (KO): 미호는 한 변의 길이가 6미터(m)인 밭을 가지고 있습니다. 이 밭의 넓이는 얼마입니까?

Answer: 36

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

Question (EN): What is the third largest three-digit number with 7 in the hundreds place using 2, 4, 7, and 9 once?
Question (KO): 2, 4, 7, 9를 한 번씩 사용하여 백의 자리 숫자가 7인 세자리 수 중 세번째로 큰 수는 무엇입니까?

Answer: 749

Solution (Python):
var_a = 2
var_b = 4
var_c = 7
var_d = 9
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 100
var_g = 7
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))
Category: Geometry

Question (EN): The width of a monitor is 9 centimeters (cm). If the circumference is 46 centimeters (cm), how long is the length of a monitor in centimeters (cm)?
Question (KO): 어떤 모니터의 가로가 9센티미터(㎝)이다. 둘레가 46센티미터(㎝)이면 모니터의 세로는 몇 센티미터(㎝)입니까?

Answer: 14

Solution (Python):
var_a = 46
var_b = 2
var_c = var_a / var_b
var_d = 9
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): There are one carrot, one cucumber, and one radish each. How many ways can you choose to buy 2 of these?
Question (KO): 당근, 오이, 무가 각각 1개씩 있습니다. 이 중 2가지를 골라서 사는 방법은 모두 몇 가지입니까?

Answer: 3

Solution (Python):
var_a = 'carrot'
var_b = 'cucumber'
var_c = 'radish'
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)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
for i, elem in enumerate(range(var_e)):
    var_f = var_f / (i+1)
print(int(var_f))
Category: Comparison

Question (EN): There are circle-shaped pizzas (a), (b), (c), and (d). The area of the pizza (a) is 314 square centimeters (㎠) and the circumference of the pizza (b) is 99.2 centimeters (㎝). The diameter of the pizza (c) is 16 centimeters (cm) and the radius of the pizza (d) is 12 centimeters (cm). If the pizzas are sorted from the left in order from smallest to largest, find the pizza that is second from the right. It is assumed that the pi ratio is 3.1.
Question (KO): 원 모양의 피자 (가), (나), (다), (라)가 있습니다. (가) 피자의 넓이는 314제곱센티미터(㎠)이고 (나)피자의 원주는 99.2센티미터(㎝)입니다. (다) 피자의 지름은 16센티미터(㎝)이고 (라)피자의 반지름은 12센티미터(㎝)입니다. 피자를 넓이가 작은 순서대로 왼쪽부터 정렬하면, 오른쪽에서 2번째에 있는 피자는 어느 것인지 구하시오. 단, 원주율은 3.1이라고 가정합니다.

Answer: (a)

Solution (Python):
var_a = '(a)'
var_b = '(b)'
var_c = '(c)'
var_d = '(d)'
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 = 314
var_f = 99.2
var_g = 3.1
var_h = var_f / var_g
var_i = 2
var_j = var_h / var_i
var_k = 2
var_l = var_j ** var_k
var_m = 3.1
var_n = var_l * var_m
var_o = 16
var_p = 2
var_q = var_o / var_p
var_r = 2
var_s = var_q ** var_r
var_t = 3.1
var_u = var_s * var_t
var_v = 12
var_w = 2
var_x = var_v ** var_w
var_y = 3.1
var_z = var_x * var_y
list_b= []
if "/" in str(var_z):
    var_z = eval(str(var_z))
list_b.append(var_z)
if "/" in str(var_u):
    var_u = eval(str(var_u))
list_b.append(var_u)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_A = 2
list_c=list_b.copy()
list_c.sort()
var_B = list_c[var_A-1]
var_C = list_b.index(var_B)+1
var_D = list_a[var_C-1]
print(var_D)
Category: Correspondence

Question (EN): 14A+B73=418. How much is A, where 14A and B73 are three-digit numbers?
Question (KO): 14A+B73=418입니다. A는 얼마인가요?

Answer: 5

Solution (Python):
var_a = '14A+B73=418'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
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] = 1
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]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are four numbers 10, 11, 12, and 13. What is the quotient if you divide the 3rd smallest number by the 2nd smallest number?
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 3번째로 작은 수와 2번째로 작은 수로 나눈 몫은 얼마입니까?

Answer: 1

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

Question (EN): You have to divide a number by 4 and add 16, but if you accidentally multiplied a number by 4 and added 16 to get 32. Find out how much it is if you calculate it correctly.
Question (KO): 어떤 수를 4로 나누고 16을 더해야 할 것을 잘못하여 어떤 수에 4를 곱하고 16을 더했더니 32가 되었습니다. 바르게 계산하면 얼마인지 구해 보시오.

Answer: 17

Solution (Python):
var_a = 32
var_b = 16
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
var_f = 4
var_g = var_e / var_f
var_h = 16
var_i = var_g + var_h
print(int(var_i))
Category: Correspondence

Question (EN): Add 143 to a number and multiply it by 27 to get 9693. Find the number.
Question (KO): 어떤 수에 143을 더하고 다시 27을 곱하면 9693이 됩니다. 어떤 수를 구하시오.

Answer: 216

Solution (Python):
var_a = 9693
var_b = 27
var_c = var_a / var_b
var_d = 143
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There is a scale that can weigh more than 2 kilograms (kg). If you have lifted 3 weights of 200 grams (g) so far, find how many more weights you need to lift to measure the weight.
Question (KO): 2킬로그램(㎏)이 넘어야 무게를 잴 수 있는 저울이 있습니다. 지금까지 200그램(g)의 추를 3개 올렸을 때 무게를 재기 위해서는 몇 개의 추를 더 올려야 하는지 구하시오.

Answer: 7

Solution (Python):
var_a = 2
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = 3
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 200
var_i = var_g / var_h
var_j = 1
var_k=int(((var_i+9*10**(var_j-2))//(10**(var_j-1)))*10**(var_j-1))

print(int(var_k))
Category: Arithmetic calculation

Question (EN): I plan to sell 254 erasers by packing 30 in each box. How many more erasers would you need to pack and sell if there should be no leftover erasers?
Question (KO): 지우개 254자루를 한 상자에 30개씩 포장하여 팔려고 합니다. 지우개를 남김없이 포장하여 팔려면 지우개가 적어도 몇 개 더 있어야 할까요?

Answer: 16

Solution (Python):
var_a = 30
var_b = 254
var_c = 30
var_d = var_b % var_c
var_e = var_a - var_d
print(int(var_e))
Category: Comparison

Question (EN): Seonho has 1 more marble than Minjeong. Jinyoung has 3 fewer than Joohwan , Minjeong has 6 marbles, and Joohwan has 7 marbles. Which of these has the fewest marbles?
Question (KO): 선호는 민정이 보다 구슬을 1개 더 많이 가지고 있다. 진영이는 주환이보다 3개 더 적으며 민정이는 6개, 주환이는 7개 가지고 있다. 이들 중 가장 적은 구슬을 가진 사람은 누구인가?

Answer: Jinyoung

Solution (Python):
var_a = 'Minjeong'
var_b = 'Joohwan'
var_c = 'Seonho'
var_d = 'Jinyoung'
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 = 6
var_f = 7
var_g = 6
var_h = 1
var_i = var_g - var_h
var_j = 7
var_k = 3
var_l = var_j - var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[var_m-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Arithmetic calculation

Question (EN): You want to divide 10.4 kilograms (kg) of flour into 0.8 kilograms (kg) of each bowl. How many bowls do you need?
Question (KO): 밀가루 10.4 킬로그램(㎏) 을 그릇 한 개에 0.8 킬로그램(㎏) 씩 나누어 담으려고 합니다. 필요한 그릇은 몇 개입니까?

Answer: 13

Solution (Python):
var_a = 10.4
var_b = 0.8
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))

print(int(var_e))