philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): Find the difference between the third largest number and the third smallest number among three-digit numbers, all digits of which are different and consist of 0, 2, 7, and 6.
Question (KO): 세 자리 수 중 모든 자리의 숫자가 다르고, 0, 2, 7, 6으로 이루어져 있는 수들 중 세 번째로 큰 수와 세 번째 작은 수의 차이를 구하시오.

Answer: 466

Solution (Python):
var_a = 0
var_b = 2
var_c = 7
var_d = 6
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 = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 3
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g - var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): Jimin has 5 100-won coins and 1 50-won coin, and Seokjin has 2 100-won coins and 7 10-won coins. Find out the sum of the money they both have.
Question (KO): 지민이는 100원짜리 동전 5개, 50원짜리 동전 1개를 가지고 있고, 석진이는 100원짜리 동전 2개, 10원짜리 동전 7개를 가지고 있습니다. 두 사람이 가지고 있는 돈은 모두 얼마입니까?

Answer: 820

Solution (Python):
var_a = 100
var_b = 5
var_c = var_a * var_b
var_d = 50
var_e = 1
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 100
var_i = 2
var_j = var_h * var_i
var_k = var_g + var_j
var_l = 10
var_m = 7
var_n = var_l * var_m
var_o = var_k + var_n
print(int(var_o))
Category: Arithmetic calculation

Question (EN): There are four numbers 53, 98, 69, and 84. What is the value of the largest number minus the smallest number?
Question (KO): 4개의 수 53, 98, 69, 84가 있습니다. 그 중에서 가장 큰 수와 가장 작은 수의 차는 얼마입니까?

Answer: 45

Solution (Python):
var_a = 53
var_b = 98
var_c = 69
var_d = 84
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): How many flowers are needed to plant flowers from start to finish on both sides of a 100 meter (m) field at 10 meter (m) intervals?
Question (KO): 10미터(m) 간격으로 100미터(m) 운동장 양쪽에 처음부터 끝까지 꽃을 심을 때 몇 개의 꽃이 필요합니까?

Answer: 22

Solution (Python):
var_a = 100
var_b = 10
var_c = var_a / var_b
var_d = 1
var_e = var_c + var_d
var_f = 2
var_g = var_e * var_f
print(int(var_g))
Category: Comparison

Question (EN): In the math test, Jimin ranked 24th, and Seokjin ranked 19 ranks ahead of Jimin. What is Seokjin's rank?
Question (KO): 수학 시험에서 지민이는 24등이고, 석진이는 지민이보다 19명 앞의 등수를 받았습니다. 석진이는 몇 등입니까?

Answer: 5

Solution (Python):
var_a = 24
var_b = 19
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): If 31 is 13 less than a certain number, find a number that is 11 greater than this certain number.
Question (KO): 어떤 수보다 13 작은 수가 31일 때, 어떤 수보다 11 큰 수를 구하시오.

Answer: 55

Solution (Python):
var_a = 31
var_b = 13
var_c = var_a + var_b
var_d = 11
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Return the sum of the largest and smallest numbers among 0.11, 0.98, 3/4, and 2/3.
Question (KO): 0.11, 0.98, 3/4, 2/3 중에서 가장 큰 수와 가장 작은 수의 합을 구합니다.

Answer: 1.09

Solution (Python):
var_a = 0.11
var_b = 0.98
var_c = 3
var_d = 4
var_e = var_c / var_d
var_f = 2
var_g = 3
var_h = var_f / var_g
list_a= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
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_i = 1
list_b=list_a.copy()
list_b.sort()
var_j = list_b[-var_i]
var_k = 1
list_c=list_a.copy()
list_c.sort()
var_l = list_c[var_k-1]
var_m = var_j + var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Correspondence

Question (EN): When we subtract 32 from a number divided by 12, multiply it by 3, and then subtract 45 again, it becomes 159. Find this number. 
Question (KO): 어떤 수를 12로 나눈 뒤 32를 빼고 3을 곱하여 45를 뺀 수가 159입니다. 어떤 수를 구하시오.

Answer: 1200

Solution (Python):
var_a = 159
var_b = 45
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
var_f = 32
var_g = var_e + var_f
var_h = 12
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): What is the area in square centimeters (cm2) of the wall that can be covered by 3.2 square tiles with a side length of 8.5 centimeters (cm)?
Question (KO): 한 변의 길이가 8.5센티미터(㎝)인 정사각형 모양의 타일 3.2장을 빈틈없이 붙여서 덮을 수 있는 벽의 넓이는 몇 제곱센티미터(㎠)입니까?

Answer: 231.2

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

Question (EN): 18 is the result of multiplying a number by 2. What do you get when you subtract 4 from this number?
Question (KO): 18은 어떤 수에 2를 곱한 결과이다. 어떤수를 구한 뒤 거기서 4를 빼면 얼마가 되는가?

