philschmid/DMath huggingface dataset:
Category: Possibility

Question (EN): There are 1 white marble, 1 black marble, 1 purple marble, 1 green marble and 1 red marble. How many different ways can there be to choose 2 different marbles?
Question (KO): 흰색 구슬, 검은색 구슬, 보라색 구슬, 초록색 구슬, 빨간색 구슬이 1개씩 있습니다. 이 구슬 중 서로 다른 2개의 구슬을 고르는 방법은 모두 몇 가지입니까?

Answer: 10

Solution (Python):
var_a = 'white'
var_b = 'black'
var_c = 'purple'
var_d = 'green'
var_e = 'red'
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)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Find the sum of all common divisors of 8 and 12.
Question (KO): 8과 12의 모든 공약수의 합을 구하시오.

Answer: 7

Solution (Python):
var_a = 8
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 12
list_b = []
num_sqrt = int(math.sqrt(var_b))
for i in range(1, num_sqrt+1):
    if var_b % i == 0:
        list_b.append(i)
        list_b.append(int(var_b/i))
list_b = sorted(set(list_b))
list_c = list(set(list_a) & set(list_b))
list_c = [float(i) for i in list_c]
var_c = sum(list_c)
print(int(var_c))
Category: Correspondence

Question (EN): Consider A and B are two other natural numbers. If A divides by 13 is 33 with a remainder of B, find A that makes B the largest.
Question (KO): 다른 두 자연수 A,B가 있습니다. A를 13으로 나누면 나머지가 B이고 몫이 33입니다. B를 가장 크게 만드는 A를 구하세요.

Answer: 441

Solution (Python):
var_a = 13
var_b = 33
var_c = var_a * var_b
var_d = 12
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): AB19 rounded up to the hundreds place gives 7300. Find the value obtained by rounding down AB19 to the tens place.
Question (KO): 백의 자리까지 AB19를 올림하면 7300이 됩니다. 이 AB19를 십의 자리까지 버림한 값을 구하시오.

Answer: 7210

Solution (Python):
var_a = 'AB19'
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 = 7300
var_c = 100
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i > var_d:
        list_b.append(i)
var_e = 7300
list_c = []
for i in list_b:
    if i <= var_e:
        list_c.append(i)
var_f = 'AB19'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
    elem = str(elem)
    var_h = int(elem[unk_idx])
var_i = 1000
var_j = var_h * var_i
var_k = 'AB19'
var_l = 'B'
var_k = str(var_k)
var_l = str(var_l)
unk_idx = var_k.index(var_l)
var_m = 0
for elem in list_c:
    elem = str(elem)
    var_m = int(elem[unk_idx])
