philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): There are 10 balls in the box. When Yoongi takes 3 balls from the box, how many balls are left?
Question (KO): 상자에는 10개의 공이 있습니다. 윤기가 상자에서 공을 3개 가져갔을 때, 남은 공의 개수는 몇 개입니까?

Answer: 7

Solution (Python):
var_a = 10
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): Ohyoung bought a total of 5 serial magazines from January to May. Find the number of cases in which 5 books are placed in a row on the shelf when the January, March, and May issues are placed on the rightmost shelf in that order. (However, there is only one row of bookshelves.)
Question (KO): 오영이는 연재 잡지를 1월에서 5월까지 총 5권을 샀다. 1월호, 3월호, 5월호를 순서대로 책꽂이에 제일 오른쪽에 꽂을 때, 5권의 책을 책꽃이에 한 줄로 꽂는 경우의 수를 구하시오. (단, 책꽂이는 1줄이다.)

Answer: 2

Solution (Python):
var_a = 5
var_b = 1
var_c = 3
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)
list_a.reverse()
var_e = len(list_a)
var_f = var_a - var_e
var_g = 5
var_h = 1
var_i = 3
var_j = 5
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
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)
list_b.reverse()
var_k = len(list_b)
var_l = var_g - var_k
var_m = 1
var_f = int(var_f)
var_l = int(var_l)
for i, elem in enumerate(range(var_l)):
    var_m = var_m * (var_f-i)
print(int(var_m))
Category: Correspondence

Question (EN): The four digit number 5716 is greater than 571A. Given that A is the ones digit and can contain any number from 0 to 9, how many digits can be written in A?
Question (KO): 네 자리 수 5716은 571A보다 큽니다. A는 일의 자리 숫자이고 A에는 0부터 9까지의 숫자를 쓸 수 있습니다. A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = '571A'
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 = 5716
list_b = []
for i in list_a:
    if i < var_b:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): 7 bundles of 2 ping-pong balls are put into one box and stored. If there are 182 ping-pong balls, how many boxes are needed?
Question (KO): 탁구공 2개씩 7묶음을 하나의 상자에 넣어서 보관하여 한다. 탁구공이 182개 일 때, 상자가 몇 개가 필요할지 구하시오.

Answer: 13

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

Question (EN): Kyung-seok studies Korean 7 times a week for 2/3 hours and Math 5 times a week for 3/4 hours. Find out which subject Kyung-seok studies more during the week, Korean or Math.
Question (KO): 경석이는 일주일에 국어를 2/3시간씩 7번 공부하고 수학을 3/4시간씩 5번 공부합니다. 경석이는 일주일 동안 국어와 수학 중 어느 과목을 더 공부하는지 구하시오.

Answer: Korean

Solution (Python):
var_a = 'Korean'
var_b = 'Math'
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 = 0.6666666666666666
var_d = 7
var_e = var_c * var_d
var_f = 0.75
var_g = 5
var_h = var_f * var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): Find out how many two-digit numbers exist that are less than 36 and greater than 29.
Question (KO): 36보다 작고 29보다 큰 두 자리 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 29
var_b = 1
var_c = var_a + var_b
var_d = 36
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = len(list_a)
print(int(var_h))
Category: Geometry

Question (EN): You want to find the length of the diameter of a circle. If the length of the radius is 7 centimeters (cm), what is the length of the diameter in centimeters (cm)?
Question (KO): 원의 지름의 길이를 구하려고 합니다. 반지름의 길이가 7센티미터(㎝)일 때, 지름의 길이는 몇 센티미터(㎝)인가요?

Answer: 14

Solution (Python):
var_a = 7
var_b = 2
var_c = var_a * var_b
print(int(var_c))
Category: Possibility

Question (EN): Using the number cards 1, 6, and 8 all once, find the sum of the second smallest three-digit number and the third smallest three-digit number.
Question (KO): 숫자 카드 1, 6, 8를 한 번씩 모두 사용하여 두 번째로 작은 세 자리 수와 세 번째로 작은 세 자리수의 합을 구하시오.

