philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): To go to school, Woojun walked 1/5 of the total distance and took the subway for the remaining distance. How many times is the total distance taken by subway?
Question (KO): 우준이는 학교에 가기 위해서 전체 거리의 1/5는 걷고, 남은 거리는 지하철을 탔습니다. 지하철을 타고 간 거리는 전체 거리의 몇 배입니까?

Answer: 0.8

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

Question (EN): There are four types of animals in the fence: chicken, duck, rabbit, and dog. Find a way to get 15 animals out of the fence.
Question (KO): 울타리 안에 닭, 오리, 토끼, 강아지 네 종류의 동물이 있습니다. 울타리 안에서 15마리의 동물을 꺼내는 방법을 구하시오.

Answer: 816

Solution (Python):
var_a = 4
var_b = 1
var_c = var_a - var_b
var_d = 15
var_e = var_c + var_d
var_f = 15
var_g = 1
var_e = int(var_e)
var_f = int(var_f)
for i, elem in enumerate(range(var_f)):
    var_g = var_g * (var_e-i)
for i, elem in enumerate(range(var_f)):
    var_g = var_g / (i+1)
print(int(var_g))
Category: Comparison

Question (EN): Which number is the smallest among 5, 8, 3, 2, and 6?
Question (KO): 5, 8, 3, 2, 6중 가장 작은 숫자는?

Answer: 2

Solution (Python):
var_a = 5
var_b = 8
var_c = 3
var_d = 2
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 = 1
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 19 boxes of apples, each containing 46 pieces, and several boxes of tangerines, each containing 170 pieces. If there are 1894 apples and tangerines, how many boxes of tangerines are there?
Question (KO): 한 상자에 46개씩 들어있는 사과 19상자와 한 상자에 170개씩 들어있는 귤 몇 상자가 있습니다. 사과와 귤이 1894개라면 귤은 몇 상자입니까?

Answer: 6

Solution (Python):
var_a = 1894
var_b = 46
var_c = 19
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 170
var_g = var_e // var_f
print(int(var_g))
Category: Comparison

Question (EN): What is the sum of the numbers greater than or equal to 1.1 in 1.4, 9/10, 1.2, 0.5, and 13/10?
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10에서 1.1보다 크거나 같은 숫자를 나열한뒤, 합을 계산하면 얼마입니까?

Answer: 3.9

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
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.1
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: Correspondence

Question (EN): A number subtract by 7 is a multiple of 9, and the quotient of a number divided by 9 is 25. Find the value of a number multiplied by 9.
Question (KO): 어떤 수에서 7을 빼면 9의 배수가 되고 어떤 수를 9로 나눈 몫이 25라고 한다. 어떤 수에 9를 곱한 값을 구하시오.

Answer: 2088

Solution (Python):
var_a = 25
var_b = 9
var_c = var_a * var_b
var_d = 7
var_e = var_c + var_d
var_f = 9
var_g = var_e * var_f
print(int(var_g))
Category: Comparison

Question (EN): Nana and Gaeun are playing a game of tossing paper airplanes far. Nana flew the paper airplane 1.618 meters (m), and Gaeun flew the paper airplane 162.3 centimeters (cm). Find out who flew the paper plane farther.
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: Comparison

Question (EN): Jungkook collected the number 6 multiplied by 3, Yoongi collected 4, and Yuna collected 5. Who got the smallest number?
Question (KO): 정국이는 6에서 3을 곱한 수만큼 모았고, 윤기는 4, 유나는 5를 모았습니다. 누가 가장 작은 수를 모았나요?

Answer: Yoongi