var_n = 100
var_o = var_m * var_n
var_p = var_j + var_o
var_q = 19
var_r = var_p + var_q
var_s = 2
var_t=int((var_r//(10**(var_s-1)))*10**(var_s-1))

print(int(var_t))
Category: Geometry

Question (EN): The perimeter of an equilateral triangle is the same as the sum of four sides of an rectangle which is 125 centimeters (cm) wide and 115 centimeters (cm) long. If a snail moves one centimeter (cm) per second, how many seconds does it take to move forward by the length of one side of this equilateral triangle?
Question (KO): 어떤 정삼각형의 둘레의 길이는 가로가 125센티미터(㎝)이고 세로가 115센티미터(㎝)인 어떤 직사각형의 네 변의 길이의 합과 같다. 어떤 달팽이가 1초에 1센티미터씩 나아간다고 한다면, 정삼각형의 한 변의 길이만큼 나아가기 위해서는 몇 초가 걸리겠는가?

Answer: 160

Solution (Python):
var_a = 125
var_b = 115
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Moving a decimal point two places to the right makes a certain number 3.7 larger than it should be. Find what the original decimal number is.
Question (KO): 어떤 소수의 소수점을 오른쪽으로 두 자리 옮겼더니 원래보다 3.7만큼 더 커졌습니다. 원래의 소수를 구하시오.

Answer: 0.04

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

Question (EN): What is the largest two-digit number that can be formed by drawing two different numbers from 3, 9, 5, and 8 and then adding the remaining two numbers?
Question (KO): 3, 9, 5, 8 중에서 서로 다른 숫자 2개를 뽑아 만들 수 있는 가장 큰 두 자리 수에 남은 두 수를 차례로 더하면 얼마입니까?

Answer: 106

Solution (Python):
var_a = 3
var_b = 9
var_c = 5
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 = 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]
list_e = []
var_i = int(var_i)
while var_i//10 > 0:
    list_e.append(var_i%10)
    var_i = var_i//10
list_e.append(var_i%10)
list_e = list_e[::-1]
list_e = [float(i) for i in list_e]
var_j = sum(list_e)
var_k = var_g + var_j
print(int(var_k))
Category: Comparison

Question (EN): There are five dogs: A, B, C, D, and E. A dog is smaller than C dog. D dog is bigger than B dog. Also, D dog is smaller than A dog. If B dog is bigger than E dog, which is the biggest dog?
Question (KO): (가), (나), (다), (라), (마) 5마리의 개가 있다. (가) 개는 (다) 개보다 작다. (라) 개는 (나) 개보다 크다. 또한 (라)개는 (가) 개보다 작다. (나) 개가 (마) 개보다 클 경우 가장 큰 개는 누구인가?

Answer: C

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 = 'D'
var_g = 'B'
var_h = '>'
var_i = 'D'
var_j = 'A'
var_k = '<'
var_l = 'B'
var_m = 'E'
var_n = '>'
var_o = 'A'
var_p = 'C'
var_q = '<'
list_b= []
if "/" in str(var_q):
    var_q = eval(str(var_q))
list_b.append(var_q)
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_b.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_b.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_b.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
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)
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_r = 1
var_s = list_c[var_r-1]
print(var_s)
Category: Arithmetic calculation

Question (EN): A ball bounces 1/10 of the height it is dropped. If the ball falls from a height of 15 meters (m), find out how many meters (m) it is if you round the height of the third jump from the second decimal place.
Question (KO): 스카이 콩콩은 떨어진 높이의 1/10만큼 튀어오릅니다. 15미터(m) 높이에서 떨어진다면 세 번째로 튀어 오른 공의 높이를 소수 둘째자리에서 반올림하면 몇 미터(m)인지 구하시오.

Answer: 0.02

Solution (Python):
var_a = 15
var_b = 0.1
var_c = 3
var_d = var_b ** var_c
var_e = var_a * var_d
var_f = 2
var_g = round(float(var_e)+1e-10, var_f)
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Arithmetic calculation

Question (EN): What is the sum of 1.84, 5.23, 2.41, and 8.64?
Question (KO): 1.84, 5.23, 2.41, 8.64의 총합은 얼마입니까?

Answer: 18.12

Solution (Python):
var_a = 1.84
var_b = 5.23
var_c = var_a + var_b
var_d = 2.41
var_e = var_c + var_d
var_f = 8.64
var_g = var_e + var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Geometry

Question (EN): There is a picture of a rectangle with an area of 54.3 square centimeters (cm2). If the width is 6 centimeters (cm), how many centimeters (cm) is the length?
Question (KO): 넓이가 54.3제곱센티미터(㎠)인 직사각형의 사진이 있습니다. 가로가 6센티미터(㎝) 일 때, 세로는 몇 센티미터(㎝) 입니까?

Answer: 9.05

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

Question (EN): The largest square was made with a piece of string 32 centimeters (cm) long. What is the area of the square created in square centimeters (cm2)?
Question (KO): 길이가 32센티미터(㎝) 인 끈으로 가장 큰 정사각형을 만들었습니다. 만든 정사각형의 넓이는 몇 제곱센티미터(㎠) 입니까?

Answer: 64

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

Question (EN): A2468B consists of single digits A and B. How many possible numbers are there when A2468B is divisible by 55?
Question (KO): A2468B은 한 자리 수 A, B로 이루어져 있습니다. A2468B가 55로 나누어 떨어질 때 이 수가 될 수 있는 수는 모두 몇 개입니까?

