philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): A and B are single digit numbers. If A4461B is a multiple of 72, find the sum of A and B.
Question (KO): A, B는 한 자리 수입니다. A4461B가 72의 배수일 때, A와 B의 합을 구하시오.

Answer: 12

Solution (Python):
var_a = 'A4461B'
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 = 72
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 = 'A4461B'
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 = 'A4461B'
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: Arithmetic calculation

Question (EN): Jungkook went to the army at the age of 16, his mother was 46 at the time. How many years ago was Jungkook's age divided by his mother's age equal to 4?
Question (KO): 정국이가 16살에 군대를 갔는데, 당시 어머니는 46살이었습니다. 어머니 나이에서 정국이의 나이를 나눈 값이 4였을 때는 몇 년 전이였습니까?

Answer: 6

Solution (Python):
var_a = 16
var_b = 4
var_c = var_a * var_b
var_d = 46
var_e = var_c - var_d
var_f = 4
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): A square has sides of 8 centimeters (cm), and the other one has sides of 10 centimeters (cm). Find the sum of the areas of the two squares.
Question (KO): 어떤 정사각형은 한 변의 길이가 8센티미터(㎝)이고, 다른 정사각형은 한 변의 길이가 10센티미터(㎝)입니다. 두 정사각형의 넓이의 합을 구하시오.

Answer: 164

Solution (Python):
var_a = 8
var_b = 2
var_c = var_a ** var_b
var_d = 10
var_e = 2
var_f = var_d ** var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): In the running competition, the runners crossed the finish line in 11.4 seconds, 15.553 seconds, 22.6 seconds, 124 seconds, and 166 seconds in order. What is the difference between the fastest and slowest runners?
Question (KO): 달리기 시합에서 선수들이 차례대로 11.4초, 15.553초, 22.6초, 124초, 166초에 결승선을 넘었습니다. 이 중에서 가장 빠르게 들어온 선수와 가장 느리게 들어온 선수의 시간 차는 얼마입니까?

Answer: 154.6

Solution (Python):
var_a = 11.4
var_b = 15.553
var_c = 22.6
var_d = 124
var_e = 166
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
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g - var_i
var_k = abs(var_j)
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Geometry

Question (EN): There is a rectangular iron plate with a width of 500 centimeters (cm) and a length of 800 centimeters (cm). What is the area in square meters (m2) of this iron plate?
Question (KO): 가로가 500 센티미터(㎝) , 세로가 800 센티미터(㎝) 인 직사각형 모양의 철판이 있습니다. 이 철판의 넓이는 몇 제곱미터(㎡) 입니까?

Answer: 40

Solution (Python):
var_a = 500
var_b = 100
var_c = var_a / var_b
var_d = 800
var_e = 100
var_f = var_d / var_e
var_g = var_c * var_f
print(int(var_g))
Category: Correspondence

Question (EN): There are apples and pears harvested from the orchard. The sum of the number of apples and pears is 913 and the number of apples is 514. Find the difference between the number of apples and pears.
Question (KO): 과수원에서 수확한 사과와 배가 있습니다. 사과와 배의 개수의 합은 913개이고 사과의 개수는 514입니다. 사과와 배의 개수의 차이를 구하십시오.

Answer: 115

Solution (Python):
var_a = 514
var_b = 913
var_c = 514
var_d = var_b - var_c
var_e = var_a - var_d
print(int(var_e))
Category: Correspondence

Question (EN): When 2×B+B=12, AD=5, CB=5, D+C=12, what is A?
Question (KO): 2×B+B=12, A-D=5, C-B=5, D+C=12를 만족할 때, A는 얼마입니까?

Answer: 8

Solution (Python):
var_a = 12
var_b = '2×B+B=12'
var_c = 'B'
ans_dict = dict()
var_b = var_b.replace('×','*')
var_b = var_b.replace('x','*')
var_b = var_b.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_b):
    if v in variable_candi:
        ans_dict[v] = 0
