philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): Rounding 12A3 to the hundreds place gives 1300. How many possible numbers are A?
Question (KO): 12A3을 반올림하여 백의 자리까지 나타내면 1300이 됩니다. A가 될 수 있는 수는 모두 몇 개인가?

Answer: 5

Solution (Python):
var_a = '12A3'
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 = 1300
var_c = 50
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = 1300
var_f = 50
var_g = var_e + var_f
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = '12A3'
var_i = 'A'
var_h = str(var_h)
var_i = str(var_i)
unk_idx = var_h.index(var_i)
list_d = []
for elem in list_c:
    elem = str(elem)
    list_d.append(int(elem[unk_idx]))
list_d = list(set(list_d))
var_j = len(list_d)
print(int(var_j))
Category: Arithmetic calculation

Question (EN): There are 6/5, 1/10, and 1.56. What is the sum of these?
Question (KO): 6/5과 1/10, 그리고 1.56이 있습니다. 이들의 총합은 얼마인가요?

Answer: 2.86

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

Question (EN): How many two-digit numbers are common multiples of 3 and 5?
Question (KO): 두 자리 수 중 3과 5의 공배수는 모두 몇 개 입니까?

Answer: 6

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 = 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 = 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 = len(list_c)
print(int(var_f))
Category: Comparison

Question (EN): What is the sum of all numbers less than or equal to 0.4 among 0.8, 1/2, and 0.9?
Question (KO): 0.8, 1/2, 0.9 중에서 0.4보다 작거나 같은 수를 모두 더하면 얼마일까요?

Answer: 0

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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 = 0.4
list_b = []
for i in list_a:
    if i <= var_d:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print(int(var_e))
Category: Possibility

Question (EN): You are going to paint 5 different colors on a circle, triangle, and square. How many ways are there to paint them?
Question (KO): 3개의 서로 다른 문양에 서로 다른 색 5가지를 칠하려고 합니다. 문양은 동그라미, 세모, 네모입니다. 칠할 수 있는 모든 방법은 몇 가지입니까?

Answer: 60

Solution (Python):
var_a = 5
var_b = 'circle'
var_c = 'triangle'
var_d = 'square'
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
list_a.reverse()
var_e = len(list_a)
var_f = 1
var_a = int(var_a)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_a-i)
print(int(var_f))
Category: Correspondence

Question (EN): There are colored carps and crucian carps in the aquarium tank. Both of them eat 3 bags of feed. To feed all these fish, the keepers prepare 60 bags of individual feed and 15 bags of 8 packets of feeds. There are 52 colored carps in the tank. Find how many crucian carps are in the tank.
Question (KO): 아쿠아리움 수조에는 비단 잉어와 붕어가 있다. 비단 잉어와 붕어 모두 3봉지의 사료를 먹는다. 이 물고기들을 모두 먹이기 위해 사육사는 60봉지의 낱개 사료와 15봉지의 사료묶음 8개를 준비한다. 수조에 비단잉어는 52마리가 있다. 수조에 붕어는 몇 마리있는지 구하시오.

Answer: 8

Solution (Python):
var_a = 15
var_b = 8
var_c = var_a * var_b
var_d = 60
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
var_h = 52
var_i = var_g - var_h
print(int(var_i))
Category: Geometry

Question (EN): There is a bag in the shape of a cuboid. If the bag is 9 centimeters (cm) wide, 4 centimeters (cm) long, and 7 centimeters (cm) high, what is the volume in cubic centimeters (cm3) of the bag?
Question (KO): 어떤 직육면체 모양의 가방이 있습니다. 이 가방의 가로가 9센티미터(㎝), 세로가 4센티미터(㎝), 높이가 7센티미터(㎝)일 때, 가방의 부피는 몇 세제곱센티미터(㎤)입니까?

Answer: 252

