philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Find the number of four-digit numbers whose sum of the digits is equal to 34.
Question (KO): 모든 자리 숫자를 더했을 때 34가 되는 네 자리 수의 개수를 구하시오.

Answer: 10

Solution (Python):
var_a = 1000
var_b = 10000
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
list_b=[]
for i in list_a:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_b.append(var_f)
var_g = 34
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = 34
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = len(list_d)
print(int(var_i))
Category: Comparison

Question (EN): Sang-hyeon throws the ball 50 times every day to practice basketball. If Sang-hyeon hits 27, 29, 33, 34, 29, 20, and 35 balls, respectively, in a week, find how many days Sang-hyeon threw less than the average hit.
Question (KO): 상현이는 매일 농구 연습을 하기 위해 50번씩 공을 던집니다. 일주일 동안 상현이가 골대에 넣은 공이 각각 27개, 29개, 33개, 34개, 29개, 20개, 35개라면, 평균보다 적게 넣은 날은 며칠인지 구하시오.

Answer: 4

Solution (Python):
var_a = 27
var_b = 29
var_c = 33
var_d = 34
var_e = 29
var_f = 20
var_g = 35
list_a= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
list_a = [float(i) for i in list_a]
var_h = sum(list_a)/len(list_a)
list_b = []
for i in list_a:
    if i < var_h:
        list_b.append(i)
var_i = len(list_b)
print(int(var_i))
Category: Possibility

Question (EN): There are number cards with natural numbers from 1 to 9 written on them. How many ways can you draw 3 of these cards so that the sum is 19?
Question (KO): 1부터 9까지의 자연수가 적힌 숫자 카드들이 있다. 이 중 3장을 꺼내서 합이 19가 되게 하는 방법은 모두 몇 가지인가?

Answer: 30

Solution (Python):
var_a = 1
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 19
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): All diagonals that can be drawn inside the octagon are drawn. How many diagonals are drawn?
Question (KO): 팔각형 안에 그릴 수 있는 모든 대각선들이 그려져 있습니다. 그려진 대각선의 개수는?

Answer: 20

Solution (Python):
var_a = 8
var_b = 8
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))
Category: Arithmetic calculation

Question (EN): You need 400 won to buy 0.1 kilogram (kg) of carrots. Calculate how many kilograms (kg) of carrots you can buy with 2,000 won, including the decimal point.
Question (KO): 당근을 0.1킬로그램(㎏) 사기 위해서는 400원이 필요합니다. 2,000원으로 살 수 있는 당근은 몇 킬로그램(㎏)인지 소수점을 포함하여 구하시오.

Answer: 0.5

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

Question (EN): You want to plant street trees at intervals of 25 meters (m) on both sides of a road that is 2575 meters (m) long. What is the number of street trees planted on one side of the road if trees are also planted at the beginning and end of the road?
Question (KO): 길이가 2575미터(m)인 도로의 양쪽에 25미터(m) 간격으로 가로수를 심으려고 합니다. 도로 한쪽에 심을 가로수는 몇 그루입니까? (단, 도로의 처음과 끝에도 가로수를 심습니다.)

Answer: 104

Solution (Python):
var_a = 2575
var_b = 25
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a rectangular field with a length of 3.6 meters (m) and a width of 2.5 times the length. If you planted tomatoes in half of this field, what is the area in square meters (m2) of the field where tomatoes are planted?
Question (KO): 세로가 3.6미터(m)이고 가로가 세로의 2.5배인 직사각형 모양의 밭이 있습니다. 이 밭의 절반에 토마토를 심었다면 토마토를 심은 밭의 넓이는 몇 제곱미터(㎡)입니까?

Answer: 16.2

Solution (Python):
var_a = 3.6
var_b = 3.6
var_c = 2.5
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: Possibility

Question (EN): There are 6 people. Everyone shook hands with each other once. Find the total number of handshakes.
Question (KO): 6명이 있습니다. 모든 사람이 다른 사람과 한 번씩 악수를 하였습니다. 악수의 총 횟수를 구하시오.

Answer: 15

Solution (Python):
var_a = 6
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)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
print(int(var_c))
Category: Geometry

