philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Mingi solves 256 questions in 4 hours. If Somin can solve 111 questions in 3 hours, how many questions did Mingi and Somin solve in 3 hours?
Question (KO): 민기는 4시간에 256문제를 풉니다. 소민이는 3시간에 111문제를 풀 수 있다면 3시간 동안 민기와 소민이가 푼 문제는 모두 몇 문제입니까?

Answer: 303

Solution (Python):
var_a = 256
var_b = 3
var_c = 4
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 111
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 58 cucumbers in the mart. There are 24 fewer carrots than cucumbers, and 49 more tomatoes than cucumbers. The number of radishes equals the number of carrots. How many cucumbers, carrots, tomatoes, and radishes are in the mart in total?
Question (KO): 마트에 오이가 58개 있습니다. 당근이 오이보다 24개 적고, 토마토가 오이보다 49개 많습니다. 무의 수는 당근의 수와 같습니다. 마트에 있는 오이, 당근, 토마토, 무는 모두 몇 개입니까?

Answer: 233

Solution (Python):
var_a = 58
var_b = 58
var_c = 24
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 58
var_g = 49
var_h = var_f + var_g
var_i = var_e + var_h
var_j = 58
var_k = 24
var_l = var_j - var_k
var_m = var_i + var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): Yoojung is 5 years old this year. In the year when Yoojung turns 10, her grandmother is 60. Find what age is her grandmother this year.
Question (KO): 유정이는 올해 5살입니다. 유정이의 할머니는 유정이가 10살이 되는 해에 60세입니다. 올해 할머니의 나이는 몇 살입니까?

Answer: 55

Solution (Python):
var_a = 60
var_b = 10
var_c = 5
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the value of adding 3 to the number of diagonals in the rectangle.
Question (KO): 사각형에 존재하는 모든 대각선의 개수에 3을 더하면 얼마인지 구하시오.

Answer: 5

Solution (Python):
var_a = 4
var_b = 4
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
var_h = 3
var_i = var_g + var_h
print(int(var_i))
Category: Possibility

Question (EN): You want to arrange 4 identical ballpoint pens and 1 mechanical pencil in a line. What is the number of cases to arrange them?
Question (KO): 샤프 1개와 똑같은 볼펜 4개를 일렬로 정렬하려고 합니다. 정렬될 수 있는 가지 수는 몇 가지입니까?

Answer: 5

Solution (Python):
var_a = 4
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): The eight-digit number 757AB384 is divisible by 357. Get A.
Question (KO): 여덟 자리 수 757AB384는 357로 나누어떨어지는 수이다. A를 구하시오.

Answer: 5

Solution (Python):
var_a = '757AB384'
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 = 357
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 = '757AB384'
var_d = 'B'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
var_e = 0
for elem in list_b:
    elem = str(elem)
    var_e = int(elem[unk_idx])
print(int(var_e))
Category: Possibility

Question (EN): In Hyunseung's closet, there are 3 types of tops, 2 types of bottoms, and 5 types of shoes. How many types of tops, bottoms, and shoes can Hyunseung wear?
Question (KO): 현승이의 옷장에 3종류의 상의, 2종류의 하의, 5종류의 신발이 있다. 현승이가 입을 수 있는 상의, 하의, 신발의 경우의 수는 모두 얼마인가?

Answer: 30

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

Question (EN): The money Minyoung had was enough to buy A pieces of candy worth 90 won. If he bought A pieces of 60 won candies instead of 90 won candies, and he had 270 won left, how much money does Minyoung have at first?
Question (KO): 민영이가 가진 돈은 90원 짜리 사탕을 A개 살 수 있는 돈이었습니다. 90원 짜리 사탕 대신 60원 짜리 사탕을 A개 만큼 샀더니 270원이 남았다면 처음 민영이가 가진 돈은 얼마입니까?

Answer: 810

Solution (Python):
var_a = 270
var_b = 90
var_c = 60
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 90
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There is 13/4 liter (L) of water in the water tank. From this water tank, 12/5 liter (L) was scooped out and 11/6 liter (L) was put back in. Find how many liters (L) of water are left in the water tank.
Question (KO): 호진이가 등산을 하면서 13/4리터(L)의 물을 가지고 올라갔다. 등산 중에 12/5리터(L)를 마시고 약수터에서 11/6리터(L) 만큼 다시 채웠다. 물통에 남은 물은 몇 리터(L) 인지 구하시오.

