philschmid/DMath huggingface dataset:
Category: Correspondence

Question (EN): Shinyoung gave 1/2 of the candy he had to Yonghee, and gave 5 more than 1/3 of the remaining candy to Hancho. If there are 5 candies left, how many candies did Shinyoung have at first?
Question (KO): 신영이는 가지고 있던 사탕의 1/2을 용희에게 주고, 남은 사탕의 1/3보다 5개 많이 한초에게 주었습니다. 남은 사탕이 5개라면, 신영이는 처음에 몇 개의 사탕을 가지고 있었습니까?

Answer: 30

Solution (Python):
var_a = 5
var_b = 5
var_c = var_a + var_b
var_d = 1
var_e = 0.3333333333333333
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 1
var_i = 0.5
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): A number needs to be multiplied by 6, but you mistakenly subtracted it, and got 51. Find the result of the correct calculation.
Question (KO): 어떤 수에 6을 곱해야 하는데 잘못하여 뺐더니 51이 되었습니다. 바르게 계산한 결과를 구하시오.

Answer: 342

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

Question (EN): You want to create a three-digit number using only one of 5, 9, and 2. What is the sum of the two numbers when it has the greatest difference?
Question (KO): 5, 9, 2 중에서 한 번씩만 사용하여 세 자리 수를 만들려고 합니다. 만든 두 수의 차가 가장 크게 될 때, 두 수의 합은 무엇입니까?

Answer: 1211

Solution (Python):
var_a = 5
var_b = 9
var_c = 2
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 1
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: Geometry

Question (EN): When there is an equilateral triangle with a perimeter of 18 centimeters (cm), what is the length of one side of this equilateral triangle?
Question (KO): 둘레의 길이가 18센티미터(㎝)인 정삼각형이 있습니다. 이 정삼각형의 한 변의 길이는 얼마입니까?

Answer: 6

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

Question (EN): 6 students from Minjine's group were traveling by train from Seoul Station to Gwangju Station, and there were only 4 seats left, so they decided to stand up and take turns sitting on the rest. If the train ride is 3 hours and 12 minutes, find how many minutes each person can sit on average.
Question (KO): 민지네 모둠 학생 6명이 기차를 타고 서울역에서 광주역까지 가는데 남은 좌석이 4개밖에 없어서 나머지를 입석표로 끊고 돌아가면서 앉기로 하였습니다. 기차를 타는 시간이 3시간 12분이라면 한 사람이 평균 몇 분씩 앉을 수 있는지 구하시오.

Answer: 128

Solution (Python):
var_a = 3
var_b = 60
var_c = var_a * var_b
var_d = 12
var_e = var_c + var_d
var_f = 6
var_g = var_e / var_f
var_h = 4
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): At a stationery store, 210 sheets of red colored paper and 473 sheets of blue colored paper are mixed and 100 sheets are bound in a bundle. How many bundles of colored paper can you bundle at the maximum?
Question (KO): 어느 문구점에서 빨간 색종이 210장과 파란 색종이 473장을 섞어서 한 묶음에 100장씩 묶으려고 합니다. 묶을 수 있는 색종이는 최대 몇 묶음입니까?

Answer: 6

Solution (Python):
var_a = 210
var_b = 473
var_c = var_a + var_b
var_d = 100
var_e = var_c // var_d
print(int(var_e))
Category: Comparison

Question (EN): Yoongi is playing a game of throwing basketballs with his 20 friends. When 11 students had goaled more balls than Yoongi, how many students did not goal balls than Yoongi?
Question (KO): 윤기는 20명의 친구들과 함께 농구공 많이 넣기 놀이를 하고 있습니다. 11명의 학생들이 윤기보다 공을 많이 넣었을 때, 윤기보다 공을 못넣은 학생은 몇 명입니까?

Answer: 8

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

Question (EN): Adding 5 consecutive natural numbers equals 180. Find the largest of these 5 numbers.
Question (KO): 연속된 자연수 5개를 더하니 180이 되었습니다. 이 5개의 수 중 가장 큰 수를 구하시오.

Answer: 38

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

Question (EN): When you add 12 to a number and divide it by 4, the quotient is 12 and the remainder is 3. find some number
Question (KO): 어떤 수에 12를 더한 뒤 4로 나누었더니 몫이 12이고 나머지가 3이 되었습니다. 어떤 수를 구하시오.

Answer: 39

Solution (Python):
var_a = 12
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
var_f = 12
var_g = var_e - var_f
print(int(var_g))
Category: Comparison