Question (EN): Seokgi has a square piece of red-colored paper with a side length of 5 centimeters (cm), and Mina has a rectangular piece of blue-colored paper with a side length of 4 centimeters (cm). The red colored paper and the blue colored paper have the same area. Find the length of the other side of the blue-colored paper as a decimal number.
Question (KO): 석기는 한 변의 길이가 5센티미터(㎝)인 정사각형 모양의 빨간색 색종이를 가지고 있고, 민아는 한 변의 길이가 4센티미터(㎝)인 직사각형 모양의 파란색 색종이를 가지고 있습니다. 이 빨간색 색종이와 파란색 색종이의 넓이는 같습니다. 파란색 색종이의 다른 한 변의 길이를 소수로 나타내시오.

Answer: 6.25

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

Question (EN): Mincheol received 70 points in math, 80 points in Korean, and 90 points in English on the midterm exam. What is Mincheol's midterm average?
Question (KO): 민철이가 중간고사에서 수학 점수가 70점, 국어 점수가 80점, 영어 점수가 90점을 받았다. 민철이의 중간고사 평균은 얼마인지 구하시오.

Answer: 80

Solution (Python):
var_a = 70
var_b = 80
var_c = 90
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()
list_a = [float(i) for i in list_a]
var_d = sum(list_a)/len(list_a)
print(int(var_d))
Category: Possibility

Question (EN): How many three-digit numbers are made up of only 3 and 2?
Question (KO): 세 자리 수 중 3와 2로만 이루어진 수는 총 몇개입니까?

Answer: 8

Solution (Python):
var_a = 2
var_b = 3
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=var_c))
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_d = len(list_b)
print(int(var_d))
Category: Possibility

Question (EN): Yoongi has 2 red marbles and 2 blue marbles. If marbles of the same color are indistinguishable from each other, how many ways can you arrange 4 marbles in a row?
Question (KO): 윤기는 빨간색 구슬 2개, 파란색 구슬 2개를 가지고 있습니다. 같은 색의 구슬은 각각 구별이 되지 않는다고 할 때, 구슬 4개를 서로 다르게 한 줄로 놓는 방법은 모두 몇 가지입니까?

Answer: 6

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

Question (EN): You bought a few apples and pears.  The number of pears are three-fifths of the number of apples, and altogeter you got 240. How many apples did you buy?
Question (KO): 사과 몇 개와 사과의 3/5만큼 배를 샀더니 모두 240개가 되었습니다. 사과는 몇 개 샀습니까?

Answer: 150

Solution (Python):
var_a = 240
var_b = 1
var_c = 0.6
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e))
Category: Geometry

Question (EN): A large cake made by Dojun measures 172 centimeters (cm) in width and 295 centimeters (cm) in length. I am going to cut this cake into as many square shapes as possible and share it with my friends. How many friends can you give the cake to?
Question (KO): 도준이가 만든 큰 케잌의 가로는 172센티미터(㎝), 세로는 295센티미터(㎝)이다. 이 케잌을 한 변의 길이가 24센티미터(㎝)인 정사각형 모양으로 최대한 많이 잘라 친구들에게 나누어 주려고 한다. 몇 명까지 줄 수 있는가?

Answer: 50740

Solution (Python):
var_a = 172
var_b = 295
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): A parallelogram has an area of 108 square centimeters (cm2) and a height of 9 centimeters (cm). Find the length of the base of this parallelogram in centimeters (cm).
Question (KO): 어떤 평행사변형은 넓이가 108제곱센티미터(㎠)이고 높이가 9센티미터(㎝)입니다. 이 평행사변형의 밑변의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 12

Solution (Python):
var_a = 108
var_b = 9
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): While the average height of A, B, and C is 130cm (cm), the average changes to 126 cm (cm) when D is added. D  What is the height of D?
Question (KO): 갑, 을, 병의 평균 키는 130cm이다. 여기서 정의 키와 함께 평균을 구했더니 126cm였다. 정의 키를 구하시오

Answer: 114

Solution (Python):
var_a = 126
var_b = 4
var_c = var_a * var_b
var_d = 130
var_e = 3
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Correspondence

