philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): There is a farm in the shape of a rectangle with a length of 3.6 kilometers (km) and a width 2.5 times its length. If half of this farm is for cattle and half is for pigs, find the area of the cattle area in square kilometers (km2).
Question (KO): 세로가 3.6킬로미터(㎞)이고 가로가 세로의 2.5배인 직사각형 모양이 농장이 있습니다. 이 농장의 반은 소를 키우는 곳이고, 반은 돼지를 키우는 곳일 때 소를 키우는 곳의 넓이는 몇 ㎢인지 구하시오.

Answer: 16.2

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

Question (EN): Minhyun drank 0.41 times more milk than 6 liters (L) and Jinyoung drank 2.3 liters (L). Who has drunk more milk?
Question (KO): 우유를 민현이는 6리터(L)의 0.41배만큼 마셨고 진영이는 2.3리터(L)를 마셨습니다. 우유를 누가 몇 더 많이 마셨습니까?

Answer: Minhyun

Solution (Python):
var_a = 'Minhyun'
var_b = 'Jinyoung'
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 = 0.41
var_e = var_c * var_d
var_f = 2.3
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): 1250 people participated in a marathon. If there were 124 more people who gave up during running than finished people, how many people finished?
Question (KO): 어느 마라톤 대회에 참가한 사람 수는 1250명입니다. 출발하여 뛰는 도중 포기한 사람이 완주한 사람보다 124명 더 많았다면 완주한 사람은 몇 명입니까?

Answer: 563

Solution (Python):
var_a = 1250
var_b = 124
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 6 students playing (a) sports, and the number of students playing (b) sports is 4 times the number of students playing (a) sports. How many students do (b) sports?
Question (KO): 6명의 학생이 (가) 운동을 하고 있고, (나) 운동을 하는 학생 수는 (가) 운동을 하는 학생 수의 4배입니다. (나) 운동을 하는 학생은 몇 명입니까?

Answer: 24

Solution (Python):
var_a = 6
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Among the numbers from 1 to 15, only odd numbers were selected and arranged in ascending order from left to right. Find the sum of the second number from the right and the second number from the left.
Question (KO): 1부터 15까지의 수들 중 홀수만 선택하여 왼쪽부터 작은 순서대로 나열하였다. 오른쪽에서 2번째에 있는 수와 왼쪽에서 2번째에 있는 수를 더한 값을 구하시오.

Answer: 16

Solution (Python):
var_a = 1
var_b = 15
list_a = []
if var_a%2==0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = 2
list_b=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
var_e = 2
list_c=list_a.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = var_d + var_f
print(int(var_g))
Category: Geometry

Question (EN): There is a pyramid whose base side is a dodecagon. How many faces does this pyramid have?
Question (KO): 밑면의 모양이 십이각형인 각뿔이 있습니다. 이 각뿔의 면의 수는 몇 개입니까?

Answer: 13

Solution (Python):
var_a = 12
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): There are 16 of Hoseok and his friends. How many friends are to Hoseok's left when there are 8 friends to Hoseok's right?
Question (KO): 호석이와 친구들은 모두 16명입니다. 호석이 오른쪽에 8명이 있을 때 호석이의 왼쪽에는 몇 명이 있습니까?

Answer: 7

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

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

Answer: 980

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 4
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 = 5
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): Five watermelons that weigh 1050 grams (g) each were placed on one side of a pan balance scale. Two of nine apples of equal weight, each weighing 4.5 kilograms (kg), were placed on the opposite side of that scale. How many more melons weighing 850 grams (g) each must be placed on the side of the apples to level the scale?
Question (KO): 양팔 저울 한 쪽에 무게가 1050그램(g)인 수박 5개를 올려두었습니다. 무게의 합이 4.5킬로그램(㎏)인 같은 무게의 사과 중 2개를 양팔 저울의 반대쪽에 올려두었습니다. 저울의 수평을 맞추기 위해선 사과를 올려둔 쪽에 850그램(g)짜리 멜론을 몇 개 더 올려야 합니까?

