philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): A particular number is divisible by 5, and its resulting quotient is equal to 320 divided by 4 plus 220. Find out the value of that particular number divided by 3.
Question (KO): 어떤 수는 5로 나누어떨어지고 5로 나눈 몫은 320을 4로 나누고 220을 더한 값과 같다. 어떤 수를 3으로 나눈 값을 구하시오.

Answer: 500

Solution (Python):
var_a = 320
var_b = 4
var_c = var_a / var_b
var_d = 220
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 3
var_i = var_g / var_h
print(int(var_i))
Category: Correspondence

Question (EN): A number when 1 is added to it becomes a multiple of 5, 7, and 8. Find the smallest four-digit natural number among these numbers.
Question (KO): 어떤 수에 1을 더하였을때 5, 7, 8의 배수가 되는 수가 있다. 이러한 수 중 가장 작은 네자리 자연수를 구하시오.

Answer: 1119

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 = 8
var_e = 7
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
    var_e = var_e + var_d
for i in list_a:
    i = int(i)
    if i%var_d == var_e:
        list_b.append(i)
var_f = 7
var_g = 6
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_b:
    i = int(i)
    if i%var_f == var_g:
        list_c.append(i)
var_h = 5
var_i = -1
list_d = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_c:
    i = int(i)
    if i%var_h == var_i:
        list_d.append(i)
var_j = 1
list_e=list_d.copy()
list_e.sort()
var_k = list_e[var_j-1]
print(int(var_k))
Category: Geometry

Question (EN): You have a regular nonagon with a perimeter of 171 centimeters (cm). How many centimeters (cm) is one side of this regular nonagon?
Question (KO): 둘레가 171센티미터(㎝) 인 정구각형이 있습니다. 이 정구각형의 한 변은 몇 센티미터(㎝) 입니까?

Answer: 19

Solution (Python):
var_a = 171
var_b = 9
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): If a cube with width, length, and height of 1 cm is stacked in 7 rows horizontally, 5 columns vertically, and 3 floors, what will be the total volume?
Question (KO): 가로, 세로, 높이가 1센티미터(㎝)인 정육면체를 가로로 7줄, 세로로 5줄, 높이를 3층으로 쌓아 올렸다면 전체 부피는 얼마인가?

Answer: 105

Solution (Python):
var_a = 1
var_b = 7
var_c = var_a * var_b
var_d = 1
var_e = 5
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 1
var_i = 3
var_j = var_h * var_i
var_k = var_g * var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Thirty students in Hyukchan's class have their own attendance numbers from 1 to 30. Among the students in Hyeokchan's class, the students wearing glasses are students #1, #3, #7, #10, #23, and #27, and the students with hair tied are #1, #9, #11, #20, and #23. How many students wear glasses or tie their hair?
Question (KO): 혁찬이네 반 학생 30명은 1번부터 30번까지 자신의 출석 번호를 가지고 있습니다. 혁찬이네 반 학생 중 안경을 쓴 학생은 1번, 3번, 7번, 10번, 23번, 27번 학생이고, 머리를 묶은 학생은 1번, 9번, 11번, 20번, 23번 학생일 때, 안경을 썼거나 머리를 묶은 학생은 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 1
var_b = 3
var_c = 7
var_d = 10
var_e = 23
var_f = 27
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
var_h = 9
var_i = 11
var_j = 20
var_k = 23
list_b= []
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)
list_b.reverse()
list_c = list(set(list_a) | set(list_b))
var_l = len(list_c)
print(int(var_l))
Category: Correspondence

Question (EN): When 11 is divided by 5, the remainder is B and the quotient is A. Find the value of A at this time.
Question (KO): 11을 5로 나누면 나머지가 B, 몫이 A가 됩니다. 이 때 A의 값을 구하시오.

Answer: 2

Solution (Python):
var_a = 11
var_b = 5
var_c = var_a // var_b
print(int(var_c))
Category: Correspondence

Question (EN): A number is greater than 35 and less than 70. When a number is divided by 6, the remainder is 3. When a number is divided by 7, the remainder is 1. When a number is divided by 8, the remainder is 1. Find a number.
Question (KO): 어떤 수는 35보다 크고, 70보다 작습니다. 어떤 수를 6으로 나누면, 나머지가 3입니다. 어떤 수를 7로 나누면, 나머지가 1입니다. 어떤 수를 8로 나누면, 나머지가 1입니다. 어떤 수를 구하시오.

