philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): You want to divide 12 litres (L) 400 millilitres (ml) of milk between two classes. If you give class 1 2 litres (L) 600 millilitres (ml) more than class 2, how many litres (L) will you give to class 1?
Question (KO): 12리터(L) 400밀리리터(㎖)의 우유를 두 반에 나누어 주려고 합니다. 1반에는 2반보다 2리터(L) 600밀리리터(㎖)를 더 주려고 할 때 1반에 몇 리터(L)를 주게 됩니까?

Answer: 1.3

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

Question (EN): Each box contains 3 red balls and 5 blue balls. When Jungkook has 2 boxes, how many blue balls does Jungkook have?
Question (KO): 1개의 상자에는 빨간 공 3개와 파란 공 5개가 담겨져 있습니다. 정국이는 2개의 상자를 가지고 있을 때 정국이가 가지고 있는 파란 공의 개수는?

Answer: 10

Solution (Python):
var_a = 5
var_b = 2
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): Nana and Gaeun did a long jump. Nana jumped 1.618 meters (m) and Gaeun jumped 162.3 centimeters (cm). Who jumped further?
Question (KO): 나나와 가은이는 멀리뛰기를 하였습니다. 나나는 1.618 미터(m)를 뛰었고, 가은이는 162.3 센티미터(㎝)를 뛰었습니다. 더 멀리 뛴 사람은 누구일까요?

Answer: Gaeun

Solution (Python):
var_a = 'Nana'
var_b = 'Gaeun'
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.618
var_d = 100
var_e = var_c * var_d
var_f = 162.3
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)
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: Possibility

Question (EN): When A, B, C, and D are arranged lexicographically from ABCD to DCBA, find the number in which CABD comes.
Question (KO): A, B, C, D를 사전식으로 ABCD부터 DCBA까지 배열할 때, CABD는 몇 번째에 오는지 구하시오.

Answer: 13

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
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 = 4
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']
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = 'CABD'
var_i = list_b.index(var_h)+1
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Find the difference between the largest and smallest of 6 consecutive natural numbers.
Question (KO): 연속하는 6개의 자연수 중에서 가장 큰 수와 가장 작은 수의 차를 구하시오.

Answer: 5

Solution (Python):
var_a = 6
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): Find the value of subtracting the smallest two-digit number from the largest two-digit number that can be formed by drawing two different numbers from 9, 4, 3, and 5.
Question (KO): 9, 4, 3, 5 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 두 자리 수 중 가장 큰 수에서 가장 작은 수를 뺀 값을 구하시오.

Answer: 61

Solution (Python):
var_a = 9
var_b = 4
var_c = 3
var_d = 5
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
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: Comparison

Question (EN): The heights of the three planks A, B, and C are 2.4 centimeters (cm), 3.2 centimeters (cm), and 2.8 centimeters (cm), respectively. Eunji is standing on top of a stack of 8 A. Namjoon is standing on top of 4 B, and Hoseok is standing on top of 5 C. Who is standing on the lowest place from the earth?
Question (KO): 세 판자 (가), (나), (다)의 높이는 각각 2.4센티미터(㎝), 3.2센티미터(㎝), 2.8센티미터(㎝)입니다. 은지는 (가) 판자를 8개 쌓은 곳 위에 서 있습니다. 남준이는 (나) 판자를 4개 쌓은 곳 위에 서 있습니다. 호석이는 (다) 판자를 5개 쌓은 곳 위에 서 있습니다. 누가 땅에서 가장 낮은 곳에 서 있습니까?

Answer: Namjoon

Solution (Python):
var_a = 'Eunji'
var_b = 'Namjoon'
var_c = 'Hoseok'
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.4
var_e = 8
var_f = var_d * var_e
var_g = 3.2
var_h = 4
var_i = var_g * var_h
var_j = 2.8
var_k = 5
var_l = var_j * var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[var_m-1]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Arithmetic calculation

Question (EN): In math class, Taehyung solved 9 problems and kept working on doing 7 more problems. How many math problems did Taehyung solve today?
Question (KO): 오늘 수학 시간에 태형이는 9개의 문제를 풀고 남아서 7개의 문제를 더 풀었습니다. 오늘 태형이가 푼 수학 문제의 수는 몇 개입니까?