Answer: 2.68

Solution (Python):
var_a = 3.25
var_b = 2.4
var_c = var_a - var_b
var_d = 1.8333333333333333
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Geometry

Question (EN): A regular hexagon with an area of 54.3 square centimeters (cm2) is divided into 6 equal parts. How many square centimeters (cm2) is the area of one of the 6 equal parts?
Question (KO): 넓이가 54.3제곱센티미터(㎠)인 정육각형을 6 등분하였습니다. 6 등분된 부분 하나의 넓이는 몇 제곱센티미터(㎠) 입니까?

Answer: 9.05

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

Question (EN): A number multiplied by 2 minus 3 equals 7. After finding the number, find the remainder when dividing the number by 2.
Question (KO): 어떤 수를 2배 한 것에 3을 빼면 7이다. 어떤 수를 구한 후, 어떤 수에서 2를 나눈 나머지를 구하시오.

Answer: 1

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

Question (EN): There are three numbers: 3/8, 0.125, and 9.51. What is the sum of all three numbers?
Question (KO): 3/8, 0.125, 9.51 총 3개의 숫자가 있습니다. 모든 수의 합은?

Answer: 10.01

Solution (Python):
var_a = 0.375
var_b = 0.125
var_c = var_a + var_b
var_d = 9.51
var_e = var_c + var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): There is a machine that makes 32 toys per hour. Find how many boxes are needed to put 4 of the toys the machine made for 3 hours into each box.
Question (KO): 시간당 32개의 장난감을 만드는 기계가 있다. 이 기계가 3시간 동안 만든 장난감을 4개씩 박스에 나누어 담으려면 몇 개의 박스가 필요한지 구하여라.

Answer: 24

Solution (Python):
var_a = 32
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): A is 680. A is greater than B by 157. B is greater than C by 185. Find what number C is.
Question (KO): A는 680입니다. A는 B보다 157만큼 큽니다. B는 C보다 185만큼 큽니다. C를 구하시오.

Answer: 338

Solution (Python):
var_a = 680
var_b = 157
var_c = var_a - var_b
var_d = 185
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): The number of students entering an art school is the same every year, and there are more female students than male students. This year, compared to last year, 16 more female students entered the school, and 64 more female students enrolled this year than male students enrolled. Find how many more female students entered school than male students last year.
Question (KO): 어느 미대의 입학생 수는 매년 똑같고 여학생이 남학생보다 많다. 올해는 작년과 비교했을 때 여학생이 16명 더 들어와서 올해 입학한 여학생이 입학한 남학생보다 64명 더 많다고 한다. 작년에는 여학생이 남학생에 비해 얼마나 많이 입학했는지 구하시오.

Answer: 32

Solution (Python):
var_a = 64
var_b = 16
var_c = var_a - var_b
var_d = 16
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): A coin has a diameter of 100 millimeters (mm) and a circumference of 314 millimeters (mm). How many times bigger is the circumference compared to the diameter of this coin?
Question (KO): 어느 동전의 지름이 100 밀리미터(㎜)이고, 둘레는 314 밀리미터(㎜) 였습니다. 이 동전의 둘레는 지름의 몇 배 인가요?

Answer: 3.14

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

Question (EN): There are 7 bundles of 10 pencils each. There are 3 more colored pencils than pencils. Find how many colored pencils there are.
Question (KO): 연필은 10자루씩 7묶음 있습니다. 색연필은 연필보다 3자루 더 많습니다. 색연필은 몇 자루인지 구하시오.

Answer: 73

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

Question (EN): There are three natural numbers A, B and C. When A is divided by 9, the quotient is B and the remainder is C. In this expression, the remainder is 3 less than the quotient. Find the smallest number that can fit A.
Question (KO): 세 자연수 A, B, C가 있습니다. A를 9로 나누면 몫은 B이고 나머지는 C가 됩니다. 이 식에서 나머지는 몫보다 3 작습니다. A 중 가장 작은 수를 구하시오.

Answer: 27

Solution (Python):
var_a = 9
var_b = 3
var_c = var_a * var_b
var_d = 0
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There were 8 rabbits. The next day, 5 new rabbits were born. How many rabbits are there now in total?
Question (KO): 토끼가 8마리 있었습니다. 다음 날 토끼 5마리가 새로 태어났습니다. 지금 토끼는 모두 몇 마리 있습니까?