Answer: 5

Solution (Python):
var_a = 18
var_b = 2
var_c = var_a / var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Yoongi bought a 250 won candy at the mart and received 500 won as pocket money. After that, he spent half of my money on a pencil, and he had 420 won left. How much money did Yoongi have at first?
Question (KO): 윤기는 마트에서 250원짜리 사탕을 사고 용돈으로 500원을 받았다. 이후 연필을 사는데 가진 돈의 반을 썼더니 420원이 남았다. 윤기가 처음에 가지고 있던 돈은 얼마인지 구하시오

Answer: 590

Solution (Python):
var_a = 420
var_b = 2
var_c = var_a * var_b
var_d = 500
var_e = var_c - var_d
var_f = 250
var_g = var_e + var_f
print(int(var_g))
Category: Correspondence

Question (EN): AB2-41=591. What should B be?
Question (KO): AB2-41=591입니다. B는 얼마인가요?

Answer: 3

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

Question (EN): The number 397 less than B is A, and A is 742. If B equals C plus 693, find the A minus C.
Question (KO): B보다 397만큼 작은 숫자는 A이고 A는 742이다. B가 C에 693을 더한 숫자일 때 A에서 C를 뺀 수를 구하여라.

Answer: 296

Solution (Python):
var_a = 742
var_b = 742
var_c = 397
var_d = var_b + var_c
var_e = 693
var_f = var_d - var_e
var_g = var_a - var_f
print(int(var_g))
Category: Correspondence

Question (EN): When A is divided by 5, the quotient is B and the remainder is C. A, B, and C are natural numbers. If B and C are equal, what is the largest number of possible Cs?
Question (KO): A를 5로 나누면 몫이 B, 나머지는 C가 됩니다. A, B, C는 자연수 입니다. B와 C가 같을 때, 가능한 C 중 가장 큰 수는 무엇인가요?

Answer: 4

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

Question (EN): Find the number between 5 and 9 that is greater than 7.
Question (KO): 7보다 큰 5와 9사이의 수를 구하시오.

Answer: 8

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a + var_b
var_d = 9
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 = 7
list_b = []
for i in list_a:
    if i > var_h:
        list_b.append(i)
var_i = 1
var_j = list_b[var_i-1]
print(int(var_j))
Category: Arithmetic calculation

Question (EN): The distance between Hyosung and Mimi's house is 2.5 kilometers (km). Hyoseong and Mimi promised to meet, started from their respective homes at the same time, and walked toward each other's homes at a certain speed. If Mimi walks 2.4 kilometers (km) an hour and Hyosung walks 0.08 kilometers (km) a minute, what is the distance in kilometers (km) between the two after 15 minutes?
Question (KO): 효성와 미미네 집의 거리는 2.5 킬로미터(㎞) 입니다. 효성이와 미미는 만나기로 약속하고, 각자의 집에서 동시에 출발하여 일정한 빠르기로 서로의 집을 향해 걸어갔습니다. 미미는 한 시간에 2.4 킬로미터(㎞) 를 걷고 효성이는 1 분에 0.08 킬로미터(㎞) 를 걷는다면, 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: Comparison

Question (EN): Jungkook ate 3 out of 6 apples. If Yoongi has 4 apples and Yuna has 5 apples, whose apples are the fewest?
Question (KO): 정국이는 6개의 사과에서 3개를 먹었습니다. 윤기가 가진 사과가 4개, 유나가 가진 사과가 5개라면 누가 가장 적은 사과를 가지고 있나요?

Answer: Jungkook

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

Question (EN): When 6A5+B03=748 is valid, find B.
Question (KO): 6A5+B03=748일 때, B를 구하시오.

Answer: 1

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

Question (EN): The number of 19 groups of 10 and 55 groups of 100 is called A, and 173 plus 224 five times is B. How much is A-B?
Question (KO): 10개씩 묶음이 19개이고 100개씩 묶음이 55개인 수를 A라 하고, 173을 5번 224씩 커지게 센 수를 B라고 합니다. A-B는 얼마입니까?

Answer: 4397

Solution (Python):
var_a = 100
var_b = 55
var_c = var_a * var_b
var_d = 10
var_e = 19
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 173
var_i = 224
var_j = 5
var_k = var_i * var_j
var_l = var_h + var_k
var_m = var_g - var_l
print(int(var_m))
Category: Comparison

Question (EN): Jimin, Jungkook, and Taehyung had a running competition, and as a result, Jimin came in 6th place and Jungkook came in 8th place. Taehyung did better than Jungkook but not when compared with Jimin. What is Taehyung's rank?
Question (KO): 지민, 정국, 태형이가 달리기 시합을 한 결과 지민이는 6등을 했고, 정국이는 8등을 했습니다. 태형이는 정국이보다 잘했지만 지민이보다는 못했습니다. 태형이의 등수는 몇 등입니까?

