philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): A large square was made by attaching several squares with a side length of 6 centimeters (cm). Find how much the square's area has increased if the length and width of the large square are three times their original length.
Question (KO): 한 변의 길이가 6센티미터(㎝)인 정사각형을 몇 개 이어 붙여서 큰 정사각형을 만들었다. 큰 정사각형의 가로와 세로의 길이가 원래 길이의 3배가 되었다면, 정사각형의 넓이는 얼마나 늘어났는지 구하시오.

Answer: 288

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

Question (EN): I bought 7 boxes of cucumbers, 16 in each box. Thirteen of them were rotten and thrown away, and the remaining cucumbers are going to be divided equally into 8 bags. How many pieces should you put in one bag?
Question (KO): 한 상자에 16개씩 들어있는 오이를 7상자 샀습니다. 그중에서 13개는 썩어서 버리고, 남은 오이를 8봉지에 똑같이 나누어 담으려고 합니다. 한 봉지에 몇 개씩 나누어 담게 됩니까?

Answer: 12

Solution (Python):
var_a = 16
var_b = 7
var_c = var_a * var_b
var_d = 13
var_e = var_c - var_d
var_f = 8
var_g = var_e // var_f
print(int(var_g))
Category: Correspondence

Question (EN): When 15 is multiplied by a number, it is 45. What number is 1 subtracted from the number?
Question (KO): 15를 어떤 수에 곱했더니 45가 되었습니다. 어떤 수에서 1을 빼면 얼마일까요?

Answer: 2

Solution (Python):
var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): If you divide a cuboid into 3 equal parts, you get three cubes with each edge measuring 6 centimeters (cm). Find the volume of the original cuboid in cubic centimeters (cm3).
Question (KO): 어떤 직육면체를 3등분했더니 한 모서리의 길이가 6세제곱센티미터(㎤)인 정육면체 3개가 되었습니다. 원래 직육면체의 부피는 몇 세제곱센티미터(㎤)인지 구하시오.

Answer: 648

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

Question (EN): Subtracting a number from 8.9 gives 3.1. Multiply a number by 3.1 and then multiply it by 2.5 to find the value.
Question (KO): 8.9에서 어떤 수를 빼었더니 3.1이 되었습니다. 어떤 수에 3.1을 곱하고 다시 2.5를 곱한 값을 구하시오.

Answer: 44.95

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

Question (EN): You are trying to put as many square tiles as possible on a blank wall in the shape of a rectangle with 262 centimeters (cm) long and 185 centimeters (cm) wide. Find the amount of tiles you need.
Question (KO): 가로가 262센티미터(㎝)이고 세로가 185센티미터(㎝)인 직사각형 모양의 빈 벽에 한 변이 18센티미터(㎝)인 정사각형 모양의 타일을 될 수 있는 대로 많이 붙이려고 합니다. 몇 장의 타일이 필요한지 구하시오.

Answer: 140

Solution (Python):
var_a = 262
var_b = 18
var_c = var_a // var_b
var_d = 185
var_e = 18
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are a total of 100 roses, lilies and tulips. There are 22 more roses than lilies and 20 fewer roses than tulips. How many roses are there?
Question (KO): 장미, 백합, 튤립이 모두 합해서 100송이 있습니다. 장미는 백합보다 22송이 많고, 장미는 튤립보다 20송이 적습니다. 장미는 몇 송이 있습니까?

Answer: 34

Solution (Python):
var_a = 100
var_b = 22
var_c = var_a + var_b
var_d = 20
var_e = var_c - var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))
Category: Possibility

Question (EN): We are going to divide 32 walnuts equally into the basket without any remainder. How many different ways can there be in a basket? (However, not all 32 walnuts are placed in one basket.)
Question (KO): 호두 32개를 바구니에 남김없이 똑같이 나누어 담으려고 합니다. 바구니에 나누어 담을 수 있는 방법은 모두 몇 가지일까요? (단, 호두 32개를 바구니 한 개에 모두 담지 않습니다.)

Answer: 5