Answer: 2

Solution (Python):
var_a = 'A2468B'
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 = 55
list_b = []
var_b = int(var_b)
for i in list_a:
    i = int(i)
    if i % var_b == 0:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))
Category: Comparison

Question (EN): Haeun has a 1/2 meter (m) long colored tape, and Minkyung has a 2/3 meters (m) long colored tape. Find whose color tape is longer.
Question (KO): 하은이는 1/2미터(m) 길이의 색 테이프를 가지고 있고, 민경이는 2/3미터(m)의 색 테이프를 가지고 있습니다. 둘 중 누구의 색 테이프가 더 긴지 구하시오.

Answer: Minkyung

Solution (Python):
var_a = 'Haeun'
var_b = 'Minkyung'
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 = 0.5
var_d = 0.6666666666666666
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: Geometry

Question (EN): There is a rectangular parallelepiped whose width of base is 4 centimeters (cm), length 6 centimeters (cm) longer than width, and height 5 centimeters (cm) longer than length. What is the surface area of this cuboid in square centimeters (cm2)?
Question (KO): 밑면의 가로가 4센티미터(㎝)이고, 세로가 가로보다 6센티미터(㎝) 길고, 높이가 세로보다 5센티미터(㎝) 긴 직육면체가 있습니다. 이 직육면체의 겉넓이는 몇 제곱센티미터입니까?

Answer: 500

Solution (Python):
var_a = 4
var_b = 4
var_c = 6
var_d = var_b + var_c
var_e = var_a * var_d
var_f = 4
var_g = 4
var_h = 6
var_i = var_g + var_h
var_j = var_f + var_i
var_k = 4
var_l = 6
var_m = 5
var_n = var_l + var_m
var_o = var_k + var_n
var_p = var_j * var_o
var_q = var_e + var_p
var_r = 2
var_s = var_q * var_r
print(int(var_s))
Category: Comparison

Question (EN): Jiseok's backpack weighs 1.49 kilograms (kg), and Miho's backpack weighs 9/20 kilograms (kg). Whose backpack is lighter?
Question (KO): 지석의 배낭 무게는 1.49킬로그램(㎏), 미호의 배낭 무게는 9/20킬로그램(㎏)이다. 누구의 배낭이 더 가벼울까요?

Answer: Miho

Solution (Python):
var_a = 'Jiseok'
var_b = 'Miho'
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.49
var_d = 9
var_e = 20
var_f = var_d / var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = list_b.index(var_h)+1
var_j = list_a[var_i-1]
print(var_j)
Category: Comparison

Question (EN): When Taehyung and 10 of his classmates are standing, Taehyung has 5 students standing to his left. How many students are standing to his right?
Question (KO): 태형이와 반 친구들 10명이 서 있을 때, 태형이 왼쪽에 선 학생이 5명입니다. 오른쪽에는 몇 명의 학생이 서 있습니까?

Answer: 4

Solution (Python):
var_a = 10
var_b = 5
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): There are 5 times as many chickens as ducks, and 12 fewer rabbits than ducks. If there are 4 rabbits, what is the total number of chickens, ducks and rabbits are there?
Question (KO): 닭은 오리 수의 5배이고, 토끼는 오리보다 12마리 더 적습니다. 토끼가 4마리일 때, 닭, 오리, 토끼는 모두 몇 마리입니까?

Answer: 100

Solution (Python):
var_a = 4
var_b = 4
var_c = 12
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 5
var_g = 4
var_h = 12
var_i = var_g + var_h
var_j = var_f * var_i
var_k = var_e + var_j
print(int(var_k))
Category: Possibility

Question (EN): Pick the numbers 1, 6, and 8 once to make a three-digit number and pay that amount. In this case, find the sum of the second largest and third smallest money that can be received.
Question (KO): 숫자 1, 6, 8을 한 번씩 모두 골라 세 자리수를 만들고, 그만큼 돈을 준다고 합니다. 이 때, 받을 수 있는 두 번째로 큰 돈과 세 번째로 작은 돈의 합을 구하시오.