Solution (Python):
var_a = 9
var_b = 4
var_c = var_a * var_b
var_d = 7
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): You used wire to make one square shape with a side of 20 centimeters (cm). You are going to re-stretch this wire and use it all to make one rectangular shape. If the width of the rectangle is 14 centimeters (cm), how many centimeters (cm) is the length?
Question (KO): 철사를 사용하여 한 변이 20센티미터(㎝)인 정사각형 모양 1개를 만들었습니다. 이 철사를 다시 펴서 남김없이 모두 사용하여 직사각형 모양 1개를 만들려고 합니다. 직사각형의 가로를 14센티미터(㎝)로 한다면 세로는 몇 센티미터(㎝)인가?

Answer: 26

Solution (Python):
var_a = 20
var_b = 4
var_c = var_a * var_b
var_d = 2
var_e = var_c / var_d
var_f = 14
var_g = var_e - var_f
print(int(var_g))
Category: Possibility

Question (EN): How many two-digit natural numbers can be formed using even numbers smaller than 5 and with different digits?
Question (KO): 5보다 짝은 짝수를 이용하여 만들 수 있는 두 자리 자연수 중, 각 자리의 숫자가 다른 것은 모두 몇 개인가?

Answer: 4

Solution (Python):
var_a = 0
var_b = 5
var_c = 1
var_d = var_b - var_c
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_d+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_d+1, 2):
        list_a.append(i)
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 = len(list_b)
print(int(var_f))
Category: Arithmetic calculation

Question (EN): It is said that one machine makes eight toys per hour. How many hours does it take to make 200 toys with 5 machines?
Question (KO): 기계 하나에서 1시간에 8개의 장난감을 만든다고 합니다. 기계 5개로 200개의 장난감을 만들이 위해선 몇 시간이 필요합니까?

Answer: 5

Solution (Python):
var_a = 200
var_b = 8
var_c = 5
var_d = var_b * var_c
var_e = var_a / var_d
print(int(var_e))
Category: Comparison

Question (EN): Multiples of 3 greater than 0 and less than 100 are written sequentially. What is the product of the 22st and 23th numbers from the left?
Question (KO): 0보다 크고 100보다 작은 3의 배수를 차례대로 썼습니다. 왼쪽에서 21번째 수와 24번째 수 사이에 있는 수들의 곱은 얼마입니까?

Answer: 4554

Solution (Python):
var_a = 0
var_b = 3
var_c = var_a + var_b
var_d = 100
var_e = 3
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 22
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
var_h = 23
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g * var_i
print(int(var_j))
Category: Comparison

Question (EN): What is the sum of the fractions greater than 1/2 of 3/7, 4/11, 5/9, 6/13, and 9/20?
Question (KO): 3/7, 4/11, 5/9, 6/13, 9/20 중 1/2보다 큰 분수의 합은 무엇입니까?

Answer: 0.56

Solution (Python):
var_a = 0.42857142857142855
var_b = 0.36363636363636365
var_c = 0.5555555555555556
var_d = 0.46153846153846156
var_e = 0.45
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 = 0.5
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): A wire of 10 centimeters (cm) in length is to be cut into pieces of 1 centimeter (cm), 2 centimeters (cm), and 3 centimeters (cm) lengths. How many cutting methods are there in all?
Question (KO): 길이가 10센티미터(㎝)인 철사를 1센티미터(㎝), 2센티미터(㎝), 3센티미터(㎝)의 길이인 철사들로 나누어 자르려고 한다. 자르는 방법은 모두 몇 가지인가?

Answer: 10

Solution (Python):
var_a = 0
var_b = 1
var_c = 2
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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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]
list_c=[]
for i in list_b:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_c.append(var_f)
var_g = 10
var_h = 0
var_g = int(var_g)
for i in list_c:
    i = int(i)
    if i == var_g:
        var_h = var_h + 1
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Sixteen strips of colored tape, each 10.4 centimeters (cm) long, were joined together in a circle with overlaps of 3.5 centimeters (cm). How many centimeters (cm) is the total length of the circle-shaped colored tape that was joined together?
Question (KO): 길이가 10.4 센티미터(㎝) 인 색 테이프 16 개를 3.5 센티미터(㎝) 씩 겹 치게 하여 원 모양으로 이어 붙였습니다. 이어 붙인 원 모양의 색 테이프의 전체 길이는 몇 센티미터(㎝) 입니까?

