philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Two tapes of the same length are stacked together and overlapped resulting in a total length of 512 centimeters (cm). If the length of one piece of tape is 275 centimeters (cm), how many centimeters (cm) is the overlap?
Question (KO): 같은 길이의 테이프 2개를 겹쳐서 붙였더니 총 길이가 512센티미터(㎝)가 되었습니다. 테이프 하나의 길이가 275센티미터(㎝)이라면 겹쳐진 부분은 몇 센티미터(㎝)입니까?

Answer: 38

Solution (Python):
var_a = 275
var_b = 275
var_c = var_a + var_b
var_d = 512
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): A small cube was dug out of the edge of the cube that has the length of edge being 12 centimeters (cm). If the length of the edge of the small cube is 4 centimeters (cm), find the surface area of the portion left after the cutout.
Question (KO): 모서리의 길이가 12센티미터(㎝)인 정육면체의 모서리에서 작은 정육면체를 파냈다. 작은 정육면체의 모서리의 길이가 4센티미터(㎝)라고 한다면, 파내고 남은 부분의 겉넓이를 구하시오.

Answer: 1632

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

Question (EN): There are 3 different pencils, 2 different erasers, and 2 different ballpoint pens. If 3 of these are selected and gifted, find the number of cases.
Question (KO): 서로 다른 연필이 3개, 서로 다른 지우개가 2개, 서로 다른 볼펜이 2개가 있다. 이 중 3개를 뽑아 선물한다고 할 때, 선물의 경우의 수를 구하시오.

Answer: 35

Solution (Python):
var_a = 3
var_b = 2
var_c = var_a + var_b
var_d = 2
var_e = var_c + var_d
var_f = 3
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: Possibility

Question (EN): Find the difference between the largest two-digit number and the smallest one-digit number that can be made by using all four cards with the numbers 3, 1, 7, and 4 once.
Question (KO): 3, 1, 7, 4 가 적힌 4장의 카드를 한 번씩 모두 사용하여 만들 수 있는 가장 큰 소수 두 자리 수와 가장 작은 소수 한 자리 수의 차를 구하시오

Answer: 72.96

Solution (Python):
var_a = 3
var_b = 1
var_c = 7
var_d = 4
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
var_n = 4
list_d = [str(i) for i in list_a]
list_d = list(itertools.permutations(list_d, var_n))
list_d = [''.join(num_list) for num_list in list_d]
list_d = [str_num for str_num in list_d if str_num[0] != '0']
list_d = [float(i) for i in list_d]
var_o = 1
list_e=list_d.copy()
list_e.sort()
var_p = list_e[var_o-1]
var_q = 10
var_r = len(list_a)
var_s = 1
var_t = var_r - var_s
var_u = var_q ** var_t
var_v = var_p / var_u
var_w = var_m - var_v
var_x = abs(var_w)
print('{:.2f}'.format(round(var_x+1e-10,2)))
Category: Arithmetic calculation

Question (EN): One worker makes 370 pencils in a week. How many workers are needed to make 1000 dozens of pencils in a week?
Question (KO): 노동자 한 명이 일주일 동안 생산하는 연필이 370자루입니다. 일주일 동안 연필 1000타를 생산하기 위해선 몇 명의 노동자가 필요합니까?

Answer: 33

Solution (Python):
var_a = 1000
var_b = 12
var_c = var_a * var_b
var_d = 370
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): There were 18 people in the elevator. After a while, a few people got off and there were 11 people left. How many people got off the elevator?
Question (KO): 엘리베이터에 18명이 타고 있었습니다. 잠시 후 몇 명이 내려서 11명이 남았습니다. 엘리베이터에서 내린 사람은 몇 명입니까?

Answer: 7

Solution (Python):
var_a = 18
var_b = 11
var_c = var_a - var_b
print(int(var_c))
Category: Correspondence

Question (EN): The equation A45+2B3=418 is said to be true. What number should go in A?
Question (KO): 등식 A45+2B3=418이 성립한다고 합니다. A에 들어가야 하는 숫자는 무엇인가요?

Answer: 1

