philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): Two boxes A and B have been delivered. Yoojeong is going to take the smaller of the two boxes. If the box A is bigger than the box B, which box should Yoojeong take?
Question (KO): 2개의 상자 (가)와 (나)가 배달왔습니다. 유정이는 두 상자 중 작은 상자를 들고 가려고 합니다. (가) 상자가 (나) 상자보다 크다면, 유정이가 들고가야 하는 상자는 무엇입니까?

Answer: B

Solution (Python):
var_a = 'A'
var_b = 'B'
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 = 'A'
var_d = 'B'
var_e = '>'
list_b= []
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)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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_f = len(list_c)
var_g = list_c[var_f-1]
print(var_g)
Category: Geometry

Question (EN): How many diagonals can be drawn in a rectangle?
Question (KO): 사각형 내에 그릴 수 있는 대각선의 개수는?

Answer: 2

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

Question (EN): Seongcheol used 5 liters (l) of water to wash his face, and Seongcheol's younger brother used 4900 milliliters (ml) of water. Find who used more water.
Question (KO): 성철이는 세수를 하는 데 5리터(L)의 물을 사용하고, 성철이의 동생은 4900밀리리터(㎖)의 물을 사용했습니다. 물을 더 많이 사용한 사람은 누구인지 구하시오.

Answer: Seongcheol

Solution (Python):
var_a = 'Seongcheol'
var_b = 'brother'
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 = 5
var_d = 1000
var_e = var_c * var_d
var_f = 4900
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: Arithmetic calculation

Question (EN): The distance from Namjoon's house to the school is 1.2 kilometers (km). If Namjoon returned home and returned to school at the point of 0.3 kilometers (km), find how many kilometers (km) he walked more than usual, including the decimal point.
Question (KO): 남준이네 집에서 학교까지의 거리는 1.2킬로미터(km)입니다. 남준이가 0.3킬로미터(km) 지점에서 집으로 돌아갔다가 학교로 왔다면 평소보다 걸은 거리는 몇 킬로미터(km) 증가했는지 소수점을 포함하여 구하시오.

Answer: 0.6

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

Question (EN): There are three numbers 10, 11, and 12. What is the product of the second largest number and the second smallest number?
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 2번째로 큰 수와 2번째로 작은 수의 곱은 얼마입니까?

Answer: 121

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
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=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e * var_g
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Heeju's school has 500 students. Among them, 289 students like mountains and 337 students like the sea. If there are 56 students who neither like the mountains nor the sea, how many students like both the mountains and the sea?
Question (KO): 희주네 학교 학생은 500명입니다. 이 중에서 산을 좋아하는 학생은 289명이고, 바다를 좋아하는 학생은 337명입니다. 산과 바다를 둘 다 좋아하지 않는 학생이 56명일 때, 산과 바다를 모두 좋아하는 학생은 몇 명인지 구해보시오.

Answer: 182

Solution (Python):
var_a = 289
var_b = 337
var_c = var_a + var_b
var_d = 500
var_e = 56
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g))
Category: Possibility

Question (EN): Yuna, Taehyung, and Jimin are going to choose two among them to do the chores. How many different cases are there in all?
Question (KO): 유나, 태형, 지민이 중 2명을 선택하여 청소를 하려고 합니다. 서로 다른 사람이 선택될 경우는 모두 몇 가지일까요?

Answer: 3

Solution (Python):
var_a = 'Yuna'
var_b = 'Taehyung'
var_c = 'Jimin'
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)
for i, elem in enumerate(range(var_e)):
    var_f = var_f / (i+1)
print(int(var_f))
Category: Correspondence

Question (EN): You want to add 24 to some number. If the answer when adding 42 incorrectly is 50, what is the correct calculation result?
Question (KO): 어떤 수에 24를 더하려고 합니다. 잘못하여 42를 더했을 때의 답이 50이라면 바르게 계산한 결과는 얼마일까요?

Answer: 32

Solution (Python):
var_a = 50
var_b = 42
var_c = var_a - var_b
var_d = 24
var_e = var_c + var_d
print(int(var_e))
Category: Possibility

