philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): You want to create a three-digit number by removing one from the number cards 2, 5, 6, or 9 and using all remaining ones. Find the sum of the third largest and third smallest possible numbers.
Question (KO): 숫자 카드 2, 5, 6, 9 중 하나를 빼고 남은 카드들을 모두 이용하여 세 자리 수를 만들고자 한다. 만들 수 있는 세 번째 큰 수와 세 번째 작은 수의 합을 구하여라.

Answer: 1221

Solution (Python):
var_a = 2
var_b = 5
var_c = 6
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 = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 3
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g + var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): Of the 13 students, 6 are girls. How many male students are there?
Question (KO): 13명의 학생 중 6명은 여학생입니다. 남학생은 몇 명입니까?

Answer: 7

Solution (Python):
var_a = 13
var_b = 6
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a cube with one edge 9 centimeters (cm) long. If you cut a cube with one edge 2 centimeters (cm) long at each vertex, what is the area in square centimeters (cm2) of the remaining area?
Question (KO): 한 모서리의 길이가 9센티미터(㎝)인 정육면체가 있습니다. 각 꼭짓점에서 한 모서리의 길이가 2센티미터(㎝)인 정육면체를 잘랐을 때, 남은 부분의 겉넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 486

Solution (Python):
var_a = 9
var_b = 9
var_c = var_a * var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): Yuna, Yujeong, and Eunji shared cards with natural numbers inscribed. Yuna's card has a 6 written on it, and Yujeong's has an 8 written on it. The number written on Eunji's card is larger than Yuna's and smaller than Yujeong's. What is the number written on Eunji's card?
Question (KO): 자연수가 적힌 카드를 유나, 유정, 은지가 나누어 가졌습니다. 유나가 가진 카드는 6이 적혀 있고, 유정이가 가진 카드는 8가 적혀 있습니다. 은지의 카드에 적힌 숫자는 유나 보다는 크고 유정 보다는 작습니다. 유나의 숫자 카드에 적힌 숫자는 무엇입니까?

Answer: 7

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

Question (EN): What is the sum of all odd numbers from 1 to 9?
Question (KO): 1부터 9까지의 홀수를 모두 더한 값은 얼마인지 구하시오.

Answer: 25

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

Question (EN): You want to draw a circle with a diameter of 14 centimeters (cm). How many centimeters (cm) should the compass be spread out?
Question (KO): 지름이 14 센티미터(㎝)인 원을 그리려고 합니다. 컴퍼스를 몇 센티미터(㎝)가 되도록 벌려야 할까요?

Answer: 7

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

Question (EN): When Jungkook measured his height, he made a mistake and moved the decimal point one place to the right which resulted him to be 2.7 centimeters (cm) taller than he really is. Calculate the original Jungkook's height in centimeters (cm).
Question (KO): 정국이가 자신의 키를 잴 때 잘못하여 소수점을 오른쪽으로 한 자리 옮겨서 쟀더니 원래보다 2.7센티미터(㎝) 커졌습니다. 원래의 정국이의 키를 센티미터(㎝)로 계산하시오.

Answer: 0.3

Solution (Python):
var_a = 2.7
var_b = 10
var_c = 1
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): Eunseo bought 3 red candies for 350 won each and 2 blue candies for 180 won each. When Eunseo pays 2,000 won, how much change should she receive?
Question (KO): 은서는 하나에 350원인 빨간 사탕 3개와 하나에 180원인 파란 사탕 2개를 샀습니다. 은서가 2000원을 냈을 때, 받아야 할 거스름돈은 얼마일까요?

Answer: 590

Solution (Python):
var_a = 2000
var_b = 350
var_c = 3
var_d = var_b * var_c
var_e = 180
var_f = 2
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): You had to divide a number by 3 but instead multiplied by 3 to get 18. Find the correctly calculated value.
Question (KO): 어떤 수를 3으로 나누어야 할 것을 잘못하여 어떤 수에 3을 곱했더니 18이 되었습니다. 바르게 계산하면 얼마인지 구해보시오.

Answer: 2

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

Question (EN): Dividing 231.88 by a certain number gives 1.87. What is the quotient of that certain number divided by 25?
Question (KO): 어떤 수로 231.88 을 나누었더니 1.87이 되었습니다. 25로 어떤 수를 나눈 몫은 얼마인지 구하시오.

Answer: 4