Solution (Python):
var_a = 'Jungkook'
var_b = 'Yoongi'
var_c = 'Yuna'
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 = 6
var_e = 3
var_f = var_d * var_e
var_g = 4
var_h = 5
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)
list_b.reverse()
var_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[var_i-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Correspondence

Question (EN): Today, I poured 7/3 liter (L) of water from Suho's beaker into Seohyun's beaker. If the water in Suho's beaker is 3/2 liter (L) more than the water in Seohyun's beaker, how many more water was in Suho's beaker than in Seohyun's beaker originally in liters (L)?
Question (KO): 오늘 수호의 비커에 있는 물을 7/3리터(L) 만큼 서현이의 비커에 따라주었다. 현재 수호에 비커에 있는 물이 서현이의 비커에 있는 물보다 3/2리터(L)가 더 많다면 원래는 몇 리터(L) 더 많았는지 구하시오.

Answer: 6.17

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

Question (EN): In the multiplication of two-digit numbers, 2432 was calculated because I had mistaken the number 2 in the tens place of the number being multiplied for 6. If the correctly calculated value is 912, write the smaller of the two two-digit numbers.
Question (KO): 두 자리 수끼리의 곱셈에서 곱하는 수의 십의 자리 숫자 2를 6으로 잘못 보고 계산한 값이 2432가 되었습니다. 바르게 계산한 값이 912일 때, 2개의 두 자리 수 중 더 작은 수를 쓰시오.

Answer: 24

Solution (Python):
var_a = 2432
var_b = 912
var_c = var_a - var_b
var_d = 40
var_e = var_c / var_d
var_f = 912
var_g = 2432
var_h = 912
var_i = var_g - var_h
var_j = 40
var_k = var_i / var_j
var_l = var_f / var_k
list_a= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_a.append(var_l)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
list_a.reverse()
var_m = 1
list_b=list_a.copy()
list_b.sort()
var_n = list_b[var_m-1]
print(int(var_n))
Category: Correspondence

Question (EN): Seungho gave 273 of his marbles to Hyukjin. At this time, if Seungho has 477 more marbles than Hyukjin, find out how many more marbles he had before giving them.
Question (KO): 승호는 자신이 가지고 있는 구슬 중 273개를 혁진이에게 주었다. 이때 승호가 혁진이보다 구슬을 477개 더 많이 가지고 있다면 구슬을 주기 전에는 몇 개나 더 많았는지 구하시오.

Answer: 1023

Solution (Python):
var_a = 477
var_b = 273
var_c = var_a + var_b
var_d = 273
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When four 250 centimeters (cm) long tapes were attached together, the total length was 925 centimeters (cm). How many centimeters (cm) is the length of one overlapping segment, assuming that each overlapping segment is the same length?
Question (KO): 길이가 250센티미터(㎝)인 테이프 4개를 길게 이어 붙였더니 전체의 길이가 925센티미터(㎝)가 되었습니다. 겹쳐진 각 부분의 길이는 모두 같다고 할 때, 겹쳐진 한 부분의 길이는 몇 센티미터(㎝)입니까?

Answer: 25

Solution (Python):
var_a = 250
var_b = 4
var_c = var_a * var_b
var_d = 925
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: Geometry

Question (EN): There is a square with sides of 11 centimeters (cm) and a square with sides of 5 centimeters (cm). What is the sum of the areas of the two squares in square centimeters (cm2)?
Question (KO): 한 변이 11센티미터(㎝)인 정사각형과 한 변이 5센티미터(㎝)인 정사각형이 있습니다. 두 정사각형의 넓이의 합은 몇 제곱센티미터(㎠)입니까?

Answer: 146

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

Question (EN): The four-digit number 18A4 is less than 1853. A is in the tens place and can contain any digit from 0 to 9. How many digits can go in A?
Question (KO): 네 자리 수 18A4는 1853보다 작습니다. A는 십의 자리 숫자이고 A에는 0부터 9까지의 숫자를 쓸 수 있습니다. A에 쓸 수 있는 숫자는 모두 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '18A4'
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 = 1853
list_b = []
for i in list_a:
    if i < var_b:
        list_b.append(i)
var_c = len(list_b)
print(int(var_c))
Category: Correspondence

Question (EN): A7B+23=695. How much is B?
Question (KO): A7B+23=695입니다. B는 얼마인가요?

Answer: 2

Solution (Python):
var_a = 'A7B+23=695'
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): Minseok and Jaeyoon ate 3 apples each, so there are 2 apples left. How many apples were there initially?
Question (KO): 민석이와 재윤이가 사과를 3개씩 먹었더니 사과 2개가 남았습니다. 처음에 있던 사과는 몇 개입니까?