Answer: 5

Solution (Python):
var_a = 1050
var_b = 5
var_c = var_a * var_b
var_d = 4.5
var_e = 1000
var_f = var_d * var_e
var_g = 9
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = var_c - var_j
var_l = 850
var_m = var_k / var_l
print(int(var_m))
Category: Comparison

Question (EN): Minyoung crossed the finish line in 33rd place in the running race, and Eunji crossed the finish line before Minyoung while there are 11 people between them. What is Eunji's rank?
Question (KO): 민영이는 달리기 시합에서 33등으로 결승선을 넘었고, 은지는 민영이보다 11명 앞에서 먼저 결승선을 넘었습니다. 은지의 등수는 몇 등입니까?

Answer: 21

Solution (Python):
var_a = 33
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): When choosing three numbers from 0, 2, 4, and 6 to make a three-digit number, find the sum of all the possible three-digit numbers.
Question (KO): 0, 2, 4, 6 중에서 세 숫자를 골라 세 자리 수를 만들 때, 만들 수 있는 세 자리 수의 합을 구하여라.

Answer: 7728

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
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 = 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]
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): There are 1 to 25 buildings in Jungkook's apartment complex, and each building has up to 10 floors. If there are 8 households on each floor, how many households can live in Jungkook's apartment complex?
Question (KO): 정국이네 아파트 단지에는 1동부터 25동까지 있고, 각 동마다 10층까지 있습니다. 각 층마다 8가구씩 있다면, 정국이네 아파트 단지에는 모두 몇 가구가 살 수 있습니까?

Answer: 2000

Solution (Python):
var_a = 25
var_b = 10
var_c = var_a * var_b
var_d = 8
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the smallest number of natural numbers in excess of 12.
Question (KO): 12 초과인 자연수 중에서 가장 작은 수는 얼마인지 구하시오

Answer: 13

Solution (Python):
var_a = 12
var_b = 1
var_c = var_a + var_b
var_d = 999
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Minjeong's family drinks 0.2 liters (L) of juices three times every day. How many liters (L) of juice does Minjeong's family drink in a week?
Question (KO): 민정이네 가족은 0.2리터(L)짜리 주스를 매일 3개씩 마십니다. 일주일 동안 민정이네 가족이 마시는 주스는 모두 몇 리터(L)입니까?

Answer: 4.2

Solution (Python):
var_a = 0.2
var_b = 3
var_c = var_a * var_b
var_d = 7
var_e = var_c * var_d
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Comparison

Question (EN): 32 students of different heights are lined up in order from tallest to shortest. Jimin stands 27th from the front, and Yuna stands 11th from the front. How many students are standing between Jimin and Yuna?
Question (KO): 키가 다른 32명의 학생을 키가 큰 순서대로 줄 세웠다.지민이는 앞에서 27번째에 서고, 유나는 앞에서 11번째에 섭니다. 지민이와 유나 사이에 서 있는 학생은 몇 명입니까?

Answer: 15

Solution (Python):
var_a = 27
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): There are four numbers: 0.8, 1/2, 0.9, 1/3. What is the sum of numbers less than 3?
Question (KO): 4개의 숫자 0.8, 1/2, 0.9, 1/3가 있습니다. 3보다 작은 수의 합은 얼마인가요?

Answer: 2.53

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
var_d = 0.3333333333333333
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 = []
for i in list_a:
    if i < var_e:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Express the decimal value when 22 is divided by 8 without remainder.
Question (KO): 22를 8로 나머지 없이 나누었을 때의 값을 소수로 나타내시오.

Answer: 2.75

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

Question (EN): When 21 is divided by A, the quotient becomes B and the remainder 5. A and B are natural numbers. What is the smallest number out of all possible Bs?
Question (KO): 21을 A로 나눴더니 몫이 B가 되었고 나머지가 5가 되었습니다. A와 B는 자연수입니다. 가능한 B 중 가장 작은 수는 무엇일까요?