candidate_num = [i for i in range(51)]
candi = list(itertools.product(candidate_num, repeat=len(ans_dict)))
for c in candi:
    temp = var_b
    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)):
        if term_list[i] == '':
            new_eq += str(term_list[i])+op_list[i]
        else:
            new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    new_eq=new_eq.replace('=', '==')
    new_eq=new_eq.replace('>==', '>=')
    new_eq=new_eq.replace('<==', '<=')
    eval_result = False
    try:
        if '=' in new_eq and '>' not in new_eq and '<' not in new_eq:
            new_eq=new_eq.replace('==','=')
            new_eq=new_eq.replace('>','')
            new_eq=new_eq.replace('<','')
            new_eq=new_eq.split('=')
            for i in range(len(new_eq)-1):
                eval_result = math.isclose(eval(new_eq[i]), eval(new_eq[i+1]))
                if not eval_result:
                    break
        else:
            eval_result = eval(new_eq)
    except:
        eval_result = False
        pass
    if eval_result:
        for i, (k, _) in enumerate(ans_dict.items()):
            ans_dict[k] = int(c[i])
var_d = ans_dict[var_c]
var_e = 5
var_f = var_d + var_e
var_g = var_a - var_f
var_h = 5
var_i = var_g + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): You want to distribute 67 candies to students. Each student took 4 candies, so there are 3 candies left. How many students do you have?
Question (KO): 사탕 67개를 학생들에게 나누어주려고 합니다. 모든 학생이 사탕을 4개씩 가져갔더니 3개의 사탕이 남았습니다. 학생 수는 몇 명입니까?

Answer: 16

Solution (Python):
var_a = 67
var_b = 3
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e))
Category: Comparison

Question (EN): How many numbers greater than 1.1 are there in 1.4, 9/10, 1.2, 0.5, and 13/10?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 큰 숫자를 고르면 몇 개인가요?

Answer: 3

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 1.1
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Geometry

Question (EN): I made a square by arranging Go stones regularly without any gaps. If the number of Go stones on the perimeter is 84, how many Go stones are on one outermost side?
Question (KO): 바둑돌을 빈틈없이 규칙적으로 늘어놓아 정사각형을 만들었습니다. 둘레에 놓인 바둑돌의 개수가 84개였다면, 가장 바깥쪽의 한 변에 놓인 바둑돌의 개수는 몇 개입니까?

Answer: 22

Solution (Python):
var_a = 84
var_b = 4
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
var_f = 2
var_g = var_e + var_f
print(int(var_g))
Category: Geometry

Question (EN): What is the volume of a rectangular parallelepiped that is 15 centimeters (cm) wide, 6 centimeters (cm) long, and 4 centimeters (cm) high?
Question (KO): 가로 15센티미터(㎝), 세로 6센티미터(㎝), 높이 4센티미터(㎝)인 직육면체의 부피는?

Answer: 360

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

Question (EN): Thirty students are standing in a line on the playground. If the distance between students is 3 meters (m), find what the distance of the first student and the last student is.
Question (KO): 운동장에 학생 30명이 일렬로 서 있다. 학생들 간의 간격이 3미터(m) 일 때, 첫번째 학생과 마지막 학생 사이의 거리를 구하시오.

Answer: 87

Solution (Python):
var_a = 3
var_b = 30
var_c = 1
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e))
Category: Geometry

Question (EN): A certain cuboid has a volume of 28/3 cubic centimeters (cm3). If water is poured into this cuboid at a rate of 14/5 milliliters (ml) per second, find how many seconds it will take for the cube to be full.
Question (KO): 부피가 28/3세제곱센티미터(㎤)인 어떤 직육면체가 있다. 이 직육면체에 물을 초 당 14/5밀리리터(㎖)씩 부으면 꽉 차는데 몇 초가 걸릴지 구하시오.

Answer: 3.33

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

Question (EN): After putting 6 apples each in a small box weighing 220 grams (g), and then putting 9 of these small boxes in a large box weighing 250 grams (g), the result was 13.3 kilograms (kg). How many grams (g) does one apple weigh? (However, each apple weighs the same.)
Question (KO): 무게가 220그램(g)인 작은 상자에 사과를 각각 6개 넣은 후 이 작은 상자 9개를 무게가 250그램(g)인 큰 상자에 넣었더니 13.3킬로그램(㎏)이 되었습니다. 사과 한 개의 무게는 몇 그램(g)입니까? (단, 각각의 사과 무게는 같습니다.)

Answer: 205

Solution (Python):
var_a = 13.3
var_b = 1000
var_c = var_a * var_b
var_d = 250
var_e = var_c - var_d
var_f = 220
var_g = 9
var_h = var_f * var_g
var_i = var_e - var_h
var_j = 6
var_k = 9
var_l = var_j * var_k
var_m = var_i / var_l
print(int(var_m))
Category: Comparison