Question (EN): One boy and one girl have transferred to Eunsu's school. Eunsu's school has 6 classes for boys and 4 classes for girls. How many classes can transfer students go to?
Question (KO): 은수네 학교에 남자 1명, 여자 1명이 전학을 왔다.은수네 학교에는 남학생은 6개 반, 여학생은 4개 반이 있다. 전학생들이 갈 수 있는 반의 경우의 수는 모두 몇 개인가?

Answer: 24

Solution (Python):
var_a = 4
var_b = 6
var_c = var_a * var_b
print(int(var_c))
Category: Comparison

Question (EN): Seokjin, Hoseok, and Namjoon took a math test. Namjoon's math score is higher than Hoseok's math score, and Seokjin's math score is higher than Hoseok's math score. If Seokjin's math score is lower than Namjoon's math score, who has the highest math score?
Question (KO): 석진, 호석, 남준이는 수학 시험을 봤습니다. 남준이의 수학 점수는 호석이의 수학 점수보다 높고, 석진이의 수학 점수는 호석이의 수학 점수보다 높습니다. 석진이의 수학 점수가 남준이의 수학 점수보다 낮다면 수학 점수가 가장 높은 친구는 누구인가요?

Answer: Namjoon

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

Question (EN): How many three-digit numbers greater than 850 and less than 920 can you make using the numbers 3, 9 and 8?
Question (KO): 숫자 3, 9, 8을 한 번씩 사용하여 850보다 크고, 920보다 작은 세 자리 수는 모두 몇 개입니까?

Answer: 1

Solution (Python):
var_a = 3
var_b = 9
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 850
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 920
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))
Category: Geometry

Question (EN): A rectangle was made with a 40 centimeters (cm) wire. If the length of one side is 8 centimeters (cm), what is the length of the other side in centimeters (cm)?
Question (KO): 40센티미터(㎝)의 철사로 직사각형을 만들었다. 세로의 길이가 8센티미터(㎝)이면 가로는 몇 센티미터(㎝)인가?

Answer: 12

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

Question (EN): If 9 more people left the bus than the ones who got on at the stop, how many people are on the bus now given that the bus originally had 38 people on it?
Question (KO): 정류장에서 내린 사람이 탄 사람보다 9명 많았다면 38명이 타있었던 버스에 현재 몇 명이 타있을까요?

Answer: 29

Solution (Python):
var_a = 38
var_b = 9
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): You want to create four-digit numbers by using the numbers 7, 2, 5, and 9. How many four-digit numbers can you make? The same number can appear multiple times.
Question (KO): 숫자 7, 2, 5, 9를 사용하여 네 자리 수를 만들려고 합니다. 만들 수 있는 네 자리 수는 모두 몇 개입니까? 같은 숫자는 여러 번 등장할 수 있습니다.

Answer: 256

Solution (Python):
var_a = 7
var_b = 2
var_c = 5
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.product(list_b, repeat=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 = len(list_b)
print(int(var_f))
Category: Comparison

Question (EN): Among the students standing in line, Yoongi is standing where 7 people are on the left and 5 people are on the right. Including Yoongi, how many people are standing in line?
Question (KO): 한 줄로 선 학생들 사이에서 윤기는 왼쪽이 7명이 있고 오른쪽에 5명이 있는 위치에 서 있습니다. 윤기를 포함하여 줄 서 있는 학생은 모두 몇 명입니까?

Answer: 13

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

Question (EN): Hoseok has 138 pieces of purple-colored paper. Hoseok has 119 more yellow-colored paper than blue-colored paper, and 185 less purple-colored paper than yellow-colored paper. How many purple, yellow, and blue-colored paper does Hoseok have in total?
Question (KO): 호석이는 보라색 색종이를 138장 가지고 있습니다. 호석이가 가지고 있는 노란색 색종이는 파란색 색종이보다 119장 더 많고, 보라색 색종이는 노란색 색종이보다 185장 더 적습니다. 호석이가 가지고 있는 보라색, 노란색, 파란색 색종이는 모두 몇 장입니까?

Answer: 467

Solution (Python):
var_a = 138
var_b = 138
var_c = 119
var_d = var_b + var_c
var_e = var_a + var_d
var_f = 138
var_g = 119
var_h = var_f + var_g
var_i = 185
var_j = var_h - var_i
var_k = var_e + var_j
print(int(var_k))
Category: Comparison

Question (EN): Jimin, Yoongi, Taehyung, and Namjoon have different numbers of apples. If Taehyung has fewer than Namjoon, Jimin has more than Yoongi, and Yoongi has more than Namjoon, who has the fewest apples?
Question (KO): 지민, 윤기, 태형, 남준이는 서로 다른 개수의 사과를 가지고 있습니다. 태형이는 남준이보다 적고, 지민이는 윤기보다 많고, 윤기는 남준이보다 많을 때, 사과를 가장 적게 가지고 있는 사람은 누구입니까?

Answer: Taehyung

Solution (Python):
var_a = 'Jimin'
var_b = 'Yoongi'
var_c = 'Taehyung'
var_d = 'Namjoon'
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 = 'Jimin'
var_f = 'Yoongi'
var_g = '>'
var_h = 'Taehyung'
var_i = 'Namjoon'
var_j = '<'
var_k = 'Yoongi'
var_l = 'Namjoon'
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): Taehyung and Minyoung had a walking race. One minute later, Taehyung walked 114 meters (m) and Minyoung walked 79 meters (m). After 1 hour, how many meters (m) will Taehyung have walked more than Minyoung?
Question (KO): 태형이와 민영이가 걷기 시합을 했습니다. 1분 후 태형이는 114미터(m)를 걸었고, 민영이는 79미터(m)를 걸었습니다. 1시간 후 태형이는 민영이보다 몇 미터(m)를 더 걸어갔나요?