Answer: 1

Solution (Python):
var_a = 1
print(int(var_a))
Category: Possibility

Question (EN): The supermarket sells carrots, pears, and cucumbers, but Youngbin only has enough money to buy two kinds. How many cases can Youngbin buy?
Question (KO): 마트에서 당근, 무, 오이를 판매하고 있는데, 영빈이는 두 종류를 살 수 있는 돈밖에 없습니다. 영빈이가 살 수 있는 가지 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 'carrots'
var_b = 'cucumbers'
var_c = 'pears'
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: Possibility

Question (EN): Using all single-digit whole numbers greater than 6 once, find the sum of the largest three-digit number and the third largest three-digit number.
Question (KO): 6보다 큰 한 자리 자연수들을 한 번씩 모두 사용하여 가장 큰 세 자리 수와 세 번째로 큰 세 자리수의 합을 구하시오.

Answer: 1884

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a + var_b
var_d = 9
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
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 = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 3
list_d=list_b.copy()
list_d.sort()
var_j = list_d[-var_i]
var_k = var_h + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Yeonjeong and Donghun rode bicycles on a lake with a circumference of 3 kilometers (km) and started at the same time in opposite directions from the same place. Yeonjeong rides at a speed of 100 meters (m) per minute, and Donghun rides a bicycle at a speed of 150 meters (m) per minute. Find how many minutes later the two meet again for the first time.
Question (KO): 둘레가 3킬로미터(㎞)인 호수를 연정이와 동훈이가 자전거를 타고 같은 곳에서 서로 반대 방향으로 동시에 출발하였다. 연정이는 매분 100미터(m)의 속력으로, 동훈이는 매분 150미터(m)의 속력으로 자전거를 탄다. 두 사람이 몇 분 후에 처음으로 다시 만나는지 구하여라

Answer: 12

Solution (Python):
var_a = 3
var_b = 100
var_c = 1000
var_d = var_b / var_c
var_e = 150
var_f = 1000
var_g = var_e / var_f
var_h = var_d + var_g
var_i = var_a / var_h
print(int(var_i))
Category: Correspondence

Question (EN): 123 is the result of adding 84 by mistake instead of 48 to a number. Find the number.
Question (KO): 123은 어떤 수에 48을 더해야 것을 잘못하여 84를 더하여 나온 결과입니다. 어떤 수를 구하세요.

Answer: 39

Solution (Python):
var_a = 123
var_b = 84
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are 2 straps of different lengths. The sum of the lengths of the two straps is 64 centimeters (cm), and the longer strap is 48 centimeters (cm) longer than the shorter strap. Find how many pieces of strap that equal the length of the shorter strap can be cut from the longer strap.
Question (KO): 길이가 다른 끈이 2개 있습니다. 두 끈의 길이의 합은 64센티미터(㎝)이고 긴 끈은 짧은 끈보다 48센티미터(㎝) 더 깁니다. 긴 끈을 잘라서 짧은 끈과 길이가 같은 끈을 몇 개 만들 수 있는지 구하시오.

Answer: 7

Solution (Python):
var_a = 64
var_b = 48
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 48
var_g = var_e + var_f
var_h = 64
var_i = 48
var_j = var_h - var_i
var_k = 2
var_l = var_j / var_k
var_m = var_g / var_l
print(int(var_m))
Category: Comparison

Question (EN): To fill the fishbowl with water, you need to pour water 7 times with the A bowl, 8 times with the B bowl, and 5 times with the C bowl. Which bowl has the largest capacity?
Question (KO): 어항에 물을 가득 채우려면 각각 가 그릇으로는 7번, 나 그릇으로는 8번, 다 그릇으로는 5번 물을 부어야 합니다. 그릇의 들이가 가장 큰 그릇은 무엇인가요?