Answer: 57

Solution (Python):
var_a = 35
var_b = 1
var_c = var_a + var_b
var_d = 70
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 = 6
var_i = 3
list_b = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_a:
    i = int(i)
    if i%var_h == var_i:
        list_b.append(i)
var_j = 7
var_k = 1
list_c = [] 
var_j = int(var_j)
var_k = int(var_k)
if var_k < 0:
    var_k = var_k + var_j
for i in list_b:
    i = int(i)
    if i%var_j == var_k:
        list_c.append(i)
var_l = 8
var_m = 1
list_d = [] 
var_l = int(var_l)
var_m = int(var_m)
if var_m < 0:
    var_m = var_m + var_l
for i in list_c:
    i = int(i)
    if i%var_l == var_m:
        list_d.append(i)
var_n = 1
var_o = list_d[var_n-1]
print(int(var_o))
Category: Correspondence

Question (EN): A, B, and C are natural numbers. When A is divided by 7, the quotient is B and the remainder is C. B and C here have the same value. Find the largest number that can be A.
Question (KO): A, B, C는 자연수입니다. A를 7로 나누면 몫이 B고 나머지는 C입니다. 이때 B와 C는 같은 값을 가집니다. A가 될 수 있는 수 중 가장 큰수를 구하세요.

Answer: 48

Solution (Python):
var_a = 7
var_b = 6
var_c = var_a * var_b
var_d = 6
var_e = var_c + var_d
print(int(var_e))
Category: Correspondence

Question (EN): 35 comes out when you multiply a certain number by 0.5, add 26.1, divide that number by 0.4, then subtract 35. Find the number including the decimal point.
Question (KO): 어떤 수에 0.5를 곱한 후 26.1을 더하고, 그 값을 0.4로 나눈 후 35를 빼면 35가 됩니다. 어떤 수를 소수점을 포함하여 구하시오.

Answer: 3.8

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

Question (EN): When nine soccer balls and seven baseballs of the same weight were weighed, they were 10.98 kilograms (kg). If one soccer ball weighs 0.8 kilograms (kg), how many kilograms (kg) does one baseball weigh?
Question (KO): 무게가 각각 같은 축구공 9개와 야구공 7개의 무게를 재어 보니 10.98킬로그램(㎏)이었습니다. 축구공 1개의 무게가 0.8킬로그램(㎏)일 때 팽이 한 개의 무게는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0.54

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

Question (EN): Taehyung is taller than Yoojung. When Yoojung is taller than Jimin, and Taehyung is shorter than Hoseok, who is the shortest among the 4 people?
Question (KO): 태형이는 유정이보다 키가 큽니다. 유정이는 지민이보다 크고, 태형이는 호석이보다 작습니다. 4명 중 가장 키가 작은 사람은 누구인가요?

Answer: Jimin

Solution (Python):
var_a = 'Taehyung'
var_b = 'Yoojung'
var_c = 'Jimin'
var_d = 'Hoseok'
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 = 'Taehyung'
var_f = 'Yoojung'
var_g = '>'
var_h = 'Yoojung'
var_i = 'Jimin'
var_j = '>'
var_k = 'Taehyung'
var_l = 'Hoseok'
var_m = '<'
list_b= []
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)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Arithmetic calculation

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

Answer: 1.08

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

Question (EN): We are comparing the heights of Jungkook, Yoongi, Namjoon, and Yuna. Jungkook is taller than Yoongi, and Namjoon is taller than Jungkook. But if Namjoon is shorter than Yuna, who is the shortest among the four?
Question (KO): 정국, 윤기, 남준, 유나의 키를 비교하고 있습니다. 정국이가 윤기보다 크고, 남준이가 정국이보다 큽니다. 그런데 남준이가 유나보다 키가 작다면, 4명 중 누가 제일 작습니까?

Answer: Yoongi

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
var_c = 'Namjoon'
var_d = 'Yuna'
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 = 'Jungkook'
var_f = 'Yoongi'
var_g = '>'
var_h = 'Namjoon'
var_i = 'Jungkook'
var_j = '>'
var_k = 'Namjoon'
var_l = 'Yuna'
var_m = '<'
list_b= []
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)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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_n = len(list_c)
var_o = list_c[var_n-1]
print(var_o)
Category: Possibility