Solution (Python):
var_a = 'A45+2B3=418'
var_b = 'A'
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: Possibility

Question (EN): I have a box in the shape of an icosahedron. How many faces meet at one vertex of this box?
Question (KO): 정이십면체 모양의 상자가 있습니다. 이 상자의 한 꼭짓점에 모인 면의 개수는?

Answer: 5

Solution (Python):
var_a = 5
print(int(var_a))
Category: Possibility

Question (EN): Find how many 3-digit natural numbers that can be formed by repeating odd numbers from 1 to 9 are greater than 500.
Question (KO): 1부터 9까지의 홀수를 중복 사용하여 만들 수 있는 3자리 자연수 중 500초과인 수는 모두 몇 개인지 구하시오.

Answer: 75

Solution (Python):
var_a = 1
var_b = 9
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.product(list_b, repeat=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 = 500
list_c = []
for i in list_b:
    if i > var_d:
        list_c.append(i)
var_e = len(list_c)
print(int(var_e))
Category: Geometry

Question (EN): How many faces are there in a regular octahedron?
Question (KO): 정팔면체에서 면은 모두 몇개일까요?

Answer: 8

Solution (Python):
var_a = 8
print(int(var_a))
Category: Correspondence

Question (EN): 103 is the result of accidently multiplying a number by 3 and subtracting 5 when you have to actually divide this number by 3 and subtract 5. How much is it when you calculate correctly?
Question (KO): 103은 어떤수를 3으로 나누고 5를 빼야할 것을 실수로 3을 곱하고 5를 빼서 나온 결과입니다. 바르게 계산하면 얼마입니까?

Answer: 7

Solution (Python):
var_a = 103
var_b = 5
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 = 5
var_i = var_g - var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): If the sum of 25 consecutive even numbers is 750, which number is the smallest?
Question (KO): 연속된 짝수 25개의 합이 750일 때, 이 중 가장 작은 수는?

Answer: 6

Solution (Python):
var_a = 750
var_b = 25
var_c = var_a / var_b
var_d = 25
var_e = 2
var_f = var_d // var_e
var_g = 2
var_h = var_f * var_g
var_i = var_c - var_h
print(int(var_i))
Category: Possibility

Question (EN): Yoongi, Jungkook, and Hoseok each put three notebooks in an empty bookshelf. How many notebooks are there in this bookshelf?
Question (KO): 윤기, 정국, 호석이는 각자 공책 3개를 빈 책장에 꽂아 넣었습니다. 이 책장에 있는 공책은 모두 몇 개일까요?

Answer: 9

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

Question (EN): There are 5 boxes. If there are 20 children's books in a box, how many children's books are there in all boxes?
Question (KO): 상자가 5개있습니다. 한 상자에는 동화책이 20권 담겨져 있다고 할 때 동화책은 모두 몇 권 있습니까?

Answer: 100

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

Question (EN): Yoongi collected 4, Jungkook collected 6 minus 3, and Yuna collected 5. Who has the biggest number?
Question (KO): 윤기는 4, 정국에는 6에서 3을 뺀 수를 모았고, 유나는 5를 모았습니다. 누가 가장 큰 수를 가지고 있나요?

Answer: Yuna

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 4
var_e = 6
var_f = 3
var_g = var_e - var_f
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_d):
    var_d = eval(str(var_d))
list_b.append(var_d)
list_b.reverse()
var_i = 1
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: Geometry

Question (EN): What is the sum of the number of sides of a triangle, square, and hexagon?
Question (KO): 삼각형, 사각형, 육각형의 변의 개수를 모두 더한 값은 얼마입니까?

Answer: 13

Solution (Python):
var_a = 6
var_b = 3
var_c = var_a + var_b
var_d = 4
var_e = var_c + var_d
print(int(var_e))
Category: Geometry

Question (EN): Mijin's dice has one edge of 11 centimeters (cm). Find the surface area of this dice.
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: Arithmetic calculation