Solution (Python):
var_a = 32
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 1
list_b= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_b.append(var_b)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Possibility

Question (EN): When a number is divided by 5 and 6, there is no remainder, but when it is divided by 7, 6 remains. Find the largest two-digit number that satisfies the condition.
Question (KO): 어떤 수를 5와 6으로 나누면 나누어떨어지고 7로 나누면 나머지가 6이라고 합니다. 어떤 수 중에서 가장 큰 두 자리 수를 구하시오.

Answer: 90

Solution (Python):
var_a = 10
var_b = 99
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
var_e = 6
var_f = var_e * var_d / math.gcd(int(var_e), int(var_d))
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = 7
var_h = 6
list_c = [] 
var_g = int(var_g)
var_h = int(var_h)
if var_h < 0:
    var_h = var_h + var_g
for i in list_b:
    i = int(i)
    if i%var_g == var_h:
        list_c.append(i)
var_i = 1
list_d=list_c.copy()
list_d.sort()
var_j = list_d[-var_i]
print(int(var_j))
Category: Comparison

Question (EN): When comparing the number of coins that A, B, C, and D have, A has 21 coins, which is 9 more than B, and C has 17 more coins than B. If the sum of the coins of A and B is 5 less than the sum of the coins of C and D, how many coins does D have?
Question (KO): A, B, C, D가 가진 동전의 개수를 비교했을 때, A는 B보다 9개가 더 많은 21개를 가지고 있었고, C는 B보다 17개 더 많이 가지고 있었습니다. A와 B의 동전 개수의 합이 C와 D동전 개수의 합보다 5개 적을 때, D가 가진 동전은 몇 개입니까?

Answer: 9

Solution (Python):
var_a = 21
var_b = 21
var_c = 9
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 21
var_g = 9
var_h = var_f - var_g
var_i = 17
var_j = var_h + var_i
var_k = var_e - var_j
var_l = 5
var_m = var_k + var_l
print(int(var_m))
Category: Comparison

Question (EN): Eunji was the 100th to get on the train, and Yuna got on the train before 11 people got on the train before Eunji. In what number did Yuna get on the train?
Question (KO): 은지는 기차에 100번째로 탔고, 유나는 은지보다 11명 앞에서 먼저 기차에 탔습니다. 유나는 몇 번째로 기차에 탔습니까?

Answer: 88

Solution (Python):
var_a = 100
var_b = 11
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 distance between the school and Hyosung's house is 2.5 kilometers (km). Hyoseong and Mimi started at the same time from home and school, respectively, and walked toward each other at a certain speed. If Hyosung walks at 0.08 kilometers (km) per minute and Mimi walks at 2.4 kilometers (km) per hour, how many kilometers (km) is the distance between the two people after 15 minutes?
Question (KO): 학교와 효성이네 집 사이의 거리는 2.5 킬로미터(㎞) 입니다. 효성이와 미미는 각각 집과 학교에서 동시에 출발하여 일정한 빠르기로 서로를 향해 걸어갔습니다. 효성이는 1 분에 0.08 킬로미터(㎞) 를 걷고 미미는 한 시간에 2.4 킬로미터(㎞) 를 걷는다면, 15 분 후 두 사람 사이의 거리는 몇 킬로미터(㎞) 일까요?

Answer: 0.7

Solution (Python):
var_a = 2.5
var_b = 0.08
var_c = 15
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 2.4
var_g = 60
var_h = var_f / var_g
var_i = 15
var_j = var_h * var_i
var_k = var_e - var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Possibility

Question (EN): Find the number of two-digit natural numbers that can be formed by drawing two of the number cards 0, 2, 4, 5, 8.
Question (KO): 숫자 카드 0, 2, 4, 5, 8 중 2장을 뽑아 만들 수 있는 두 자리 자연수의 개수를 구하시오.

Answer: 16

Solution (Python):
var_a = 0
var_b = 2
var_c = 4
var_d = 5
var_e = 8
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 = 2
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 = len(list_b)
print(int(var_g))
Category: Correspondence