Question (EN): Classes 1 and 2 shared the 1000 marbles they received as a prize. At this time, class 2 took 50 fewer marbles than class 1 did, and male students in class 2 took a total of 35 more than female students in class 2. If there are 17 boys in class 2 and the marbles were shared with that boys equally, what is the difference between the number of marbles each male in class 2 receives and the total number of marbles taken by class 1?
Question (KO): 1반과 2반이 우승 상품으로 받은 구슬 1000개를 나누어 가졌습니다. 이 때, 2반이 1반보다 50개를 덜 가져갔고, 2반 남학생들이 2반 여학생보다 총 35개를 더 가져갔습니다. 2반 남학생이 17명이고 남학생들끼리는 똑같이 나누어 가질 때, 2반 남학생 한 명이 받는 구슬의 개수와 1반이 가져간 전체 구슬 개수의 차는 얼마입니까?

Answer: 510

Solution (Python):
var_a = 1000
var_b = 50
var_c = var_a - var_b
var_d = 2
var_e = var_c / var_d
var_f = 50
var_g = var_e + var_f
var_h = 1000
var_i = 50
var_j = var_h - var_i
var_k = 2
var_l = var_j / var_k
var_m = 35
var_n = var_l - var_m
var_o = 2
var_p = var_n / var_o
var_q = 35
var_r = var_p + var_q
var_s = 17
var_t = var_r / var_s
var_u = var_g - var_t
print(int(var_u))
Category: Comparison

Question (EN): Shinyoung ate 1/3 of the pizza, Seokgi 1/4, and Woong 1/5. Who ate the most pizza?
Question (KO): 한 판의 피자를 시켜서 신영이는 1/3, 석기는 1/4, 웅이는 1/5를 먹었습니다. 피자를 가장 많이 먹은 사람은 누구입니까?

Answer: Shinyoung

Solution (Python):
var_a = 'Shinyoung'
var_b = 'Seokgi'
var_c = 'Woong'
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 = 0.3333333333333333
var_e = 0.25
var_f = 0.2
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: Comparison

Question (EN): There are tangerine trees A, B, C, and D. A had more tangerines than D, and D had more tangerines than C. If B has more tangerines than A, which tangerine tree has the most tangerines?
Question (KO): 귤나무 A, B, C, D가 있습니다. A는 D보다 귤이 많이 열렸고, D는 C보다 귤이 많이 열렸습니다. B는 A보다 귤이 많이 열렸을 때, 가장 많은 귤이 열려있는 귤나무는 무엇일까요?

Answer: B

Solution (Python):
var_a = 'A'
var_b = 'B'
var_c = 'C'
var_d = 'D'
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 'A'
var_f = 'D'
var_g = '>'
var_h = 'D'
var_i = 'C'
var_j = '>'
var_k = 'B'
var_l = 'A'
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 = 1
var_o = list_c[var_n-1]
print(var_o)
Category: Geometry

Question (EN): You made a cube with wire at home, and there was no wire left when the edge was 10 centimeters (cm) long. If you use all of this wire in the cube to make a cuboid with a length of 8 centimeters (cm) and a width of 5 centimeters (cm), how high should it be in centimeters (cm)?
Question (KO): 집에 있는 철사로 정육면체를 만들었는데, 한 모서리의 길이가 10센티미터(㎝)인 정육면체를 만들었더니 남은 철사가 없었다. 이 정육면체를 남김없이 사용하여 가로가 8센티미터(㎝), 세로가 5센티미터(㎝)인 직육면체를 만든다면, 높이를 몇 센티미터(㎝)로 해야 하는가?

Answer: 17

Solution (Python):
var_a = 10
var_b = 12
var_c = var_a * var_b
var_d = 8
var_e = 4
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 5
var_i = 4
var_j = var_h * var_i
var_k = var_g - var_j
var_l = 4
var_m = var_k / var_l
print(int(var_m))
Category: Correspondence

Question (EN): Seonyeong's classmates and Jieun's classmates are lined up together on the playground. Students are standing in 12 rows of 4 students in each line, followed by 3 students. There are 12 students in Jiune's class. Find how many students are in Seonyeong's class.
Question (KO): 선영이네 반 학생들과 지우네 반 학생들이 운동장에 함께 줄 서있다. 학생들이 한 줄에 4명씩 12줄로 서 있었고 그 뒤에 3명이 서 있었다. 지우네 반 학생은 12명이다. 선영이네 반 학생은 몇 명인지 구하시오.

Answer: 39

Solution (Python):
var_a = 12
var_b = 4
var_c = var_a * var_b
var_d = 3
var_e = var_c + var_d
var_f = 12
var_g = var_e - var_f
print(int(var_g))
Category: Geometry