Answer: 16

Solution (Python):
var_a = 9
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Possibility

Question (EN): Seung-a had a group assignment with 5 friends and chose 1 leader, 1 secretary, and 2 presenters. Find the number of cases in which Seung-ah becomes the leader.
Question (KO): 승아는 5명의 친구들과 조별과제를 하게 되어 조장 1명, 서기 1명, 발표자 2명을 뽑게 되었다. 승아가 조장을 하게 되는 경우의 수를 구하시오.

Answer: 12

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a - var_b
var_d = 1
var_e = 1
var_f = 1
var_g = var_e - var_f
var_h = var_d + var_g
var_i = 2
var_j = var_h + var_i
var_k = 1
var_c = int(var_c)
var_j = int(var_j)
for i, elem in enumerate(range(var_j)):
    var_k = var_k * (var_c-i)
var_l = 2
var_m = 2
var_n = 1
var_l = int(var_l)
var_m = int(var_m)
for i, elem in enumerate(range(var_m)):
    var_n = var_n * (var_l-i)
var_o = var_k / var_n
print(int(var_o))
Category: Comparison

Question (EN): Two friends decided to exercise hard. If Yeseul did 13/10 hours and Youngjun did 22/15 hours, which of the two worked out longer?
Question (KO): 두 친구가 운동을 열심히 하기로 했습니다. 예슬이는 13/10시간을, 영준이는 22/15시간을 했을 때, 두 사람 중 더 오래 운동을 한 사람은 누구입니까?

Answer: Youngjun

Solution (Python):
var_a = 'Yeseul'
var_b = 'Youngjun'
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.3
var_d = 1.4666666666666666
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): There are 275 apples. I am going to put 20 apples in a box and sell them for 8,000 won each. If you sold all the boxes of apples, how much did you get after selling the apples?
Question (KO): 사과가 275개 있습니다. 이 사과를 한 상자에 20개씩 담아서 8000원씩 받고 팔려고 합니다. 사과를 담은 상자를 모두 판다면 사과를 판 돈은 얼마입니까?

Answer: 104000

Solution (Python):
var_a = 275
var_b = 20
var_c = var_a // var_b
var_d = 8000
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): A cube-shaped box measures 11 centimeters (cm) at one edge. What is the surface area of this box?
Question (KO): 정육면체 모양의 상자는 한 모서리의 길이가 11센티미터(㎝)입니다. 이 상자의 겉넓이는 얼마입니까?

Answer: 726

Solution (Python):
var_a = 11
var_b = 2
var_c = var_a ** var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): What is the length of the radius of a circle with an area equal to the surface area of a sphere with a radius of 2 cm (cm)?
Question (KO): 반지름이 2센티미터(㎝)인 구의 겉넓이와 같은 넓이를 가지는 원의 반지름의 길이는?

Answer: 4

Solution (Python):
var_a = 4
var_b = 2
var_c = 2
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 0.5
var_g = var_e ** var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If Chanhui walks 0.75 meters (m) per step and walks 70 steps straight for 1 minute, how many meters (m) does Chanhui's location after 13 minutes differ from his current location?
Question (KO): 찬휘는 한 걸음에 0.75미터(m)를 가고 1분 동안 70걸음을 직진으로 걸어갔다면, 13분 후의 찬휘의 위치는 현재 위치와 몇 미터(m) 차이 납니까?

Answer: 682.5

Solution (Python):
var_a = 0.75
var_b = 70
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): Minsu wants to put 2 Korean and 2 English workbooks next to each other on the bookshelf. If each workbook is different, how many ways can he put the Korean workbooks next to each other?
Question (KO): 민수는 국어 문제집 2권, 영어 문제집 2권을 책꽂이에 일렬로 꽂으려고 한다. 국어 문제집끼리 나란히 꽂는 방법은 모두 몇 가지인가?

Answer: 12

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