Question (EN): Yuna wants to divide 42 by some number. If the result of accidentally multiplying 8 by some number is 56, find the correct result.
Question (KO): 유나는 42에 어떤 수를 나누려고 합니다. 실수로 8에 어떤 수를 곱했을 때의 결과가 56이라면 바르게 계산한 결과를 구하세요.

Answer: 6

Solution (Python):
var_a = 42
var_b = 56
var_c = 8
var_d = var_b / var_c
var_e = var_a / var_d
print(int(var_e))
Category: Correspondence

Question (EN): 12.4A<12.45. How many digits from 0 to 9 can be used for A?
Question (KO): 12.4A<12.45입니다. 0부터 9까지의 숫자 중에서 A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '12.4A<12.45'
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] = []
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].append(int(c[i]))
list_a = list(set(ans_dict[var_b]))
var_c = len(list_a)
print(int(var_c))
Category: Possibility

Question (EN): You want to use 1, 3, 6, and 7 to make a three-digit number. If each number can only be used once, in how many ways can you make it?
Question (KO): 세 자리 수를 만들기 위해 1, 3, 6, 7를 사용하려 합니다. 각 수는 한 번씩만 사용 가능하다면 만들 수 있는 경우는 총 몇 가지인가요?

Answer: 24

Solution (Python):
var_a = 1
var_b = 3
var_c = 6
var_d = 7
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 = [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 = len(list_b)
print(int(var_f))
Category: Geometry

Question (EN): The sum of the lengths of the four sides of a rhombus is 32. What is the length of one side?
Question (KO): 마름모의 네 변의 길이의 합이 32입니다. 한변의 길이는 얼마입니까?

Answer: 8

Solution (Python):
var_a = 32
var_b = 4
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): If you round down A76 from the hundred place, it becomes 700. Find the value of A.
Question (KO): A76을 백의 자리에서 버림하면 700이 됩니다. A를 구하시오.

Answer: 7

Solution (Python):
var_a = 'A76'
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 = 700
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 700
var_d = 100
var_e = var_c + var_d
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = 'A76'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
print(int(var_h))
Category: Geometry

Question (EN): You want to count the number of edges of a cube. How many edges are there in total?
Question (KO): 정육면체의 모서리 수를 세려고 합니다. 모서리는 총 몇 개 인가요?

Answer: 12

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

Question (EN): Calculate the sum of all numbers from 1 to 100 that have a remainder of 1 when divided by 3.
Question (KO): 1부터 100까지의 수 중 3으로 나눈 나머지가 1인 값들의 합을 구하시오.

Answer: 1717

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
var_e = 1
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
    var_e = var_e + var_d
for i in list_a:
    i = int(i)
    if i%var_d == var_e:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): How many three digit numbers are there that are less than 403 and greater than 285?
Question (KO): 403보다 작고 285보다 큰 세 자리 수는 모두 몇 개입니까?

Answer: 117

Solution (Python):
var_a = 285
var_b = 1
var_c = var_a + var_b
var_d = 403
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: Arithmetic calculation

Question (EN): There are 135.1 liters (L) of water. If this is divided into 7 liters (L) buckets of water, how many milliliters (ml) are left after the buckets are full?
Question (KO): 물 135.1리터(L)가 있습니다. 이것을 7리터(L)들이 물통으로 나누어 담는다면 물통들을 가득 채우고 남는 양은 몇 밀리리터(㎖)입니까?

Answer: 2100

Solution (Python):
var_a = 135.1
var_b = 7
var_c = var_a % var_b
var_d = 1000
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Geometry

Question (EN): Find the number of faces in the tetrahedron.
Question (KO): 정육면체 모양의 선물 상자의 면에서의 변의 개수는?

Answer: 4

Solution (Python):
var_a = 4
print(int(var_a))
Category: Arithmetic calculation