Question (EN): The eight-digit number 757AB84 is a multiple of 357. What value can A be?
Question (KO): 여덟 자리 수 757AB384는 357의 배수입니다. A가 될 수 있는 값은 무엇입니까?

Answer: 5

Solution (Python):
var_a = '757AB384'
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 = 357
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 = '757AB384'
var_d = 'B'
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])
print(int(var_e))
Category: Correspondence

Question (EN): The number 125 less than B is C, and the number 197 greater than B is A. Find C when A is 509.
Question (KO): B보다 125만큼 작은 수는 C이고 B보다 197만큼 큰 숫자는 A이다. A가 509일때 C를 구하여라.

Answer: 187

Solution (Python):
var_a = 509
var_b = 197
var_c = var_a - var_b
var_d = 125
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): Yujeong placed balls of various colors in a row on the desk. When the red, blue, yellow, purple, and white balls are placed in that order, what is the color of the last ball?
Question (KO): 유정은 책상 위에 갖가지 색깔의 공들을 일렬로 놓았다. 빨간색, 파란색, 노란색, 보라색, 흰색 공을 순서대로 놓았을 때 마지막 공은 무슨 색일까요?

Answer: white

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
var_d = 'purple'
var_e = 'white'
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 = list_a[var_f-1]
print(var_g)
Category: Arithmetic calculation

Question (EN): If 2 times a number minus 6 is 8 greater than 1/4 times the number, find what the number is.
Question (KO): 어떤 수의 2배에서 6을 뺀 수는 어떤 수의 1/4배보다 8만큼 클 때, 어떤 수를 구하시오.

Answer: 8

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

Question (EN): We are going to draw a circle with a radius of 3 centimeters (cm) inside a square piece of paper with a side length of 30 centimeters (cm). How many circles can you draw in all?
Question (KO): 한 변의 길이가 30센티미터(㎝)인 정사각형 색종이 안에 반지름이 3센티미터(㎝)인 원을 그리려고 합니다. 원은 모두 몇 개를 그릴 수 있겠습니까?

Answer: 25

Solution (Python):
var_a = 30
var_b = 3
var_c = 2
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))
Category: Correspondence

Question (EN): There are different single digit numbers A and B. Find the sum of A and B when AB × 6 = BBB is correct.
Question (KO): 서로 다른 한 자리 수 A, B가 있습니다. AB×6=BBB가 맞는 식일 때 A와 B의 합을 구하시오.

Answer: 11

Solution (Python):
var_a = 'AB×6=BBB'
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]
var_d = 'AB×6=BBB'
var_e = 'B'
ans_dict = dict()
var_d = var_d.replace('×','*')
var_d = var_d.replace('x','*')
var_d = var_d.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_d):
    if v in variable_candi:
        ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_d
    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_d):
        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_f = ans_dict[var_e]
var_g = var_c + var_f
print(int(var_g))
Category: Comparison

Question (EN): The average pocket money for A, B, C, and D is 2,300 won. The average pocket money of A and B is 3000 won, and the average pocket money of C and D is 2750 won. Also, the average pocket money of B and C is 2100 won, and the pocket money of A is 800 won more than that of B. How much is D's pocket money?
Question (KO): A, B, C, D 4명의 일주일 평균 용돈은 2300원이다. A, B 두사람의 평균 용돈은 3000원이고, C, D의 평균 용돈은 2750원이다. 또, B, C의 평균 용돈은 2100원이고, A용돈은 B의 용돈보다 800원이 많다. D의 일주일 용돈은 얼마인가?

Answer: 3900

Solution (Python):
var_a = 2750
var_b = 2
var_c = var_a * var_b
var_d = 2100
var_e = 2
var_f = var_d * var_e
var_g = 3000
var_h = 2
var_i = var_g * var_h
var_j = 800
var_k = var_i - var_j
var_l = 2
var_m = var_k / var_l
var_n = var_f - var_m
var_o = var_c - var_n
print(int(var_o))
Category: Correspondence

