philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Jaeho and Kyunghwan took a walk for the same amount of time. Jaeho walked a distance of 1/100 of 10.2 kilometers (km), and Kyunghwan walked a distance of 100 meters (m). Who walked more distances, Jaeho or Kyunghwan?
Question (KO): 재호와 경환은 같은 시간 동안 산책을 했습니다. 재호는 10.2킬로미터(㎞)의 1/100의 거리를 걸었고 경환은 100미터(m)의 거리를 걸었습니다. 재호와 경환이 중 누가 더 많은 거리를 걸었습니까?

Answer: Jaeho

Solution (Python):
var_a = 'Jaeho'
var_b = 'Kyunghwan'
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 = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 0.01
var_g = var_e * var_f
var_h = 100
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: Geometry

Question (EN): There is a prism with a sum of the number of vertices, faces, and corners is 50. How many edges of the pyramid have the same base shape as the prism?
Question (KO): 꼭짓점, 면, 모서리의 수의 합이 50개인 각기둥이 있습니다. 이 각기둥과 밑면의 모양이 같은 각뿔의 모서리의 수는 몇 개입니까?

Answer: 16

Solution (Python):
var_a = 50
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = 3
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
print(int(var_k))
Category: Possibility

Question (EN): There are 9 number cards with the numbers 1 through 9 written on them. In how many ways can you draw 3 cards so that the sum is 17?
Question (KO): 1부터 9까지의 숫자가 적힌 9개의 숫자 카드가 있습니다. 3장의 카드를 뽑아 합이 17이 되도록 하는 방법의 수는?

Answer: 42

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.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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 17
var_g = 0
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Find the certain number if the certain number multiplied by 7 minus 6 equals the certain number multiplied by 4 plus 12.
Question (KO): 어떤 수의 7배에서 6을 뺀 수는 어떤 수의 4배보다 12만큼 클 때, 어떤 수를 구하시오.

Answer: 6

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

Question (EN): 3 puppies and 7 chicks are playing in the yard of Junho's house. Find how many legs the puppies and chicks have together.
Question (KO): 준호네 집 마당에 강아지 3마리와 병아리 7마리가 놀고 있습니다. 강아지와 병아리의 다리 수를 합하면 모두 몇 개인지 구하세요.

Answer: 26

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

Question (EN): When displaying 2 tangerines and 3 oranges in a line, find the number of cases where the tangerines must be placed next to each other.
Question (KO): 귤 2개, 오렌지 3개를 한 줄로 세워 전시할 때, 귤끼리는 반드시 이웃하게 세우는 경우의 수를 구하시오.

Answer: 48

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

Question (EN): Find the largest number divided by the next largest number among 4 numbers: 10, 11, 12, and 13.
Question (KO): 4개의 수 10, 11, 12, 13이 있습니다. 그 중에서 가장 큰 수와 그 다음으로 큰 수로 나눈 값은 얼마입니까?

Answer: 1.08

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

Question (EN): 128 coins are scattered on the floor. If there are 12 more coins that are heads than coins that are tails, how many coins are heads?
Question (KO): 바닥에 128개의 동전들이 널려있다. 앞면인 동전이 뒷면인 동전보다 12개 더 많다면, 앞면인 동전은 모두 몇 개입니까?

Answer: 70

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

Question (EN): Roses were planted in one-third of the 2.4 square meters (m2) flower bed, and tulips were planted in the remaining one-quarter. Find the area of the area where the tulips are planted.
Question (KO): 넓이가 2.4제곱미터(㎡)인 화단의 1/3에 장미를 심고, 나머지의 1/4에 튤립을 심었습니다. 튤립이 심어진 부분의 넓이를 구하시오.

Answer: 0.4

Solution (Python):
var_a = 2.4
var_b = 1
var_c = 0.3333333333333333
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 0.25
var_g = var_e * var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): You want to create a three-digit number using 5, 9, and 2 once. When the difference between the two numbers made is the largest, find the difference.
Question (KO): 5, 9, 2 중에서 한 번씩만 사용하여 세 자리 수를 만들려고 합니다. 만든 두 수의 차가 가장 크게 될 때, 그 차를 구하시오.

Answer: 693

Solution (Python):
var_a = 5
var_b = 9
var_c = 2
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
var_j = abs(var_i)
print(int(var_j))
Category: Geometry

Question (EN): The red confetti has a square shape with a side length of 11 centimeters (cm), and the blue confetti has a square shape with a side length of 5 centimeters (cm). What is the sum of the areas of the two pieces of colored paper in square centimeters (cm2)?
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: Arithmetic calculation