Answer: 110.4

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

Question (EN): When you mistakenly multiply a number that should be divided by 4, the result was 166.08. Find the result of the correct calculation.
Question (KO): 어떤 수를 4로 나누어야 할 것을 잘못하여 곱하였더니 166.08이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 10.38

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

Question (EN): Draw one of the cards numbered 1 through 9 and find the sum of all the numbers that, when multiplied by 21, are greater than 84 multiplied by 2.
Question (KO): 1부터 9까지의 카드 중 하나를 뽑아서 21을 곱했을 때 84에 2를 곱한 값보다 커지는 수들을 모두 더한 값을 구하시오.

Answer: 9

Solution (Python):
var_a = 1
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 84
var_e = 2
var_f = var_d * var_e
var_g = 21
var_h = var_f / var_g
list_b = []
for i in list_a:
    if i > var_h:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_i = sum(list_b)
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Joohyeon bought candies that cost 300 won each and snacks that cost 500 won each using 3,000 won. If he bought a total of 8, how many snacks did Joohyeon buy?
Question (KO): 주현이는 3000원으로 하나에 300원인 사탕과 하나에 500원인 과자를 샀습니다. 사탕과 과자를 모두 8개 샀다면 주현이는 과자를 모두 몇 개 샀을까요?

Answer: 3

Solution (Python):
var_a = 3000
var_b = 300
var_c = 8
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 500
var_g = 300
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): You made a regular triangle using ribbon with a side length of 20/9 centimeters (cm). If you unroll this ribbon to make a regular pentagon, find how many centimeters (cm) the length of one side is.
Question (KO): 리본으로 한 변의 길이가 20/9센티미터(㎝)인 정삼각형을 만들었습니다. 이 리본을 풀러 정오각형을 만든다면 한 변의 길이가 몇 센티미터(㎝)일지 구하시오.

Answer: 1.33

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

Question (EN): What is the area of a rectangle with one side measuring 5.9 centimeters (cm) and the other side measuring 3 centimeters (cm)?
Question (KO): 한 변의 길이가 5.9센티미터(㎝)이고 다른 한 변의 길이가 3센티미터(㎝)인 직사각형의 넓이는 얼마입니까?

Answer: 17.7

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

Question (EN): I decided to pack 138 apples in a box with 18 apples each and put the rest in a basket. Find how many apples are in the basket.
Question (KO): 사과 138개를 한 상자에 18개씩 담아 포장하고, 남은 것은 바구니에 넣기로 하였습니다. 바구니에 담긴 사과는 몇 개인지 구하시오

Answer: 12

Solution (Python):
var_a = 138
var_b = 18
var_c = var_a % var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): This year, Jungkook is 16 years old and his mother is 46 years old. How many years ago was Jungkook's mother's age four times Jungkook's?
Question (KO): 올해 정국이는 16살이고 어머니는 46살입니다. 어머니 나이가 정국이 나이의 4배였을 때는 몇 년 전입니까?

Answer: 6

Solution (Python):
var_a = 16
var_b = 4
var_c = var_a * var_b
var_d = 46
var_e = var_c - var_d
var_f = 4
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Correspondence

Question (EN): 211.5 is B minus A. When B is the value of multiplying the decimal A by 10, find A including the decimal point.
Question (KO): 211.5는 B에서 A를 뺀 값입니다. B는 소수 A를 10배한 값일때 소수점을 포함하여 A를 구하시오.

Answer: 23.5

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

Question (EN): You have a triangle with a base of 5/6 meters (m) and a height of 4/6 meters (m). How many meters (m) is the base of this triangle greater than its height?
Question (KO): 밑면이 5/6미터(m), 높이가 4/6미터(m)인 삼각형이 있습니다. 이 삼각형의 밑면은 높이보다 몇 미터(m) 깁니까?

Answer: 0.17

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