Question (EN): Yuna is the 5th one having the most pencils in the class, and Eunji is the next most. How many pencils does Eunji have?
Question (KO): 유나는 교실에서 5번째로 연필이 많고, 은지는 그 다음으로 연필이 많습니다. 은지는 몇 번째로 연필이 많습니까?

Answer: 6

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): A is a single-digit number. Find A from the single-digit numbers' multiplication equation A×A×A=21A.
Question (KO): A는 한 자리 수입니다. 한 자리 수끼리의 곱셈식 A×A×A=21A에서 A를 구하시오.

Answer: 6

Solution (Python):
var_a = 'A×A×A=21A'
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: Correspondence

Question (EN): Given that the equation of 37 is divided by 8, the remainder is B and the quotient is A. Find the right value for B.
Question (KO): 37을 8로 나눴더니 나머지가 B, 몫이 A가 되었습니다. B에 알맞은 값을 구하시오.

Answer: 5

Solution (Python):
var_a = 37
var_b = 8
var_c = var_a % var_b
print(int(var_c))
Category: Geometry

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

Answer: 30

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

Question (EN): One wall of the warehouse is 6 meters (m) wide and 4 meters (m) long. How many tiles are needed if you attach rectangular tiles measuring 60 centimeters (cm) wide and 20 centimeters (cm) tall on this wall without overlapping any gaps?
Question (KO): 창고의 한쪽 벽의 가로는 6미터(m) 이고 세로는 4미터(m) 입니다. 이 벽에 가로가 60센티미터(㎝) , 세로가 20 센티미터(㎝) 인 직사각형 모양의 타일을 빈틈없이 겹치지 않게 붙인다면 필요한 타일은 모두 몇 개입니까?

Answer: 200

Solution (Python):
var_a = 6
var_b = 100
var_c = var_a * var_b
var_d = 4
var_e = 100
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 60
var_i = 20
var_j = var_h * var_i
var_k = var_g / var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Five baskets contain 5 persimmons, and another basket contains 8 persimmons. How many persimmons are in all 6 baskets?
Question (KO): 바구니 5개에는 감이 5개씩 들어 있고, 다른 바구니 1개에는 감이 8개 들어 있습니다. 6개의 바구니에 들어 있는 감은 모두 몇 개입니까?

Answer: 33

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

Question (EN): The older brother gave the younger brother pocket money, and the older brother got 360 won more than the younger brother. If the older brother had 2800 won and the younger brother had 1500 won, how much money would the older brother give to the younger brother?
Question (KO): 형이 동생에게 용든을 주었더니 형이 동생보다 360원을 더 가지게 되었습니다. 형이 가지고 있던 돈은 2800원이고 동생이 가지고 있던 돈이 1500원이었다면 형이 동생에게 얼마를 주었을 지 구하세요.

Answer: 470

Solution (Python):
var_a = 2800
var_b = 1500
var_c = var_a - var_b
var_d = 360
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): How many centimeters (cm) is one edge of a cube with a volume of 2744 cubic centimeters (cm3)?
Question (KO): 부피가 2744세제곱센티미터(㎤)인 정육면체의 한 모서리는 몇 센티미터(㎝) 입니까?

Answer: 14

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

Question (EN): The length of the perimeter of a rectangle with a length of 10 centimeters (cm) is equal to the sum of the lengths of the three sides of an equilateral triangle with a hypotenuse of length 16 centimeters (cm). What is the width of this rectangle in centimeters (cm)?
Question (KO): 세로가 10센티미터(㎝)인 직사각형의 둘레의 길이와 빗변의 길이가 16(㎝)인 정삼각형의 세 변의 길이의 합이 같았습니다. 이 직사각형의 가로의 길이는 몇 센티미터(㎝)이겠습니까?

Answer: 14

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

Question (EN): When you add 14 to a particular number, you get 56. What is the result when that particular number is multiplied by 3?
Question (KO): 어떤 수에 14를 더하였더니 56이 되었습니다. 어떤 수에 3을 곱하면 얼마가 되는지 구하시오.

Answer: 126