Question (EN): It is said that the balloon 3 meters (m) underground reached the ground in 4 seconds after it went into the air. Assuming that the balloon pops when it travels 0.09 kilometers (km) above the ground, how many seconds after it rises into the sky will it burst, if the balloon moves at the same speed?
Question (KO): 지하 3미터(m)에 있던 풍선이 하늘로 올라간 지 4초만에 지상에 도착했다고 합니다. 풍선이 지상 0.09 킬로미터(㎞)를 넘어가면 터진다고 할 때, 풍선이 같은 속도로 움직인다면 하늘로 올라간 지 몇 초 후에 터지겠습니까?

Answer: 124

Solution (Python):
var_a = 0.09
var_b = 1000
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 = 4
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Three more boys and 10 girls entered the class, and now the total number of girls became 22. If there were 5 more boys than girls initially, how many boys are still in the classroom?
Question (KO): 교실에 남학생 3명과 여학생 10명이 더 들어와서 여학생이 모두 22명이 되었습니다. 처음에 남학생이 여학생보다 5명 많이 있었다고 할때 현재 교실에 남아있는 남학생은 모두 몇명입니까?

Answer: 20

Solution (Python):
var_a = 22
var_b = 10
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
var_f = 3
var_g = var_e + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): 3rd grade students from Min's school split into 18 15-seater buses to go on a field trip. If 3 seats are empty in each bus, how many 3rd grade students are there at Min's school?
Question (KO): 민이네 학교 3학년 학생이 현장 체험 학습을가려고 15인승 버스 18대에 나누어 탔습니다.버스마다 3자리씩 비어 있다면 민이네 학교 3학년 학생은 모두 몇 명입니까?

Answer: 216

Solution (Python):
var_a = 15
var_b = 3
var_c = var_a - var_b
var_d = 18
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): How many times does the figure '9' appear in odd numbers from 1 to 100?
Question (KO): 홀수를 1에서 100까지 쓸 때 숫자 9가 몇번 등장합니까?

Answer: 15

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)
var_c=""
for i in list_a:
    i = str(i)
    var_c = var_c + i
list_b = []
var_c = int(var_c)
while var_c//10 > 0:
    list_b.append(var_c%10)
    var_c = var_c//10
list_b.append(var_c%10)
list_b = list_b[::-1]
var_d = 9
var_e = 0
var_d = int(var_d)
for i in list_b:
    i = int(i)
    if i == var_d:
        var_e = var_e + 1
print(int(var_e))
Category: Possibility

Question (EN): If there are 6 students A, B, C, D, E, and F, find the number of ways to select 2 representatives and 1 secretary.
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: Arithmetic calculation

Question (EN): If you add up Yoongi and Hoseok's ages this year, it is 16. Hoseok is 2 years younger than Yoongi. How old is Yoongi this year?
Question (KO): 올해 윤기와 호석이의 나이를 더하면 16살입니다. 호석이는 윤기보다 2살 더 적습니다. 올해 윤기의 나이는 몇 살입니까?

Answer: 9

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

Question (EN): The four-digit number 4A8B is a multiple of 93. Find the value of A+B at this time.
Question (KO): 네 자리 수 4A8B은 93의 배수이다. 이때 A+B의 값을 구하여라.

Answer: 6

Solution (Python):
var_a = '4A8B'
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 = 93
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 = '4A8B'
var_d = 'A'
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])
var_f = '4A8B'
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_b:
    elem = str(elem)
    var_h = int(elem[unk_idx])
var_i = var_e + var_h
print(int(var_i))
Category: Correspondence

Question (EN): When you add 2 to a number and then subtract 3, you get 7. Find out this number
Question (KO): 어떤 수에 2를 더한 후 3을 뺐더니 7이 되었습니다. 어떤 수를 구하시오.

Answer: 8

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

Question (EN): When traveling for 2 hours and 36 minutes at a speed of 80 kilometers (km) per hour using a car that uses 0.08 liters (L) of gasoline to travel 1 kilometer (km), how many liters (L) of gasoline are used?
Question (KO): 1킬로미터(㎞)를 가는 데 0.08리터(L)의 휘발유를 사용하는 자동차를 이용하여 1시간에 80킬로미터(㎞)를 움직이는 빠르기로 2시간 36분을 이동하였을 때, 사용한 휘발유는 몇 리터(L)입니까?

Answer: 16.64

Solution (Python):
var_a = 0.08
var_b = 80
var_c = 2
var_d = 36
var_e = 60
var_f = var_d / var_e
var_g = var_c + var_f
var_h = var_b * var_g
var_i = var_a * var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Arithmetic calculation

