philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the product of the 3rd smallest number and the 2nd smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 3번째로 작은 수와 2번째로 작은 수의 곱은 얼마입니까?

Answer: 132

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 3
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
var_h = 2
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g * var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): When Woo-jun's age is 1 year less than 1/4 of his mother's age and his mother's age is 5 years less than 5 times Woo-jun's age, how old is Woo-jun now?
Question (KO): 우준이의 나이는 엄마의 나이의 1/4보다 1살이 적고 엄마의 나이는 우준이의 나이의 5배보다 5살이 적을 때, 우준이는 현재 몇 살입니까?

Answer: 9

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

Question (EN): For the natural numbers A, B, and C, when A is divided by 8, the quotient is B and the remainder is C. If the quotient and the remainder are equal, find the largest number of A.
Question (KO): 자연수 A, B, C에 대하여, A를 8로 나누었을 때, 몫이 B이고 나머지가 C가 됩니다. 몫과 나머지가 같은 경우, 나누어지는 수 A 중 가장 큰 수를 구하시오.

Answer: 63

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

Question (EN): The length of tape A which is equal to the length of the tape B folded in half is 35 centimeters (cm). The length of tape C is 21 centimeters (cm) longer than twice the length of tape A, how many centimeters (cm) is the sum of the lengths of tape B and tape C?
Question (KO): (나) 테이프를 반으로 접은 길이와 같은 (가) 테이프의 길이는 35센티미터(㎝)입니다. (다) 테이프의 길이는 (가) 테이프보다 2배하고도 21센터미터(cm)만큼 더 길다면, (나) 테이프와 (다) 테이프의 길이 합은 몇 센티미터(㎝)입니까?

Answer: 119

Solution (Python):
var_a = 35
var_b = 2
var_c = var_a * var_b
var_d = 35
var_e = 2
var_f = var_d * var_e
var_g = 21
var_h = var_f - var_g
var_i = var_c + var_h
print(int(var_i))
Category: Geometry

Question (EN): How many faces does a tetrahedron have?
Question (KO): 사면체의 면의 개수는?

Answer: 4

Solution (Python):
var_a = 4
print(int(var_a))
Category: Geometry

Question (EN): Suzy has a regular hexagon shaped piece of colored paper. The length of one side of this regular hexagon is 5 centimeters (cm). Find the circumference of this colored paper.
Question (KO): 수지는 정육각형 모양의 색종이를 가지고 있습니다. 이 정육각형의 한 변의 길이는 5센티미터(㎝)입니다. 이 색종이의 둘레를 구하시오.

Answer: 30

Solution (Python):
var_a = 5
var_b = 6
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): A box measuring 1 meter (m) in width, length, and height is stored on a rectangular piece of land measuring 44 meters (m) wide and 35 meters (m) long. If you stacked boxes in 7 layers on the first day and boxes in 3 layers on the second day, how many boxes did you get in two days?
Question (KO): 가로가 44미터(m), 세로가 35미터(m)인 직사각형 모양의 땅에 가로, 세로, 높이가 모두 1미터(m)인 박스를 보관한다. 첫 날 박스를 7층 쌓았고 둘째날 박스를 3층 쌓았다면 이틀동안 들어온 박스의 양은 몇 개인지 구하시오.

Answer: 15400

Solution (Python):
var_a = 44
var_b = 35
var_c = var_a * var_b
var_d = 7
var_e = 3
var_f = var_d + var_e
var_g = var_c * var_f
print(int(var_g))
Category: Geometry

Question (EN): When I measured the length of one side of a square-shaped blackboard, it was 6 centimeters (cm). What is the area of this blackboard in square centimeters (cm2)?
Question (KO): 어떤 정사각형 모양의 칠판의 한 변의 길이를 재었더니 6센티미터(㎝)였습니다. 이 칠판의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 36

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

Question (EN): There are 60 consecutive natural numbers between 200 and this number. If the number is less than 200, how many numbers between 200 and the number are divisible by 2 and 3?
Question (KO): 200과 어떤 자연수 사이에는 연속된 자연수가 60개 있습니다. 어떤 수는 200보다 작을 때 200과 어떤 수 사이에 있는 수 중 2와 3으로 나누어떨어지는 수는 모두 몇 개입니까?

Answer: 10