Answer: 7

Solution (Python):
var_a = 6
var_b = 8
var_c = var_a + var_b
var_d = 2
var_e = var_c // var_d
print(int(var_e))
Category: Correspondence

Question (EN): The 3/10 of a number is 12. Find what 1/5 of that number is.
Question (KO): 어떤 수의 3/10은 12입니다. 어떤 수의 1/5은 얼마인지 구해 보시오.

Answer: 8

Solution (Python):
var_a = 12
var_b = 0.3
var_c = var_a / var_b
var_d = 0.2
var_e = var_c * var_d
print(int(var_e))
Category: Possibility

Question (EN): We want to simultaneously draw three different numbers from natural numbers less than 10. Find the number of ways in which the sum of these three numbers become 19.
Question (KO): 10보다 작은 자연수 중에서 서로 다른 세 수를 동시에 뽑으려고 합니다. 세 수의 합이 19가 되는 경우의 수를 구하시오.

Answer: 30

Solution (Python):
var_a = 1
var_b = 10
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)]
var_f = 3
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]
list_c=[]
for i in list_b:
    var_g = 0
    i = int(i)
    while i//10 > 0:
        var_g = var_g + i%10
        i = i//10
    var_g = var_g + i%10
    list_c.append(var_g)
var_h = 19
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = 19
list_e = []
for i in list_d:
    if i >= var_i:
        list_e.append(i)
var_j = len(list_e)
print(int(var_j))
Category: Correspondence

Question (EN): 282 is 133 greater than this number. What is the value if 11 is subtracted from this number?
Question (KO): 282는 어떤 수보다 133 큰 수이다. 어떤 수에서 11를 뺀다면 값이 어떻게 되는가?

Answer: 138

Solution (Python):
var_a = 282
var_b = 133
var_c = var_a - var_b
var_d = 11
var_e = var_c - var_d
print(int(var_e))
Category: Correspondence

Question (EN): You subtracted a number from 63 and got 8, but then you realized that you were supposed to add 36 to a number. What do you get for the correct answer?
Question (KO): 어떤 수에 36을 더해야 할 것을 잘못하여 63을 뺀 결과는 8이 되었습니다. 바르게 계산한 결과는 얼마인가요?

Answer: 107

Solution (Python):
var_a = 8
var_b = 63
var_c = var_a + var_b
var_d = 36
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): In art class, Miyoung is going to cut a rectangular colored paper measuring 32 centimeters (cm) wide by 74 centimeters (cm) long to make several identical squares without any left over. What is the size of one side of the largest square that Miyoung can make?
Question (KO): 미술시간에 미영이가 가로 32센티미터(㎝), 세로 74센티미터(㎝)인 직사각형 모양의 색종이를 잘라 남는 부분 없이 똑같은 정사각형 모양을 여러 장 만들려고 합니다. 미영이가 만들 수 있는 가장 큰 정사각형의 한 변의 크기는?

Answer: 2

Solution (Python):
var_a = 32
var_b = 74
var_c = math.gcd(int(var_b), int(var_a))
print(int(var_c))
Category: Arithmetic calculation

Question (EN): I'm going to connect 20 tape measurements that are 15.25 centimeters (cm) long. How many centimeters (cm) each should the tape be superimposed to make the total length of the attached tape measure 248 centimeters (cm)?
Question (KO): 길이가 15.25 센티미터(㎝) 인 줄자 20 장을 겹치게 이어 붙이려고 합니다. 이어 붙인 줄자의 전체 길이가 248 센티미터(㎝) 가 되도록 하려면 모두 몇 센티미터(㎝) 씩 겹치게 이어 붙여야 합니까?

Answer: 3

Solution (Python):
var_a = 15.25
var_b = 248
var_c = 15.25
var_d = var_b - var_c
var_e = 20
var_f = 1
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): Hyeonjeong's farm has 100 cows. If the milk produced by Hyeonjeong's farm for 10 days is 2804 liters (L), find the amount of milk produced per day by the cows at Hyeonjeong's farm.
Question (KO): 현정이네 목장에서는 소 100마리가 있다. 현정이네 목장에서 10일 동안 나오는 우유가 2804리터(L)라면 현정이네 목장의 소가 하루에 만드는 우유의 양은 얼마인지 구하시오.

Answer: 280.4

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

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

Answer: 1479

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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Comparison

Question (EN): A bucket was completed with 1100 milliliters (ml) of water, followed by an additional 3 liters (L) and 400 milliliters (ml) of water. While a kettle holds a capacity of 4 liters (L) and 800 milliliters (ml), which one has a large capacity: a bucket or a kettle?
Question (KO): 어느 양동이에 1100밀리리터(㎖)의 물을 채우고 추가로 3리터(L) 400밀리리터(㎖)의 물을 채웠습니다. 들이가 4리터(L) 800밀리리터(㎖) 인 주전자와 비교하여 양동이와 주전자 중에서 어느 것의 들이가 더 많을까요?

