philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): Yoongi subtracted 7 from a particular number and got 9. Now we want to multiply that particular number by 5. What will be the result then?
Question (KO): 윤기가 어떤 수에서 7을 빼 9를 얻었습니다. 이제 어떤 수에 3을 곱하고자 합니다. 이 결과값을 구하시오.

Answer: 80

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a + var_b
var_d = 5
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): You want to find the perimeter of an isosceles triangle. If the length of each side of an isosceles triangle is 12 centimeters (cm) and the length of the other side is 17 centimeters (cm), what is the perimeter in centimeters (cm)?
Question (KO): 이등변삼각형의 둘레의 길이를 구하고 싶습니다. 이등변삼각형의 양변의 길이는 12 센티미터(㎝)이며 다른 변의 길이는 17 센티미터(㎝)일 때, 둘레는 몇 센티미터(㎝)일까요?

Answer: 41

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

Question (EN): I'm trying to make 161 ribbons in one week. How many ribbons do I need to make on average per day?
Question (KO): 일주일동안 리본 161개를 만들려고 합니다. 하루에 평균 몇 개의 리본을 만들어야 합니까?

Answer: 23

Solution (Python):
var_a = 161
var_b = 7
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): Find the largest number that can be formed by using 1, 4, and 5 all once.
Question (KO): 1, 4, 5을 한 번씩 모두 사용하여 만들 수 있는 가장 큰 수를 구하시오.

Answer: 541

Solution (Python):
var_a = 1
var_b = 4
var_c = 5
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)
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]
print(int(var_f))
Category: Geometry

Question (EN): What is the area of a triangle whose hypotenuse is 15 centimeters (cm) and the base is 9 centimeters (cm)?
Question (KO): 빗변의 길이가 15센티미터(㎝), 밑변의 길이가 9센티미터(㎝)인 삼각형의 넓이는?

Answer: 54

Solution (Python):
var_a = 15
var_b = 2
var_c = var_a ** var_b
var_d = 9
var_e = 2
var_f = var_d ** var_e
var_g = var_c - var_f
var_h = 0.5
var_i = var_g ** var_h
var_j = 9
var_k = var_i * var_j
var_l = 2
var_m = var_k / var_l
print(int(var_m))
Category: Correspondence

Question (EN): A can be 0 to 9. Given the five-digit number 62A94, which, when rounded to the thousands place, is 63000, find the sum of the numbers that can fit in A.
Question (KO): 0부터 9까지 A에 들어갈 수 있습니다. 백의 자리에서 반올림하면 63000이 되는 다섯 자리 수 62A94가 있을 때 A에 들어갈 수 있는 수들의 합을 구하시오.

Answer: 35

Solution (Python):
var_a = '62A94'
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 = 62500
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = '62A94'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
list_c = [float(i) for i in list_c]
var_e = sum(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): How many three-digit numbers are there in the numbers from 1 to 365?
Question (KO): 1부터 365까지의 수 중에서 세 자리 수는 모두 몇 개인지 구하시오.

Answer: 365

Solution (Python):
var_a = 1
var_b = 365
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 100
var_e = '[OP_LIS_MORE_EQUAL]'
var_f = len(list_a)
print(int(var_f))
Category: Possibility

Question (EN): Find the value of subtracting the smallest two-digit number from the largest two-digit number that can be formed by drawing two different numbers from 9, 4, 2, and 5.
Question (KO): 9, 4, 2, 5 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 두 자리 수 중 가장 큰 수에서 가장 작은 수를 뺀 값을 구하시오.

Answer: 71

Solution (Python):
var_a = 9
var_b = 4
var_c = 2
var_d = 5
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: Arithmetic calculation

Question (EN): In two-digit subtraction, 62 was obtained by incorrectly misrepresenting 8 in the ones digit of the number being subtracted as another number and incorrectly misrepresenting 7 in the tens digit of the subtracting number as another number. If the numbers incorrectly misrepresented were 5 and 2, respectively, find the result of the correct calculation.
Question (KO): 두 자리 수의 뺄셈에서 빼어지는 수의 일의 자리 숫자 8을 다른 수로 잘못 보고, 빼는 수의 십의 자리 숫자 7을 다른 수로 잘못 보고 계산하였을 때 62가 되었습니다. 잘못 본 수가 각각 5와 2였다면, 바르게 계산한 결과를 구하시오.

Answer: 15

Solution (Python):
var_a = 62
var_b = 1
var_c = 8
var_d = 5
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
var_h = 10
var_i = 7
var_j = 2
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_g - var_l
print(int(var_m))
Category: Possibility