Question (EN): Eunji, who had 9 pieces of green confetti and 1 piece of red confetti, gave 4 of her confetti to Yuna. How many pieces of confetti does Eunji have now?
Question (KO): 초록색 색종이 9장과 빨간색 색종이 1장을 가지고 있는 은지는 자신이 가진 색종이 중 4장을 유나에게 주었습니다. 은지에게 몇 장의 색종이가 남았을지 구하시오.

Answer: 6

Solution (Python):
var_a = 1
var_b = 9
var_c = var_a + var_b
var_d = 4
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): The four students, Yoongi, Jungkook, Yuna, and Yoojung, each have the numbers 7, 6, 9, and 8. Who has the 2nd largest number?
Question (KO): 네 명의 학생 윤기, 정국, 유나, 유정은 각각 7, 6, 9, 8만큼의 숫자를 가지고 있습니다. 2번째로 큰 숫자를 가진 사람은 누구입니까?

Answer: Yoojung

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
var_c = 'Yuna'
var_d = 'Yoojung'
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 = 7
var_f = 6
var_g = 9
var_h = 8
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)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_i = 2
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: Correspondence

Question (EN): When you multiply a number by -2/3 and divide by -4/5, the result is -1/2. Find the number.
Question (KO): 어떤 수에 -2/3을 곱하고 -4/5를 나누었더니 그 결과가 -1/2이었습니다. 어떤 수를 구하시오.

Answer: -0.6

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

Question (EN): You are going to choose two people among Jungkook, Jimin, Yoongi, Yuna, and Taehyung and line them up. How many cases are there in all?
Question (KO): 정국, 지민, 윤기, 유나, 태형 중에서 2명을 선택해서 줄 세우려고 합니다. 경우의 수는 모두 몇 가지입니까?

Answer: 20

Solution (Python):
var_a = 'Jungkook'
var_b = 'Jimin'
var_c = 'Yoongi'
var_d = 'Yuna'
var_e = 'Taehyung'
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 = len(list_a)
var_g = 2
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Find how many two-digit numbers are greater than 45 and less than 54.
Question (KO): 45보다 크고 54보다 작은 두 자리 수는 모두 몇 개입니까?

Answer: 8

Solution (Python):
var_a = 45
var_b = 1
var_c = var_a + var_b
var_d = 54
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = len(list_a)
print(int(var_h))
Category: Comparison

Question (EN): Yuna, Yoojung, and Minyoung took number tickets at the bank. Minyoung's number is lower than Yuna's, and Yoojung's number is greater than Yuna's. Who has the smallest number?
Question (KO): 유나, 유정, 민영이 은행에서 번호표를 뽑았습니다. 민영이의 번호는 유나보다 작고, 유정의 번호는 유나보다 큽니다. 가장 작은 번호를 가진 사람은 누구입니까?

Answer: Minyoung

Solution (Python):
var_a = 'Yuna'
var_b = 'Yoojung'
var_c = 'Minyoung'
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 = 'Yuna'
var_e = 'Yoojung'
var_f = '<'
var_g = 'Minyoung'
var_h = 'Yuna'
var_i = '<'
list_b= []
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
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)
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()
global item_name_index_dict
items_name_list = list_a.copy()
conditions = []
condition_list = list_b.copy()
temp_stack = []
for index_, cond_ in enumerate(map(str, condition_list)):
    if cond_ in ("<", ">", "="):
        operand_right = temp_stack.pop()
        operand_left = temp_stack.pop()
        if cond_ == "=":
            cond_ = "=="
        conditions.append(f"{operand_left} {cond_} {operand_right}")
    else:
        if not cond_.isdigit():
            cond_ = "{" + cond_ + "}"
        temp_stack.append(cond_)
item_name_index_dict = {}
for perm in itertools.permutations(range(1, len(items_name_list) + 1)):
    item_name_index_dict = dict(zip(items_name_list, perm))
    formatted_conditions = \
        [condition.format_map(item_name_index_dict) for condition in conditions]
    if all(map(eval, formatted_conditions)):
        break
list_c = list(item_name_index_dict.keys())
list_c.sort(key=item_name_index_dict.get, reverse=True)
var_j = len(list_c)
var_k = list_c[var_j-1]
print(var_k)
Category: Arithmetic calculation