Solution (Python):
var_a = 200
var_b = 1
var_c = var_a + var_b
var_d = 60
var_e = var_c - var_d
var_f = 200
var_g = 1
var_h = var_f - var_g
var_i = 1
list_a = [i for i in range(var_e, var_h + 1, var_i)]
var_j = 2
list_b = []
var_j = int(var_j)
for i in list_a:
    i = int(i)
    if i % var_j == 0:
        list_b.append(i)
var_k = 3
list_c = []
var_k = int(var_k)
for i in list_b:
    i = int(i)
    if i % var_k == 0:
        list_c.append(i)
var_l = len(list_c)
print(int(var_l))
Category: Arithmetic calculation

Question (EN): If you cut and used 105 millimeters (mm) from a 23.3 centimeter (cm) wire and another 4.6 centimeters (cm) the next day, how many millimeters (mm) of wire are left?
Question (KO): 23.3센티미터(㎝)의 철사에서 105밀리미터(㎜)를 잘라쓰고, 다음 날 4.6센티미터(㎝)를 또 썼을 때 남은 철사의 길이는 몇 밀리미터(㎜)인가요?

Answer: 82

Solution (Python):
var_a = 23.3
var_b = 10
var_c = var_a * var_b
var_d = 105
var_e = var_c - var_d
var_f = 4.6
var_g = 10
var_h = var_f * var_g
var_i = var_e - var_h
print(int(var_i))
Category: Geometry

Question (EN): What is the volume, in cubic centimeters (cm3), of a cube with an edge of 7 centimeters (cm)?
Question (KO): 한 모서리의 길이가 7센티미터(㎝)인 정육면체의 부피는 몇 세제곱센티미터입니까?

Answer: 343

Solution (Python):
var_a = 7
var_b = 3
var_c = var_a ** var_b
print(int(var_c))
Category: Geometry

Question (EN): A pyramid has N bases. How much is N?
Question (KO): 각뿔의 밑면은 N개입니다. N은?

Answer: 1

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

Question (EN): The area of a trapezoid with an upper side that is 3.4 centimeters (cm) longer than the lower side and with a height of 5.2 centimeters (cm) is 100.62 square centimeters (cm2). How many centimeters (cm) is the length of the lower side?
Question (KO): 윗변이 아랫변보다 3.4센티미터(㎝) 더 길고, 높이가 5.2센티미터(㎝)인 사다리꼴의 넓이가 100.62제곱센티미터(㎠)입니다. 아랫변의 길이는 몇 센티미터(㎝)입니까?

Answer: 17.65

Solution (Python):
var_a = 100.62
var_b = 2
var_c = var_a * var_b
var_d = 5.2
var_e = var_c / var_d
var_f = 3.4
var_g = var_e - var_f
var_h = 2
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Geometry

Question (EN): There is a box in the shape of a cuboid measuring 30 centimeters (cm) wide, 20 centimeters (cm) long, and 5 centimeters (cm) high. If this box contains all the chocolates in the shape of a cuboid measuring 6 centimeters (cm) wide, 4 centimeters (cm) long, and 1 cm (cm high) without leaving any space, how many chocolates are in the box?
Question (KO): 가로 30 센티미터(㎝) , 세로 20 센티미터(㎝) , 높이 5센티미터(㎝) 인 직육면체 모양의 상자가 있습니다. 이 상자에 가로 6센티미터(㎝), 세로 4센티미터(㎝), 높이 1센티미터(㎝) 인 직육면체 모양의 초콜릿이 빈틈없이 들어 있다면 상자에 들어 있는 초콜릿은 모두 몇 개 입니까?

Answer: 125

Solution (Python):
var_a = 30
var_b = 20
var_c = var_a * var_b
var_d = 5
var_e = var_c * var_d
var_f = 6
var_g = 4
var_h = var_f * var_g
var_i = 1
var_j = var_h * var_i
var_k = var_e / var_j
print(int(var_k))
Category: Correspondence

Question (EN): A number divided by 9 and by 7 is 13. Find this number.
Question (KO): 어떤 수를 9로 나누고, 7로 나누면 13이 됩니다. 어떤 수를 구하시오.

Answer: 819