Solution (Python):
var_a = 56
var_b = 14
var_c = var_a - var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): The sum of 4 consecutive even numbers is 92. Write the largest of these four numbers.
Question (KO): 4개의 연속된 짝수의 합이 92입니다. 이 4개의 수 중에서 가장 큰 수를 쓰시오.

Answer: 26

Solution (Python):
var_a = 92
var_b = 4
var_c = var_a / var_b
var_d = 4
var_e = 2
var_f = var_d // var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c + var_h
var_j = 1
var_k = var_i - var_j
print(int(var_k))
Category: Geometry

Question (EN): There is a nonagon-shaped piece of land. If you divide a land by drawing a line from one vertex to a non-neighboring vertex, how many lands is it divided into?
Question (KO): 구각형 모양의 땅이 있습니다. 한 꼭짓점에서 이웃하지 않은 꼭짓점으로 선을 그어 땅을 나눈다면 몇 개의 땅으로 나누어집니까?

Answer: 7

Solution (Python):
var_a = 9
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Il-Woong is trying to find the larger of the two pages of the book he is looking at. If the sum of the two pages is 125, what is the answer?
Question (KO): 일웅이가 보고 있는 책의 두 쪽수 중 큰 값을 구하려 한다. 두 쪽수의 합이 125이라면 답은 무엇인가?

Answer: 63

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

Question (EN): The clothing store sold 3/5 of the T-shirts that were left from yesterday's sale this morning. In the afternoon, we sold 180 T-shirts in total, including surplus T-shirts of this morning and new T-shirts. If the number of T-shirts sold in the morning is equal to the number of T-shirts sold in the afternoon, how many T-shirts were left after selling yesterday?
Question (KO): 옷가게에서 어제 팔고 남은 티셔츠를 오늘 오전에 3/5만큼 팔았습니다. 오후에는 오전에 팔고도 남은 티셔츠와 새로 들여온 티셔츠를 합한 180장을 전부 팔았습니다. 오전에 판 티셔츠의 장수와 오후에 판 티셔츠가 장수가 같다면 어제 팔고 남은 티셔츠는 몇 장입니까?

Answer: 300

Solution (Python):
var_a = 180
var_b = 0.6
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): Round up the largest five-digit number you can make by using the five number cards 0, 1, 5, 7, and 9 once to the hundredth digit.
Question (KO): 5 장의 숫자 카드 0, 1, 5, 7, 9를 한 번씩 사용하여 만들 수 있는 가장 큰 다섯 자리 수를 올림하여 백의 자리까지 나타내어 보시오.

Answer: 97600