Question (EN): (A) is a wooden block 5 meters (m) long and weighing 29/8 kg (kg), and (B) is a block of wood 4 meters (m) long and weighing 2.8 kg (kg). If you cut (A) and (B) by 2 meters (m) and weigh them together, how many kilograms (kg) are they?
Question (KO): (가)는 길이가 5미터(m), 무게가 29/8킬로그램(㎏)이고, (나)는 길이가 4미터(m), 무게가 2.8킬로그램(㎏)인 나무도막이다. (가), (나)를 2미터(m)씩 잘라 함께 무게를 재면 몇 킬로그램(㎏)인가?

Answer: 2.85

Solution (Python):
var_a = 3.625
var_b = 5
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
var_f = 2.8
var_g = 4
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = var_e + var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Arithmetic calculation

Question (EN): You want to distribute the marbles equally among 15 students. How many more marbles do you need when there are 328 marbles?
Question (KO): 15명의 학생에 구슬을 똑같이 나누어 주려고 합니다. 구슬이 328개 있을 때 몇 개의 구슬이 더 필요합니까?

Answer: 2

Solution (Python):
var_a = 15
var_b = 328
var_c = 15
var_d = var_b % var_c
var_e = var_a - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When creating a three-digit natural number by repeatedly using number cards with the numbers 1 to 9 written on them, find the average of the numbers whose remainder when divided by 3 is 2.
Question (KO): 1에서 9까지의 숫자가 적힌 숫자카드를 중복 사용하여 세 자리 자연수를 만들 때, 3으로 나눈 나머지가 2인 수들의 평균을 구하시오.

Answer: 555

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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.product(list_b, repeat=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 = 3
var_f = 2
list_c = [] 
var_e = int(var_e)
var_f = int(var_f)
if var_f < 0:
    var_f = var_f + var_e
for i in list_b:
    i = int(i)
    if i%var_e == var_f:
        list_c.append(i)
list_c = [float(i) for i in list_c]
var_g = sum(list_c)/len(list_c)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are four numbers 5.5, 9/2, 8.51 and 1/9. What is the sum of them all?
Question (KO): 4개의 숫자 5.5, 9/2, 8.51, 1/9가 있습니다. 이들을 모두 더하면 얼마인가요?

Answer: 18.62

Solution (Python):
var_a = 5.5
var_b = 4.5
var_c = var_a + var_b
var_d = 8.51
var_e = var_c + var_d
var_f = 0.1111111111111111
var_g = var_e + var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Possibility

Question (EN): You have to line up five different people A, B, C, D, and E. How many ways can A come first?
Question (KO): 서로 다른 다섯 사람 A, B, C, D, E를 한 줄로 세워야 합니다. A가 맨 앞에 오는 경우는 모두 몇가지 입니까?

Answer: 24

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
var_e = 'E'
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 = 'A'
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_g = len(list_c)
var_h = len(list_c)
var_i = 1
var_g = int(var_g)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
    var_i = var_i * (var_g-i)
print(int(var_i))
Category: Possibility

Question (EN): How many different two-digit numbers can be formed using the three numbers 0, 2, and 5 only once?
Question (KO): 세 수 0, 2, 5를 한 번씩만 사용하여 만들 수 있는 서로 다른 두 자리 수는 모두 몇 개입니까?

Answer: 4

Solution (Python):
var_a = 0
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 = 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 = len(list_b)
print(int(var_e))
Category: Correspondence

Question (EN): A certain number has to be multiplied by 16, but I accidentally added 19 and the result was 50. What is the result if calculated correctly?
Question (KO): 어떤수에 16을 곱해야 하는데 실수로 19를 더했더니 50이 됐습니다. 바르게 계산하면 결과가 어떻게 됩니까?

Answer: 496

Solution (Python):
var_a = 16
var_b = 50
var_c = 19
var_d = var_b - var_c
var_e = var_a * var_d
print(int(var_e))
Category: Geometry

Question (EN): The widths, depths, and heights of a cuboid are 12 centimeters (cm), 16 centimeters (cm), and 14 centimeters (cm), respectively. What is the perimeter of the largest cube that can be formed by cutting this cuboid?
Question (KO): 가로, 세로, 높이가 각각 12센티미터(㎝), 16센티미터(㎝), 14센티미터(㎝)인 직육면체가 있다. 직육면체를 잘라서 만들 수 있는 가장 큰 정육면체의 겉넓이의 값은?

Answer: 864

Solution (Python):
var_a = 12
var_b = 16
var_c = 14
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 = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-1]
var_f = 2
var_g = var_e ** var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Minho prepared some candies to give equally to the 8 people invited to the birthday party. However, since 2 people did not come, so he gave 1 extra candy to each person, and there were 4 candies left. How many candies did Minho prepare?
Question (KO): 민호는 생일잔치에 초대한 8명에게 똑같이 나누어 주려고 사탕을 몇 개 준비하였습니다. 그런데 2명이 참석하지 않아서 1명에게 1개씩 더 주었더니 사탕이 4개 남았습니다. 민호가 준비한 사탕은 모두 몇 개입니까?

