philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): When a number is divided by 30, it leaves a remainder of 14, when divided by 50, it leaves a remainder of 24, and when divided by 70, it leaves a remainder of 34. Find the smallest number that satisfies this condition.
Question (KO): 어떤 수를 30으로 나누면 14가 남고 50으로 나누면 24가 남고 70으로 나누면 34가 남는다고 한다. 이 조건을 만족하는 수들 중 가장 작은 수를 구하시오.

Answer: 524

Solution (Python):
var_a = 0
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 30
var_e = 14
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)
var_f = 50
var_g = 24
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_b:
    i = int(i)
    if i%var_f == var_g:
        list_c.append(i)
var_h = 70
var_i = 34
list_d = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_c:
    i = int(i)
    if i%var_h == var_i:
        list_d.append(i)
var_j = 1
list_e=list_d.copy()
list_e.sort()
var_k = list_e[var_j-1]
print(int(var_k))
Category: Possibility

Question (EN): Dongbin uses 6, 2, and 5 to make a three-digit number. What is the difference between the largest number and the smallest number Dongbin can make?
Question (KO): 동빈이는 6, 2, 5를 하나씩 모두 사용하여 세 자리 수를 만들고 있습니다. 동빈이가 만들 수 있는 수 중 가장 큰 수와 가장 작은 수의 차이는 얼마입니까?

Answer: 396

Solution (Python):
var_a = 6
var_b = 2
var_c = 5
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 = 1
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: Arithmetic calculation

Question (EN): Jimin got 87 points in Korean and 98 points in math. How many English points should Jimin get in order to get an average point of 95 on the Korean, Math, and English tests?
Question (KO): 지민이는 국어 87점, 수학 98점을 받았습니다. 지민이가 국어, 수학, 영어 시험 평균 점수로 95점을 얻으려면 영어를 몇 점 받아야 합니까?

Answer: 100

Solution (Python):
var_a = 95
var_b = 3
var_c = var_a * var_b
var_d = 98
var_e = var_c - var_d
var_f = 87
var_g = var_e - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There were 15 pigeons. After a while, a few more pigeons flew in, bringing the total to 21. How many pigeons flew by?
Question (KO): 비둘기가 15마리 있었습니다. 잠시 후 비둘기가 몇 마리 더 날아와 모두 21마리가 되었습니다. 날아온 비둘기는 몇 마리입니까?

Answer: 6

Solution (Python):
var_a = 21
var_b = 15
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): You are going to create a two-digit number using the numbers 3 and 5 only once. How many two-digit numbers can you make?
Question (KO): 숫자 3, 5를 한 번씩만 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 두 자리 수는 모두 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 3
var_b = 5
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
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, 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: Comparison

Question (EN): A rabbit and a tortoise are racing. During the same time, the rabbit ran 1/100 of 10.2 kilometers (km), and the tortoise ran 100 meters (m). Who ran more, the rabbit or the tortoise?
Question (KO): 토끼와 거북이가 경주를 합니다. 같은 시간 동안 토끼는 10.2킬로미터(㎞)의 1/100배를 달렸고, 거북이는 100미터(m)를 달렸습니다. 토끼와 거북이 중 누가 더 많이 달렸습니까?

Answer: rabbit

Solution (Python):
var_a = 'rabbit'
var_b = 'tortoise'
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 = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 0.01
var_g = var_e * var_f
var_h = 100
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)
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 the number of odd numbers from 1 to 9.
Question (KO): 1부터 9까지의 수 중 홀수는 몇 개인지 구하시오.

Answer: 5

Solution (Python):
var_a = 1
var_b = 9
list_a = []
if var_a%2==0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = len(list_a)
print(int(var_c))
Category: Possibility

Question (EN): How many ways can you wear 3 different shirts and 4 pants in combination?
Question (KO): 서로 다른 셔츠 3벌과 바지 4벌을 조합하여 입는 방법은 몇 가지 입니까?

Answer: 12

Solution (Python):
var_a = 3
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You surveyed regarding the number of elementary school students in one area of Seoul, and found out that there are 786 students at (A) school, 777 for (B) school, 762 for (C) school, 819 for (D) school, and 493 for (E) school. How many schools have an even number of students?
Question (KO): 서울시 한 지역의 초등학교 학생 수를 조사하였더니, (가) 초등학교 786명, (나) 초등학교 777명, (다) 초등학교 762명, (라) 초등학교 819명, (마) 초등학교 493명이었습니다. 학생 수가 짝수인 학교는 몇 곳입니까?

Answer: 2