Question (EN): In Jungkook's class, there are 9 students who wear glasses and 16 students who do not wear glasses. How many students are there?
Question (KO): 정국이네 반에 안경을 쓴 학생이 9명, 안경을 쓰지 않은 학생이 16명입니다. 정국이네 반 학생은 모두 몇 명입니까?

Answer: 25

Solution (Python):
var_a = 16
var_b = 9
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): Find the total volume if you stack 7 rows, 5 columns, and 3 layers of Legos, each measuring 1 centimeter (cm) in length, width, and height.
Question (KO): 가로, 세로, 높이가 1센티미터(㎝)인 레고를 가로로 7줄, 세로로 5줄, 높이를 3층으로 쌓아 올렸다면 전체 부피는 얼마인지 구하시오.

Answer: 105

Solution (Python):
var_a = 1
var_b = 7
var_c = var_a * var_b
var_d = 1
var_e = 5
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 1
var_i = 3
var_j = var_h * var_i
var_k = var_g * var_j
print(int(var_k))
Category: Possibility

Question (EN): Find the number of natural numbers that can be made by drawing three of the number cards 0, 1, 2, 4, and 9.
Question (KO): 숫자 카드 0, 1, 2, 4, 9 중에서 3장을 뽑아 만들 수 있는 자연수의 개수를 구하시오.

Answer: 48

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 4
var_e = 9
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_g = len(list_b)
print(int(var_g))
Category: Correspondence

Question (EN): There is a four-digit number that has A in the tens place. If the thousands, hundreds, and ones place of this four-digit number are 1, 8, and 4, and it is less than 1853, how many digits can be written in A in 18A4?
Question (KO): 네 자리 수 중 십의 자리 수가 A인 수가 있습니다. 이 네 자리 수 중 천, 백, 일의 자리 수가 1, 8, 4인 18A4가 1853보다 작다면 A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '18A4'
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 = 1853
list_b = []
for i in list_a:
    if i < var_b:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))
Category: Correspondence

Question (EN): Subtracting 2.95 twice from a number gives 9.28. Find this number.
Question (KO): 어떤 수에 2.95를 두 번 빼었더니 9.28이 되었습니다. 어떤 수를 구하시오.

Answer: 15.18

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

Question (EN): The area of the base triangle of a triangular prism with a volume of 576 cubic centimeters (cm3) is 3 square centimeters (cm2). How many centimeters (cm) is half of the height of this triangular prisim?
Question (KO): 부피가 576세제곱센티미터(㎤) 삼각기둥에 밑면인 삼각형의 넓이는 3제곱센티미터(㎠)다. 이 삼각기중의 높이의 절반은 몇 센티미터(㎝) 얼마입니까?

Answer: 96

Solution (Python):
var_a = 576
var_b = 3
var_c = var_a / var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): When 2 coins and 1 dice are tossed at the same time, in how many ways can both coins come up equal and the dice roll is a multiple of 3?
Question (KO): 동전 2개와 주사위 1개를 동시에 던질 때, 두 동전은 같은 면이 나오고 주사위의 눈은 3의 배수인 경우의 수는?

Answer: 4

Solution (Python):
var_a = 2
var_b = 1
var_c = 6
var_d = 1
list_a = [i for i in range(var_b, var_c + 1, var_d)]
var_e = 3
list_b = []
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if i % var_e == 0:
        list_b.append(i)
var_f = len(list_b)
var_g = var_a * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Min-young and Hoseok each had 1.5 million won of money. If Minyoung earns 320,000 won more and Hoseok earns 490,000 won more, how much more money does Hoseok have than Minyoung?
Question (KO): 민영이와 호석이는 각각 돈을 150만원씩 가지고 있었습니다. 민영이는 돈을 32만원 더 벌고, 호석이는 49만원을 더 벌었다면, 호석이가 가진 돈은 민영이보다 얼마 더 많습니까?

Answer: 170000

Solution (Python):
var_a = 150
var_b = 49
var_c = var_a + var_b
var_d = 150
var_e = 32
var_f = var_d + var_e
var_g = var_c - var_f
var_h = 10000
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The amount of water that Seokgi's family drinks during the day are 3 liters (L) and 200 milliliters (㎖). If out of this, the amount of water Seokgi and his father drink per day is 1 liter (L) and 100 milliliters (㎖) and every member drinks the same amount of water daily, how many liters (L) of water do the other members except Seokgi and his father drink for 2 weeks?
Question (KO): 석기네 식구가 하루 동안 마시는 물의 양은 3리터(L) 200밀리리터(㎖)입니다. 이 중에서 석기와 아버지가 하루 동안 마시는 물의 양은 1리터(L) 100밀리리터(㎖)이고, 모든 식구가 매일 같은 양의 물을 마신다면 석기와 아버지를 제외한 나머지 식구들이 2주일 동안 마시는 물의 양은 몇 리터(L)입니까?