Answer: 2100

Solution (Python):
var_a = 114
var_b = 79
var_c = var_a - var_b
var_d = 1
var_e = var_c * var_d
var_f = 60
var_g = var_e * var_f
print(int(var_g))
Category: Correspondence

Question (EN): Adding 2 to a particular number and subtracting 6, and multiplying it by 3 and dividing it by 4 equals 3. Find that particular number.
Question (KO): 어떤 수에 2를 더한 후 6을 빼고, 3을 곱한 값을 4로 나누면 3이 됩니다. 어떤 수를 구하시오.

Answer: 8

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

Question (EN): If the sum of the weights of Jiho, Sanghyeon, and Seungju is greater than 280 and the remainder is 30 when divided by 70, what is the minimum sum of the weights of the three people?
Question (KO): 지호, 상현, 승주 3명의 몸무게를 합친 값이 280보다는 많이 나가고 70으로 나누었을 때 나머지가 30이라면 세 사람의 몸무게의 합의 최소는 얼마인지 구하시오.

Answer: 310

Solution (Python):
var_a = 280
var_b = 30
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): When multiplied by 4, this number became 28. Find this number.
Question (KO): 어떤 수에 4를 곱했더니 28이 되었습니다. 어떤 수를 구하시오.

Answer: 7

Solution (Python):
var_a = 28
var_b = 4
var_c = var_a / var_b
print(int(var_c))
Category: Geometry

Question (EN): What is the sum of the number of vertices and the number of sides of a triangle?
Question (KO): 삼각형의 꼭짓점의 수와 변의 수를 합하면 얼마입니까?

Answer: 6

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 three numbers 10, 11, and 12. Divide the smallest number by the second smallest number.
Question (KO): 3개의 수 10, 11, 12가 있습니다. 그 중에서 가장 작은 수와 2번째로 작은 수로 나눈 값은 얼마입니까?

Answer: 0.91

Solution (Python):
var_a = 10
var_b = 11
var_c = 12
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 = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[var_d-1]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[var_f-1]
var_h = var_e / var_g
print('{:.2f}'.format(round(var_h+1e-10,2)))
Category: Correspondence

Question (EN): We added 2 to a certain number and then subtracted 6. Multiply this by 3 and then divide by 4 and we get 3. What is that number?
Question (KO): 어떤 수가 있습니다. 이 수에 2를 더하고 6을 뺐습니다. 다시 3배를 취한다음 4로 나누었더니 3이되었습니다. 어떤 수는 얼마입니까?

Answer: 8

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

Question (EN): The chicken laid 59 more eggs today than yesterday. If the chicken laid 10 eggs yesterday, how many eggs did it lay today?
Question (KO): 닭이 어제보다 59개의 알을 더 낳았다. 어제 닭이 10개의 알을 낳았다면 오늘은 몇개의 알을 낳았는가?

Answer: 69

Solution (Python):
var_a = 10
var_b = 59
var_c = var_a + var_b
print(int(var_c))
Category: Correspondence