Answer: 13

Solution (Python):
var_a = 8
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): I need to subtract 4 from a certain number, but I mistakenly subtracted 5 and it became 4. Find this certain number.
Question (KO): 어떤 수에서 4를 빼야 하는데 잘못하여 5를 뺐더니 4가 되었습니다, 어떤 수를 구하시오.

Answer: 9

Solution (Python):
var_a = 4
var_b = 5
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Jungkook collected the quotient of 6 divided by 3, Yoongi collected 4, and Yuna collected 5. Who collected the smallest number?
Question (KO): 정국이는 6에서 3을 나눈 몫 만큼 모았고, 윤기는 4, 유나는 5만큼 모았습니다. 누가 가장 작은 수를 모았습니까?

Answer: Jungkook

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
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 = 6
var_e = 3
var_f = var_d // var_e
var_g = 4
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_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
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: Comparison

Question (EN): There are 20 rabbits in a row. How many rabbits are there between the 13th from the left and the 19th from the left?
Question (KO): 토끼 20마리가 한 줄로 있습니다. 왼쪽에서 13번째와 왼쪽에서 19번째 사이에는 토끼 몇 마리가 있습니까?

Answer: 5

Solution (Python):
var_a = 19
var_b = 13
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Kyu-yeon and Na-eun are going to share 12 liters (L) and 400 milliliters (㎖) of apple juice for a week. If Kyu-yeon drank 2 liters (L) and 600 meters (m) liters (L) more than Na-eun when comparing the amount of apple juice she drank in a week, how many liters (L) of apple juice did Kyu-yeon drink?
Question (KO): 12리터(L) 400밀리리터(㎖)의 사과 주스를 규연이와 나은이가 일주일 동안 나누어 마시려고 합니다. 일주일 동안 마신 사과 주스의 양을 비교했을 때 규연이가 나은이보다 2리터(L) 600미터(m)리터(L) 더 마셨다면 규연이가 마신 사과 주스는 몇 리터(L)입니까?

Answer: 7.5

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

Question (EN): There are number cards from 1 to 9. If you make a 3-digit natural number by picking it by allowing duplicates, find how many possible numbers there are.
Question (KO): 1부터 9까지의 숫자카드가 있다. 이를 중복을 허용하여 뽑아서 3자리 자연수를 만든다고 할 때, 가능한 숫자는 몇 개인지 구하시오.

Answer: 729

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 = 3
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 = len(list_b)
print(int(var_e))
Category: Geometry

Question (EN): When you make a square by arranging 12 beads of the same size, 12 by 12 vertically and horizontally, find the number of beads placed around the perimeter.
Question (KO): 가로 12개씩, 세로 12개씩 크기가 같은 구슬을 빈틈없이 늘어놓아 정사각형을 만들었을 때, 둘레에 놓인 구슬의 개수를 구하시오.

Answer: 44

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

Question (EN): Pillars are embedded at intervals of 30 meters (m) along the circular track. If the length of the circular track is 1 kilometer (km) and 200 meters (m), how many poles are there?
Question (KO): 원형 트랙을 따라 30미터(m) 간격으로 기둥이 박혀 있다. 원형 트랙의 길이가 1킬로미터(㎞) 200미터(m)라면, 기둥은 모두 몇 개 있는 것입니까?

Answer: 40

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 30
var_g = var_e / var_f
print(int(var_g))
Category: Possibility

Question (EN): How many different ways can father, mother, and Hoseok stand side by side?
Question (KO): 아버지, 어머니, 호석이가 서로 다르게 나란히 서는 방법은 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 'father'
var_b = 'mother'
var_c = 'Hoseok'
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 = 3
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)
print(int(var_f))
Category: Correspondence

Question (EN): 76 is the result of subtracting 29 from and adding 64 to a particular number. What is that particular number?
Question (KO): 76은 어떤 수에서 29를 빼고 64를 더한 결과입니다. 어떤 수는 얼마입니까?

Answer: 41

Solution (Python):
var_a = 76
var_b = 64
var_c = var_a - var_b
var_d = 29
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): Seung-hyeon gave Su-yeon 2 pieces of pizza, and Seung-hyeon had 5 more pieces of pizza than Su-yeon had. Find how many more pieces Seung-hyeon had before giving them.
Question (KO): 승현이가 수연이에게 피자 2쪽을 주었더니 승연이가 가진 피자가 수연이가 가진 피자보다 5쪽 많았다. 피자를 주기 전에는 몇 쪽 더 많았는지 구하시오.