Answer: 29.4

Solution (Python):
var_a = 3
var_b = 200
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1
var_g = 100
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 = 7
var_n = var_l * var_m
var_o = var_k * var_n
print('{:.2f}'.format(round(var_o+1e-10,2)))
Category: Comparison

Question (EN): Double B plus 4 is C, and the quotient of A divided by 3 is B. When A is 8 multiplied by 9 minus 3. Find the sum of the largest number and the smallest number.
Question (KO): B를 2배하고 4를 더한 수가 C이고 A를 3으로 나눈 몫은 B입니다. A는 8에 9를 곱하고 3을 뺀 수라고 할 때 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 92

Solution (Python):
var_a = 8
var_b = 9
var_c = var_a * var_b
var_d = 3
var_e = var_c - var_d
var_f = 8
var_g = 9
var_h = var_f * var_g
var_i = 3
var_j = var_h - var_i
var_k = 3
var_l = var_j / var_k
var_m = 8
var_n = 9
var_o = var_m * var_n
var_p = 3
var_q = var_o - var_p
var_r = 3
var_s = var_q / var_r
var_t = 2
var_u = var_s * var_t
var_v = 4
var_w = var_u + var_v
list_a= []
if "/" in str(var_w):
    var_w = eval(str(var_w))
list_a.append(var_w)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_a.append(var_l)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
list_a.reverse()
var_x = 1
list_b=list_a.copy()
list_b.sort()
var_y = list_b[-var_x]
var_z = 3
list_c=list_a.copy()
list_c.sort()
var_A = list_c[-var_z]
var_B = var_y + var_A
print(int(var_B))
Category: Comparison

Question (EN): A giraffe is 2.3 meters (m) tall, a baby is 9/10 meters (m) tall, a gorilla is 1.8 meters (m) tall, and a dinosaur is 2.5 meters (m) tall. What is the second tallest creature?
Question (KO): 기린의 키는 2.3미터(m), 아기의 키는 9/10미터(m), 고릴라의 키는 1.8미터(m), 공룡의 키는 2.5미터(m)입니다. 두 번째로 키가 큰 생물은 무엇입니까?

Answer: giraffe

Solution (Python):
var_a = 'giraffe'
var_b = 'baby'
var_c = 'gorilla'
var_d = 'dinosaur'
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 = 2.3
var_f = 0.9
var_g = 1.8
var_h = 2.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)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 2
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): Buses run at 92 kilometers (km) per hour, and taxis run at 1500 meters (m) per minute. Which of the buses or taxis is faster?
Question (KO): 버스는 시속 92킬로미터(㎞)로 달리고, 택시는 분속 1500미터(m)로 달립니다. 버스와 택시 중 속력이 더 빠른 것은 무엇입니까?

Answer: buses

Solution (Python):
var_a = 'buses'
var_b = 'taxis'
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 = 92
var_d = 1500
var_e = 1000
var_f = var_d / var_e
var_g = 60
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_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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): I mistakenly subtracted a certain number that should have been added to 5.46, and the result was 3.97. Find the result of the correct calculation.
Question (KO): 5.46에 어떤 수를 더해야 할 것을 잘못하여 뺐더니 3.97이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 6.95

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

Question (EN): When the division was calculated by changing the tens and units digits of the divisor, the quotient and remainder were 25 each. When the divisor is 65, find the sum of the correctly calculated quotient and remainder.
Question (KO): 나누는 수의 십의 자리 숫자와 일의 자리 숫자를 바꾸어 잘못 보고 나눗셈을 계산하였더니 계산한 몫과 나머지가 각각 25이었습니다. 나누는 수가 65일 때, 바르게 계산한 몫과 나머지의 합을 구하시오.

Answer: 81

Solution (Python):
var_a = 56
var_b = 25
var_c = var_a * var_b
var_d = 25
var_e = var_c + var_d
var_f = 65
var_g = var_e // var_f
var_h = 56
var_i = 25
var_j = var_h * var_i
var_k = 25
var_l = var_j + var_k
var_m = 65
var_n = var_l % var_m
var_o = var_g + var_n
print(int(var_o))
Category: Possibility

Question (EN): When you want to take a picture of 2 dogs and 3 cats standing in one line, find the number of cases where the dogs should be placed next to each other.
Question (KO): 강아지 2마리, 고양이 3마리를 한 줄로 세워 사진을 찍고자 할 때, 강아지끼리는 반드시 이웃하게 세우는 경우의 수를 구하시오.

Answer: 48

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