philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): 16 liters (L) of beverage was equally divided into 6 bottles. How many people can drink the beverage in one bottle if you share it with your friends by 4/15 liters (L)?
Question (KO): 음료수 16리터(L)를 병 6개에 똑같이 나누어 담았습니다. 병 1개에 담긴 음료수를 친구들과 4/15리터(L)씩 나누어 먹는다고 할때 몇 명이 먹을 수 있나요?

Answer: 10

Solution (Python):
var_a = 16
var_b = 6
var_c = var_a / var_b
var_d = 0.26666666666666666
var_e = var_c / var_d
print(int(var_e))
Category: Possibility

Question (EN): We are going to use 2 of our 3 number cards 2, 4, 5 to create a two-digit number. How many numbers can be made that are both divisible by 2 and 3?
Question (KO): 2, 4, 5 총 3장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에 2와 3으로 동시에 나누어 떨어지는 수는 모두 몇 개인가요?

Answer: 3

Solution (Python):
var_a = 2
var_b = 4
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 = 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 = 2
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 3
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
list_e = list(set(list_c) & set(list_d))
var_g = len(list_e)
print(int(var_g))
Category: Comparison

Question (EN): It is 1.6 kilometers (km) from school to Yoongi's house and 2.6 kilometers (km) to Minyoung's house. Whose home is further from school?
Question (KO): 학교에서 윤기네 집까지는 1.6킬로미터(㎞)이고, 민영이네 집까지는 2.6킬로미터(㎞)입니다. 학교에서 집까지의 거리가 더 먼 친구는 누구입니까?

Answer: Minyoung

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

Question (EN): When there is six number cards 0, 1, 3, 5, 7, and 9, write down the smallest six-digit number you can make rounding up to the thousandth place.
Question (KO): 0, 1, 3, 5, 7, 9 여섯 장의 숫자 카드를 한 번씩 사용하여 만들 수 있는 가장 작은 여섯 자리 수를 올림하여 천의 자리까지 나타내어 보시오.

Answer: 104000