Question (EN): You are going to make a cube with one edge 13 centimeters (cm) long using wire. How many centimeters (cm) of wire should I use?
Question (KO): 철사를 이용하여 한 모서리의 길이가 13센티미터(㎝)인 정육면체를 만들려고 합니다. 몇 센티미터(㎝)의 철사를 사용해야 합니까?

Answer: 156

Solution (Python):
var_a = 13
var_b = 4
var_c = var_a * var_b
var_d = 13
var_e = 4
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 13
var_i = 4
var_j = var_h * var_i
var_k = var_g + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): It is said that 269 cookies are divided equally among 29 students. If the price of one cookie is 150 won and you buy the lacking number of cookies, find out how much money you need.
Question (KO): 과자 269개를 29명 학생에게 동일하게 나누어 준다고 합니다. 과자 한 개의 가격은 150원이며 모자란 개수만큼 과자를 산다고 할 때 얼마가 필요한지 구해보세요.

Answer: 1200

Solution (Python):
var_a = 269
var_b = 29
var_c = var_a % var_b
var_d = 150
var_e = var_c * var_d
print(int(var_e))
Category: Correspondence

Question (EN): Suhan, Minsu, and Gyeongyeon climb the stairs one by one at the same time. When Suhan was on the 10th step, Minsu was on the 7th step, and when Minsu was on the 5th step, Gyeongyeon was on the 32nd step. When Suhan was on the 12th stairway, find the sum of the stairs where Minsu and Gyeongyeon are located.
Question (KO): 수한이와 민수와 경연이는 계단을 동시에 하나씩 오른다. 수한이가 10번째 계단일 때 민수는 7번째 계단에 있었고, 민수가 5번째 계단에 있을 때 경연이는 32번째 계단에 있었다. 수한이가 12번째 계단에 올라갔을 때 민수와 경연이가 위치한 계단의 합을 구하시오.

Answer: 48

Solution (Python):
var_a = 7
var_b = 10
var_c = var_a - var_b
var_d = 12
var_e = var_c + var_d
var_f = 32
var_g = 5
var_h = var_f - var_g
var_i = 12
var_j = var_h + var_i
var_k = var_e + var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): There are 12 pencils per stroke. How many pencils must be given to each person to distribute all 6 strokes to 8 people?
Question (KO): 연필 한 타는 12자루입니다. 연필 6타를 8명에게 남김없이 나누어 주려면 한 사람에게 몇 자루씩 주어야 합니까?

Answer: 9

Solution (Python):
var_a = 12
var_b = 6
var_c = var_a * var_b
var_d = 8
var_e = var_c // var_d
print(int(var_e))
Category: Geometry

Question (EN): There are two circles A, B of different sizes. The radius of circle A is 4 times the radius of circle B. If the diameter of circle A is 80 centimeters (cm), what is the radius of circle B in centimeters (cm)?
Question (KO): 크기가 다른 두 원 가, 나가 있습니다. 가 원의 반지름은 나 원의 반지름의 4배입니다. 가 원의 지름이 80센티미터(㎝)라면 나 원의 반지름은 몇 센티미터(㎝)인지 구해 보시오.

Answer: 10

Solution (Python):
var_a = 80
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e))
Category: Geometry

Question (EN): A regular octagon has a perimeter of 23.6 centimeters (cm). What is the length of one side of this figure in cm (cm)?
Question (KO): 둘레가 23.6 센티미터(㎝) 인 정팔각형이 있습니다. 이 도형의 한 변의 길이는 몇 센티미터(㎝) 입니까?

Answer: 2.95

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

Question (EN): If the number 133 greater than this number is 282, find the number 114 less than this number.
Question (KO): 어떤 수보다 133 큰 수가 282일 때, 어떤 수보다 114 작은 수를 구하시오.

Answer: 35

Solution (Python):
var_a = 282
var_b = 133
var_c = var_a - var_b
var_d = 114
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): There are 3 blue balls and 5 red balls in the box. When 2 red balls are removed from that box, how many blue balls are in the box?
Question (KO): 상자 안에는 파란 공 3개와 빨간 공 5개가 있습니다. 2개의 빨간 공을 뺐을 때, 상자 안에 파란 공은 몇 개 있습니까?

Answer: 3

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

Question (EN): I made a large square out of several small square tiles, and I have 20 tiles left. When I tried to make a bigger square by adding one row to each horizontal and vertical side, 9 tiles were short. Find the total number of small tiles.
Question (KO): 여러 개의 작은 정사각형 타일로 큰 정사각형을 만들었더니 20개의 타일이 남았다. 가로 한 변과 세로 한 변을 1열씩 늘리려서 더 큰 정사각형을 만들려고 하였더니 9개의 타일이 부족하였다. 작은 타일의 수는 총 몇 개인지 구하시오.