Answer: 1434

Solution (Python):
var_a = 1
var_b = 6
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 2
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 3
list_d=list_b.copy()
list_d.sort()
var_h = list_d[var_g-1]
var_i = var_f + var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Trees are planted at intervals of 30 meters (m) along the circular promenade. If the length of the trail is 1 kilometer (km) and 200 meters (m), how many trees were planted in all?
Question (KO): 원형의 산책로를 따라 30미터(m) 간격으로 나무가 심어져 있습니다. 산책로의 길이가 1킬로미터(㎞) 200미터(m)라면, 나무는 모두 몇 그루 심어진 것입니까?

Answer: 40

Solution (Python):
var_a = 1
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c + var_d
var_f = 30
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): Hanbyeol has 3.2 pieces of square colored paper with a side length of 8.5 cm. Find the area he could get when gluing this colored paper together without any gap.
Question (KO): 한별은 한 변의 길이가 8.5센티미터(㎝)인 정사각형 색종이를 3.2장 갖고 있습니다. 이 색종이를 빈틈없이 붙일 때 얻을 수 있는 넓이를 구하시오.

Answer: 231.2

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

Question (EN): When you subtract 5 from a number, the answer is 2. What will you get from the number plus 3?
Question (KO): 어떤 수에서 5를 뺐더니 2가 되었습니다. 어떤 수에 3을 더하면 얼마입니까?

Answer: 10

Solution (Python):
var_a = 2
var_b = 5
var_c = var_a + var_b
var_d = 3
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): You get 231.88 when you multiply 1.87 by a particular number. What is the quotient of that particular number divided by 25?
Question (KO): 1.87 에 어떤 수를 곱하였더니 231.88 이 되었습니다. 어떤 수를 25 로 나눈 몫은 얼마인지 구하시오.

Answer: 4

Solution (Python):
var_a = 231.88
var_b = 1.87
var_c = var_a / var_b
var_d = 25
var_e = var_c // var_d
print(int(var_e))
Category: Geometry

Question (EN): What is the number of faces of a truncated quadrangular pyramid?
Question (KO): 사각뿔대의 면의 개수는?

Answer: 6

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

Question (EN): There are 56 oak trees. There are 18 fewer ginkgo trees than pear trees, and 12 more ginkgo trees than maple trees. How many maple trees are there in all?
Question (KO): 참나무가 56그루 있습니다. 은행나무는 배나무보다 18그루 적고, 은행나무는 단풍나무보다 12그루 많습니다. 단풍나무는 모두 몇 그루입니까?

Answer: 26

Solution (Python):
var_a = 56
var_b = 18
var_c = var_a - var_b
var_d = 12
var_e = var_c - var_d
print(int(var_e))
Category: Comparison

Question (EN): The length of the yellow tape is 0.309 meters (m), and the length of the red tape is 48.2 centimeters (cm). Which color is longer?
Question (KO): 노란색 테이프 길이가 0.309미터(m) 이고, 빨간색 테이프의 길이가 48.2센티미터(㎝)입니다. 어느 색의 길이가 더 깁니까?

Answer: red

Solution (Python):
var_a = 'yellow'
var_b = 'red'
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 = 0.309
var_d = 48.2
var_e = 100
var_f = var_d * var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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: Arithmetic calculation

Question (EN): I'm going to eat 19 cookies for 9 days. How many cookies should I eat per day?
Question (KO): 과자 19개를 9일동안 나누어 먹으려고 합니다. 하루에 먹어야 할 양은 얼마인가요?

Answer: 2.11

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

Question (EN): 25 students stand in a line. There are 9 people behind Yuna. How many students are standing in front of Yuna?
Question (KO): 학생 25명이 한 줄로 서 있습니다. 유나의 뒤에 9명이 서 있습니다. 유나의 앞에 서 있는 학생은 몇 명입니까?

Answer: 15