Answer: 9

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

Question (EN): Find the two-digit number from 2 to 56.
Question (KO): 2부터 56까지의 두 자리 수의 수를 구하세요.

Answer: 47

Solution (Python):
var_a = 10
var_b = 56
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = len(list_a)
print(int(var_d))
Category: Correspondence

Question (EN): Rounding down the number A567 to the nearest tens gives 2560. What is A?
Question (KO): 십의 자리에서 숫자 A567을 버림하면 2560이 됩니다. A는 무엇입니까?

Answer: 2

Solution (Python):
var_a = 'A567'
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 = 2560
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 2560
var_d = 10
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = 'A567'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Geometry

Question (EN): You made a round loop by gluing twelve sheets of paper tape that are each 18 centimeters (cm) long. If they are overlapped by the same length and the shape has a perimeter of 210 centimeters (cm), how many millimeters (mm) are the overlapped parts?
Question (KO): 길이가 18센티미터(㎝)인 종이 테이프 12장을 겹치는 부분의 길이가 같도록 풀로 붙여서 둥근 고리 모양을 만들었습니다. 이 둥근 고리 모양의 둘레의 길이가 210센티미터(㎝)라면, 겹쳐진 부분의 길이는 몇 밀리미터(㎜)입니까?

Answer: 5

Solution (Python):
var_a = 18
var_b = 12
var_c = var_a * var_b
var_d = 210
var_e = var_c - var_d
var_f = 12
var_g = var_e / var_f
var_h = 10
var_i = var_g * var_h
print(int(var_i))
Category: Correspondence

Question (EN): Subtract a number from 48, multiply it by 4, subtract 26, and divide it by 2. Then, the result is 37. Find the number.
Question (KO): 48에서 어떤 수를 빼고 4를 곱한 뒤 26을 빼고 2로 나눈 수가 37입니다. 어떤 수를 구하시오.

Answer: 23

Solution (Python):
var_a = 48
var_b = 37
var_c = 2
var_d = var_b * var_c
var_e = 26
var_f = var_d + var_e
var_g = 4
var_h = var_f / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Comparison

Question (EN): Which number is greater, 70 or 68?
Question (KO): 70과 68중 어떤 수가 더 큽니까?

Answer: 70

Solution (Python):
var_a = 70
var_b = 68
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 = 1
list_b=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There are 6 cucumbers and 8 tomatoes on the farm. There are also 2 apples and 4 bananas. Find the number of vegetables on the farm minus the number of fruits.
Question (KO): 농장에 오이가 6개, 토마토가 8개 있습니다. 또 사과가 2개, 바나나가 4개 있습니다. 농장에 있는 야채 수에서 과일의 수를 뺀 값을 구하시오

Answer: 8

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a + var_b
var_d = 2
var_e = 4
var_f = var_d + var_e
var_g = var_c - var_f
print(int(var_g))
Category: Correspondence

Question (EN): When you add 3 to a number, you get 6. What number is it when you add 5 to the number?
Question (KO): 어떤 수에 3을 더했더니 6이 되었습니다. 어떤 수에 5를 더하면 얼마입니까?

Answer: 8

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

Question (EN): The distance from Bogyeom's house to Haneul's house is 150 meters (m) farther than 3 kilometers (km), and the distance to Seongju's house is 3096 meters (m). Of the two friends, Haneul and Seongju, who lives farther away from Bogyeom?
Question (KO): 보겸이네 집에서 하늘이네 집까지의 거리는 3킬로미터(㎞)보다 150미터(m) 더 멀고, 성주네 집까지의 거리는 3096미터(m)입니다. 하늘이와 성주 두 친구 중 보겸이와 더 멀리 사는 친구는 누구입니까?

Answer: Haneul

Solution (Python):
var_a = 'Haneul'
var_b = 'Seongju'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 3
var_d = 1000
var_e = var_c * var_d
var_f = 150
var_g = var_e + var_f
var_h = 3096
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)
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: Comparison