Solution (Python):
var_a = 231.88
var_b = 1.87
var_c = var_a / var_b
var_d = 25
var_e = var_c // var_d
print(int(var_e))
Category: Correspondence

Question (EN): If you multiply a number by 2 instead of multiply it by 20 and add 3, you get 22. How much is it when you calculate correctly?
Question (KO): 어떤 수에 20을 곱하고 3을 더해야 할 것을 2만 곱해 22이 나왔습니다. 바르게 계산하면 얼마인가요?

Answer: 223

Solution (Python):
var_a = 22
var_b = 2
var_c = var_a / var_b
var_d = 20
var_e = var_c * var_d
var_f = 3
var_g = var_e + var_f
print(int(var_g))
Category: Geometry

Question (EN): The length of one side of an equilateral triangle is 14/8 centimeters (cm). Find the sum of the lengths of the three sides of this equilateral triangle in centimeters (cm).
Question (KO): 정삼각형의 한 변의 길이는 14/8센티미터(㎝)입니다. 이 정삼각형의 세 변의 길이의 합은 몇 센티미터(㎝)인지 구하시오.

Answer: 5.25

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

Question (EN): If you multiply a number by 8, it returns 64. When the number is multiplied by 7, what does it give?
Question (KO): 8을 어떤 수에 곱하였더니 결과로 64를 얻었습니다. 어떤 수에 7을 곱하면 얼마입니까?

Answer: 56

Solution (Python):
var_a = 64
var_b = 8
var_c = var_a / var_b
var_d = 7
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Eugene wants to purchase a rectangular frame with the same area as a triangular frame with a base of 7.2 centimeters (cm) and a height of 7 centimeters (cm). If the width of a rectangular picture frame is 4 centimeters (cm), how many centimeters (cm) should the length be?
Question (KO): 유진이는 밑변이 7.2센티미터(㎝), 높이가 7센티미터(㎝) 인 삼각형 모양의 액자와 넓이가 같은 직사각형 모양의 액자를 구매하려고 합니다. 직사각형 모양 액자의 가로를 4센티미터(㎝)로 한다면 세로는 몇 센티미터(㎝)로 해야 합니까?

Answer: 6.3

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

Question (EN): When you subtract 2 from a number and add 4, you get 9. Find the number.
Question (KO): 어떤 수에서 2를 뺀 후 4를 더했더니 9가 되었습니다. 어떤 수를 구하시오.

Answer: 7

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

Question (EN): There are a total of 4 students in the classroom who have appeared in the election for class president and vice president. How many ways can a class president and vice president be selected out of four?
Question (KO): 교실에서 반장, 부반장 선거에 나온 학생은 모두 4명입니다. 4명 중 반장, 부반장을 뽑을 수 있는 방법은 모두 몇 가지입니까?

Answer: 12

Solution (Python):
var_a = 4
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)
print(int(var_c))
Category: Possibility

Question (EN): We are trying to make a two-digit number using 2 of our 3 number cards 1, 2, and 6. How many possible numbers are divisible by 3?
Question (KO): 1, 2, 6 총 3장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중 3으로 나눠 떨어지는 수는 모두 몇 개일까요?

Answer: 2

Solution (Python):
var_a = 1
var_b = 2
var_c = 6
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 3
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 = len(list_c)
print(int(var_f))
Category: Geometry

Question (EN): A square was created by arranging 10 square-shaped colored papers for each row and column without gaps. Find the number of colored paper placed at the perimeter.
Question (KO): 정사각형 모양의 색종이를 가로와 세로 모두 10장씩 빈틈없이 늘어놓아 정사각형을 만들었습니다. 둘레에 놓인 색종이의 개수를 구하시오.

Answer: 36

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

Question (EN): Nana is 1.618 meters (m) and Gaeun is 162.3 centimeters (cm). Find out who is taller.
Question (KO): 나나의 키는 1.618미터(m) 이고, 가은이의 키는 162.3센티미터(㎝) 입니다. 키가 더 큰 사람은 누구인지 구하시오.

Answer: Gaeun

Solution (Python):
var_a = 'Nana'
var_b = 'Gaeun'
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.618
var_d = 100
var_e = var_c * var_d
var_f = 162.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: Possibility