Question (EN): How many three-digit numbers are there when the sum of all the digits is 9 and is divisible by 5?
Question (KO): 각 자리 수를 모두 더했을 때의 값이 9이고, 5로 나누어 떨어지는 세 자리 수는 모두 몇 개 있습니까?

Answer: 13

Solution (Python):
var_a = 100
var_b = 1000
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 = 5
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
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 = 9
var_i = 0
var_h = int(var_h)
for i in list_c:
    i = int(i)
    if i == var_h:
        var_i = var_i + 1
print(int(var_i))
Category: Possibility

Question (EN): Find the number of ways in which a multiple of 3 comes out the first time and a multiple of 4 comes out the second time by doing the action of drawing a card out of 12 cards with numbers from 1 to 12 written twice.
Question (KO): 1에서 12까지의 숫자가 적힌 카드 12장 중 한장을 뽑는 행동을 2번하여 첫 번째는 3의 배수가 나오고, 두 번째는 4의 배수가 나오는 경우의 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 1
var_b = 12
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 = len(list_b)
var_f = 4
list_c = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
var_g = len(list_c)
var_h = var_e * var_g
print(int(var_h))
Category: Possibility

Question (EN): When Bumjin wants to put two math books and two English books on his bookshelf, how many times does he put the math books next to each other?
Question (KO): 범진이가 책장에 수학책 2권과 영어책 2권을 올려놓으려고 할 때, 수학책을 몇 번이나 나란히 놓을까?

Answer: 12

Solution (Python):
var_a = 3
var_b = 3
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)
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): You need to add 5.46 to a number but mistakenly subtracted it and got 3.97. Find the result of the correct calculation.
Question (KO): 어떤 수에 5.46에 더해야 하는데 잘못하여 빼서 3.97을 얻었습니다. 올바른 계산의 결과를 구하십시오.

Answer: 6.95

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

Question (EN): Find the weight of 11 meters (m) of rebar, weighing 15.3 kilograms (kg) when it's 5 meters (m), in kilograms (kg).
Question (KO): 5미터(m)의 무게가 15.3킬로그램(㎏)인 철근 11미터(m)의 무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 33.66

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

Question (EN): If there are 6 students in the class, find how many cases are there to select 1 team leader, 1 manager, and 1 clerk.
Question (KO): 6명의 학생이 반 안에 있을 때, 팀장 1명, 총무 1명, 서기 1명을 뽑는 경우의 수를 구하시오.

Answer: 120

Solution (Python):
var_a = 6
var_b = 1
var_c = 1
var_d = var_b + var_c
var_e = 1
var_f = var_d + var_e
var_g = 1
var_a = int(var_a)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_a-i)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Chanhee goes 0.45 meters (m) for one step. If Chanhee walked for 13 minutes by 90 steps per minute, find how many meters (m) she walked in total.
Question (KO): 찬희의 한 걸음은 0.45미터(m)입니다. 찬희가 1분에 90걸음씩 걸어서 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: Arithmetic calculation

Question (EN): Jungkook has 3 red bikes and Yoongi has 4 blue bikes. How many bikes are there in total?
Question (KO): 정국이는 빨간 자전거 3대, 윤기는 파란 자전거 4대를 가지고 있습니다. 전체 자전거의 개수는?

Answer: 7

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

Question (EN): Find the number of three-digit numbers from 2 to 355.
Question (KO): 2에서 355까지 세 자리 수의 수를 구하십시오.

Answer: 256

Solution (Python):
var_a = 100
var_b = 355
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = len(list_a)
print(int(var_d))
Category: Arithmetic calculation

Question (EN): There are 8 people in the company, but there are 5 computers, so they have to take turns using them. If the working day is 2 hours and 32 minutes, how many minutes per person spend on the computer on average?
Question (KO): 회사에 사람은 8명인데 컴퓨터가 5대라 돌아가면서 사용을 해야 합니다. 근무 시간이 2시간 32분이라면, 한사람이 컴퓨터를 사용한 시간은 평균 몇 분입니까?

Answer: 95