Question (EN): What is the sum of four digit numbers made up of only the natural numbers 1, 2, and 3?
Question (KO): 자연수 1, 2, 3만으로 이루어진 네 자리 수들의 합은 얼마인가?

Answer: 179982

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 = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print(int(var_e))
Category: Geometry

Question (EN): What is the sum of the lengths in meters (m) of the four sides of a rectangle whose longer side is 1 meter (m) and whose longer side is 2/8 meter (m) longer than its shorter side?
Question (KO): 긴 변의 길이가 1미터(m)이고, 긴 변의 길이가 짧은 변의 길이보다 2/8미터(m)만큼 긴 직사각형의 네 변의 길이의 합은 몇 미터(m)인가요?

Answer: 3.5

Solution (Python):
var_a = 1
var_b = 1
var_c = 0.25
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: Correspondence

Question (EN): At Junwoo's school, 37 marbles each were distributed to 23 classes, and there are 16 left. How many marbles were distributed to students at Junwoo's school?
Question (KO): 준우네 학교에서 23개의 반에 37개의 구슬을 나눠 주고 16개가 남았다고 한다. 준우네 학교에서 학생들에게 나눠준 구슬의 개수는 모두 몇 개인가?

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: Geometry

Question (EN): In an isosceles triangle, two sides are said to be 12 centimeters (cm) long, and the other side is said to be 17 centimeters (cm) long. At this time, how many centimeters (cm) is the length of the perimeter?
Question (KO): 이등변삼각형에서, 양변의 길이는 12 센티미터(㎝)이며 다른 변의 길이는 17 센티미터(㎝)라고 합니다. 이 때, 둘레의 길이는 몇 센티미터(㎝)입니까?

Answer: 41

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a * var_b
var_d = 17
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): 2AB+36=269 is true. How much is B?
Question (KO): 2AB+36=269입니다. B는 얼마인가요?

Answer: 3

Solution (Python):
var_a = '2AB+36=269'
var_b = 'B'
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: Comparison

Question (EN): I am trying to find three words persimmon, banana, and melon in the Korean dictionary. Persimmon comes out before banana, and banana comes out before melon. Find the word that comes out the last in the dictionary.
Question (KO): 국어사전에서 감, 바나나, 참외 3개의 단어를 찾으려고 한다. 감이 바나나보다 먼저 나오고 바나나가 참외보다 먼저 나온다. 사전에서 가장 나중에 나오는 단어는 무엇인지 구하시오.

Answer: melon

Solution (Python):
var_a = 'persimmon'
var_b = 'banana'
var_c = 'melon'
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 = 'persimmon'
var_e = 'banana'
var_f = '<'
var_g = 'banana'
var_h = 'melon'
var_i = '<'
list_b= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_j = 1
var_k = list_c[var_j-1]
print(var_k)
Category: Correspondence

Question (EN): How many 3-digit numbers are there where each digit is different and the sum of the digits is 9?
Question (KO): 세 자리 수 중 각 자리의 수가 모두 다르고 각 자리수의 합이 9인 수는 모두 몇 개입니까?

Answer: 34

Solution (Python):
var_a = 0
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 = 9
list_d = []
for i in list_c:
    if i >= var_f:
        list_d.append(i)
var_g = 9
list_e = []
for i in list_d:
    if i <= var_g:
        list_e.append(i)
var_h = len(list_e)
print(int(var_h))
Category: Geometry

Question (EN): What is the surface area of a regular tetrahedron with a side of 2 centimeters (cm)?
Question (KO): 한변의 길이가 2센티미터(㎝)인 정사면체의 겉넓이는?

Answer: 6.93

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

Question (EN): There is a number that is less than 18 but not a multiple of 3. Which number is it out of 12, 14, 15, or 20?
Question (KO): 어떤 수는 18보다 작지만 3의 배수가 아닙니다. 12, 14, 15, 20 중에서 어떤 수를 구하시오.

Answer: 14

Solution (Python):
var_a = 12
var_b = 14
var_c = 15
var_d = 20
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 = []
var_e = int(var_e)
for i in list_a:
    i = int(i)
    if i % var_e == 0:
        list_b.append(i)
list_c = list(set(list_a) - set(list_b))
var_f = 18
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = 1
var_h = list_d[var_g-1]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Sangwoo draws 3 out of 9 cards numbered 1 through 9 and wants to use all of them to create the third largest three-digit number. When he drew 1, 6, and 8, what number should Sangwoo make?
Question (KO): 상우는 1부터 9까지 적힌 9장의 카드 중 3장을 뽑고, 그 숫자들을 모두 써서 세 번째로 큰 세 자리수를 만들고자 한다. 상우가 1, 6, 8을 뽑았을 때 만들어야 하는 수는?