Solution (Python):
var_a = 786
var_b = 777
var_c = 762
var_d = 819
var_e = 493
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 = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Hoseok ate 8 apples, 5 pears, 12 tangerines, 17 lemons, and 10 watermelons. Find the number of lemons eaten minus the number of pears eaten.
Question (KO): 호석이가 사과를 8개, 배를 5개, 귤을 12개, 레몬을 17개, 수박을 10개 먹었다. 레몬을 먹은 개수에서 배를 먹은 개수를 뺀 값을 구하여라.

Answer: 12

Solution (Python):
var_a = 17
var_b = 5
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are five numbers 10, 11, 12, 13, and 14. What is the largest number divided by the smallest number?
Question (KO): 5개의 수 10, 11, 12, 13, 14가 있습니다. 그 중에서 가장 큰 수를 가장 작은 수로 나눈 값은 얼마입니까?

Answer: 1.4

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
var_d = 13
var_e = 14
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g / var_i
print('{:.2f}'.format(round(var_j+1e-10,2)))
Category: Arithmetic calculation

Question (EN): You will need 4 meters (m) of wire to draw one circle. If Taemin's wire is 105.8 meters (m) long, how many circles can he draw?
Question (KO): 동그라미를 한 개 그리려면 철사 4미터(m)가 필요합니다. 태민이가 가진 철사의 길이가 105.8미터(m)라면 동그라미를 몇 개 그릴 수 있습니까?

Answer: 26

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

Question (EN): If A85-2B=364, what number should go in B?
Question (KO): A85-2B=364일 때, B에 들어가야 하는 숫자는 무엇인가요?

Answer: 1

Solution (Python):
var_a = 'A85-2B=364'
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): You had to multiply 2 by a number but mistakenly multiplied 5 by the number instead to get 40. Find the correctly calculated value.
Question (KO): 2에 어떤 수를 곱해야 할 것을 잘못하여 5에 어떤 수를 곱했더니 40이 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 16

Solution (Python):
var_a = 40
var_b = 5
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): You have a rectangle with a perimeter of 54 centimeters (cm). If the vertical length is 3 centimeters (cm) shorter than the horizontal length, what is the horizontal length?
Question (KO): 둘레가 54 센티미터(㎝)인 직사각형이 있다. 세로의 길이가 가로의 길이보다 3 센티미터(㎝) 더 짧을 때, 가로의 길이는 무엇인가?

Answer: 15

Solution (Python):
var_a = 54
var_b = 2
var_c = var_a / var_b
var_d = 3
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 3
var_i = var_g + var_h
print(int(var_i))
Category: Geometry

Question (EN): Given a hexahedron, find the number of its faces.
Question (KO): 육면체가 있을 때, 면의 수를 구하시오.

Answer: 6

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

Question (EN): Three points are not in a straight line. How many rays are there for these three points?
Question (KO): 어느 세 점은 한 직선 위에 있지 않습니다. 이 세 점에 대하여 반직선의 개수는?

Answer: 6

Solution (Python):
var_a = 3
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)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There is a centipede that travels 5 meters (m) in 3 minutes and an earthworm that travels 5 meters (m) in 2 minutes at a constant speed. If this centipede started 20 meters (m) ahead of the worm in the same direction at the same time, find out what time in minutes the centipede and the worm meet.
Question (KO): 일정한 빠르기로 3분에 5미터(m)를 가는 지네와 2분에 5미터(m)를 가는 지렁이가 있습니다. 이 지네가 지렁이보다 20미터(m) 앞에서 동시에 같은 방향으로 출발했다면 몇 분 후에 지네와 지렁이가 만나는지 구해 보시오.

Answer: 24