Question (EN): You want to buy 2 fruits by combining apples, peaches and pears. If duplicates are allowed, how many possible combinations are there?
Question (KO): 사과, 복숭아, 배를 조합하여 2개의 과일을 사려고 합니다. 중복을 허용하여 조합할 수 있는 경우의 수는 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 'apples'
var_b = 'peaches'
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 = var_d + var_e
var_g = 1
var_h = var_f - var_g
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)
for i, elem in enumerate(range(var_i)):
    var_j = var_j / (i+1)
print(int(var_j))
Category: Correspondence

Question (EN): You want to multiply 20 by some number. I mistakenly multiplied 10 by the number, and the result was 40. What is the correct calculation result?
Question (KO): 20에 어떤 수를 곱하려고 합니다. 잘못하여 10에 어떤 수를 곱했더니 결과는 40이 되었습니다. 바르게 계산한 결과는 얼마일까요?

Answer: 80

Solution (Python):
var_a = 20
var_b = 40
var_c = 10
var_d = var_b / var_c
var_e = var_a * var_d
print(int(var_e))
Category: Possibility

Question (EN): You want to create a two-digit number by drawing two different numbers from among 1, 4, 7, and 9. Find the difference between the largest number and the smallest number.
Question (KO): 서로 다른 숫자 2개를 1, 4, 7, 9, 중에서 뽑아 두 자리 수를 만들려고 합니다. 그 중 가장 큰 수와 가장 작은 수의 차이를 구하시오.

Answer: 83

Solution (Python):
var_a = 1
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 = 2
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g - var_i
print(int(var_j))
Category: Comparison

Question (EN): Hwajun got 19 out of 25 questions right on the Math test and 10 out of 16 questions on the Korean test. Which of the two subjects has the highest percentage of correct answers?
Question (KO): 화준이는 수학 시험 25문제 중에 19문제를 맞췄고, 국어 시험 16문제 중에 10문제를 맞췄습니다. 두 과목 중 정답률이 더 높은 과목은 무엇입니까?

Answer: Math

Solution (Python):
var_a = 'Math'
var_b = 'Korean'
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 = 19
var_d = 25
var_e = var_c / var_d
var_f = 10
var_g = 16
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): Dividing a number by 8, adding 8, subtracting 30, and multiplying by 6 is 12. Find the number.
Question (KO): 어떤 수를 8로 나눈 후 8을 더하고, 30을 뺀 값에 6을 곱한 값이 12입니다. 어떤 수를 구하시오.

Answer: 192

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

Question (EN): Youngjin's family arrived at their grandmother's house, which is 120 kilometers away by subway and bus, in 1 hour and 50 minutes. At first, they took the subway, and later they took the bus for 1 hour and 10 minutes. This bus used 6 liters (L) of gasoline to travel 40.8 kilometers (㎞), and if Youngjin's family used 14 liters (L) of gasoline while taking the bus, how many kilometers (km) did Youngjin's family move by taking the subway to get there in 1 minute?  (The time and distance to transfer from the subway to the bus are not taken into account.)
Question (KO): 영진이네 가족은 지하철과 버스를 이용하여 120킬로미터(㎞) 떨어진 할머니 댁에 1시간 50분만에 도착했습니다. 처음에는 지하철을 이용하였고, 나중에는 1시간 10분 동안 버스를 이용했습니다. 이 버스는 40.8킬로미터(㎞)를 가는 데 6리터(L)의 휘발유를 사용하였고, 영진이네 가족이 버스를 타고 있는 동안 14리터(L)의 휘발유를 사용했다면, 영진이네 가족이 지하철을 이용하여 1분 동안 이동한 거리는 몇 킬로미터(㎞)입니까? (지하철에서 버스로 갈아타기 위한 시간과 거리는 고려하지 않습니다.)

Answer: 0.62

Solution (Python):
var_a = 120
var_b = 40.8
var_c = 6
var_d = var_b / var_c
var_e = 14
var_f = var_d * var_e
var_g = var_a - var_f
var_h = 1
var_i = 60
var_j = var_h * var_i
var_k = 50
var_l = var_j + var_k
var_m = 1
var_n = 60
var_o = var_m * var_n
var_p = 10
var_q = var_o + var_p
var_r = var_l - var_q
var_s = var_g / var_r
print('{:.2f}'.format(round(var_s+1e-10,2)))
Category: Arithmetic calculation