Question (EN): Minyoung and Hoseok each had 150 pieces of colored paper. If Minyoung bought 32 more pieces of colored paper and Hoseok bought 49 more, how many more pieces of colored paper does Hoseok have than Minyoung?
Question (KO): 민영이와 호석이는 색종이를 각각 150장씩 가지고 있었습니다. 민영이는 색종이를 32장 더 사고, 호석이는 49장 더 샀다면, 호석이가 가진 색종이는 민영이보다 몇 장 더 많습니까?

Answer: 17

Solution (Python):
var_a = 150
var_b = 49
var_c = var_a + var_b
var_d = 150
var_e = 32
var_f = var_d + var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): How many kilograms (kg) is equal to the sum of two weights of 0.3 kilograms (kg) and one weight of 0.5 kilograms (kg)?
Question (KO): 0.3킬로그램(㎏)의 추 2개와 0.5킬로그램(㎏)짜리 추 한 개를 합한 것과 무게가 같은 추는 몇 킬로그램(㎏)입니까?

Answer: 1.1

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

Question (EN): Six years ago, when Sunkyung added her and her mother's ages, it was 48. This year, Sunkyung's mother is said to be three times older than Sunkyung. How old is her mother?
Question (KO): 6년 전에 선경이가 자신과 어머니의 나이를 더하니 48이었습니다. 올해 선경이 어머니 나이는 선경이보다 3배라고 합니다. 어머니는 몇 살입니까?

Answer: 45

Solution (Python):
var_a = 48
var_b = 6
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
var_f = 1
var_g = 3
var_h = var_f + var_g
var_i = var_e / var_h
var_j = 3
var_k = var_i * var_j
print(int(var_k))
Category: Possibility

Question (EN): You want to create a two-digit number by drawing two of the four number cards 1, 3, 4, and 7, and using each card only once. How many possible numbers are greater than 36 and less than or equal to 45?
Question (KO): 4 장의 숫자 카드 1, 3, 4, 7 중 2 장을 뽑아 한 번씩만 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에서 36 초과 45 이하인 수는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 1
var_b = 3
var_c = 4
var_d = 7
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 = 36
list_c = []
for i in list_b:
    if i > var_f:
        list_c.append(i)
var_g = 45
list_d = []
for i in list_c:
    if i <= var_g:
        list_d.append(i)
var_h = len(list_d)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Jimin has 2 packs of pencils and 7 individual pencils. Yuna has 1 pack of pencils and 9 individual pencils. How many pencils do Jimin and Yuna have? (However, a pack of pencils means 12 pencils.)
Question (KO): 지민이는 연필 12자루씩 2타와 낱개 7자루를 가지고 있습니다. 유나는 연필 12자루씩 1타와 낱개 9자루를 가지고 있습니다. 지민이와 유나가 가지고 있는 연필은 모두 몇 자루입니까?

Answer: 52

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

Question (EN): There is a 10 liter (L) container filled with water. In this container, you used a full bowl with a capacity of 1 liter (L) and 500 milliliters (㎖) to take the water out three times from the container. And then you took the water out several times using a bowl with a capacity of 1 liter (L) and 250 milliliters (㎖). When 1 liter (L) and 750 milliliters (mL) of water remained in the container, how many times did you use a bowl of 1 liter (L) and 250 milliliters (㎖)?
Question (KO): 10리터(L) 들이의 통에 물이 가득 들어있습니다. 이 통에서 1리터(L) 500밀리리터(㎖) 들이의 그릇으로 물을 가득 담아 3번 덜어내고, 1리터(L) 250밀리리터(㎖) 들이의 그릇으로 물을 가득 담아 몇 번 덜어냈더니 1리터(L) 750밀리리터(㎖)의 물이 남았습니다. 1리터(L) 250밀리리터(㎖) 들이의 그릇으로 몇 번 덜어냈습니까?

Answer: 3