Question (EN): Kahi memorized 1/9 of the 810 English words given as homework yesterday. If she memorized a quarter of the remaining words today, count how many English words she memorized today.
Question (KO): 가희는 어제 하루 숙제로 주어진 810개의 영어단어 중 1/9을 외웠다. 오늘 남은 단어의 4분의 1을 외웠다면 오늘 얼마나 많은 영어 단어를 외웠는지 세어 보세요.

Answer: 180

Solution (Python):
var_a = 810
var_b = 1
var_c = 0.1111111111111111
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 1
var_g = 4
var_h = var_f / var_g
var_i = var_e * var_h
print(int(var_i))
Category: Geometry

Question (EN): If the ratio of the radii of two bowling balls is 1:2 and the volume of the small ball is 36 cubic centimeters (cm3), what is the volume of the large ball?
Question (KO): 두 볼링공의 반지름의 길이의 비가 1:2이고, 작은 공의 부피가 36세제곱센티미터(㎤)일 때, 큰 공의 부피는?

Answer: 288

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

Question (EN): Twenty-seven cubes with an edge of 4 centimeters (cm) long were glued together to form one large cube. What is the surface area of this large cube in square centimeters (cm2)?
Question (KO): 한 모서리의 길이가 4센티미터(㎝)인 정육면체 27개를 붙여 하나의 큰 정육면체를 만들었습니다. 이 큰 정육면체의 겉넓이는 몇 제곱센티미터입니까?

Answer: 864

Solution (Python):
var_a = 4
var_b = 3
var_c = var_a * var_b
var_d = 4
var_e = 3
var_f = var_d * var_e
var_g = var_c * var_f
var_h = 6
var_i = var_g * var_h
print(int(var_i))
Category: Comparison

Question (EN): Write the common multiples of 27 and 45 in order from smallest to largest. What is the product of the numbers between the 7th and 10th numbers from the left?
Question (KO): 27과 45의 공배수를 작은 수부터 차례대로 썼습니다. 왼쪽에서 7번째 수와 10번째 수 사이에 있는 수들의 곱은 얼마입니까?

Answer: 1312200

Solution (Python):
var_a = 27
var_b = 45
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 8
var_e = var_c * var_d
var_f = 27
var_g = 45
var_h = var_g * var_f / math.gcd(int(var_g), int(var_f))
var_i = 9
var_j = var_h * var_i
var_k = var_e * var_j
print(int(var_k))
Category: Geometry

Question (EN): If the diameter of a coin is 14 millimeters (mm), what is the radius of this coin in millimeters (mm)?
Question (KO): 어느 동전의 지름이 14 밀리미터(㎜)일 때, 이 동전의 반지름은 몇 밀리미터(㎜) 인가요?

Answer: 7

Solution (Python):
var_a = 14
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): A full bucket of water weighs 3.4 kilograms (kg). After drinking 1/5 of the water, the bucket was re-weighed and the weight was 2.98 kilograms (kg). How many kilograms (kg) does the empty bucket weigh?
Question (KO): 물이 가득 차있는 물통은 3.4킬로그램(㎏)입니다. 물의 1/5를 마시고 물통의 무게를 다시 재었더니 무게가 2.98킬로그램(㎏)이 되었습니다. 빈 물통의 무게는 몇 킬로그램(㎏)인가요?

Answer: 1.3

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

Question (EN): In a herd of 93 goats, there are black and white goats. There are 66 black goats, and the rest are white goats. If 21 new black goats came in and as many black goats died as white goats, how many black goats will there be?
Question (KO): 총 93마리가 있는 어느 염소무리에 흑염소와 흰 염소가 존재한다. 흑염소는 66마리이고 나머지는 흰 염소이다. 새로운 흑염소 21마리가 들어왔고 흰염소의 수만큼이 죽었다면, 흑염소는 몇마리인가?

Answer: 60

Solution (Python):
var_a = 66
var_b = 93
var_c = 66
var_d = var_b - var_c
var_e = var_a - var_d
var_f = 21
var_g = var_e + var_f
print(int(var_g))
Category: Comparison