Solution (Python):
var_a = 0
var_b = 1
var_c = 3
var_d = 5
var_e = 7
var_f = 9
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_g = 6
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_g))
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_h = 1
list_c=list_b.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = 4
var_k=int(((var_i+9*10**(var_j-2))//(10**(var_j-1)))*10**(var_j-1))

print(int(var_k))
Category: Geometry

Question (EN): Find the area of a triangle with a base of 25 centimeters (cm) and a height of 16 centimeters (cm).
Question (KO): 밑변이 25센티미터(㎝)이고 높이가 16센티미터(㎝)인 삼각형의 넓이를 구하시오.

Answer: 200

Solution (Python):
var_a = 25
var_b = 16
var_c = var_a * var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Which three-digit number is the smallest common multiple of 6, 5, 8, and 9?
Question (KO): 세 자리 수 중 6, 5, 8, 9의 공배수 중 가장 작은 수는 무엇입니까?

Answer: 360

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 6
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 5
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 8
list_d = []
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i % var_f == 0:
        list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
    i = int(i)
    if i % var_g == 0:
        list_e.append(i)
var_h = 1
list_f=list_e.copy()
list_f.sort()
var_i = list_f[var_h-1]
print(int(var_i))
Category: Arithmetic calculation

Question (EN): A car that is 30 meters (m) away from the house travels at 1 meter (m) per hour, and a car 20 meters (m) from the house travels at 0.5 meters (m) per hour. Find the distance to the house from the cars when the two cars meet.
Question (KO): 집까지의 거리가 30미터(m)인 자동차는 시속 1미터(m)로 달리고 집까지의 거리가 20미터(m)인 자동차는 시속 0.5미터(m)로 달립니다. 두 자동차가 만났을 시 집까지의 거리를 구하여라

Answer: 10

Solution (Python):
var_a = 30
var_b = 30
var_c = 20
var_d = var_b - var_c
var_e = 1
var_f = 0.5
var_g = var_e - var_f
var_h = var_d / var_g
var_i = var_a - var_h
print(int(var_i))
Category: Comparison

Question (EN): Taehyung, Minjoo, Sangmin, Yoonjung, and Yoojung crossed the finish line in order. Who came in first?
Question (KO): 결승선에 태형, 민주, 상민, 윤정, 유정이 차례로 들어갔습니다. 1등으로 들어온 사람은 누구입니까?

Answer: Taehyung

Solution (Python):
var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjeong'
var_e = 'Yoojeong'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Comparison

Question (EN): The red car is in the 19th row from the left, 16th row from the right, 14th row from the front and 11th row from the back. If the number of cars in each row is the same, how many cars are there in all?
Question (KO): 빨간색 자동차는 왼쪽에서 19번째 열, 오른쪽에서 16번째 열, 앞에서 14번째 줄, 뒤에서 11번째 줄에 있습니다. 각 줄마다 있는 자동차의 수가 같다고 할 때, 자동차는 모두 몇 대입니까?

Answer: 816

Solution (Python):
var_a = 19
var_b = 16
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 14
var_g = 11
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): I'm trying to find a four-digit number that is divisible by 3 and 4 and has a remainder of 4 when divided by 5. How many four-digit numbers can you make?
Question (KO): 3과 4로 나누어떨어지고 5로 나누면 나머지가 4인 네 자리 수를 찾으려고 합니다. 만들 수 있는 네 자리 수는 모두 몇 개입니까?

Answer: 150

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
var_e = 4
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 = 5
var_h = 4
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 = len(list_c)
print(int(var_i))
Category: Comparison

Question (EN): Minyoung jumped rope 52 times today, and yesterday she skipped 19 times less than today. Yoojung jumped rope 18 times today, and yesterday she skipped 21 times more than today. Who jumped more rope yesterday?
Question (KO): 민영이는 줄넘기를 오늘 52번 했고, 어제는 오늘보다 19번 적게 했습니다. 유정이는 줄넘기를 오늘 18번 했고, 어제는 오늘보다 21번 더 많이 했습니다. 어제 줄넘기를 더 많이 한 사람은 누구입니까?

Answer: Yoojung

Solution (Python):
var_a = 'Minyoung'
var_b = 'Yoojung'
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 = 52
var_d = 19
var_e = var_c - var_d
var_f = 18
var_g = 21
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: Possibility

Question (EN): When making a two-digit natural number by drawing two of the number cards 1, 3, 7, and 8, find the number of natural numbers less than 40.
Question (KO): 숫자 카드 1, 3, 7, 8 중 2장을 뽑아 두 자리 자연수를 만들 때, 40 이하의 자연수의 개수를 구하시오.

Answer: 6

Solution (Python):
var_a = 1
var_b = 3
var_c = 7
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 = 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 = 40
list_c = []
for i in list_b:
    if i <= var_f:
        list_c.append(i)
var_g = len(list_c)
print(int(var_g))
Category: Comparison

Question (EN): A total of 20 students are running a race. 11 students reached the finish line before Yoongi. How many students came later than Yoongi?
Question (KO): 총 20명의 학생들이 달리기 경기를 하고 있습니다. 윤기보다 11명의 학생들이 결승점에 먼저 들어왔습니다. 윤기보다 늦게 들어오는 학생은 몇 명입니까?

Answer: 8

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

Question (EN): We have the expression 632-A9B=41. Find out the number that must go into A.
Question (KO): 식 632-A9B=41이 있습니다. A에 들어가야 하는 숫자를 구하시오

Answer: 5

Solution (Python):
var_a = '632-A9B=41'
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): Some numbers are divisors of 69 minus 5 and are also divisors of 86 minus 6. Find the largest of any possible number.
Question (KO): 어떤 수는 69에서 5를 뺀 값의 약수이면서 또한 86에서 6을 뺀 값의 약수이다. 가능한 어떤 수 중 가장 큰 값을 구하여라.

Answer: 16

Solution (Python):
var_a = 69
var_b = 5
var_c = var_a - var_b
var_d = 86
var_e = 6
var_f = var_d - var_e
var_g = math.gcd(int(var_f), int(var_c))
print(int(var_g))
Category: Geometry

Question (EN): When several disks with a radius of 5 centimeters (cm) were stacked, the height is 3 centimeters (cm) longer than the radius. What is the volume of this cylinder in cubic centimeters (cm3)? However, the ratio of the circumference of a circle to its diameter is calculated as 3.14.
Question (KO): 반지름이 5센티미터(㎝)인 원판을 여러 개 쌓았더니 그 높이가 반지름보다 3센티미터(㎝) 더 길어졌다. 이 원기둥의 부피는 몇 세제곱센티미터(㎤)인가? 단, 원주율은 3.14로 계산한다.

Answer: 628

Solution (Python):
var_a = 5
var_b = 5
var_c = var_a * var_b
var_d = 3.14
var_e = var_c * var_d
var_f = 5
var_g = 3
var_h = var_f + var_g
var_i = var_e * var_h
print(int(var_i))
Category: Geometry

Question (EN): If there is a table in the shape of a regular tetradecagon, whose sum of all edge lengths is 154 centimeters (cm), what is the length of one corner of the table?
Question (KO): 정십사각형의 모양의 테이블이 있다. 모든 모서리 길이의 합은 154센티미터(㎝)이다. 테이블의 한 모서리 길이는 얼마인가?

Answer: 11