Answer: 8

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

Question (EN): There are 20 books (a) and books (b) in total, and there are four more books (a) than books (b). How many books (a) are there?
Question (KO): (가) 책과 (나) 책이 모두 20권 있는데 (가) 책이 (나) 책보다 4권 더 많습니다. (가) 책은 몇 권 있습니까?

Answer: 12

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

Question (EN): What is the third largest three-digit number with a tens digit of 2 formed by using 2, 0, 3, and 8 once?
Question (KO): 2, 0, 3, 8를 한 번씩 사용하여 만든 십의 자리 숫자가 2인 세 번째 큰 세 자리 수는 무엇입니까?

Answer: 328

Solution (Python):
var_a = 2
var_b = 0
var_c = 3
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 = 10
var_g = 2
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
for i in list_b:
    i = int(i)
    if (i//var_f)%10 == var_g:
        list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))
Category: Correspondence

Question (EN): 61 is the result of accidentally adding 26 to a number, to which 62 should have been added. How much do you get if calculated correctly?
Question (KO): 61은 어떤 수에 62를 더해야 하는데 실수로 26을 더해서 나온 결과 입니다. 바르게 계산하면 얼마입니까?

Answer: 97

Solution (Python):
var_a = 61
var_b = 26
var_c = var_a - var_b
var_d = 62
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): The number of the room where the treasure is hidden is four digits, each digit does not overlap, and is the second largest number which can be made of 2, 3, 7, and 9. What is the number of the room where the treasure is hidden?
Question (KO): 보물이 숨겨진 방의 번호는 네 자리 수이고, 각 자리의 숫자가 겹치는 것이 없으며 2, 3, 7, 9로 이루어진 두 번째로 큰 수이다. 보물이 숨겨진 방의 번호는 무엇인가?

Answer: 9723

Solution (Python):
var_a = 2
var_b = 3
var_c = 7
var_d = 9
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']
list_b = [float(i) for i in list_b]
var_f = 2
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If the hundreds digit of a three-digit natural number is 5, the tens digit is 1, and the units digit is 3, what is this number?
Question (KO): 세 자리 자연수의 백의 자리 숫자가 5, 십의 자리 숫자가 1, 일의 자리 숫자가 3일 때, 이 숫자는 얼마인지 구하시오.

Answer: 513

Solution (Python):
var_a = 5
var_b = 1
var_c = 3
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
print(int(var_d))
Category: Correspondence

Question (EN): Subtracting 46 from a number gives 15. What is the number obtained when 29 is subtracted from a number?
Question (KO): 어떤 수에서 46을 뺐더니 15가 되었습니다. 어떤 수에서 29를 빼면 얼마가 되는지 구하시오.

Answer: 32

Solution (Python):
var_a = 15
var_b = 46
var_c = var_a + var_b
var_d = 29
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Namjoon has 17 marbles. Yoongi has 11 fewer marbles than Namjoon's marbles times 5, and Hoseok has 8 more marbles than 2 times Yoongi's. How many marbles do Namjoon, Yoongi, and Hoseok have?
Question (KO): 남준이는 17개의 구슬을 가지고 있습니다. 윤기가 가진 구슬의 개수는 남준이의 구슬 수의 5배보다 11개 더 적고, 호석이가 가진 구슬의 개수는 윤기의 구슬 수의 2배보다 8개 더 많습니다. 남준, 윤기, 호석이가 가지고 있는 구슬은 모두 몇 개입니까?

Answer: 247