Answer: 216

Solution (Python):
var_a = 20
var_b = 9
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 2
var_g = var_e / var_f
var_h = 2
var_i = var_g ** var_h
var_j = 20
var_k = var_i + var_j
print(int(var_k))
Category: Correspondence

Question (EN): Rounding 17AB to the hundreds place gives 1700. How many possible A are there?
Question (KO): 17AB를 반올림 하여 백의 자리까지 나타내면 1700이 됩니다. 가능한 A는 몇 개입니까?

Answer: 5

Solution (Python):
var_a = '17AB'
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 = 1700
var_c = 50
var_d = var_b - var_c
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
var_e = 1700
var_f = 50
var_g = var_e + var_f
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = '17AB'
var_i = 'A'
var_h = str(var_h)
var_i = str(var_i)
unk_idx = var_h.index(var_i)
list_d = []
for elem in list_c:
    elem = str(elem)
    list_d.append(int(elem[unk_idx]))
list_d = list(set(list_d))
var_j = len(list_d)
print(int(var_j))
Category: Geometry

Question (EN): A long rectangular table has an area of 54 square meters (m2) and a width of 600 centimeters (cm). Find the length of the table in centimeters (cm).
Question (KO): 긴 직사각형 탁자의 넓이가 54제곱미터(㎡)이고 가로가 600센티미터(㎝)이다. 탁자의 세로 길이는 몇 센티미터(㎝)인지 구하시오.

Answer: 900

Solution (Python):
var_a = 54
var_b = 100
var_c = 100
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 600
var_g = var_e / var_f
print(int(var_g))
Category: Correspondence

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

Answer: 8

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

Question (EN): Roses are planted at intervals of 34.1 meters (m) on one side of the road that is 852.5 meters (m) long. Find the total number of roses planted on the side of the road. Note that the thickness of the rose doesn't count.
Question (KO): 길이가 852.5미터(m)인 도로 한쪽에 장미가 34.1미터(m) 간격으로 심어져 있습니다. 도로 한쪽에 심어진 장미는 모두 몇 송이인지 구하시오. 단, 장미의 두께는 생각하지 않습니다.

Answer: 25

Solution (Python):
var_a = 852.5
var_b = 34.1
var_c = var_a // var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Write the smallest three-digit number that can be formed by drawing three different numbers from 0, 3, 5, and 6.
Question (KO): 0, 3, 5, 6 중에서 서로 다른 숫자 3개를 뽑아 만들 수 있는 세 자리 수 중에서 가장 작은 수를 쓰시오

Answer: 305

Solution (Python):
var_a = 0
var_b = 3
var_c = 5
var_d = 6
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 = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
print(int(var_g))
Category: Correspondence

Question (EN): We want to add some number to 20. I mistakenly subtracted some number from 40, and the result was 52. What is the correct calculation result?
Question (KO): 20에 어떤 수를 더하려고 합니다. 잘못하여 40에 어떤 수를 뺐더니 결과는 52가 되었습니다. 바르게 계산한 결과는 얼마일까요?

Answer: 8

Solution (Python):
var_a = 20
var_b = 40
var_c = 52
var_d = var_b - var_c
var_e = var_a + var_d
print(int(var_e))
Category: Geometry

Question (EN): If the length of the hypotenuse of a right triangle is 17 and the length of the non-hypotenuse is 15, what is the length of the other side?
Question (KO): 직각삼각형의 빗변의 길이가 17, 빗변이 아닌 한 변의 길이가 15이면 나머지 한 변의 길이는 얼마입니까?

Answer: 8

Solution (Python):
var_a = 17
var_b = 2
var_c = var_a ** var_b
var_d = 15
var_e = 2
var_f = var_d ** var_e
var_g = var_c - var_f
var_h = 0.5
var_i = var_g ** var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Water flows out of the faucet at a rate of 2+2/3 liters (L) per hour. Find the total number of water that came out of the faucet for 9 hours in liters (L).
Question (KO): 수도꼭지에서 시간 당 2+2/3리터(L)씩 물이 흘러나온다. 9시간 동안 수도꼭지에서 흘러 나온 물은 모두 몇 리터(L)인지 구하시오.

Answer: 24