Answer: C

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 = 1
var_e = 7
var_f = var_d / var_e
var_g = 1
var_h = 8
var_i = var_g / var_h
var_j = 1
var_k = 5
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)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Correspondence

Question (EN): A number divided by 9 is 8. Yoongi added 11 to the number. How much is this value?
Question (KO): 어떤 수에서 9를 나누면 8이 됩니다. 윤기는 어떤 수에 11을 더했습니다. 이 값은 얼마입니까?

Answer: 83

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

Question (EN): Find the difference between the largest and smallest three-digit numbers that can be formed by using the three number cards 6, 3, and 8 only once.
Question (KO): 3장의 숫자 카드 6, 3, 8을 한 번씩만 사용하여 만들 수 있는 세 자리 수 중에서 가장 큰 수와 가장 작은 수의 차를 구하시오.

Answer: 495

Solution (Python):
var_a = 6
var_b = 3
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): What is the sum of the two numbers 1/6 and 5/12?
Question (KO): 2개의 수 1/6, 5/12를 합하면 얼마입니까?

Answer: 0.58

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

Question (EN): The sum of 25 consecutive even numbers is 750. Write the smallest even number among these.
Question (KO): 25개의 연속된 짝수의 합이 750입니다. 이 중 가장 작은 짝수를 쓰시오.

Answer: 6

Solution (Python):
var_a = 750
var_b = 25
var_c = var_a / var_b
var_d = 25
var_e = 2
var_f = var_d // var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i))
Category: Correspondence

Question (EN): Subtracting 16 from a certain number is divisible by 37, and the quotient is 23. Find what the number is that.
Question (KO): 어떤 수에서 16을 빼면 37로 나누어 떨어지고 몫은 23입니다. 어떤 수는 얼마일지 구하시오.

Answer: 867

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

Question (EN): Jimin wanted to subtract by a number from 34 but instead added the number to 20 to get 60. Find the correctly calculated value.
Question (KO): 지민이는 34에 어떤 수를 빼려고 합니다. 실수로 20에 어떤 수를 더했을 때의 결과가 60이라면 바르게 계산한 결과를 구하세요.

Answer: -6

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

Question (EN): A cube has a volume of 2744 cubic centimeters (cm3). If you divide the area of the base of this cube by the height, what is the quotient?
Question (KO): 부피가 2744세제곱센티미터(㎤)인 정육면체가 있다. 이 정육면체의 밑면의 넓이를 높이로 나누면 몫이 얼마인지 구하시오.

Answer: 14