Question (EN): Nine people stand in a line in ascending order according to their heights. Hoseok is third from the front, and Yuna is 2 position before Hoseok. If you line them up again in descending order, in what position will Yuna be? Answer in ordinal number.
Question (KO): 키가 작은 사람부터 순서대로 9명이 한 줄로 서 있습니다. 호석이는 앞에서부터 3번째에 서 있고, 유나는 호석이로부터 2번째 앞에 서 있습니다. 키가 큰 사람부터 순서대로 다시 줄을 서면 유나는 앞에서부터 몇 번째에 서게 됩니까?

Answer: 9

Solution (Python):
var_a = 9
var_b = 3
var_c = var_a - var_b
var_d = 2
var_e = var_c + var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g))
Category: Comparison

Question (EN): There is a regular-pentagon with a length of 7 centimeters (cm) on one side and a regular-hexagon with a length of 6 centimeters (cm) on one side. Which shape has the greater perimeter?
Question (KO): 한변의 길이가 7센티미터(㎝)인 정오각형과 한 변의 길이가 6센티미터(㎝)인 정육각형이 있다. 어떤 도형의 둘레가 더 깁니까?

Answer: regular-hexagon

Solution (Python):
var_a = 'regular-hexagon'
var_b = 'regular-pentagon'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 6
var_d = 6
var_e = var_c * var_d
var_f = 7
var_g = 5
var_h = var_f * var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): When I wrongly multiplied a number by 12 that should actually be divided by 12, I got 84.6. Find out how much it is if you calculate it correctly.
Question (KO): 어떤 소수를 12 로 나누어야 할 것을 잘못하여 곱했더니 84.6 이 되었습니다. 바르게 계산하면 얼마인지 구해보시오.

Answer: 0.59

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

Question (EN): If an elevator starts at 120 meters (m) above the ground and descends at a speed of 4 meters (m) per second without stopping, find how many seconds after departure it will reach 20 meters (m) above the ground.
Question (KO): 어떤 엘리베이터가 지상 120미터(m)에서 출발하여, 한 번도 멈추지 않고 초속 4미터(m)의 속도로 내려올 때, 출발한 지 몇 초 후에 지상 20미터(m)가 되는지 구하시오.

Answer: 25

Solution (Python):
var_a = 120
var_b = 20
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The chicken laid 30 eggs today and 19 eggs yesterday. How many eggs did it lay in total?
Question (KO): 오늘 닭이 알을 30개 낳았으며 어제는 19개 낳았다. 총 몇개의 알을 낳았는가?

Answer: 49

Solution (Python):
var_a = 30
var_b = 19
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): At Seoul Elementary School, milk is distributed equally to the students, but when milk was distributed to 6 classes that should have been distributed to 8 classes, 124 packs were given to each class and 4 packs left over. Calculate how many milks are left if divided normally.
Question (KO): 서울초등학교에서 우유를 학생들에게 똑같이 나눠주는데 8개 반에게 나눠야 할 것을 6개 반에만 나누어 주었더니 반마다 124개를 주고 4개가 남았다. 정상적으로 나누어준다면 몇 개의 우유가 남는지 구하시오.

Answer: 4

Solution (Python):
var_a = 124
var_b = 6
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 8
var_g = var_e % var_f
print(int(var_g))
Category: Possibility

Question (EN): What is the largest minus the smallest six-digit number that can be formed using 1, 4, and 0 twice?
Question (KO): 1, 4, 0을 두 번씩 사용하여 만들 수 있는 여섯 자리 수 중에서 가장 큰 수에서 가장 작은 수를 뺀 값은 얼마입니까?

Answer: 340956

Solution (Python):
var_a = 1
var_b = 1
var_c = 4
var_d = 4
var_e = 0
var_f = 0
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 = 6
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = 1
list_c=list_b.copy()
list_c.sort()
var_i = list_c[-var_h]
var_j = 1
list_d=list_b.copy()
list_d.sort()
var_k = list_d[var_j-1]
var_l = var_i - var_k
print(int(var_l))
Category: Correspondence

Question (EN): If you divide a number by 10, the result is 6. Find the exact result of subtracting 15 from the number.
Question (KO): 10을 어떤 수에서 나누었더니 결과가 6이 나왔습니다. 15를 어떤 수에서 뺀 결과를 정확히 구하시오.

Answer: 45

Solution (Python):
var_a = 6
var_b = 10
var_c = var_a * var_b
var_d = 15
var_e = var_c - var_d
print(int(var_e))