Solution (Python):
var_a = 13
var_b = 7
var_c = var_a * var_b
var_d = 9
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I put 30 tangerines, each weighing 0.36 kilograms (kg), in a gift box. At this moment, the weight of the gift box was 11.26 kilograms (kg). How many kilograms (kg) does an empty gift box weigh?
Question (KO): 선물 상자에 한 개에 0.36킬로그램(㎏)인 귤을 30개 넣었습니다. 이때 선물 상자의 무게는 11.26킬로그램(㎏)이었습니다. 그렇다면 빈 선물 상자의 무게는 몇 킬로그램(㎏)일까요?

Answer: 0.46

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

Question (EN): Mijeong's cuboid box has a bottom area of 14 square centimeters (cm2) and a height of 13 centimeters (cm). Find the volume of this box.
Question (KO): 미정이가 가진 직육면체 상자는 한 밑면의 넓이가 14제곱센티미터(㎠)이고 높이가 13센티미터(㎝)라고 합니다. 이 상자의 부피를 구하시오.

Answer: 182

Solution (Python):
var_a = 14
var_b = 13
var_c = var_a * var_b
print(int(var_c))
Category: Correspondence

Question (EN): While Yoongi was subtracting 57 from the two-digit number, he mistook the two-digit units digit 9 for 6. When the difference obtained by Yoongi is 39, what is the two-digit number?
Question (KO): 윤기는 두 자리 수에 57을 빼던 중, 윤기는 두 자리 수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 차가 39 일 때, 두 자리 수는 무엇일까요?

Answer: 99

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

Question (EN): What is the second largest odd number from 1 to 9?
Question (KO): 1부터 9까지의 홀수 중 2번째로 큰 수는?

Answer: 7

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)
var_c = 2
list_b=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
print(int(var_d))
Category: Arithmetic calculation

Question (EN): The average height of 11 members of the Yeonju's line is 145.7 centimeters (cm). However, if the heights of the two students are equal to 142.1 centimeters (cm), find the average of the heights of the other students.
Question (KO): 연주네 분단 11명의 키의 평균은 145.7센티미터(㎝)이다. 그런데 2명의 키가 똑같이 142.1센티미터(㎝)라고 할 때, 나머지 학생의 키의 평균을 구하여라.

Answer: 146.5

Solution (Python):
var_a = 145.7
var_b = 11
var_c = var_a * var_b
var_d = 142.1
var_e = 2
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 11
var_i = 2
var_j = var_h - var_i
var_k = var_g / var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Jimin has 41 pieces of colored paper, and Seokjin has 1 less than Jimin. How many pieces of colored paper does Seokjin have?
Question (KO): 색종이를 지민이는 41장 가지고 있고, 석진이는 지민이보다 1장 더 적게 가지고 있습니다. 석진이가 가지고 있는 색종이는 몇 장입니까?

Answer: 40

Solution (Python):
var_a = 41
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): There are 1 red ball, 1 yellow ball, and 2 blue balls. Given that balls of the same color are indistinguishable from each other, how many different ways can you arrange them differently?
Question (KO): 빨간 공 1개, 노란 공 1개, 파란 공 2개가 있습니다. 같은 색의 공은 각각 구별이 되지 않는다고 할 때, 이 공들을 서로 다르게 일렬로 늘어놓는 방법은 모두 몇 가지입니까?

Answer: 12

Solution (Python):
var_a = 1
var_b = 1
var_c = var_a + var_b
var_d = 2
var_e = var_c + var_d
var_f = 1
var_g = 1
var_h = var_f + var_g
var_i = 2
var_j = var_h + var_i
var_k = 1
var_e = int(var_e)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_e-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: Correspondence

Question (EN): When a number A is divided by 8, the quotient and remainder are B and C, respectively. A, B, and C are natural numbers. If the quotient and the remainder are equal, find the largest number of A.
Question (KO): 어떤 수 A를 8로 나누었을 때, 몫과 나머지는 각각 B와 C가 됩니다. A, B, C는 자연수 입니다. 몫과 나머지가 같은 경우, 나누어지는 수 A 중 가장 큰 수를 구하시오.

Answer: 63

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

Question (EN): There are three tapes: tapes A, B, and C. The length of the tape A is 35 centimeters (cm). The length of tape A is half the length of tape B, and the length of tape C is 21 centimeters (cm) less than twice the length of tape A. What is the sum of the lengths of tape B and tape C in centimeters (cm)?
Question (KO): (가), (나), (다) 3개의 테이프가 있습니다. (가) 테이프의 길이가 35센티미터(㎝)입니다. (가) 테이프의 길이는 (나) 테이프의 길이의 반이고, (다) 테이프의 길이는 (가) 테이프의 길이의 2배보다 21센티미터(㎝) 더 짧습니다. (나) 테이프와 (다) 테이프의 길이의 합은 몇 센티미터(㎝)입니까?