Question (EN): When there is a basket containing each apple, peach, pear, melon, and strawberry, two fruits are taken out. What is the possible number of cases if those combinations are numbered according to the order it comes out?
Question (KO): 사과, 복숭아, 배, 참외, 딸기가 각각 1개씩 있는 바구니에서 2개를 뺐습니다. 나온 순서대로 번호를 붙인다면 가능한 경우의 수는 모두 몇 가지입니까?

Answer: 20

Solution (Python):
var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
var_d = 'melon'
var_e = 'strawberry'
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): When you make three-digit natural numbers using even numbers less than or equal to 6, what is the smallest number?
Question (KO): 6 이하의 짝수를 한 번씩 모두 사용하여 세 자리 자연수를 만들 때, 가장 작은 수는 무엇입니까?

Answer: 204

Solution (Python):
var_a = 0
var_b = 6
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_b+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_b+1, 2):
        list_a.append(i)
var_c = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_c))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_d = 1
list_c=list_b.copy()
list_c.sort()
var_e = list_c[var_d-1]
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I bought 7 baskets of sweet potatoes with 16 in each basket. Among them, 13 are sprouted and discarded, and the remaining sweet potatoes are divided equally into 8 baskets. How many sweet potatoes can't be put in the basket?
Question (KO): 한 바구니에 16개씩 들어있는 고구마를 7바구니 샀습니다. 그중에서 13개는 싹이 나서 버리고, 남은 고구마를 8바구니에 똑같이 나누어 담으려고 합니다. 바구니에 담기지 못하는 고구마는 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 16
var_b = 7
var_c = var_a * var_b
var_d = 13
var_e = var_c - var_d
var_f = 8
var_g = var_e % var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): The length of the wooden block that Yujeong has is 30 centimeters (cm) shorter than 31 meters (m). Find the length of the wooden block that Yujeong has in meters (m).
Question (KO): 유정이 가진 나무도막의 길이는 31미터(m)보다 30센티미터(㎝) 짧습니다. 유정이가 가진 나무도막의 길이는 몇 미터(m)인지 구하시오.

Answer: 30.7

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

Question (EN): When the equation 4A+B3=68 holds, what number can go in B?
Question (KO): 등식 4A+B3=68이 성립한다고 합니다. 이 때, B에 들어갈 수 있는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = '4A+B3=68'
var_b = 'B'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Arithmetic calculation

Question (EN): When you add 5 consecutive natural numbers, you get 100. Which of these numbers is the smallest?
Question (KO): 연속된 5개의 자연수를 더했더니 100이 되었습니다. 이 중 가장 작은 수는 무엇일까요?

Answer: 18

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

Question (EN): Jungkook's fruit shop sells 4 types of fruit. How many ways can you choose to buy two?
Question (KO): 정국이네 과일 가게는 4종류의 과일을 판매하고 있습니다. 2개를 골라서 사는 경우는 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 4
var_b = 2
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
for i, elem in enumerate(range(var_b)):
    var_c = var_c / (i+1)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): You want to attach 8 posters with 29.05 centimeters (cm) width in a row on a wall with a width of 3.944 meters (m), keeping the distance between the end of the wall and the poster and between the posters constant. Find how many centimeters (cm) should be the distance between them.
Question (KO): 가로가 3.944미터(m)인 벽에 가로가 29.05센티미터(㎝)인 포스터 8장을 벽의 끝과 포스터, 포스터와 포스터 사이의 간격을 일정하게 하여 한 줄로 붙이려고 합니다. 이때 사이의 간격을 몇 센티미터(㎝)로 하여야 하는지 구하시오.

Answer: 18

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

Question (EN): Jimin wants to add a certain number to 34. If he accidentally multiplied 5 by a certain number and the result was 60, find the correct result.
Question (KO): 지민이는 34에 어떤 수를 더하려고 합니다. 실수로 5에 어떤 수를 곱했을 때의 결과가 60이라면 바르게 계산한 결과를 구하세요.

Answer: 46

Solution (Python):
var_a = 34
var_b = 60
var_c = 5
var_d = var_b / var_c
var_e = var_a + var_d
print(int(var_e))
Category: Geometry

Question (EN): Given a cube, how many vertices does it have?
Question (KO): 정육면체가 있을 때, 꼭지점은 총 몇개일까요?

Answer: 8

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