Solution (Python):
var_a = 154
var_b = 14
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): The sum of the edges of a prism and pyramid with the same base is 30. Find the number of faces of the prism.
Question (KO): 밑면이 같은 각기둥과 각뿔의 모서리의 합이 30이다. 각기둥의 면의 개수를 구하시오.

Answer: 8

Solution (Python):
var_a = 30
var_b = 2
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: Geometry

Question (EN): I am trying to draw a diagonal from a vertex of an icosikaipentagon. How many diagonal lines can you draw?
Question (KO): 이십오각형의 한 꼭짓점에서 대각선을 그으려고 합니다. 몇 개의 대각선을 그을 수 있을까요?

Answer: 22

Solution (Python):
var_a = 25
var_b = 3
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Sang-yeon spent 1/4 of the money she had on buying books, and saved 2/3 of the remaining money. If Sang-yeon now has 2,500 won, how much money did she initially have?
Question (KO): 상연이는 가지고 있던 돈의 1/4을 책을 사는 데 쓰고, 남은 돈의 2/3는 저금을 하였습니다. 지금 상연이가 2500원을 가지고 있다면 처음에 가지고 있던 돈은 얼마입니까?

Answer: 10000

Solution (Python):
var_a = 2500
var_b = 1
var_c = 0.25
var_d = var_b - var_c
var_e = var_a / var_d
var_f = 1
var_g = 0.6666666666666666
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): I drew the largest rhombus in a circle with a radius of 10 centimeters (cm) and then drew a smaller rhombus by connecting the middle of all four sides of the rhombus. What is the area of the small rhombus in cm2 (cm2)?
Question (KO): 반지름이 10센티미터(㎝)인 원 안에 가장 큰 마름모를 그린 다음, 마름모의 네 변의 한가운데를 모두 이어 작은 마름모를 그렸습니다. 작은 마름모의 넓이는 몇 ㎠입니까?

Answer: 100

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

Question (EN): There are a total of 100 radishes and carrots. If there are 24 more radishes than carrots, how many radishes are there?
Question (KO): 무와 당근이 모두 합해서 100개 있습니다. 무가 당근보다 24개 더 많다면 무는 몇 개 있습니까?

Answer: 62

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

Question (EN): You have 25 40-milliliter (ml) paint cans. If 271 milliliters (ml) of paint is left after pouring it into the cube, how many centimeters (cm) is one edge of the cube?
Question (KO): 40밀리리터(㎖)의 패인트 통 25개가 있다. 정육면체의 안에 페인트를 붓고 271밀리리터(㎖)가 남았다면 정육면체의 한 모서리는 몇 센티미터(㎝) 입니까?

Answer: 9

Solution (Python):
var_a = 40
var_b = 25
var_c = var_a * var_b
var_d = 271
var_e = var_c - var_d
var_f = 0.3333333333333333
var_g = var_e ** var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Correspondence

Question (EN): Su-geun's class is going to do origami in art class. After handing out colored papers to 7 students, each student had 12 pieces and 5 pieces were left over. Meanwhile, Su-geun came in late, so the colored papers should be redistributed to 8 people. Find out how many pieces would be left after equally handing the colored papers out to 8 students.
Question (KO): 수근이네 반 미술시간에 색종이 접기를 하게 되었다. 7명의 학생들에게 색종이를 나눠 주었더니 한 명당 12장씩 나눠가지고 5장이 남게 되었다. 이때 지각한 수근이가 들어와 8명에게 다시 색종이를 나눠 줘야한다. 이때 8명에게 색종이를 동일하게 나눠주고 남은 나머지가 몇 장일지 구하시오.

Answer: 1

Solution (Python):
var_a = 12
var_b = 7
var_c = var_a * var_b
var_d = 5
var_e = var_c + var_d
var_f = 8
var_g = var_e % var_f
print(int(var_g))
Category: Geometry

Question (EN): If the height of a triangle whose area is 46 square centimeters (cm2) is 10 centimeters (cm), how many centimeters (cm) is the base?
Question (KO): 넓이가 46제곱센티미터(㎠)인 삼각형의 높이가 10센티미터(㎝)라면, 밑면은 몇 센티미터(㎝)인지 구하시오.

Answer: 9.2

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

Question (EN): Thirty students are in line to catch the bus. If there are 20 students in front of Yoongi, how many students will get on the bus later than Yoongi?
Question (KO): 버스를 타기 위해 30명의 학생이 줄을 서 있습니다. 윤기 앞에 20명의 학생이 있다면 윤기보다 늦게 버스에 타게 될 학생은 모두 몇 명일까요?

Answer: 9

Solution (Python):
var_a = 30
var_b = 20
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a right triangle. Find the length of the radius of the circumscribed circle when the lengths of the three sides of the triangle are 10 centimeters (cm), 8 centimeters (cm), and 6 centimeters (cm), respectively.
Question (KO): 직각삼각형이 있습니다. 세 변의 길이가 각각 10 센티미터(㎝), 8 센티미터(㎝), 6 센티미터(㎝)일 때, 외접원의 반지름의 길이를 구하시오.