Solution (Python):
var_a = 17
var_b = 17
var_c = 5
var_d = var_b * var_c
var_e = 11
var_f = var_d - var_e
var_g = var_a + var_f
var_h = 17
var_i = 5
var_j = var_h * var_i
var_k = 11
var_l = var_j - var_k
var_m = 2
var_n = var_l * var_m
var_o = 8
var_p = var_n + var_o
var_q = var_g + var_p
print(int(var_q))
Category: Arithmetic calculation

Question (EN): You are going to make a fence by connecting 3 wooden planks that are 217 centimeters (cm) long. If the length of the overlapping part of the wooden planks is the same, and the length of the fence made is 627 centimeters (cm), find how many centimeters (cm) is the length of one overlapping part of the planks.
Question (KO): 길이가 217센티미터(㎝)인 나무판자 3개를 이어 울타리를 만들려고 합니다. 나무 판자가 겹쳐지는 부분의 길이는 같고 만들어진 울타리의 길이가 627센티미터(㎝)라면 판자가 겹쳐진 부분의 하나의 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 12

Solution (Python):
var_a = 217
var_b = 3
var_c = var_a * var_b
var_d = 627
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(int(var_i))
Category: Geometry

Question (EN): If the length of one side of the parallelogram is 3.8 meters (m) and the distance between this side and the opposite side is 6.36 meters (m), what is the area of the parallelogram?
Question (KO): 평행사변형의 한 변의 길이가 3.8미터(m)이고, 이 변과 마주보는 변 사이의 거리가 6.36미터(m)일 때, 이 평행사변형의 넓이는 얼마입니까?

Answer: 24.17

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

Question (EN): If A is the number less than -3 by -5, and B is the number greater than +2 by -2, find the value of A+B.
Question (KO): -3보다 -5만큼 작은 수를 A, +2보다 -2만큼 큰 수를 B라 할 때, A+B의 값을 구하시오.

Answer: 2

Solution (Python):
var_a = -3
var_b = -5
var_c = var_a - var_b
var_d = 2
var_e = -2
var_f = var_d + var_e
var_g = var_c + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Five dictionaries weighing 1050 grams (g) each were placed on one side of the two-arm scale. Two of nine identical books, each weighing 4.5 kilograms (kg), were placed on opposite sides of a two-arm scale. How many more 850-gram (g) pencil cases should be placed on the side where the books are placed to level the scale?
Question (KO): 양팔 저울 한쪽에 무게가 1050그램(g)인 사전 5권을 올려두었습니다. 무게의 합이 4.5킬로그램(㎏)인 9권의 같은 책 중 2권을 양팔 저울의 반대쪽에 올려두었습니다. 저울의 수평을 맞추기 위해선 책을 올려둔 쪽에 850그램(g)짜리 필통을 몇 개 더 올려야 합니까?

Answer: 5

Solution (Python):
var_a = 1050
var_b = 5
var_c = var_a * var_b
var_d = 4.5
var_e = 1000
var_f = var_d * var_e
var_g = 9
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = var_c - var_j
var_l = 850
var_m = var_k / var_l
print(int(var_m))
Category: Geometry

Question (EN): Some maps have a scale of 1/250000. Given two points whose actual distance is 5 kilometers (km), find the length in centimeters (cm) on the map.
Question (KO): 어떤 지도의 축척은 1/250000입니다. 실제 거리가 5킬로미터(㎞)인 두 지점이 있을 때, 지도에서의 길이를 센티미터(㎝)로 구하시오.

Answer: 2

Solution (Python):
var_a = 5
var_b = 100
var_c = 1000
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 4e-06
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): You made a mistake in dividing a certain number by 8, so you multiplied it by 8 and added 8 to get 56. Show how much it would be if you did it correctly, to two decimal places.
Question (KO): 어떤 수를 8로 나누어야 할 것을 잘못하여 곱하고 8을 더했더니 56이 되었습니다. 바르게 계산하면 얼마인지 소수점 둘째 자리까지 나타내어 보세요.

Answer: 0.75

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