Question (EN): Jungkook collected 585 (a) items, and the number of (a) items is 249 more than (b) items. What is the sum of the items (a) and (b) that Jungkook has gathered?
Question (KO): 정국이는 (가) 물건을 585개 모았고, (가) 물건은 (나) 물건보다 249개 더 많이 모았습니다. 정국이가 모은 (가) 물건과 (나) 물건은 모두 몇 개입니까?

Answer: 921

Solution (Python):
var_a = 585
var_b = 585
var_c = 249
var_d = var_b - var_c
var_e = var_a + var_d
print(int(var_e))
Category: Comparison

Question (EN): Heejin has 3 Basketballs, 5 Volleyballs, and 1 Baseball. What ball does Heejin have the most?
Question (KO): 희진이는 농구공을 3개, 배구공을 5개, 야구공을 1개 가지고 있다. 희진이가 제일 많이 가지고 있는 공은 무엇인가?

Answer: Volleyballs

Solution (Python):
var_a = 'Basketballs'
var_b = 'Volleyballs'
var_c = 'Baseball'
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
var_e = 5
var_f = 1
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: Geometry

Question (EN): Make a square using all the strings that are 34.8 centimeters (cm). What is the length of one side of the rectangle to make it the largest?
Question (KO): 34.8센티미터(㎝)인 끈을 모두 사용하여 사각형을 만든다. 사각형의 넓이가 가장 크게 만드려면 한 변의 길이가 얼마여야하는가?

Answer: 8.7

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

Question (EN): When you mistakenly add 2 to a certain number while you had to subtract 2, the result is 6. What is the value if you calculate correctly?
Question (KO): 어떤 수에서 2를 빼야 할 것을 잘못하여 더했더니 6이 되었습니다. 바르게 계산하면 얼마입니까?

Answer: 2

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a - var_b
var_d = 2
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Of the 1,260 people who entered the exhibition hall, 7/18 were women. If 6/11 of the men who entered wore glasses, how many men that visited the exhibition hall wore glasses? 
Question (KO): 전시회장에 입장한 사람 1260명 중 7/18은 여자입니다. 입장한 남자 중 6/11이 안경을 썼다면 공원에 방문한 안경 쓴 남자는 모두 몇 명인가요?

Answer: 420

Solution (Python):
var_a = 1260
var_b = 1
var_c = 0.3888888888888889
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 0.5454545454545454
var_g = var_e * var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2)))))
Category: Geometry

Question (EN): Songi has a square-shaped piece of colored paper with a side of 13 centimeters (cm). Find the length of the circumference of this piece of paper.
Question (KO): 송이는 한 변의 길이가 13센티미터(㎝)인 정사각형 모양의 색종이를 가지고 있습니다. 이 색종이의 둘레의 길이를 구하시오.

Answer: 52

Solution (Python):
var_a = 13
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a rectangular window with a length of 47.3 centimeters (cm) and a width of 24 centimeters (cm). What is the area of this window?
Question (KO): 가로의 길이가 47.3센티미터(㎝)이고, 세로의 길이가 24센티미터(㎝)인 직사각형 모양의 창문이 있습니다. 이 창문의 넓이는 얼마입니까?

Answer: 1135.2

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

Question (EN): Jeonghoon misread the position of the decimal point in a certain number and moved the decimal point one place to the left of its original position. This resulted in the difference from the original number being 37.35. What is the original number?
Question (KO): 정훈이는 어떤 숫자의 소수점 위치를 잘못보고 소수점을 기준으로 왼쪽으로 한 자리씩 이동하여 나타내었더니 원래 숫자와 37.35만큼의 차이가 났습니다. 원래의 숫자는 얼마인지 구하시오.

Answer: 41.5

Solution (Python):
var_a = 37.35
var_b = 9
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: Correspondence

Question (EN): When we should multiply a certain number by 16 and add 8, we mistakenly divide it by 16, and the quotient is 8 and the remainder is 4. Find the correct calculated value.
Question (KO): 어떤 수에 16을 곱하고 8을 더해야 할 것을 잘못하여 16으로 나누었더니 몫이 8이고 나머지가 4였습니다. 바르게 계산한 값을 구하세요.

Answer: 2120

Solution (Python):
var_a = 8
var_b = 16
var_c = var_a * var_b
var_d = 4
var_e = var_c + var_d
var_f = 16
var_g = var_e * var_f
var_h = 8
var_i = var_g + var_h
print(int(var_i))