Answer: 681

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 = len(list_a)
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=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Geometry

Question (EN): How many centimeters (cm) must the compass be spread out to draw a circle with a diameter of 14 centimeters (cm)?
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): The sum of 7 consecutive natural numbers is 63 Find the first number
Question (KO): 연속하는 7개의 자연수의 합이 63입니다 첫번째 수를 구하시오

Answer: 6

Solution (Python):
var_a = 63
var_b = 0
var_c = 7
var_d = 1
var_e = var_c - var_d
var_f = 1
list_a = [i for i in range(var_b, var_e + 1, var_f)]
list_a = [float(i) for i in list_a]
var_g = sum(list_a)
var_h = var_a - var_g
var_i = 7
var_j = var_h / var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): 7 times a certain number is equal to 4 times the certain number plus 12 plus 6. Find the certain number.
Question (KO): 어떤 수의 7배는 어떤 수의 4배에 12를 더하고 6을 더한 값과 같다. 어떤 수를 구하시오.

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: Geometry

Question (EN): The area of a triangle with a side length of 8 centimeters (cm) is 36 square centimeters (cm2). Find the distance in centimeters (cm) from a side of length 8 centimeters (cm) to the vertex opposite the side.
Question (KO): 한 변의 길이가 8센티미터(㎝)인 삼각형의 넓이는 36제곱센티미터(㎠)라고 합니다. 길이가 8센티미터(㎝)인 변과 이 변과 마주보는 꼭짓점까지의 거리는 몇 센티미터(㎝)일지 구하시오.

Answer: 9

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

Question (EN): The perimeter of a regular nonagon is 171 centimeters (cm). Find the length of one side of this figure.
Question (KO): 한 정구각형의 둘레는 171센티미터(㎝)입니다. 이 도형의 한 변 길이를 구하시오.

Answer: 19

Solution (Python):
var_a = 171
var_b = 9
var_c = var_a / var_b
print(int(var_c))
Category: Comparison

Question (EN): Among the students sitting on the playground, Yujeong is 12th from the right, 11th from the left, 18th from the back, and 8th from the front. If the number of students in each row is the same, how many students are sitting on the playground?
Question (KO): 운동장에 앉아있는 학생들 중 유정이는 오른쪽에서 12번째, 왼쪽에서 11번째, 뒤에서 18번째, 앞에서 8번째 줄에 앉아있습니다. 각 줄의 학생 수가 같을 때, 운동장에 앉아있는 학생은 모두 몇 명입니까

Answer: 550

Solution (Python):
var_a = 12
var_b = 11
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 18
var_g = 8
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: Arithmetic calculation

Question (EN): Yeri bought 5 candies that cost 120 won each and 3 chocolates that cost 350 won each and handed over 2500 won at the store. How much should Yeri get in change?
Question (KO): 예리는 가게에서 120 원짜리 사탕 5 개와 350 원짜리 초콜릿을 3 개 사고 2500 원을 냈습니다. 예리는 거스름돈으로 얼마를 받아야 합니까?

Answer: 850

Solution (Python):
var_a = 2500
var_b = 120
var_c = 5
var_d = var_b * var_c
var_e = 350
var_f = 3
var_g = var_e * var_f
var_h = var_d + var_g
var_i = var_a - var_h
print(int(var_i))
Category: Geometry

Question (EN): If the base of a parallelogram that has an area of 24 square centimeters (cm2) is 4 centimeters (cm), find the difference between the height and the length of the base.
Question (KO): 넓이가 24제곱센티미터(㎠)인 평행사변형의 밑변이 4센티미터(㎝)일 때, 높이와 밑변의 길이의 차를 구하시오.

Answer: 2

Solution (Python):
var_a = 24
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = var_c - var_d
var_f = abs(var_e)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): How many times does 3 appear in a list of natural numbers less than or equal to 100 that are multiples of 3?
Question (KO): 100 이하의 3의 배수인 자연수를 나열했을 때 3은 몇 번 등장합니까?

Answer: 8

Solution (Python):
var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
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=""
for i in list_b:
    i = str(i)
    var_e = var_e + i
list_c = []
var_e = int(var_e)
while var_e//10 > 0:
    list_c.append(var_e%10)
    var_e = var_e//10
list_c.append(var_e%10)
list_c = list_c[::-1]
var_f = 3
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: Geometry