Answer: 119

Solution (Python):
var_a = 35
var_b = 2
var_c = var_a * var_b
var_d = 35
var_e = 2
var_f = var_d * var_e
var_g = 21
var_h = var_f - var_g
var_i = var_c + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You want to install 24 power poles with equal space between two poles on one side of a 239.66 meters (m) long road. If you are to install one at the beginning and one at the end of the road, how long should the distance between the power poles be in meters (m)?
Question (KO): 길이가 239.66미터(m)인 도로의 한쪽에 같은 간격으로 24개의 전봇대를 설치하려고 합니다. 도로의 처음과 끝에 각각 하나씩 설치한다면 전봇대 사이의 거리는 몇 미터(m)가 돼야 하는지 구하시오.

Answer: 10.42

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

Question (EN): How many circles with a radius of 4 centimeters (cm) can be drawn in a rectangle with a width of 24 centimeters (cm) and a length of 8 centimeters (cm) without overlapping?
Question (KO): 가로의 길이가 24센티미터(㎝)이고, 세로의 길이가 8센티미터(㎝)인 직사각형 안에 반지름의 길이가 4센티미터(㎝)인 원을 겹치지 않고 최대 몇 개까지 그릴 수 있습니까?

Answer: 3

Solution (Python):
var_a = 24
var_b = 4
var_c = 2
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): (A) classmates planted 8 trees. (B) classmates planted 7 trees. How many trees did the students in class (A) and (B) plant?
Question (KO): (가) 반 학생들은 8그루의 나무를 심었습니다. (나) 반 학생들은 7그루의 나무를 심었습니다. (가) 반과 (나) 반 학생들이 심은 나무는 모두 몇 그루입니까?

Answer: 15

Solution (Python):
var_a = 8
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Possibility

Question (EN): Donghyun can put the magnets with 1, 6, and 8 written on them in the hundreds, tens, and ones place, respectively. What is the difference between the second largest and the third smallest number Donghyun can make?
Question (KO): 동현이는 1, 6, 8이 그려진 자석을 각각 백의 자리, 십의 자리, 일의 자리에 놔둘 수 있습니다. 동현이가 만들 수 있는 수 중 두 번째로 큰 것과 세 번째로 작은 것의 차이는 얼마입니까?

Answer: 198

Solution (Python):
var_a = 1
var_b = 6
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 = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
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: Comparison

Question (EN): There are five shapes: triangular-prism, quadrangular-prism, triangular-pyramid, quadrangular-pyramid, and square-frustum. If each shape's face is colored with a different color, which shape needs the fewest colors?
Question (KO): 삼각기둥, 사각기둥, 삼각뿔, 사각뿔, 사각뿔대 이렇게 다섯 종류의 도형이 있습니다. 각 도형의 면을 서로 다른 색을 이용하여 색칠한다고 할 때, 가장 적은 색이 필요한 도형은 무엇입니까?

Answer: triangular-pyramid

Solution (Python):
var_a = 'triangular-prism'
var_b = 'quadrangular-prism'
var_c = 'triangular-pyramid'
var_d = 'quadrangular-pyramid'
var_e = 'square-frustum'
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
var_g = 2
var_h = var_f + var_g
var_i = 4
var_j = 2
var_k = var_i + var_j
var_l = 3
var_m = 1
var_n = var_l + var_m
var_o = 4
var_p = 1
var_q = var_o + var_p
var_r = 4
var_s = 2
var_t = var_r + var_s
list_b= []
if "/" in str(var_t):
    var_t = eval(str(var_t))
list_b.append(var_t)
if "/" in str(var_q):
    var_q = eval(str(var_q))
list_b.append(var_q)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
list_b.reverse()
var_u = 1
list_c=list_b.copy()
list_c.sort()
var_v = list_c[var_u-1]
var_w = list_b.index(var_v)+1
var_x = list_a[var_w-1]
print(var_x)
Category: Correspondence