Solution (Python):
var_a = 2
var_b = 0.6666666666666666
var_c = var_a + var_b
var_d = 9
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): Jongho found a giant cookie in the shape of a regular nonagon. Its circumference was 171 millimeters (mm). Find the length of one side of the giant cookie.
Question (KO): 종호는 정구각형 모양의 대왕 과자를 발견했다. 그 둘레는 무려 171밀리미터(㎜)였다. 대왕 과자의 한 변의 길이를 구하라.

Answer: 19

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

Question (EN): Namjoon won second place, and Yoongi was 10 people behind Namjoon. What is Yoongi's rank?
Question (KO): 남준이는 2등을 했고, 윤기는 남준이 다음으로 10명 뒤에 들어갔습니다. 윤기는 몇등입니까?

Answer: 12

Solution (Python):
var_a = 2
var_b = 10
var_c = var_a + var_b
print(int(var_c))
Category: Comparison

Question (EN): Seulgi has 9 pencils, and Hyeonjeong has 12 pencils. Who has more pencils?
Question (KO): 슬기는 연필을 9자루 가지고 있고, 현정이는 연필을 12자루 가지고 있습니다. 연필을 더 많이 가지고 있는 사람은 누구입니까?

Answer: Hyeonjeong

Solution (Python):
var_a = 'Seulgi'
var_b = 'Hyeonjeong'
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 = 9
var_d = 12
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): What is the volume of a cuboid-shaped water tank with a capacity of 36 liters (L) if the length, width, and height are all doubled?
Question (KO): 용량이 36리터(L)인 직육면체 모양의 물 탱크를 가로, 세로, 높이를 모두 2배하면 부피는 얼마가 되는지 구하시오.

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: Arithmetic calculation

Question (EN): Find the sum of all natural numbers less than or equal to 100 that have a remainder of 2 when divided by 7 and a remainder of 2 when divided by 8.
Question (KO): 100이하의 자연수 중 7로 나눈 나머지가 2이고 8로 나눈 나머지도 2인 수들의 합을 구하시오.

Answer: 60

Solution (Python):
var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 7
var_e = 2
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 = 8
var_g = 2
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)
list_c = [float(i) for i in list_c]
var_h = sum(list_c)
print(int(var_h))
Category: Correspondence

Question (EN): A and B are two different natural numbers. When A is divided by 29, the quotient is 31 and the remainder is B. Find A that makes B the smallest.
Question (KO): A, B는 서로 다른 두 자연수입니다. A를 29로 나누면 몫은 31, 나머지는 B입니다. B를 가장 작게 만드는 A를 구하세요.

Answer: 900

Solution (Python):
var_a = 29
var_b = 31
var_c = var_a * var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): You can make one mobile with 4 meters (m) of wire. How many meters (m) of wire are left after making multiple mobiles of the same size with 105.8 meters (m) of wire?
Question (KO): 철사 4미터(m) 로 모빌을 1 개 만들 수 있습니다. 철사 105.8미터(m) 로 같은 크기의 모빌을 여러 개 만들고 남는 철사는 몇 미터(m)입니까?

Answer: 1.8

Solution (Python):
var_a = 105.8
var_b = 4
var_c = var_a % var_b
print('{:.2f}'.format(round(var_c+1e-10,2)))
Category: Arithmetic calculation

Question (EN): There is a barrel with 10.4 kilograms (kg) of water. If you want to divide this water by 0.8 kg (kg) into one small bucket, how many buckets are needed?
Question (KO): 물 10.4킬로그램(㎏)이 담긴 통이 있습니다. 이 물을 작은 물통 한 개에 0.8 킬로그램(㎏) 씩 나누어 담으려고 할 때, 필요한 물통은 모두 몇 개 인가요?

Answer: 13

Solution (Python):
var_a = 10.4
var_b = 0.8
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))

print(int(var_e))
Category: Arithmetic calculation

Question (EN): Taemin, Minho, and Kibum shared chocolate. Taemin has 5 times as much chocolate as Minho has, and Kibeom has 3 times as much chocolate as Minho has. If the sum of the chocolates that Taemin and Kibum have is 160, find how many chocolates Minho has.
Question (KO): 태민, 민호, 기범이가 초콜릿을 나눠가졌습니다. 태민이는 민호가 가진 초콜릿의 5배, 기범이는 민호가 가진 초콜릿의 3배를 가지고 있습니다. 태민이와 기범이가 가진 초콜릿의 수의 합이 160일 때, 민호는 몇 개의 초콜릿을 가지고 있는지 구하세요.

Answer: 20

Solution (Python):
var_a = 160
var_b = 5
var_c = 3
var_d = var_b + var_c
var_e = var_a / var_d
print(int(var_e))