Solution (Python):
var_a = 20
var_b = 5
var_c = 2
var_d = var_b / var_c
var_e = 5
var_f = 3
var_g = var_e / var_f
var_h = var_d - var_g
var_i = var_a / var_h
print(int(eval('{:.2f}'.format(round(var_i+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): There are 43, 92, 71, and 64. What is the largest number minus the smallest number?
Question (KO): 43, 92, 71, 64 중에서 가장 큰 수 빼기 가장 작은 수를 하면 얼마가 됩니까?

Answer: 49

Solution (Python):
var_a = 43
var_b = 92
var_c = 71
var_d = 64
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: Possibility

Question (EN): There are 5 number cards, one each with a number from 1 to 5 written on it. What is the number of all cases that can come out when taking out three of these and calculating the sum of each number?
Question (KO): 1부터 5까지의 숫자가 각각 한 개씩 적힌 숫자 카드가 5장 있다. 이 중에서 3장을 꺼내 그 숫자의 합을 구할 때, 나올 수 있는 모든 경우의 수는 얼마인가.

Answer: 60

Solution (Python):
var_a = 1
var_b = 5
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 = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): Divide 13 by A, and you get 4 as the quotient and B as the remainder. Both A, B are natural numbers. Find the smallest possible value of B.
Question (KO): 13을 A로 나누면 몫이 4가 되고, 나머지는 B가 됩니다. A와 B는 모두 자연수입니다. 가능한 B 중 가장 작은 수의 값을 구하시오.

Answer: 1

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

Question (EN): 21 liters (L) of ethanol was added to the flask for 6 minutes. The flask took 22 minutes and 30 seconds to be filled, with 0.3 liters (L) of ethanol draining out per minute. Find how many liters (L) the volume of the first flask was.
Question (KO): 6분 동안 21리터(L)의 에탄올을 플라스크에 넣었다. 플라스크에는 1분 동안 0.3리터(L)의 에탄올이 빠져나가며 가득 채우는데 22분 30초가 걸렸다. 처음 플라스크에 있던 들이는 몇 리터(L)인지 구하여라

Answer: 72

Solution (Python):
var_a = 21
var_b = 6
var_c = var_a / var_b
var_d = 0.3
var_e = var_c - var_d
var_f = 22
var_g = 30
var_h = 60
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e * var_j
print(int(var_k))
Category: Correspondence

Question (EN): Chowon used 1/5 of the entire tape yesterday while packing the box for two days, and used 3/4 of the remaining tape today. If the length of the remaining tape is 1 meter (m) and 50 centimeters (cm), how long is the length of the tape that Chowon originally had in meters (m)?
Question (KO): 초원이는 이틀간 박스를 포장하면서 어제 전체 테이프에 1/5를 사용하였고, 오늘 나머지의 3/4을 사용하였습니다. 남은 테이프의 길이가 1미터(m) 50센티미터(㎝)라면, 초원이가 처음 가지고 있던 테이프의 길이는 몇 미터(m)입니까?

Answer: 7.5

Solution (Python):
var_a = 1
var_b = 50
var_c = 100
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1
var_g = 0.75
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 1
var_k = 0.2
var_l = var_j - var_k
var_m = var_i / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Arithmetic calculation

Question (EN): When it comes to mountain climbing, there are two routes. One is a shorter route, and the other one is 2 kilometers (km) longer than the short one. When you went up, you walked at 3 kilometers (km) per hour on a short path, and a long path at 4 kilometers (km) per hour on the way down. If it took 4 hours in total, how many kilometers (km) did you walk?
Question (KO): 등산을 할 때는 두 가지의 길이 있다. 하나는 짧은 길이고 하나는 2킬로미터(㎞) 더 긴 길이다. 올라갈 때는 짧은 길로 시속 3킬로미터(㎞)로 걸었고, 내려올 때는 긴 길로 시속 4킬로미터(㎞)로 내려왔다. 등산은 총 4시간이 걸렸다. 걸어간 거리는 총 몇 킬로미터(㎞)인가?

Answer: 14

Solution (Python):
var_a = 4
var_b = 2
var_c = 4
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 = 1
var_j = 4
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_e / var_l
var_n = 2
var_o = var_m * var_n
var_p = 2
var_q = var_o + var_p
print(int(eval('{:.2f}'.format(round(var_q+1e-10,2)))))
Category: Arithmetic calculation

Question (EN): Of the 30 students in the class, 4 have math scores of 90, 85, 88, and 80, respectively, and the average math score of the other 26 is 82. What is the average score in math for the whole class? Answer including decimal points.
Question (KO): 반 학생 수 30명 중 4명의 수학 점수가 각각 90점, 85점, 88점, 80점이고 나머지 26명의 수학 평균 점수는 82점입니다. 반 전체의 수학 평균 점수는 몇 점인지 소수점을 포함하여 답을 구하시오.

Answer: 82.5

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

Question (EN): Yulgi spent 300 won more than 2/5 of the money he had yesterday, and 200 won less than 1/2 of the rest today. If the remaining money is 800 won, how much money did Yulgi have yesterday?
Question (KO): 율기는 어제 가지고 있던 돈의 2/5보다 300원 더 많이 사용하였고, 오늘 나머지 돈의 1/2보다 200원 적게 사용하였습니다. 남은 돈이 800원이라면, 율기가 어제 가지고 있던 돈은 얼마입니까?

Answer: 2500

Solution (Python):
var_a = 800
var_b = 200
var_c = var_a - var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 300
var_i = var_g + var_h
var_j = 1
var_k = 0.4
var_l = var_j - var_k
var_m = var_i / var_l
print(int(var_m))
Category: Possibility

Question (EN): You want to form a three-digit number by picking three out of 1, 0, 5, 8, and 6 and using them only once. Find the difference between the largest number and the fourth smallest number that can be made.
Question (KO): 1, 0, 5, 8, 6 중에서 3개를 뽑아 한 번씩만 사용하여 세 자리 수를 만들려고 합니다. 만들 수 있는 가장 큰 수와 네 번째로 작은 수의 차를 구하시오.

Answer: 715

Solution (Python):
var_a = 1
var_b = 0
var_c = 5
var_d = 8
var_e = 6
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 = 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]
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 4
list_d=list_b.copy()
list_d.sort()
var_j = list_d[var_i-1]
var_k = var_h - var_j
var_l = abs(var_k)
print(int(var_l))
Category: Possibility

Question (EN): Using 1, 7, 4, and 3 only once, find the difference between the largest three-digit number whose tens digit is 3 and the third largest three-digit number.
Question (KO): 1, 7, 4, 3을 한 번씩 사용하여 십의 자리 숫자가 3인 가장 큰 세 자리 수와 세 번째 큰 세 자리 수의 차를 구하시오.

Answer: 297

Solution (Python):
var_a = 1
var_b = 7
var_c = 4
var_d = 3
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 = 10
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 = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
var_j = 3
list_e=list_c.copy()
list_e.sort()
var_k = list_e[-var_j]
var_l = var_i - var_k
var_m = abs(var_l)
print(int(var_m))
Category: Arithmetic calculation

Question (EN): Five people are sitting at a round table. If 5 people shake hands with people who are not next to each other, how many handshakes will they make?
Question (KO): 5명이 원형 식탁에 앉아있다. 5명이 양 옆으로 인접하지 않은 사람들과 악수를 한다면 몇 번의 악수를 하게 되겠는가?

Answer: 5

Solution (Python):
var_a = 5
var_b = 5
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): Minyoung bought 9 apples, 3 pears, and 5 persimmons, and Yoojeong bought 2 more fruits than Minyoung. If Yoojeong bought 7 apples and bought 2 fewer pears than persimmons, how many pears did Yoojeong buy?
Question (KO): 민영이는 사과 9개, 배 3개, 감 5개를 샀고, 유정이는 민영이보다 과일을 2개 더 많이 샀습니다. 유정이가 사과를 7개 사고 배는 감보다 2개 더 적게 샀을 때, 유정이가 산 배는 몇 개인지 구하시오.

Answer: 7

Solution (Python):
var_a = 9
var_b = 3
var_c = var_a + var_b
var_d = 5
var_e = var_c + var_d
var_f = 2
var_g = var_e + var_f
var_h = 7
var_i = var_g - var_h
var_j = 2
var_k = var_i / var_j
var_l = 1
var_m = var_k + var_l
print(int(var_m))
Category: Geometry

Question (EN): Toss 2 coins high into the sky. How many numbers of cases are there for both coins to land on heads?
Question (KO): 동전 2개를 하늘 높이 던집니다. 땅에 떨어졌을 때, 두 동전 모두 앞면이 위를 향하는 경우는 몇 가지입니까?

Answer: 1

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

Question (EN): A square is made by arranging 12 marbles of the same size without gaps in both the width and length. How many marbles are placed around the perimeter?
Question (KO): 크기가 같은 구슬을 가로와 세로 모두 12개씩 빈틈없이 늘어놓아 정사각형을 만들었습니다. 둘레에 놓인 구슬의 개수는 몇 개입니까?

Answer: 44

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

Question (EN): You have used a piece of wire to make a cube whose side is 10 centimetres (cm) long. If you use the same wire to make a cube that is 8 cm long and 5 cm wide, what is its height in centimetres (cm)?
Question (KO): 철사를 가지고 한 모서리의 길이가 10센티미터(㎝)인 정육면체를 만들었습니다. 이 철사를 모두 사용하여 가로가 8센티미터(㎝), 세로가 5센티미터(㎝)인 직육면체를 만들려고 할 때, 높이는 몇 센티미터(㎝)입니까?

Answer: 17

Solution (Python):
var_a = 10
var_b = 12
var_c = var_a * var_b
var_d = 8
var_e = 4
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 5
var_i = 4
var_j = var_h * var_i
var_k = var_g - var_j
var_l = 4
var_m = var_k / var_l
print(int(var_m))
Category: Comparison

Question (EN): Bank, school, stationery store, convenience store, and park is in the order of distance that is closest. Which building is the second closest?
Question (KO): 은행, 학교, 문구점, 편의점, 공원 순으로 거리가 가깝습니다. 2번째로 거리가 가까운 건물은 무엇인가요?

Answer: school

Solution (Python):
var_a = 'Bank'
var_b = 'school'
var_c = 'stationery'
var_d = 'convenience'
var_e = 'park'
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
var_g = list_a[var_f-1]
print(var_g)