Answer: 40

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

Question (EN): Ki-tae bought 12 pens at a stationery store, including pencils that cost 1,000 won each and ballpoint pens that cost 1,300 won each. How many pencils did Ki-tae buy when he used all his money of 15,000 won?
Question (KO): 기태는 문구점에서 한 자루에 1000원인 연필과 한 자루에 1300원인 볼펜을 합하여 12자루를 샀습니다. 기태가 가진 돈 15000원을 모두 사용하였을 때, 기태가 산 연필은 모두 몇 자루일까요?

Answer: 2

Solution (Python):
var_a = 1300
var_b = 12
var_c = var_a * var_b
var_d = 15000
var_e = var_c - var_d
var_f = 1300
var_g = 1000
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Geometry

Question (EN): There are two squares with side lengths of 8 and 10 respectively. Find the sum of the areas of the two squares.
Question (KO): 한 변의 길이가 각각 8, 10인 두 정사각형이 있습니다. 두 정사각형의 넓이의 합을 구하시오.

Answer: 164

Solution (Python):
var_a = 8
var_b = 2
var_c = var_a ** var_b
var_d = 10
var_e = 2
var_f = var_d ** var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): At Seokmin's school, 7 cookies were distributed to 134 6th grade students who were about to graduate. How many boxes of cookies would the school buy if there were 28 cookies in each box?
Question (KO): 석민이네 학교에서는 졸업을 앞둔 6학년 학생 134명에게 쿠키를 7개씩 나누어 주었습니다. 쿠키가 한 상자에 28개씩 들어있었다면 학교에서는 몇 상자의 쿠키를 구매했을까요?

Answer: 34

Solution (Python):
var_a = 134
var_b = 7
var_c = var_a * var_b
var_d = 28
var_e = var_c / var_d
var_f = 1
var_g=int(((var_e+9*10**(var_f-2))//(10**(var_f-1)))*10**(var_f-1))

print(int(var_g))
Category: Arithmetic calculation

Question (EN): Minyoung has four times as many flowers as Yoojung has. If Minyoung has 24 flowers, how many flowers do Minyoung and Yoojung have?
Question (KO): 유정이가 가진 꽃의 4배 만큼 민영이는 꽃을 가지고 있습니다. 민영이가 가진 꽃이 24송이라면 민영이와 유정이가 가진 꽃은 모두 몇 송이입니까?

Answer: 30

Solution (Python):
var_a = 24
var_b = 24
var_c = 4
var_d = var_b / var_c
var_e = var_a + var_d
print(int(var_e))
Category: Possibility

Question (EN): How many three-digit numbers are made up of 0, 1, 3, 5, and 6? However, each digit must be different.
Question (KO): 세 자리 자연수 중 0, 1, 3, 5, 6으로 이루어져 있는 수는 몇 개인지 구하시오. 단, 각 자리의 숫자는 달라야 합니다.

Answer: 36

Solution (Python):
var_a = 0
var_b = 1
var_c = 3
var_d = 5
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 = 200
list_c = []
for i in list_b:
    if i > var_g:
        list_c.append(i)
var_h = len(list_c)
print(int(var_h))