Solution (Python):
var_a = 2744
var_b = 0.3333333333333333
var_c = var_a ** var_b
print(int(eval('{:.2f}'.format(round(var_c+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): Find the sum of even numbers from 1 to 100.
Question (KO): 1부터 100까지의 짝수의 합을 구하시오.

Answer: 2550

Solution (Python):
var_a = 1
var_b = 100
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
list_a = [float(i) for i in list_a]
var_c = sum(list_a)
print(int(var_c))
Category: Possibility

Question (EN): Sunwoo is playing a game of making the smallest number using all the number cards he has. If Sunwoo has cards with 2 and 4 written on them, what number should he make?
Question (KO): 선우는 가지고 있는 숫자 카드를 모두 이용하여 가장 작은 수를 만드는 게임을 하고 있습니다. 선우에게 2와 4가 적힌 카드가 있을 때, 어떤 수를 만들어야 합니까?

Answer: 24

Solution (Python):
var_a = 2
var_b = 4
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 = len(list_a)
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 = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[var_d-1]
print(int(var_e))
Category: Possibility

Question (EN): You want to choose 15 out of 4 types of fruits. Calculate the total number of choices of fruit, if you choose two or more of each fruit.
Question (KO): 4종류의 과일 중 15개를 선택하려고 한다. 각 과일을 2개 이상 선택한다고 할 때 과일을 선택하는 총 가지 수를 구하시오.

Answer: 120

Solution (Python):
var_a = 4
var_b = 15
var_c = var_a + var_b
var_d = 4
var_e = 2
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 1
var_i = var_g - var_h
var_j = 15
var_k = 4
var_l = 2
var_m = var_k * var_l
var_n = var_j - var_m
var_o = 1
var_i = int(var_i)
var_n = int(var_n)
for i, elem in enumerate(range(var_n)):
    var_o = var_o * (var_i-i)
for i, elem in enumerate(range(var_n)):
    var_o = var_o / (i+1)
print(int(var_o))
Category: Arithmetic calculation

Question (EN): There are 24 students. Among them, 50 sheets of colored paper were equally distributed to female students only, and 2 sheets were left. If the number of boys is twice the number of girls, how many pieces of colored paper will each girl receive?
Question (KO): 24명의 학생이 있습니다. 이 중 여학생에게만 색종이 50장을 똑같이 나누어 주었더니 2장이 남았습니다. 남학생의 수가 여학생의 수의 2배라면 여학생은 색종이를 몇 장씩 받게 되는지 구하시오.

Answer: 6

Solution (Python):
var_a = 50
var_b = 2
var_c = var_a - var_b
var_d = 24
var_e = 2
var_f = 1
var_g = var_e + var_f
var_h = var_d // var_g
var_i = var_c // var_h
print(int(var_i))
Category: Correspondence

Question (EN): Multiply a number by 2.5 then subtract 2.49 to get 22.01. Divide the number by 2.5, add 2.49, multiply by 2.3, and add 22.01 to get the result.
Question (KO): 어떤 수에 2.5를 곱한 다음 2.49 를 뺐더니 22.01이 되었습니다. 어떤 수를 2.5로 나눈 다음 2.49를 더하고 2.3을 곱한 후 22.01을 더한 값을 구하시오.

Answer: 36.75

Solution (Python):
var_a = 22.01
var_b = 2.49
var_c = var_a + var_b
var_d = 2.5
var_e = var_c / var_d
var_f = 2.5
var_g = var_e / var_f
var_h = 2.49
var_i = var_g + var_h
var_j = 2.3
var_k = var_i * var_j
var_l = 22.01
var_m = var_k + var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Correspondence

Question (EN): It is said that adding 12 to 60 and then dividing by 3 is equal to a number subtracted by 12 and then multiplied by 3. Find the number.
Question (KO): 60에 12를 더하고 3으로 나눈 값이 어떤 수에서 12를 빼고 3을 곱한 값과 같다고 한다. 어떤 수를 구하시오.

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): What is the smallest number among the numbers greater than 1.1 among the numbers 1.4, 9/10, 1.2, 0.5, and 13/10?
Question (KO): 수 5개 1.4, 9/10, 1.2, 0.5, 13/10 중 1.1보다 큰 숫자를 구하고, 그 중에서 가장 작은 숫자를 구하면 무엇입니까?

Answer: 1.2

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 1.1
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Correspondence

Question (EN): Yoongi multiplied 8 by some number and got 64. What number is it?
Question (KO): 윤기는 8에 어떤 수를 곱해 64를 얻었습니다. 어떤 수는 얼마입니까?

Answer: 8

Solution (Python):
var_a = 64
var_b = 8
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): Each of the seven digits 0, 1, 2, 3, 4, 5, and 6 are used only once to form a seven-digit number. If this number is a multiple of 55, find the third largest number.
Question (KO): 일곱 개의 숫자 0, 1, 2, 3, 4, 5, 6을 한 번씩 사용하여 일곱 자리 수를 만들었다. 이 수가 55의 배수일 때, 세 번째 큰 수를 구하여라.

Answer: 6421305

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

Question (EN): A number multiplied by 4 and then multiplied by 25 gives 812. Find the number.
Question (KO): 어떤 수에 4배 한 다음 25을 곱하였더니 812가 되었습니다. 어떤 수를 구하시오.

Answer: 8.12

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