Question (EN): You want to subtract 24 from a number. If the answer when wrongly divided by 4 is 50, what is the correct calculation result?
Question (KO): 어떤 수에 24를 빼려고 합니다. 잘못하여 4를 나누었을 때의 답이 50이라면 바르게 계산한 결과는 얼마일까요?

Answer: 176

Solution (Python):
var_a = 50
var_b = 4
var_c = var_a * var_b
var_d = 24
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): 13 is the result of mistakenly adding 3 to a particular number that should have subtracted 6 from it. What is the certain number?
Question (KO): 13은 어떤 수에서 6을 뺐어야 하는데 실수로 3을 더하여 나온 결과입니다. 어떤 수는 얼마입니까?

Answer: 10

Solution (Python):
var_a = 13
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): Divide 11 from a certain number, and you can get 2. Find the result of multiplying this number by 6.
Question (KO): 어떤 수에서 11을 나누어 2를 얻었습니다. 어떤 수에 6을 곱한 결과 값을 구하시오.

Answer: 132

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

Question (EN): Yesterday, Seokjin bought 10 fish for 3,000 won. He bought some more of this fish at the same store today and paid 6,000 won more than yesterday. How many fish did Seokjin buy for two days?
Question (KO): 어제 석진이는 3,000원을 주고 물고기 10마리를 샀습니다. 오늘 같은 가게에서 이 물고기를 좀 더 많이 샀더니 어제보다 6,000원을 더 냈습니다. 석진이가 이틀 동안 산 물고기는 모두 몇 마리입니까?

Answer: 40

Solution (Python):
var_a = 3000
var_b = 6000
var_c = var_a + var_b
var_d = 3000
var_e = 10
var_f = var_d / var_e
var_g = var_c / var_f
var_h = 10
var_i = var_g + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The PC room fee is 500 won for the first 30 minutes and 200 won for every 10 minutes thereafter. How much do you have to pay to use the PC room for 1 hour and 20 minutes?
Question (KO): 피시방 요금은 처음 30분 동안 500원이고 그 이후부터는 10분마다 200원씩 추가됩니다. 1시간 20분 동안 피시방을 이용하면 얼마를 내야합니까?

Answer: 1500

Solution (Python):
var_a = 1
var_b = 60
var_c = var_a * var_b
var_d = 20
var_e = var_c + var_d
var_f = 30
var_g = var_e - var_f
var_h = 10
var_i = var_g // var_h
var_j = 200
var_k = var_i * var_j
var_l = 500
var_m = var_k + var_l
print(int(var_m))
Category: Possibility

Question (EN): In how many different ways can you line up 5 indistinguishable roses and 1 tulip?
Question (KO): 구별이 되지 않는 장미 5송이와 튤립 1송이를 서로 다르게 한 줄로 놓는 방법은 모두 몇 가지입니까?

Answer: 6

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

Question (EN): You have a rectangle with a length of 4 centimeters (cm) and an area of 25/2 square centimeters (cm2). How many centimeters (cm) is the width of this rectangle?
Question (KO): 세로가 4 센티미터(㎝)이고 넓이가 25/2제곱센티미터(㎠)인 직사각형이 있습니다. 이 직사각형의 가로는 몇 센티미터(㎝)인가요?

Answer: 3.13

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

Question (EN): When dividing a number by 15 and then multiplying by 51 results in 224.8. What will be the value if the number is multiplied by 17 and then added to 5?
Question (KO): 어떤 수를 15로 나누고 51을 곱하였더니 224.8 이 되었습니다. 어떤 수에 17을 곱하고 5를 더하면 얼마인지 구하시오.

Answer: 1129

Solution (Python):
var_a = 224.8
var_b = 51
var_c = var_a / var_b
var_d = 15
var_e = var_c * var_d
var_f = 17
var_g = var_e * var_f
var_h = 5
var_i = var_g + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): The average number of bananas and tangerines is 89. How many oranges are there when the average number of bananas, tangerines, and oranges is 91?
Question (KO): 바나나와 귤의 평균 개수는 89개이다. 바나나, 귤, 오랜지의 평균 개수가 91개일때 오랜지의 개수는 몇 개인가?

Answer: 95