Solution (Python):
var_a = 25
var_b = 9
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): You are going to use 2 of your 4 number cards 3, 5, 6, 7 to create a two-digit number. What is the largest multiple of 7 that can be made?
Question (KO): 3, 5, 6, 7 총 4장의 수 카드 중 2장을 사용하여 두 자리 수를 만들려고 합니다. 만들 수 있는 7의 배수 중 가장 큰 수는 무엇인가요?

Answer: 63

Solution (Python):
var_a = 3
var_b = 5
var_c = 6
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 = 7
list_c = []
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if i % var_f == 0:
        list_c.append(i)
var_g = 1
list_d=list_c.copy()
list_d.sort()
var_h = list_d[-var_g]
print(int(var_h))
Category: Arithmetic calculation

Question (EN): There are 12 toads in the pond and 6 outside the pond. How many toads are there in all?
Question (KO): 두꺼비가 연못 안에 12마리, 연못 밖에 6마리 있습니다. 두꺼비는 모두 몇 마리 입니까?

Answer: 18

Solution (Python):
var_a = 12
var_b = 6
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): There are 1 triangle and 3 hexagons. What is the sum of all vertices of the shapes?
Question (KO): 삼각형 1개와 육각형 3개가 있습니다. 도형들의 꼭짓점 수를 모두 더하면 몇 개입니까?

Answer: 21

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

Question (EN): When three 18 centimeters (cm) long colored tapes were overlapped and attached at the same length, it became 50.5 centimeters (cm) long. Find the answer by how many centimeters (cm) were overlapped and connected.
Question (KO): 18센티미터(㎝)인 색 테이프 3개를 같은 길이씩 겹쳐서 이어 붙였더니 50.5센티미터(㎝)가 나왔습니다. 몇 센티미터(㎝)씩 겹쳐서 이어 붙였는지 답을 구해 보세요.

Answer: 1.75

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

Question (EN): There are six numbers 9/5, 3/5, 1.7, 3/2, 0.4, and 9/10. How many of these numbers are less than 1?
Question (KO): 5개의 수 9/5, 3/5, 1.7, 3/2, 0.4, 9/10가 있습니다. 이 중에서 1보다 작은 수는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 1.8
var_b = 0.6
var_c = 1.7
var_d = 1.5
var_e = 0.4
var_f = 0.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 = 1
list_b = []
for i in list_a:
    if i < var_g:
        list_b.append(i)
var_h = len(list_b)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Yeonji wants to run. If it takes 4 seconds for Yeonji to run 3 meters (m) and the distance from the starting line to the finish point is 0.09 km (km), find how many seconds it took Yeonji to run from the starting line to the finish line.
Question (KO): 연지가 달리기를 하려고 합니다. 연지는 3미터(m)를 달리는데 4초가 걸리고 출발선부터 도착점까지의 거리가 0.09킬로미터(㎞)라면 연지가 출발선부터 도착점까지 달리는데 걸린 시간은 모두 몇 초인지 구하세요.

Answer: 124

Solution (Python):
var_a = 0.09
var_b = 1000
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
var_f = 3
var_g = var_e / var_f
var_h = 4
var_i = var_g * var_h
print(int(var_i))
Category: Geometry

Question (EN): To make a paper string, 6 sheets of paper were overlapped by 7 centimeters (cm) and glued. This piece of paper has the shape of a square with each side measuring 30 centimeters (cm). Find the area of the string made.
Question (KO): 종이끈을 만들기 위해 6장의 종이를 7센티미터(㎝) 씩 겹치게 두고 풀을 칠했습니다. 이 종이는 한 변의 길이가 30센티미터(㎝)인 정사각형 모양입니다. 만들어진 끈의 넓이를 구하시오.

Answer: 4350

Solution (Python):
var_a = 30
var_b = 6
var_c = var_a * var_b
var_d = 7
var_e = 6
var_f = 1
var_g = var_e - var_f
var_h = var_d * var_g
var_i = var_c - var_h
var_j = 30
var_k = var_i * var_j
print(int(var_k))