Question (EN): When A is divided by 5, the quotient is 2 and the remainder is B. A and B are both natural numbers. What is the largest possible value of B?
Question (KO): A를 5로 나누면 몫이 2가 되고, 나머지는 B가 됩니다. A와 B는 모두 자연수입니다. 가능한 B 중 가장 큰 값은?

Answer: 4

Solution (Python):
var_a = 5
var_b = 1
var_c = var_a - var_b
print(int(var_c))
Category: Geometry

Question (EN): I am trying to find the radius of a lake that has the shape of a circle. If the diameter of this lake is 26 meters (m), what is the radius of the lake in meters (m)?
Question (KO): 원의 모습을 띄고 있는 어느 호수의 반지름을 구하려고 합니다. 이 호수의 지름이 26미터(m)일 때, 호수의 반지름은 몇 미터(m)인가?

Answer: 13

Solution (Python):
var_a = 26
var_b = 2
var_c = var_a / var_b
print(int(var_c))
Category: Comparison

Question (EN): 2/7 of the sports day participants are on the white team and 3/8 are on the blue team. Which team has more participants?
Question (KO): 운동회 참가자 중 2/7는 백팀이고 3/8은 청팀입니다. 참가자가 더 많은 팀은 어디인가요?

Answer: blue

Solution (Python):
var_a = 'white'
var_b = 'blue'
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 = 2
var_d = 7
var_e = var_c / var_d
var_f = 3
var_g = 8
var_h = var_f / var_g
list_b= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_b.append(var_h)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_b.append(var_e)
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: Possibility

Question (EN): How many cases are available if you choose and buy 2 different fruits among apples, peaches, pears, melons, and tangerines?
Question (KO): 사과, 복숭아, 배, 참외, 귤 중에서 서로 다른 2가지 과일을 골라서 사는 경우는 모두 몇 가지입니까?

Answer: 10

Solution (Python):
var_a = 'apples'
var_b = 'peaches'
var_c = 'pears'
var_d = 'melons'
var_e = 'tangerines'
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_f = len(list_a)
var_g = 2
var_h = 1
var_f = int(var_f)
var_g = int(var_g)
for i, elem in enumerate(range(var_g)):
    var_h = var_h * (var_f-i)
for i, elem in enumerate(range(var_g)):
    var_h = var_h / (i+1)
print(int(var_h))
Category: Arithmetic calculation

Question (EN): Yoojung has 32 flowers. The number of flowers Yoojung has is 4 times the number of flowers Namjoon has. How many flowers do Yoojung and Namjoon have?
Question (KO): 유정이는 꽃 32송이를 가지고 있습니다. 유정이가 가지고 있는 꽃의 수는 남준이가 가진 꽃의 수의 4배입니다. 유정이와 남준이가 가진 꽃은 모두 몇 송이입니까?

Answer: 40

Solution (Python):
var_a = 32
var_b = 32
var_c = 4
var_d = var_b / var_c
var_e = var_a + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I bought 7 bags of chocolates, each containing 16 pieces. Thirteen of them melted in the hot sun, and when I try to divide the remaining chocolates equally into 8 bags, how many chocolates are left that cannot fit into the bags?
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: Geometry

Question (EN): Three points are not in a straight line. How many straight lines can you make with these three points?
Question (KO): 어떤 세 점은 한 직선 위에 있지 않습니다. 이 세 점으로 만들 수 있는 직선의 개수는 무엇입니까?

Answer: 3

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

Question (EN): What is the area of a square with side length 3 plus the area of a parallelogram with base 3 and height 2?
Question (KO): 한변의 길이가 3인 정사각형의 넓이에 밑변이 3이고 높이가 2인 평행사변형의 넓이를 더한 값은 얼마입니까?

Answer: 15

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

Question (EN): You are going to make the largest square out of a piece of string that is 24 centimeters (cm) long. How many centimeters (cm) is the length of one side of the square?
Question (KO): 길이가 24 센티미터(㎝) 인 끈으로 가장 큰 정사각형을 만들려고 합니다. 정사각형 한 변의 길이는 몇 센티미터(㎝) 입니까?

Answer: 6

Solution (Python):
var_a = 24
var_b = 4
var_c = var_a / var_b
print(int(var_c))