Answer: 804

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-1]
var_g = 3
var_h = list_b[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Possibility

Question (EN): How many two-digit numbers can be formed by selecting two different numbers from 1, 3, and 4?
Question (KO): 1, 3, 4 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 3
var_c = 4
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 2
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = len(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): There are 901 Go stones. If a total of 53 Go stones are required to play a round of Gomok, how many rounds of Gomok can be played at the same time?
Question (KO): 901개의 바둑알이 있다. 오목 한판을 하기 위해 총 53개의 바둑알이 필요하다고 하면 동시에 몇 판의 오목을 진행할 수 있는지 구하시오.

Answer: 17

Solution (Python):
var_a = 901
var_b = 53
var_c = var_a / var_b
print(int(var_c))
Category: Possibility

Question (EN): How many four-digit numbers that contain all digits of 3, 4, 9, 8 and with 3 in the thousands digit are there?
Question (KO): 천의 자리 숫자가 3이고, 각 자리 숫자에 3, 4, 9, 8이 모두 들어있는 네 자리 수는 모두 몇 개 입니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 4
var_c = 9
var_d = 8
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 = 4
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 = 1000
var_g = 3
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = len(list_c)
print(int(var_h))
Category: Comparison

Question (EN): Yoongi has 4, and Jungkook has the number that is calculated by 6 divided by 3. Who got the smaller number?
Question (KO): 윤기는 4, 정국이는 6에서 3을 나눈 몫을 모았습니다. 누가 더 작은 수를 모았습니까?

Answer: Jungkook

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 4
var_d = 6
var_e = 3
var_f = var_d // var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Correspondence

Question (EN): A and B are single digit numbers, and five-digit number of A835B is a multiple of 12. What is the difference between the largest and smallest of the possible numbers of A835B?
Question (KO): A, B는 한 자리 수입니다. 다섯 자리 수 A835B는 12의 배수입니다. 가능한 A835B의 수 중에서 가장 큰 수와 가장 작은 수의 차는 무엇입니까?

Answer: 69996

Solution (Python):
var_a = 'A835B'
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 = 12
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 = 1
list_c=list_b.copy()
list_c.sort()
var_d = list_c[-var_c]
var_e = 1
list_d=list_b.copy()
list_d.sort()
var_f = list_d[var_e-1]
var_g = var_d - var_f
print(int(var_g))
Category: Geometry

Question (EN): There is a rectangular room with an area of 215.6 square meters (m2). When I measured the width of this room, it came out to be 14 meters (m), and the moment I tried to measure the length, the tape measure broke. If you use the information that the area of the room is 215.6 square meters (m2), how much is the vertical length?
Question (KO): 넓이가 215.6제곱미터(㎡)인 직사각형 모양의 방이 있습니다. 이 방의 가로 길이를 쟀더니 14미터(m)가 나왔고, 세로 길이를 재려는 순간 줄자가 고장났습니다. 방의 넓이가 215.6제곱미터(㎡)라는 정보를 이용해 세로 길이를 구하면 얼마입니까?

Answer: 15.4

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

Question (EN): Miyoung has a square-shaped piece of chocolate with a side measuring 10 centimeters (cm). She is going to cut this chocolate into right triangle-shaped pieces with a width of 1 centimeter (cm) and a height of 3 centimeters (cm) and hand them out to her friends. How many right triangle-shaped chocolate pieces can she hand out?
Question (KO): 미영은 한 변의 길이가 10센티미터(㎝)인 정사각형 모양의 초콜릿을 가지고 있습니다. 이 초콜릿을 가로가 1센티미터(㎝), 높이가 3센티미터(㎝)인 직각삼각형 모양으로 여러개 잘라 친구들에게 나누어주려고 합니다. 최대 몇 개의 직각삼각형 모양 초콜릿을 나누어줄 수 있겠습니까?

Answer: 66

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a ** var_b
var_d = 1
var_e = 3
var_f = var_d * var_e
var_g = var_c // var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): People lined up in front of the store to buy ice cream. Five people stand between the person standing at the front and the person standing at the last. How many people are in line?
Question (KO): 아이스크림을 사기 위해 가게 앞에 사람들이 한 줄로 줄을 섰습니다. 맨 앞에 서 있는 사람과 맨 뒤에 서있는 사람 사이에 5명이 서 있습니다. 줄을 선 사람은 모두 몇 명입니까?

Answer: 7

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

Question (EN): If you distribute 160 bottles of milk, 197 apples, and 229 bread equally to the villagers, you will have 4 bottles of milk left, 2 apples left, and 5 bread short. How many villagers are there at this time?
Question (KO): 우유 160병, 사과 197개, 빵 229개를 마을 사람들에게 똑같이 나누어주면 우유는 4병이 남고, 사과는 2개가 남고, 빵은 5개가 부족하다고 한다. 이떄 마을 사람들은 최대 몇 명인가?

Answer: 39

Solution (Python):
var_a = 197
var_b = 2
var_c = var_a - var_b
var_d = 160
var_e = 4
var_f = var_d - var_e
var_g = math.gcd(int(var_f), int(var_c))
var_h = 229
var_i = 5
var_j = var_h + var_i
var_k = math.gcd(int(var_j), int(var_g))
print(int(var_k))
Category: Arithmetic calculation

Question (EN): When you buy fish at the market, if you buy 8,000 won worth of fish, you get a 1,200 won discount. How much discount can I get if I buy 15,000 won worth of fish?
Question (KO): 시장에서 생선을 살 때 8000원어치를 사면 1200원을 할인해 준다고 합니다. 생선을 15000원어치 사면 얼마를 할인받을 수 있을까요?

Answer: 2250

Solution (Python):
var_a = 1200
var_b = 8000
var_c = var_a / var_b
var_d = 15000
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Moving a decimal point two places to the right equals 138.6 added to the original decimal. Find the original prime number.
Question (KO): 어떤 소수의 소수점을 오른쪽으로 두 칸 옮기면 원래 소수에서 138.6을 더한 값이 됩니다. 원래의 소수를 구하시오.

Answer: 1.4

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

Question (EN): If a watermelon sold at a store is 2,000 won cheaper than 50,000 won, find the price of the watermelon in the unit of ten thousand won.
Question (KO): 어느 가게에서 파는 수박이 5만원보다 2천원 쌀 때, 수박의 가격을 만원 단위로 구하시오.

Answer: 4.8

Solution (Python):
var_a = 5
var_b = 2
var_c = 10
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): What is the volume, in cubic centimeters (cm³), of the rectangular prism with a base perimeter of 32 centimeters (cm) and a height of 9 centimeters (cm), where the base has the maximum possible area?
Question (KO): 밑에 놓인 면의 둘레가 32센티미터(㎝)이고, 높이가 9센티미터(㎝)인 직육면체 중에서 밑에 놓인 면의 넓이가 가장 큰 직육면체의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 576