Answer: kettle

Solution (Python):
var_a = 'kettle'
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 = 4
var_d = 1000
var_e = var_c * var_d
var_f = 800
var_g = var_e + var_f
var_h = 1100
var_i = 3
var_j = 1000
var_k = var_i * var_j
var_l = 400
var_m = var_k + var_l
var_n = var_h + var_m
list_b= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_b.append(var_g)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r)
Category: Correspondence

Question (EN): Yoongi wants to subtract 57 from a four-digit number. Yoongi misspelled 9 as a 6 in the unit digit of a four-digit number. When the difference obtained by Yoongi is 1819, find a four-digit number.
Question (KO): 윤기는 네 자리수와 57의 뺄셈을 하려 합니다. 윤기는 네 자리수의 일의 자리 숫자 9를 6으로 잘못 보았습니다. 윤기가 구한 차는 1819 일 때, 네 자리수를 구하시오.

Answer: 1879

Solution (Python):
var_a = 1819
var_b = 57
var_c = var_a + var_b
var_d = 6
var_e = 9
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Correspondence

Question (EN): Rounding down 1A69 to the hundreds place gives 1600. Find A.
Question (KO): 1A69를 버림하여 백의 자리까지 나타내면 1600이 됩니다. A를 구하시오.

Answer: 6

Solution (Python):
var_a = '1A69'
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 = 1600
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = 1600
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 = '1A69'
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): The area of a rhombus is 80 square centimeters (cm2), and the length of one diagonal of the rhombus is 16 centimeters (cm).  the length of the other diagonal in centimeters (cm).
Question (KO): 어떤 마름모의 넓이가 80제곱센티미터(㎠)이며, 이 마름모의 한 대각선의 길이가 16 센티미터(㎝)입니다. 다른 대각선의 길이는 몇 센티미터(㎝)일까요?

Answer: 10

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

Question (EN): There are 24 vehicles. The red cars take up a quarter of the total, blue cars outnumber red cars by six, and yellow cars take up the rest. What color of the cars do you have the most?
Question (KO): 24대의 차량이 있습니다. 이 중 빨간색 자동차가 전체의 4분의 1을 차지하고 파란색 자동차가 빨간색 자동차보다 6대 더 많으며 나머지는 노란색 자동차입니다. 어떤 색상의 자동차가 가장 많이 있습니까?

Answer: blue

Solution (Python):
var_a = 'red'
var_b = 'blue'
var_c = 'yellow'
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 = 24
var_e = 4
var_f = var_d / var_e
var_g = 24
var_h = 4
var_i = var_g / var_h
var_j = 6
var_k = var_i + var_j
var_l = 24
var_m = 24
var_n = 4
var_o = var_m / var_n
var_p = 6
var_q = var_o + var_p
var_r = var_l - var_q
var_s = 24
var_t = 4
var_u = var_s / var_t
var_v = var_r - var_u
list_b= []
if "/" in str(var_v):
    var_v = eval(str(var_v))
list_b.append(var_v)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_w = 1
list_c=list_b.copy()
list_c.sort()
var_x = list_c[-var_w]
var_y = list_b.index(var_x)+1
var_z = list_a[var_y-1]
print(var_z)
Category: Arithmetic calculation

Question (EN): There were 45 chickens on the farm. If you bought 18 more chickens on day 1 and 12 more chickens on day 2, how many more chickens increased?
Question (KO): 농장에 닭 45마리가 있었습니다. 1번째 날 닭 18마리를 더 사 오고, 2번째 날 닭 12마리를 더 사 왔다면 닭은 처음보다 몇 마리가 늘어났습니까?

Answer: 30

Solution (Python):
var_a = 18
var_b = 12
var_c = var_a + var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are 3 blue balls and 5 red balls in the box. When 2 red balls are put in, how many red balls are there in the box?
Question (KO): 상자 안에는 파란 공 3개와 빨간 공 5개가 있습니다. 2개의 빨간 공을 넣었을 때, 상자 안의 빨간 공의 개수는?

Answer: 7

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

Question (EN): You are going to cut the ribbon in 0.82 meter (m) to make ribbon loops. Find how many loops can be made with 5.74 meters (m) of ribbon.
Question (KO): 리본 고리를 만들기 위해 리본을 0.82미터(m)씩 자르려고 합니다. 리본 5.74미터(m)로 고리를 몇 개 만들 수 있는지 구하시오.

Answer: 7

Solution (Python):
var_a = 5.74
var_b = 0.82
var_c = var_a // var_b
print(int(var_c))