Question (EN): 20 students lined up in a single line. Eleven students are standing behind Yoongi, and Hoseok is standing right behind Yoongi. How many students are standing in front of Hoseok?
Question (KO): 20명의 학생들이 한 줄로 줄을 섰습니다. 윤기의 뒤에는 11명의 학생들이 서 있고, 호석이는 윤기 바로 뒤에 서 있습니다. 호석이 앞에 서 있는 학생은 몇 명입니까?

Answer: 9

Solution (Python):
var_a = 20
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
var_f = 1
var_g = var_e - var_f
print(int(var_g))
Category: Comparison

Question (EN): As a result of the school Korean test, Taehyung, Minju, Sangmin, Yoonjung, and Yoojung received the highest scores in that order. Who has the highest score?
Question (KO): 학교 한국어 시험 결과 태형, 민주, 상민, 윤정, 유정이 순으로 높은 점수를 받았다. 가장 높은 점수를 받은 사람은 누구입니까?

Answer: Taehyung

Solution (Python):
var_a = 'Taehyung'
var_b = 'Minju'
var_c = 'Sangmin'
var_d = 'Yoonjung'
var_e = 'Yoojung'
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
var_g = list_a[var_f-1]
print(var_g)
Category: Correspondence

Question (EN): There was a mistake in calculation that you divided 63 by a certain number instead of subtracting a certain number from 36. If you got the wrong answer 9, how much is it if you calculate it correctly?
Question (KO): 36에 어떤 수를 빼야 할 것을 잘못하여 63에 어떤 수를 나누었더니 9가 되었습니다. 바르게 계산하면 얼마인지 구하시오.

Answer: 29

Solution (Python):
var_a = 36
var_b = 63
var_c = 9
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e))
Category: Possibility

Question (EN): There is only one white marble, one black marble, one purple marble, one green marble, and one red marble. How many combinations can you buy if you buy 2 marbles?
Question (KO): 흰색 구슬, 검은색 구슬, 보라색 구슬, 초록색 구슬, 빨간색 구슬이 딱 한 개씩만 있습니다. 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: Geometry

Question (EN): How many triangles will there be if you draw a diagonal from one of the vertices of the pentagon?
Question (KO): 오각형의 꼭지점 중 하나에서, 대각선을 그으면 삼각형이 몇 개 생길까요?

Answer: 3

Solution (Python):
var_a = 5
var_b = 3
var_c = var_a - var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): Jiwoo has magnets which has 1, 2, and 7 numbers on them. If you arrange them to make a two-digit number, how many ways can he make it?
Question (KO): 지우는 숫자가 적힌 자석 1, 2, 7을 가지고 있다. 이를 배치하여 두 자리 수를 만든다고 할 때 , 만들 수 있는 경우는 모두 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 1
var_b = 2
var_c = 7
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: Arithmetic calculation

Question (EN): (A) class mates ate 8 pizzas. (B) class mates ate 7 pizzas. How many pizzas did the students in (a) and (b) eat?
Question (KO): (가) 반 학생들은 8판의 피자를 먹었습니다. (나) 반 학생들은 7판의 피자를 먹었습니다. (가) 반과 (나) 반 학생들이 먹은 피자는 모두 몇 판입니까?

Answer: 15

Solution (Python):
var_a = 8
var_b = 7
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a rectangle with four sides the same length. What is the area of the rectangle if the diagonals of the rectangle are 6 centimeters (cm) and 10 centimeters (cm), respectively?
Question (KO): 네 변의 길이가 같은 사각형이 있습니다. 이 사각형의 대각선의 길이가 각각 6센티미터(㎝), 10센티미터(㎝)일 때 사각형의 넓이는 얼마입니까?

Answer: 30

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

Question (EN): A snail takes 5/18 minutes to crawl 7/12 centimeters (cm). If this snail crawls at a constant speed, how many centimeters (cm) can it travel in 1 minute?
Question (KO): 어느 달팽이는 7/12센티미터(㎝)를 기어가는 데 5/18분이 걸립니다. 이 달팽이가 같은 빠르기로 기어간다면 1분 동안 갈 수 있는 거리는 몇 센티미터(㎝)인가요?

Answer: 2.1

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