Solution (Python):
var_a = 32
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 9
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): When 3+68A=691, what number should be in A, where 68A is three-digit number?
Question (KO): 3+68A=691일 때, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 8

Solution (Python):
var_a = '3+68A=691'
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): A number multiplied by 6 plus 17 divided by 5 equals 25. Find the value of a number minus 14.
Question (KO): 어떤 수와 6의 곱에 17을 더한 수를 5로 나누었더니 25가 되었습니다. 어떤 수에서 14를 뺀 값을 구하시오.

Answer: 4

Solution (Python):
var_a = 25
var_b = 5
var_c = var_a * var_b
var_d = 17
var_e = var_c - var_d
var_f = 6
var_g = var_e / var_f
var_h = 14
var_i = var_g - var_h
print(int(var_i))
Category: Comparison

Question (EN): If a basket weighing 0.2 kilograms (kg) contains 3 melons of the same weight, the basket weighs 2.51 kilograms (kg), and if it contains 5 apples of the same weight, the basket weighs 2.9 kilograms (kg). Find which is heavier: an apple or a melon.
Question (KO): 무게가 0.2킬로그램(㎏)인 바구니에 무게가 같은 메론 3 개를 담으면 바구니의 무게는 2.51킬로그램(㎏) 이며, 무게가 같은 사과 5 개를 담으면 바구니의 무게는 2.9킬로그램(㎏)입니다. 사과 한 개와 메론 한 개 중 어느 것이 더 무거운지 구하시오.

Answer: melon

Solution (Python):
var_a = 'apple'
var_b = 'melon'
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 = 2.9
var_d = 0.2
var_e = var_c - var_d
var_f = 5
var_g = var_e / var_f
var_h = 2.51
var_i = 0.2
var_j = var_h - var_i
var_k = 3
var_l = var_j / var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Correspondence

Question (EN): When a number is divided by 37, the quotient is 2 and the remainder is 26. Find the value of 48 minus the quotient of a number divided by 4.
Question (KO): 어떤 수를 37로 나누면 몫은 2이고 나머지가 26이다. 48에서 어떤 수를 4로 나눈 몫을 뺀 값을 구하시오.

Answer: 23

Solution (Python):
var_a = 48
var_b = 37
var_c = 2
var_d = var_b * var_c
var_e = 26
var_f = var_d + var_e
var_g = 4
var_h = var_f / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Comparison

Question (EN): In the running race, Namjoon came in second, and after Namjoon came in, four more people came in, and then Yoongi came in. Hoseok came in after Yoongi and three more people came in. What is Hoseok's rank?
Question (KO): 남준이는 시험에서 2등을 했고, 남준이가 들어가고 난 후 4번째에 윤기가 들어갔습니다. 윤기 뒤의 3번째에 호석이가 들어왔습니다. 호석이는 몇 등입니까?

Answer: 9

Solution (Python):
var_a = 2
var_b = 4
var_c = var_a + var_b
var_d = 3
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Find the product of the largest number and smallest number multiplied among 0.34, 2/4, 9/11, 0.22, and 0.76.
Question (KO): 0.34, 2/4, 9/11, 0.22, 0.76 중 가장 큰 수와 가장 작은 수의 곱을 구합니다.

Answer: 0.18