Question (EN): Seonghyeon and Jisoo are standing on the playground. Seonghyeon ran 200 meters (m) in the direction of Ji-soo and then ran 1000 meters (m) in the opposite direction. If the distance between Seonghyeon and Jisoo is now 2000 meters (m), find the distance in meters (m) between Seonghyeon and Jisoo before Seonghyeon moved.
Question (KO): 성현이가 지수가 운동장에 서있다. 성현이가 지수 방향으로 200미터(m) 달려갔다가 반대방향으로 1000미터(m)를 달려갔다. 이때 성현이와 지수 사이의 거리가 2000미터(m) 라고 할 때, 성현이가 움직이기 전의 성현이와 지수 사이의 거리는 몇 미터(m)인지 구하시오.

Answer: 1200

Solution (Python):
var_a = 2000
var_b = 1000
var_c = var_a - var_b
var_d = 200
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): Jungkook wants to buy different fruits and present them to Jimin and Yoongi. If the fruits sold at the fruit shop are apples, peaches, pears, melons, and strawberries, how many numbers of cases are possible for the gift?
Question (KO): 정국이는 서로 다른 과일을 구매해서 지민과 윤기에게 선물하려고 합니다. 과일 가게에서 판매하는 과일이 사과, 복숭아, 배, 참외, 딸기라면 선물할 수 있는 경우의 수는 모두 몇 가지입니까?

Answer: 20

Solution (Python):
var_a = 'apples'
var_b = 'peaches'
var_c = 'pears'
var_d = 'melons'
var_e = 'strawberries'
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 = len(list_a)
var_g = 2
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
print(int(var_h))
Category: Possibility

Question (EN): How many three-digit numbers can be made by using all three numbers 1, 2, and 3 once?
Question (KO): 3개의 숫자 1, 2, 3을 한 번씩 모두 사용하여 만들 수 있는 세 자리 수는 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 2
var_c = 3
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 = len(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): When a number is divided by 7, the quotient is 13 and the remainder is 1. Add 9 to this number. Then, divide it by 8 to find the sum of the quotient and remainder.
Question (KO): 숫자를 7로 나눌 때 몫은 13이고 나머지는 1입니다. 이 숫자에 9를 더하고 8로 나눈 숫자의 몫과 나머지의 합을 구하세요.

Answer: 17

Solution (Python):
var_a = 13
var_b = 7
var_c = var_a * var_b
var_d = 1
var_e = var_c + var_d
var_f = 9
var_g = var_e + var_f
var_h = 8
var_i = var_g // var_h
var_j = 13
var_k = 7
var_l = var_j * var_k
var_m = 1
var_n = var_l + var_m
var_o = 9
var_p = var_n + var_o
var_q = 8
var_r = var_p % var_q
var_s = var_i + var_r
print(int(var_s))
Category: Geometry

Question (EN): A large track in the shape of a square with a side of 20 meters (m) was divided into 3 equal parts to create 3 smaller tracks. What is the area of this small track in square meters (m2)?
Question (KO): 한 변이 20미터(m)인 정사각형 모양의 큰 트랙을 3등분하여 작은 트랙 3개를 만들었습니다. 이 작은 트랙 1개의 넓이는 몇 제곱미터(㎡)입니까?

Answer: 44.44

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

Question (EN): How many edges does a regular icosahedron have?
Question (KO): 정이십면체의 모서리의 개수는?

Answer: 30

Solution (Python):
var_a = 30
print(int(var_a))
Category: Comparison

Question (EN): What is the sum of numbers which are greater than or equal to 1.1 among five 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: 3.9

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)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Correspondence

Question (EN): What number must go in A to make A7B+23=695?
Question (KO): A7B+23=695라는 식이 성립하려면, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 6

Solution (Python):
var_a = 'A7B+23=695'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are 15 chickens - 3 are hens and the rest are roosters. Chicks are 4 fewer than roosters. How many chicks do you have?
Question (KO): 닭이 15마리 있는데 그중 암탉은 3마리이고 나머지는 수탉입니다. 병아리는 수탉보다 4마리 더 적습니다. 병아리는 몇 마리입니까?

Answer: 8

Solution (Python):
var_a = 15
var_b = 3
var_c = var_a - var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 950 stones. If there are 150 more white stones than black stones, how many black stones are there?
Question (KO): 950개의 바둑돌이 있다. 이 중 흰 바둑돌이 검은 바둑돌보다 150개 더 많다면 검은 바둑돌은 몇 개인지 구하시오.

Answer: 400

Solution (Python):
var_a = 950
var_b = 150
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))