Solution (Python):
var_a = 2
var_b = 60
var_c = var_a * var_b
var_d = 32
var_e = var_c + var_d
var_f = 8
var_g = var_e / var_f
var_h = 5
var_i = var_g * var_h
print(int(var_i))
Category: Possibility

Question (EN): Write the 3rd smallest number among three-digit numbers that can be made by drawing three different numbers from 4, 0, 9, and 8.
Question (KO): 4, 0, 9, 8 중에서 서로 다른 숫자 3개를 뽑아 만들 수 있는 세 자리 수 중에서 3번째로 작은 수를 쓰시오.

Answer: 480

Solution (Python):
var_a = 4
var_b = 0
var_c = 9
var_d = 8
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 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-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Eunji opened the book and the sum of the two pages was 137. Write the larger of the two pages Eunji has opened.
Question (KO): 은지가 책을 펼쳤는데 두 쪽수의 합이 137이었습니다. 은지가 펼친 두 쪽수 중 큰 수를 쓰시오.

Answer: 69

Solution (Python):
var_a = 137
var_b = 2
var_c = var_a // var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Jungkook has a 0.8 number card, Yoongi has a 1/2 number, and Yoojung has a 0.9 number card. How many people have a number card greater than 0.3?
Question (KO): 정국이는 0.8, 윤기는 1/2, 유정이는 0.9의 숫자카드를 갖고 있습니다. 0.3보다 큰 숫자카드를 가지고 있는 사람은 몇 명입니까?

Answer: 3

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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 = 0.3
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
var_e = len(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): When you round the four-digit number 6A42 to the thousands place, it becomes 6000. How many digits from 0 to 9 can be written as A?
Question (KO): 네 자리 수 6A42를 백의 자리에서 반올림하면 6000이 됩니다. 0부터 9까지의 숫자 중 A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '6A42'
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 = 6500
list_b = []
for i in list_a:
    if i >= var_b:
        list_b.append(i)
var_c = '6A42'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
    elem = str(elem)
    list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e))
Category: Comparison

Question (EN): Minji has 0.74 meters (m) of color tape, Seungyeon has 13/20 meters (m), and Hyesu has 4/5 meters (m). Who has the longest colored tape?
Question (KO): 색 테이프를 민지는 0.74미터(m) , 승연이는 13/20 미터(m) , 혜수는 4/5 미터(m) 가지고 있습니다. 누가 가장 긴 색 테이프를 가지고 있습니까?

Answer: Hyesu

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

Question (EN): It takes 10 days for an older sister and 20 days for a younger sister to complete a certain task. After the older sister did this task alone for four days, the sisters worked together to finish the task. How many days did the sisters work together?
Question (KO): 어떤 일을 완성하는데 언니는 10일, 동생은 20일 걸린다고 한다. 이 일을 언니가 혼자 4일간 한 후에 자매가 같이 협력하여 일을 끝냈다고 한다. 자매가 함께 일한 기간은 며칠인가?

Answer: 4

Solution (Python):
var_a = 1
var_b = 4
var_c = 10
var_d = var_b / var_c
var_e = var_a - var_d
var_f = 1
var_g = 10
var_h = var_f / var_g
var_i = 1
var_j = 20
var_k = var_i / var_j
var_l = var_h + var_k
var_m = var_e / var_l
print(int(eval('{:.2f}'.format(round(var_m+1e-10,2)))))
Category: Correspondence

Question (EN): When you add 14 to a number, you get 56. Find the result of multiplying the number by 3.
Question (KO): 14를 어떤 수에 더했더니 결과가 56이 나왔습니다. 3을 어떤 수에 곱한 결과를 구하시오.

Answer: 126

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

Question (EN): When A is divided by B, the quotient is 6 and the remainder is 3. A and B are natural numbers. What is the smallest among the divisor B?
Question (KO): A를 B로 나눴더니 몫이 6이 되었고 나머지가 3이 되었습니다. A와 B는 자연수입니다. 나누는 수 B 중 가장 작은 수는 무엇일까요?

Answer: 4

Solution (Python):
var_a = 3
var_b = 1
var_c = var_a + var_b
print(int(var_c))