Solution (Python):
var_a = 0
var_b = 1
var_c = 5
var_d = 7
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 = 5
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 3
var_j=int(((var_h+9*10**(var_i-2))//(10**(var_i-1)))*10**(var_i-1))

print(int(var_j))
Category: Correspondence

Question (EN): The quotient of a number divided by 7 is 12 and the remainder is 4. If this number is divided by 3, what is the quotient?
Question (KO): 어떤 수에 대하여 7로 나눈 몫이 12이고 나머지가 4이다. 어떤 수를 3으로 나눈다면 몫이 얼마일지 구하시오.

Answer: 29

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

Question (EN): There are two tops in Minhyung's closet. If he bought 4 more today, how many cases of Minhyung choosing the top to wear tomorrow are there?
Question (KO): 민형이의 옷장에 상의가 2벌 있습니다. 오늘 4벌을 더 구매했다면 민형이가 내일 입을 상의를 고르는 경우의 수는 얼마인가요?

Answer: 6

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 1
var_e = 1
var_c = int(var_c)
var_d = int(var_d)
for i, elem in enumerate(range(var_d)):
    var_e = var_e * (var_c-i)
for i, elem in enumerate(range(var_d)):
    var_e = var_e / (i+1)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Find the product of the two odd numbers that are not greater than 9 with the greatest difference.
Question (KO): 9 이하의 홀수 중 차가 가장 큰 두 숫자를 고르고, 고른 수의 곱을 구하시오.

Answer: 9

Solution (Python):
var_a = 0
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 = 1
list_b=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
var_e = 1
list_c=list_a.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = var_d * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are five times as many chickens as ducks, and there are 12 more ducks than rabbits. If there are 4 rabbits, how many total number of chickens, ducks and rabbits are there?
Question (KO): 오리 수의 5배 만큼 닭이 있고, 오리가 토끼보다 12마리 더 많습니다. 토끼가 4마리일 때, 닭, 오리, 토끼는 모두 몇 마리입니까?

Answer: 100

Solution (Python):
var_a = 4
var_b = 4
var_c = 12
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 5
var_g = 4
var_h = 12
var_i = var_g + var_h
var_j = var_f * var_i
var_k = var_e + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Dong-hoon and Yeon-jeong started at the same place at the same time on a playground with a circumference of 3 km (km) and walked in opposite directions. When Donghun walks at a speed of 100 meters per minute (m) and Yeonjeong walks at a speed of 150 meters per minute (m), find how many minutes later Donghun and Yeonjeong meet again for the first time.
Question (KO): 동훈이와 연정이는 둘레가 3킬로미터(㎞)인 운동장을 같은 곳에서 동시에 출발하여 서로 반대 방향으로 걸었다. 동훈이는 매분 100미터(m)의 속력으로, 연정이는 매분 150미터(m)의 속력으로 걸었을 때, 몇 분 후에 동훈이와 연정이가 처음으로 다시 만나는지 구하여라

Answer: 12

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

Question (EN): On the way from the house to the destination, Youngha took a bus for 3/8 of the total, took a taxi for the remaining 1/3, and rode a bicycle for the remaining 4/5, so the remaining distance was 1 kilometer (km) was 200 meters (m). At this time, how many meters is the distance from Youngha's house to the destination?
Question (KO): 영하는 집부터 목적지로 가는 길에 전체의 3/8을 버스로 가고, 나머지의 1/3을 택시를 타고 이동하고, 또 그 나머지의 4/5를 자전거를 타고 이동했더니 남은 거리가 1킬로미터(㎞) 200미터(m)였다. 이때 영하의 집부터 목적지까지의 거리 몇 미터(m)입니까?

Answer: 14400

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 1
var_g = 0.8
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 1
var_k = 0.3333333333333333
var_l = var_j - var_k
var_m = var_i / var_l
var_n = 1
var_o = 0.375
var_p = var_n - var_o
var_q = var_m / var_p
print(int(var_q))
Category: Arithmetic calculation

Question (EN): Each box contains 9 notebooks. If there are 27 notebooks in total, how many boxes are there?
Question (KO): 한 상자에 공책이 9권씩 들어있습니다. 공책이 모두 27권이라면 공책은 몇 상자입니까?

Answer: 3

Solution (Python):
var_a = 27
var_b = 9
var_c = var_a // var_b
print(int(var_c))
Category: Geometry

Question (EN): You bought a new tank from the aquarium, and this tank is in the shape of a cuboid measuring 20 meters (m) long by 12 meters (m) wide and 2 meters (m) deep. The tank is made of glass on all sides except for the top. Find the area in square meters (m2) of all the glass parts.
Question (KO): 수족관에서 새 수조를 구입했는데, 이 수조는 가로 20미터(m), 세로 12미터(m), 깊이 2미터(m)인 직육면체 모양이다. 수조는 위쪽을 제외한 나머지 면이 모두 유리로 되어있다. 유리로 되어있는 부분의 넓이는 모두 몇 제곱미터(㎡)인지 구하라.

Answer: 368

Solution (Python):
var_a = 20
var_b = 12
var_c = var_a * var_b
var_d = 20
var_e = 2
var_f = var_d * var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c + var_h
var_j = 12
var_k = 2
var_l = var_j * var_k
var_m = 2
var_n = var_l * var_m
var_o = var_i + var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): There are 30 students in Yujeong's class. The average English score of 26 of them is 82 points. If the English scores of the other four students are 90, 85, 88, and 80, respectively, find the answer what is the average English score of Yujeong's class including the decimal point.
Question (KO): 유정이네 반 학생 수는 30명입니다. 그중 26명의 영어 평균 점수는 82점입니다. 나머지 4명의 영어 점수가 각각 90점, 85점, 88점, 80점일 때, 유정이네 반 영어 평균 점수는 몇 점인지 소수점을 포함하여 답을 구하시오.

Answer: 82.5

Solution (Python):
var_a = 26
var_b = 82
var_c = var_a * var_b
var_d = 90
var_e = var_c + var_d
var_f = 85
var_g = var_e + var_f
var_h = 88
var_i = var_g + var_h
var_j = 80
var_k = var_i + var_j
var_l = 30
var_m = var_k / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))