Answer: 5

Solution (Python):
var_a = 10
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a rhombic kite with two diagonals measuring 9 centimeters (cm) and 14 centimeters (cm), respectively. Find the area of this kite.
Question (KO): 두 대각선의 길이가 각각 9센티미터(㎝), 14센티미터(㎝)인 마름모 모양의 연이 있습니다. 이 연의 넓이는 얼마인지 구하시오.

Answer: 63

Solution (Python):
var_a = 9
var_b = 14
var_c = var_a * var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Correspondence

Question (EN): You need to multiply 23 by a certain number, but mistakenly subtracted a certain number from 23 and got 4. Find the result of the correct calculation.
Question (KO): 23에 어떤 수를 곱해야 하는데 잘못하여 23에서 어떤 수를 뺐더니 4가 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 437

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: 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 them only once. What is the largest number that can be made greater than 36 and less than or equal to 45?
Question (KO): 4 장의 숫자 카드 1, 3, 4, 7 중 2 장을 뽑아 한 번씩만 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 수 중에서 36 초과 45 이하인 수 중 가장 큰 수는 무엇입니까?

Answer: 43

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 = 1
list_e=list_d.copy()
list_e.sort()
var_i = list_e[-var_h]
print(int(var_i))
Category: Correspondence

Question (EN): When we divide a number by 18 and subtract 29, we get 6. Find the number.
Question (KO): 어떤 수를 18로 나눈 값에서 29를 뺐더니 6이 되었습니다. 어떤 수를 구하시오.

Answer: 630

Solution (Python):
var_a = 6
var_b = 29
var_c = var_a + var_b
var_d = 18
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Yunho walks 90 steps a minute. If he takes 0.45 meters (m) in one step, and he walked for 13 minutes, how many meters (m) did Yunho walk?
Question (KO): 윤호는 1분에 90걸음을 걷습니다. 윤호의 한 걸음은 0.45미터(m)이고 13분을 걸었습니다. 윤호가 걸은 거리는 모두 몇 미터(m)인가요?

Answer: 526.5

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

Question (EN): If there are 3 bus routes and 2 subway routes going from Seohee's house to school, find the number of ways to go by bus.
Question (KO): 서희네 집에서 학교까지 가는 버스 노선은 3개, 지하철 노선은 2개일 때 버스로 가는 경우의 수를 구하시오.

Answer: 3

Solution (Python):
var_a = 3
var_b = 2
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 = '버스'
var_d = '지하철'
list_b= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = '버스'
var_f = list_b.index(var_e)+1
var_g = list_a[var_f-1]
print(int(var_g))
Category: Comparison

Question (EN): How many three-digit numbers with 7 in the hundreds digit and 6 in the units digit are less than 756?
Question (KO): 백의 자리 숫자가 7, 일의 자리 숫자가 6인 세 자리 수 중에서 756보다 작은 수는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = 7
var_b = 'A'
var_c = 6
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=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
ans_dict = dict()
var_d = str(var_d)
list_b = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_d):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_d
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_d) == len(str(int(temp))):
        new_elem = int(temp)
        list_b.append(new_elem)
var_e = 756
list_c = []
for i in list_b:
    if i < var_e:
        list_c.append(i)
var_f = len(list_c)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): What is the smallest 4-digit multiple of 3?
Question (KO): 3의 배수 중 가장 작은 네 자리 수는?

Answer: 1002

Solution (Python):
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
print(int(var_f))
Category: Comparison

Question (EN): Students give their presentations in sequence. The 6th is Eunjeong, and the 7 students are presented after Eunjeong. How many students give presentations in total?
Question (KO): 발표가 진행되는 동안 학생들은 차례대로 발표를 합니다. 여섯 번째는 은정, 7명의 학생은 은정이 뒤에 발표합니다. 총 몇 명의 학생이 발표합니까?

Answer: 13

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

Question (EN): If the number of candies each of the six students in the Sikyung group is 16, 22, 30, 26, 18, and 20, what is the average number of candies each student in the Sikyung group has?
Question (KO): 시경이네 모둠 6명이 가지고 있는 사탕의 개수는 각각 16, 22, 30, 26, 18, 20개일 때, 시경이네 모둠 학생이 가진 사탕 개수의 평균은 얼마인지 구하시오.

Answer: 22

Solution (Python):
var_a = 16
var_b = 22
var_c = 30
var_d = 26
var_e = 18
var_f = 20
list_a= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
list_a = [float(i) for i in list_a]
var_g = sum(list_a)/len(list_a)
print(int(var_g))