Question (EN): If 72 candies and 56 jellies are distributed among 4 students, how many snacks does one person have?
Question (KO): 사탕 72개와 젤리 56개를 네명의 학생에게 나누어 준다면 한 사람이 가지는 사탕과 젤리를 합하면 몇 개인가?

Answer: 32

Solution (Python):
var_a = 72
var_b = 4
var_c = var_a / var_b
var_d = 56
var_e = 4
var_f = var_d / var_e
var_g = var_c + var_f
print(int(var_g))
Category: Correspondence

Question (EN): 39 is the wrong result of subtracting 5 and adding 14 to the number, instead of multiplying 5 and adding 14. What is the sum of the incorrect and the correct results?
Question (KO): 39는 어떤 수에 5를 곱하고 14를 더해야 하는데 실수로 5를 빼고 14를 더한 결과입니다. 틀리게 계산한 값과 바르게 계산한 값을 더하면 얼마입니까.

Answer: 203

Solution (Python):
var_a = 39
var_b = 14
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 14
var_i = var_g + var_h
var_j = 39
var_k = var_i + var_j
print(int(var_k))
Category: Correspondence

Question (EN): Adding a certain number to 0.46 three times gives you 0.72. What is the certain number?
Question (KO): 0.46 에 어떤 수를 세 번 더했더니 0.72 가 되었습니다. 어떤 수는 얼마입니까?

Answer: 0.66

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

Question (EN): My older brother and younger brother each received pocket money from my father. If the sum of their pocket money is 12,000 won, and the older brother gets 1,000 won more than the younger brother, how much does the older brother get?
Question (KO): 아버지에게 형과 동생이 각각 용돈을 받았습니다. 두 사람이 받은 용돈의 합은 12000원이고, 형이 동생보다 1000원 더 많이 받았다면, 형이 받은 용돈은 얼마입니까?

Answer: 6500

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

Question (EN): Find the smallest number that is a factor of 32 but not a factor of 8.
Question (KO): 32의 약수이지만 8의 약수는 아닌 수들중에서 가장 작은 수를 구하시오.

Answer: 16

Solution (Python):
var_a = 32
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 8
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) - set(list_b))
var_c = 1
list_d=list_c.copy()
list_d.sort()
var_d = list_d[var_c-1]
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There are 3 groups of 10 black stones and 16 white stones. How many Go stones are there in all?
Question (KO): 검은색 바둑돌은 10개씩 3묶음 있고, 흰색 바둑돌은 낱개 16개가 있습니다. 바둑돌은 모두 몇 개 있습니까?

Answer: 46

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

Question (EN): What is the product of a number that is greater than the second largest number and another number that is smaller than the second smallest number among 37, 45, 26, 51?
Question (KO): 37, 45, 26, 51 중에서 두번째로 큰 수보다 크고, 두번째로 작은 수보다 작은 수의 곱은 얼마입니까?

Answer: 1326

Solution (Python):
var_a = 37
var_b = 45
var_c = 26
var_d = 51
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 = 1
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: Geometry

Question (EN): How many vertices of a regular dodecahedron are there?
Question (KO): 정십이면체의 꼭짓점의 개수는?

Answer: 20

Solution (Python):
var_a = 20
print(int(var_a))
Category: Arithmetic calculation

Question (EN): A train is running at 1.6 kilometers (km) per minute. If it took 3 minutes and 15 seconds to completely pass through a 4.85 kilometers (km) long tunnel, how long is the train in meters (m)?
Question (KO): 기차가 1분에 1.6킬로미터(㎞)씩 달리고 있습니다. 길이가 4.85킬로미터(㎞)인 터널을 완전히 통과하는 데 3분 15초가 걸렸다면, 기차의 길이는 몇 미터(m)입니까?

Answer: 350

Solution (Python):
var_a = 1.6
var_b = 3
var_c = 15
var_d = 60
var_e = var_c / var_d
var_f = var_b + var_e
var_g = var_a * var_f
var_h = 4.85
var_i = var_g - var_h
var_j = 1000
var_k = var_i * var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2)))))
Category: Possibility

Question (EN): There are 5 cards; each numbered with 0, 1, 2, 3, and 4. If you make two-digit integers using these cards, how many of them are greater than 30?
Question (KO): 0, 1, 2, 3, 4의 숫자가 각각 적힌 5장의 카드가 있습니다. 이 카드들을 사용하여 두 자리의 정수를 만들 때 30보다 큰 수인 것은 모두 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
var_d = 3
var_e = 4
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 2
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 = 30
list_c = []
for i in list_b:
    if i > var_g:
        list_c.append(i)