Question (EN): Write the third largest number when creating a two-digit decimal number using all four cards with numbers 3, 8, 2, and 7.
Question (KO): 3, 8, 2, 7의 숫자가 적힌 4 장의 카드를 모두 한 번씩 사용하여 소수 두 자리 수를 만들 때 세 번째로 큰 수를 쓰시오.

Answer: 83.72

Solution (Python):
var_a = 3
var_b = 8
var_c = 2
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 = 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 = 3
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 10
var_i = len(list_a)
var_j = 2
var_k = var_i - var_j
var_l = var_h ** var_k
var_m = var_g / var_l
print('{:.2f}'.format(round(var_m+1e-10,2)))
Category: Possibility

Question (EN): I'm going to choose two people from Jungkook, Jimin, and Yoongi to line up. How many options are there in total?
Question (KO): 정국, 지민, 윤기 중에서 2사람을 선택해서 줄 세우려고 합니다. 선택할 수 있는 경우는 모두 몇 가지 입니까?

Answer: 6

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

Question (EN): You have 2 chances to pick from the basket. How many possible ways can fruit be picked from a basket with 1 apple, 1 peach, and 1 pear each?
Question (KO): 바구니에서 뽑을 수 있는 기회는 2번입니다. 바구니 속에 사과, 복숭아, 배가 각각 1개씩 들어가있는 바구니에서 차례를 고려하여 과일을 뽑는다면, 가능한 경우의 수는 몇 가지입니까?

Answer: 6

Solution (Python):
var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
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 = len(list_a)
var_e = 2
var_f = 1
var_d = int(var_d)
var_e = int(var_e)
for i, elem in enumerate(range(var_e)):
    var_f = var_f * (var_d-i)
print(int(var_f))
Category: Geometry

Question (EN): The length of the radius of the circle inside the donut is 2 centimeters (cm), and the length of the radius of the circle on the outside is 6 centimeters (cm). Find how many times bigger the length of the outer circumference of the donut is compared to the length of the inner circumference of the donut.
Question (KO): 도너츠의 안쪽에 있는 원의 반지름의 길이는 2센티미터(㎝)이고, 바깥쪽에 있는 원의 반지름의 길이는 6센티미터(㎝)입니다. 도너츠의 바깥쪽 둘레의 길이는 도너츠의 안쪽 둘레의 길이의 몇 배인지 구하시오.

Answer: 3

Solution (Python):
var_a = 6
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Correspondence

Question (EN): 54 is this number minus 39. What do you get if this number is divided by 3?
Question (KO): 54는 어떤 수에서 39를 뺀 값이다. 어떤 수를 3으로 나눈다면 얼마가 되는가?

Answer: 31

Solution (Python):
var_a = 39
var_b = 54
var_c = var_a + var_b
var_d = 3
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): Place four points on the segment AB. Find the number of straight lines that can be formed by connecting two of the four points with point C that is not on line segment AB.
Question (KO): 선분AB 위에 4개의 점을 찍었다. 선분 AB위에 있지 않은 점 C와 4개의 점 중 2개를 연결하여 만들 수 있는 직선의 개수를 구하시오.

Answer: 5

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

Question (EN): Yujeong drank 7/10 liters (L) of water. Eunji drank 0.5 liters (L) of water. Yuna drank 6/10 liters (L) of water. Who drank the most water?
Question (KO): 유정이는 물을 7/10리터(L) 마셨습니다. 은지는 물을 0.5리터(L) 마셨습니다. 유나는 물을 6/10리터(L) 마셨습니다. 물을 가장 많이 마신 사람은 누구입니까?

Answer: Yujeong

Solution (Python):
var_a = 'Yujeong'
var_b = 'Eunji'
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 = 7
var_e = 10
var_f = var_d / var_e
var_g = 0.5
var_h = 6
var_i = 10
var_j = var_h / var_i
list_b= []
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_b.append(var_j)
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_k = 1
list_c=list_b.copy()
list_c.sort()
var_l = list_c[-var_k]
var_m = list_b.index(var_l)+1
var_n = list_a[var_m-1]
print(var_n)