Solution (Python):
var_a = 91
var_b = 3
var_c = var_a * var_b
var_d = 89
var_e = 2
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Comparison

Question (EN): Figure A is a rectangle with a width of 10 centimeters (cm) and a perimeter of 26 centimeters (cm). Figure B is a rectangle with a width of 8 centimeters (cm) and a perimeter of 40 centimeters (cm). Which of the two figures has the greater area?
Question (KO): 도형 A는 가로가 10센티미터(㎝), 둘레가 26센티미터(㎝)인 직사각형입니다. 도형 B는 가로가 8센티미터(㎝), 둘레가 40센티미터(㎝)인 직사각형입니다. 두 도형 중 넓이가 더 넓은 것은 무엇입니까?

Answer: B

Solution (Python):
var_a = 'A'
var_b = 'B'
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 = 26
var_d = 10
var_e = 2
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 2
var_i = var_g / var_h
var_j = 10
var_k = var_i * var_j
var_l = 40
var_m = 8
var_n = 2
var_o = var_m * var_n
var_p = var_l - var_o
var_q = 2
var_r = var_p / var_q
var_s = 8
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_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
list_b.reverse()
var_u = 1
list_c=list_b.copy()
list_c.sort()
var_v = list_c[-var_u]
var_w = list_b.index(var_v)+1
var_x = list_a[var_w-1]
print(var_x)
Category: Arithmetic calculation

Question (EN): In the subtraction of two-digit numbers, the number 2 in the tens digit of the number to be subtracted is mistakenly regarded as 5, and the digit 6 in the ones digit is mistakenly regarded as 9, and the result is 44. Find the result of the correct calculation.
Question (KO): 두 자리 수끼리의 뺄셈에서 빼는 수의 십의 자리 숫자 2를 5로 잘못 보고, 일의 자리 숫자 6을 9로 잘못 보고 계산하였더니 그 값이 44가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 11

Solution (Python):
var_a = 44
var_b = 10
var_c = 2
var_d = 5
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
var_h = 1
var_i = 6
var_j = 9
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_g + var_l
print(int(var_m))
Category: Correspondence

Question (EN): Garin decided to divide her vacation homework for 24 days. It is said that if she solves 19 pages a day, she can finish her homework with nothing left. How many pages are there in Garin's vacation homework?
Question (KO): 가린이는 방학숙제를 24일 동안 나눠서 하기로 하였다. 하루에 19쪽을 풀면 남는 것 없이 숙제를 끝마칠 수 있다고 한다. 가린이의 방학숙제는 모두 몇 쪽인가?

Answer: 456

Solution (Python):
var_a = 19
var_b = 24
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): I am going to make a circle by overlapping the 10.4 centimeters (cm) ticket paper by 3.5 centimeters (cm). If there are 16 tickets, how many centimeters (cm) is the circumference of the circle?
Question (KO): 10.4센티미터(㎝)인 티켓 종이를 3.5센티미터(㎝)씩 겹치게 하여 원을 만들려고 합니다. 티켓 종이가 16개 있다면 이어 붙인 원의 길이는 몇 센티미터(㎝)입니까?

Answer: 110.4

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

Question (EN): There were 29 roses. I put a few in the vase, and there are 12 left. How many roses did I put in the vase?
Question (KO): 장미가 29송이 있었습니다. 병에 몇 송이를 꽂았더니 12송이가 남았습니다. 병에 꽂은 장미는 몇 송이입니까?

Answer: 17

Solution (Python):
var_a = 29
var_b = 12
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You are trying to insert press nails at 3 centimeters (cm) intervals on a paper strip that is 114 centimeters (cm) long. Assuming that you must insert a presser nail at the beginning and end of the paper strip, find out how many presser nails are needed.
Question (KO): 길이가 114센티미터(㎝)인 종이띠 위에 3센티미터(㎝) 간격으로 누름 못을 꽂으려고 합니다. 종이띠의 처음과 끝에는 반드시 누름 못을 꽂는다고 할 때, 필요한 누름 못은 모두 몇 개인지 구해 보시오.

Answer: 39

Solution (Python):
var_a = 114
var_b = 3
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))