var_h = len(list_c)
print(int(var_h))
Category: Correspondence

Question (EN): You divided a particular number by 23 and subtracted 67. When you multiply that by 2, you get 102, what is that particular number?
Question (KO): 어떤 수를 23으로 나누고 67를 뺐습니다. 마지막으로 2를 곱하면 102가 된다면 어떤 수는 무엇입니까?

Answer: 2714

Solution (Python):
var_a = 102
var_b = 2
var_c = var_a / var_b
var_d = 67
var_e = var_c + var_d
var_f = 23
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Seokjin's mother is 32 years older than Seokjin, and his uncle is 3 years younger than his mother. When Seokjin is 12 years old, how old is his uncle?
Question (KO): 어머니의 나이는 석진이보다 32살 더 많습니다. 외삼촌의 나이는 어머니보다 3살 더 적습니다. 석진이의 나이가 12살일 때 외삼촌의 나이는 몇 살입니까?

Answer: 41

Solution (Python):
var_a = 12
var_b = 32
var_c = var_a + var_b
var_d = 3
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): Subtracting 48 from a number gives you 22. What is the number obtained when 32 is subtracted from a number?
Question (KO): 어떤 수에서 48을 뺐더니 22가 되었습니다. 어떤 수에서 32를 빼면 얼마가 되는지 구하시오.

Answer: 38

Solution (Python):
var_a = 22
var_b = 48
var_c = var_a + var_b
var_d = 32
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): There is a number that when it is divided by 23, the quotient is 17 and the remainder is 19. When the number is multiplied by 10 and divided by 23, find the sum of the quotient and remainder.
Question (KO): 23으로 나누면 몫이 17이 되고 나머지가 19가 되는 어떤 수가 있습니다. 어떤 수에 10을 곱한뒤 23으로 나눴을때의 몫과 나머지의 합을 구하시오.

Answer: 184

Solution (Python):
var_a = 23
var_b = 17
var_c = var_a * var_b
var_d = 19
var_e = var_c + var_d
var_f = 10
var_g = var_e * var_f
var_h = 23
var_i = var_g // var_h
var_j = 23
var_k = 17
var_l = var_j * var_k
var_m = 19
var_n = var_l + var_m
var_o = 10
var_p = var_n * var_o
var_q = 23
var_r = var_p % var_q
var_s = var_i + var_r
print(int(var_s))
Category: Geometry

Question (EN): There exists a cube whose sum of 12 edges is 180 centimeters (cm). What is the total surface area?
Question (KO): 모서리 12개의 합을 구했을 때 180이 되는 정육면체가 존재한다. 이 도형의 겉넓이를 구하면 얼마인가?

Answer: 1350

Solution (Python):
var_a = 180
var_b = 12
var_c = var_a / var_b
var_d = 180
var_e = 12
var_f = var_d / var_e
var_g = var_c * var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): When 16 weights that weigh the same were placed in a box, it came out to be 17.88 kilograms (kg). If the empty box weighs 0.6 kilograms (kg), what is the weight of the 7 weights in kilograms (kg)?
Question (KO): 무게가 똑같은 추 16개를 상자에 넣고 저울에 올렸더니 17.88킬로그램(㎏)이 나왔습니다. 빈 상자의 무게가 0.6킬로그램(㎏)일 때, 추 7개의 무게는 몇 킬로그램(㎏)입니까?

Answer: 7.56

Solution (Python):
var_a = 17.88
var_b = 0.6
var_c = var_a - var_b
var_d = 16
var_e = var_c / var_d
var_f = 7
var_g = var_e * var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Arithmetic calculation

Question (EN): The length of string A is equal to 6 times of string C and is equal to 5 times of string B. Find the length of string C when the length of string B is 12 meters (m).
Question (KO): (가) 끈의 길이는 (다) 끈을 6개 붙인 것과 같고, (나) 끈을 5개 붙인 것과 같습니다. (나) 끈의 이가 12미터(m)일 때, (다) 끈의 길이를 구하시오.

Answer: 10

Solution (Python):
var_a = 12
var_b = 5
var_c = var_a * var_b
var_d = 6
var_e = var_c // var_d
print(int(var_e))