Question (EN): 752AB which is five digit number is divisible by 3. If A and B can contain numbers from 0 to 9, how many numbers satisfy the condition?
Question (KO): 다섯 자리의 수 752AB가 3으로 나누어 떨어집니다. A와 B에 0부터 9까지의 숫자가 들어갈 수 있다면, 조건을 만족하는 수는 모두 몇 개인지 구하시오.

Answer: 33

Solution (Python):
var_a = '752AB'
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 = 3
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: Geometry

Question (EN): How many edges are there on the face of a regular tetrahedron?
Question (KO): 정사면체의 면의 변의 개수는?

Answer: 3

Solution (Python):
var_a = 3
print(int(var_a))
Category: Comparison

Question (EN): Choose a number greater than 1.1 from among 1.4, 9/10, 1.2, 0.5, and 13/10, and find the sum of the selected numbers
Question (KO): 1.4, 9/10, 1.2, 0.5, 13/10 중에서 1.1보다 큰 숫자를 고르고, 선택된 숫자들의 합을 구하세요

Answer: 3.9

Solution (Python):
var_a = 1.4
var_b = 0.9
var_c = 1.2
var_d = 0.5
var_e = 1.3
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.1
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: Correspondence

Question (EN): I divided a number by 16 incorrectly, which was supposed to be multiplied by 16, and the quotient is divided by 8. Find the correct calculated value.
Question (KO): 어떤 수에 16을 곱해야 할 것을 잘못하여 16으로 나누었더니 몫이 8로 나누어떨어졌습니다. 바르게 계산한 값을 구하세요.

Answer: 2048

Solution (Python):
var_a = 8
var_b = 16
var_c = var_a * var_b
var_d = 16
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): There are 901 Go balls. If you need a total of 53 Go balls to play a Go game, find the number of Go games that can be played simultaneously.
Question (KO): 901개의 바둑이 있습니다. 오목 경기를 하기 위해 총 53개의 바둑 공이 필요한 경우, 동시에 수행할 수 있는 오목 경기의 수를 구하십시오.

Answer: 17

Solution (Python):
var_a = 1
var_b = 53
var_c = 901
var_d = var_b / var_c
var_e = var_a / var_d
print(int(var_e))
Category: Comparison

Question (EN): Seongmin and Danbi made Pepero. Seongmin made 12 meters (m) and Danbi made 9 meters (m). Which of the two made it longer?
Question (KO): 성민이와 단비는 빼빼로를 만들었습니다. 성민이는 12미터(m), 단비는 9미터(m)를 만들었습니다. 둘 중 더 길게 만든 사람은 누구입니까?

Answer: Seongmin

Solution (Python):
var_a = 'Seongmin'
var_b = 'Danbi'
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 = 12
var_d = 9
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): Woojin's family harvested potatoes in the field. The younger brother dug out 3.8 kilograms (kg), and the older sister dug out 8.4 kilograms (kg) more than the younger brother did. If Woojin dug out 3720 grams (g) more than 1/10 of the weight of her sister did, how many kilograms (kg) of Woojin's harvested potatoes?
Question (KO): 우진이네 가족은 밭에서 감자를 캤습니다. 동생은 3.8킬로그램(㎏) 을 캤고, 누나는 동생보다 8.4킬로그램(㎏) 더 많이 캤습니다. 우진이는 누나가 캔 감자의 무게의 1/10 보다 3720그램(g) 더 많이 캤다면 우진이가 캔 감자는 몇 킬로그램(㎏)입니까?

Answer: 4.94

Solution (Python):
var_a = 3.8
var_b = 8.4
var_c = var_a + var_b
var_d = 0.1
var_e = var_c * var_d
var_f = 3720
var_g = 1000
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): Find the total amount of bread in 3 bags containing 3 loaves.
Question (KO): 빵이 3개씩 들어있는 봉지 3개에 들어 있는 빵은 모두 몇 개 입니까?

Answer: 9

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