Solution (Python):
var_a = 10
var_b = 1000
var_c = var_a * var_b
var_d = 1
var_e = 1000
var_f = var_d * var_e
var_g = 500
var_h = var_f + var_g
var_i = 3
var_j = var_h * var_i
var_k = var_c - var_j
var_l = 1
var_m = 1000
var_n = var_l * var_m
var_o = 750
var_p = var_n + var_o
var_q = var_k - var_p
var_r = 1
var_s = 1000
var_t = var_r * var_s
var_u = 250
var_v = var_t + var_u
var_w = var_q / var_v
print(int(var_w))
Category: Arithmetic calculation

Question (EN): There are 2 bottles of sugar water with the same amount of sugar. The concentration of one bottle is 5%, the concentration of the other bottle is 8%, and this sugar water is 300 grams (g). What is the difference between the two bottles of water in grams (g)?
Question (KO): 같은 양의 설탕이 들어있는 설탕물이 2병 있습니다. 한 병의 농도는 5%이고, 다른 한 병의 농도는 8%이며 이 설탕물은 300그램(g)입니다. 두 병에 들어있는 물의 양은 몇 그램(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: Correspondence

Question (EN): This equation 57A-2B4=364 is valid. What number should go in A?
Question (KO): 등식 57A-2B4=364이 성립한다고 합니다. A에 들어가야 하는 숫자는 무엇인가요?

Answer: 8

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

Question (EN): There are 9 buses and 17 trucks. How many more trucks are there than buses?
Question (KO): 버스가 9대, 트럭이 17대 있습니다. 트럭은 버스보다 몇 대 더 많습니까?

Answer: 8

Solution (Python):
var_a = 17
var_b = 9
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): A number is twice the sum of the quotient of 36 added by 4 and then divided by 8 and the quotient of 17 multiplied by 2 divided by 12. Find the number.
Question (KO): 어떤 수는 36에 4를 더한 값을 8로 나눈 몫과 17에 2배를 12로 나눈 몫을 더한 값의 2배인 수입니다. 어떤 수를 구하세요.

Answer: 14

Solution (Python):
var_a = 36
var_b = 4
var_c = var_a + var_b
var_d = 8
var_e = var_c // var_d
var_f = 17
var_g = 2
var_h = var_f * var_g
var_i = 12
var_j = var_h // var_i
var_k = var_e + var_j
var_l = 2
var_m = var_k * var_l
print(int(var_m))
Category: Geometry

Question (EN): There is a park in the shape of a square whose side is 40 meters (m). If Taehyung ran one lap along the circumference of this park, how many meters (m) did Taehyung run?
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: Correspondence

Question (EN): I mistakenly subtracted 5 from a number instead of dividing that number by 5, so I got 35 as a result. Find out how much it is if I calculate it correctly.
Question (KO): 어떤 수를 5로 나누어야 할 것을 잘못하여 어떤 수에서 5를 뺐더니 35가 되었습니다. 바르게 계산하면 얼마인지 구해보시오.

Answer: 8

Solution (Python):
var_a = 35
var_b = 5
var_c = var_a + var_b
var_d = 5
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): Ji-hoon poured 152 milliliters (ml) of water from his water bottle into Hyo-joo's water bottle. Nevertheless, when Ji-hoon still has 346 milliliters (ml) more water than Hyo-ju, find out how many milliliters (ml) more water Ji-hoon had before pouring the water.
Question (KO): 지훈이가 자신의 물병에 있는 물을 효주의 물병에 152밀리리터(㎖)만큼 따라 주었다. 그럼에도 여전히 지훈이가 가지고 있는 물의 양이 효주보다 346밀리리터(㎖) 많을 때, 물을 따라주기 전에는 지훈이가 몇 밀리리터(㎖) 더 많은 물을 가지고 있었는지 구하시오.

Answer: 650

Solution (Python):
var_a = 346
var_b = 152
var_c = var_a + var_b
var_d = 152
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

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

Answer: 30

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

Question (EN): The sum of the width and length of a rectangle is half of 28. This rectangle has a width of 6. Find the area of this rectangle.
Question (KO): 어떤 직사각형의 가로와 세로의 합이 28의 절반이었다. 이 직사각형의 가로는 6이다. 이 직사각형의 넓이를 구하시오.

Answer: 48

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