Solution (Python):
var_a = 0.34
var_b = 2
var_c = 4
var_d = var_b / var_c
var_e = 9
var_f = 11
var_g = var_e / var_f
var_h = 0.22
var_i = 0.76
list_a= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_a.append(var_i)
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_j = 1
list_b=list_a.copy()
list_b.sort()
var_k = list_b[-var_j]
var_l = 1
list_c=list_a.copy()
list_c.sort()
var_m = list_c[var_l-1]
var_n = var_k * var_m
print('{:.2f}'.format(round(var_n+1e-10,2)))
Category: Correspondence

Question (EN): You get a wrong answer 58 when the division of a number by 5 is added by 16. If the correct calculation should be a number divided by 15 and then added by 74, what would be the right answer?
Question (KO): 어떤 수를 15로 나눈 다음 74를 더해야하는데 잘못하여 5로 나눈 다음 16을 더했더니 58이 나왔습니다. 바르게 계산한 값을 구하시오.

Answer: 88

Solution (Python):
var_a = 58
var_b = 16
var_c = var_a - var_b
var_d = 5
var_e = var_c * var_d
var_f = 15
var_g = var_e / var_f
var_h = 74
var_i = var_g + var_h
print(int(var_i))
Category: Comparison

Question (EN): When a box weighing 250 grams (g) was filled with sand and weighed, it was 1 kg (kg) 780 grams (g). When a bucket weighing 460 grams (g) was filled with sand and weighed, it was 2 kg (kg) 250 grams (g). Which is heavier, the sand in the box or that in the bucket?
Question (KO): 무게가 250그램(g)인 상자에 모래를 가득 넣어 무게를 재었더니 1킬로그램(㎏) 780그램(g)이었고 무게가 460그램(g)인 통에 모래를 가득 넣어 무게를 재었더니 2킬로그램(㎏) 250그램(g)이었습니다. 상자와 통 중 어느 것에 들어 있는 모래가 더 무겁습니까?

Answer: bucket

Solution (Python):
var_a = 'box'
var_b = 'bucket'
list_a= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 1
var_d = 1000
var_e = var_c * var_d
var_f = 780
var_g = var_e + var_f
var_h = 250
var_i = var_g - var_h
var_j = 2
var_k = 1000
var_l = var_j * var_k
var_m = 250
var_n = var_l + var_m
var_o = 460
var_p = var_n - var_o
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
list_b.reverse()
var_q = 1
list_c=list_b.copy()
list_c.sort()
var_r = list_c[-var_q]
var_s = list_b.index(var_r)+1
var_t = list_a[var_s-1]
print(var_t)
Category: Geometry

Question (EN): There are five cuboids each with a height of 4 centimeters (cm), 7 centimeters (cm), 6 centimeters (cm), 9 centimeters (cm), and 2 centimeters (cm), and with a base area of 10 square centimeters (cm2). How many of these cuboids have a volume of 50 cubic centimeters (cm3) or less?
Question (KO): 밑면의 넓이가 10제곱센티미터(㎠)이고, 높이가 각각 4센티미터(㎝), 7센티미터(㎝), 6센티미터(㎝), 9센티미터(㎝), 2센티미터(㎝)인 직육면체가 5개 있습니다. 이 중 부피가 50세제곱센티미터(㎤) 이하인 도형은 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 4
var_b = 7
var_c = 6
var_d = 9
var_e = 2
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 = 50
var_g = 10
var_h = var_f / var_g
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: Correspondence

Question (EN): 4 is the result of mistakenly subtracted 23 from a number when you should have multiplied by 23. Find the value when you calculate correctly?
Question (KO): 4는 23에 어떤 수를 곱해야하는데 실수로 빼서 나온 결과입니다. 바르게 계산하면 얼마가 됩니까?

Answer: 621

Solution (Python):
var_a = 23
var_b = 23
var_c = 4
var_d = var_b + var_c
var_e = var_a * var_d
print(int(var_e))
Category: Correspondence

Question (EN): When 82.04 is divided by a certain number, it is divisible and the quotient was 28. What number is that certain number?
Question (KO): 82.04를 어떤 수로 나누었더니 몫이 28로 나누어 떨어졌습니다. 어떤 수는 얼마입니까?

Answer: 2.93

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

Question (EN): There are 10 tangerines in the basket. Minyoung put 6 more tangerines in the basket. Find the number of tangerines.
Question (KO): 바구니에 귤이 10개 있습니다. 민영이가 바구니에 귤 6개를 더 넣었습니다. 바구니 안에 있는 귤은 모두 몇 개입니까?

Answer: 16

Solution (Python):
var_a = 10
var_b = 6
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Taewon tries to solve 220 problems in the workbook for a week. How many problems does Taewon have to solve in a day?
Question (KO): 태원이는 일주일동안 문제집에 있는 문제를 220문제 풀려고 합니다. 태원이가 하루에 풀어야하는 문제는 적어도 몇 문제인가요?

Answer: 32

Solution (Python):
var_a = 220
var_b = 7
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))