Question (EN): At each vertex of a particular cube (A), a cube shape with one edge 2 centimeters (cm) long was cut out. If the length of one edge of cube (A) is 8 centimeters (cm), what is the surface area of the remaining portion of the initial cube?
Question (KO): 어떤 정육면체 (가)의 각 꼭짓점에서 한 모서리의 길이가 2센티미터(㎝)인 정육면체 모양을 잘라냈다. (가) 정육면체의 한 모서리의 길이가 8센티미터(㎝)라면, 잘라내고 남은 부분의 부분의 겉넓이는 얼마입니까?

Answer: 384

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

Question (EN): If you cut a piece of string that is 12 centimeters (cm) in half, choose one of the cut pieces and cut it in half again, find the length in centimeters (cm) of the current shortest piece of string.
Question (KO): 길이가 12센티미터(㎝)인 끈을 절반으로 자르고, 잘린 끈 중 하나를 골라 다시 절반으로 잘랐다면, 현재 가장 짧은 끈의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 3

Solution (Python):
var_a = 12
var_b = 2
var_c = var_a / var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): How many numbers among 0.8, 1/2, and 0.9 are greater than or equal to 0.4?
Question (KO): 0.8, 1/2, 0.9 중에서 0.4보다 크거나 같은 수는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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 = 0.4
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When water was poured into 300 grams (g) of 8% sugar water, it became 5% sugar water. How many grams (g) of water did you pour in?
Question (KO): 8%의 설탕물 300그램(g)에 물을 부었더니 5%의 설탕물이 되었습니다. 물을 몇 그램(g) 부었습니까?

Answer: 180

Solution (Python):
var_a = 300
var_b = 8
var_c = 100
var_d = var_b / var_c
var_e = var_a * var_d
var_f = 100
var_g = 5
var_h = var_f / var_g
var_i = var_e * var_h
var_j = 300
var_k = var_i - var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): When I went to the bank from my house, I walked a straight line at 2 kilometers (km) per hour, and when I went home from the bank, I walked 2 kilometers (km) further at 3 kilometers (km) per hour. If it took 4 hours in total, how far is it from the bank to the house?
Question (KO): 집에서 은행까지 갈 때는 직선거리를 시속 2킬로미터(㎞)로, 은행에서 집으로 올때는 2킬로미터(㎞) 더 먼 길을 시속 3킬로미터(㎞)로 걸어왔다. 총 걸린시간이 4시간이라면 은행에서 집으로 오는 거리는 얼마입니까?

Answer: 6

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c * var_d
var_f = 4
var_g = var_e - var_f
var_h = 3
var_i = 2
var_j = var_h + var_i
var_k = var_g / var_j
var_l = 2
var_m = var_k + var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): Yoongi, Eunji, and Yuna have several books. If Yoongi gives 5 books to Eunji, Eunji gives 10 books to Yuna, and Yuna gives 15 books to Yoongi, all three of them will have 45 books each. How many books did Yoongi have at first?
Question (KO): 윤기, 은지, 유나 세 사람이 책을 여러 권 가지고 있습니다. 윤기가 은지에게 5권 주고, 은지가 유나에게 10권 주고, 유나가 윤기에게 15권 주면, 세 사람은 모두 책을 45권씩 가지게 됩니다. 처음에 윤기가 가지고 있던 책은 몇 권입니까?

Answer: 35

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

Question (EN): They drank 215 liters (l) of water on the first day, 76 liters (l) more on the second day than on the first day, and 53 liters (l) less on the last day than on the second day. How many liters (l) of water did you drink on average?
Question (KO): 첫째날에 215리터(L)의 물을, 둘째날에는 첫째날보다 76리터(L) 더 많은 물을, 마지막 날에는 둘째날 보다 53리터(L) 더 적은 물을 먹었습니다. 평균 몇 리터(L)의 물을 먹었나요?

Answer: 248

Solution (Python):
var_a = 215
var_b = 215
var_c = 76
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 215
var_g = 76
var_h = var_f + var_g
var_i = 53
var_j = var_h - var_i
var_k = var_e + var_j
var_l = 3
var_m = var_k / var_l
print(int(var_m))
Category: Geometry

Question (EN): A horse is running along a square-shaped track. If the length of one side of this track is 40 meters (m), how many meters (m) does the horse take in one turn?
Question (KO): 말이 정사각형 모양의 트랙을 따라 뛰고 있습니다. 이 트랙의 한 변의 길이가 40미터(m)일 때, 말이 한 바퀴 뛴 걸이는 몇 미터(m)입니까?

Answer: 160

Solution (Python):
var_a = 40
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): How many diagonals can you draw in a heptagon?
Question (KO): 칠각형이 있을 때 그릴 수 있는 모든 대각선의 개수는?

Answer: 14

Solution (Python):
var_a = 7
var_b = 7
var_c = 3
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))