philschmid/DMath huggingface dataset:
Category: Geometry

Question (EN): There is a park in the shape of a square. If the length of one side of this park is 30 meters (m), what is the area in square meters (m2) of this park?
Question (KO): 어떤 정사각형 모양의 공원이 있습니다. 이 공원의 한 변의 길이가 30미터(m)일 때, 이 공원의 넓이는 몇 제곱미터(㎡)입니까?

Answer: 900

Solution (Python):
var_a = 30
var_b = 2
var_c = var_a ** var_b
print(int(var_c))
Category: Comparison

Question (EN): Which number among 0.8, 1/2, 0.3, 1/3 is less than or equal to 0.4?
Question (KO): 0.8, 1/2, 0.3, 1/3에서 0.4보다 작거나 같은 수 중 가장 크거나 같은 수는?

Answer: 0.33

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.3
var_d = 0.3333333333333333
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 = 0.4
list_b = []
for i in list_a:
    if i <= var_e:
        list_b.append(i)
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Correspondence

Question (EN): After filling the large water container by adding a small cup full of water 8 times, another 5400 milliliters (㎖) of water was added again. When this water was divided into 12 small buckets, each small bucket contained 530 milliliters (㎖). Find the volume of the small cup.
Question (KO): 큰 물통에 작은 컵으로 물을 가득 담아 8번 넣은 후, 다시 5400밀리리터(㎖)의 물을 넣었습니다. 이 물을 12개의 작은 물통에 나누어 담았더니 작은 물통 한 개에 530밀리리터(㎖)씩 담겨졌습니다. 작은 컵의 들이를 구하시오.

Answer: 120

Solution (Python):
var_a = 530
var_b = 12
var_c = var_a * var_b
var_d = 5400
var_e = var_c - var_d
var_f = 8
var_g = var_e / var_f
print(int(var_g))
Category: Geometry

Question (EN): If the surface area of a cube-shaped gift box is 600, find the volume of this gift box.
Question (KO): 어떤 정육면체 모양의 선물 상자의 넓이가 600일때, 이 선물 상자의 부피를 구하시오.

Answer: 1000

Solution (Python):
var_a = 600
var_b = 6
var_c = var_a / var_b
var_d = 0.5
var_e = var_c ** var_d
var_f = 3
var_g = var_e ** var_f
print(int(var_g))
Category: Possibility

Question (EN): What is the largest number using  3 of 4, 6, 5, 0 with 5 in the tens' digit?
Question (KO): 4, 6, 5, 0 중 3개를 사용하여 십의 자리 숫자가 5인 가장 큰 수는 무엇입니까?

Answer: 654

Solution (Python):
var_a = 4
var_b = 6
var_c = 5
var_d = 0
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 = 5
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 = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))
Category: Geometry

Question (EN): Using wire 50 centimeters (cm) long, a regular hexagon whose one side is 8 centimeters (cm) long was made. How many centimeters (cm) is the length of the remaining wire?
Question (KO): 길이가 50센티미터(㎝)인 철사를 사용하여 한 변이 8센티미터(㎝)인 정육각형을 만들었습니다. 남은 철사의 길이는 몇 센티미터(㎝)입니까?

Answer: 2

Solution (Python):
var_a = 50
var_b = 8
var_c = 6
var_d = var_b * var_c
var_e = var_a - var_d
print(int(var_e))
Category: Comparison

Question (EN): There are 4 marbles - (a), (b), (c), (d). (a) Marble is larger than (d) Marble. (b) marble is smaller than (c) marble. (c) marble is smaller than (d) marble. Which marble is the smallest in size?
Question (KO): (가), (나), (다), (라) 4개의 구슬이 있습니다. (가) 구슬은 (라) 구슬보다 큽니다. (나) 구슬은 (다) 구슬보다 작습니다. (다) 구슬은 (라) 구슬보다 작습니다. 크기가 가장 작은 구슬은 무엇입니까?

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 = '(b)'
var_i = '(c)'
var_j = '<'
var_k = '(c)'
var_l = '(d)'
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: Correspondence

Question (EN): When A is divided by 7, the quotient is 5 and the remainder is 3. Find A.
Question (KO): A를 7로 나누면 몫은 5이고 나머지는 3이 됩니다. A를 구하시오.

Answer: 38

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

Question (EN): An odd number or multiple of 5 is said to be less than or equal to 30. What is the sum of all possible A's?
Question (KO): 5의 배수이거나 홀수인 A가 30보다 같거나 작다고 한다. 가능한 A를 모두 더하면 얼마인지 구하시오.

Answer: 285

Solution (Python):
var_a = 1
var_b = 30
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 1
var_f = 30
list_c = []
if var_e%2==0:
    for i in range(var_e+1, var_f+1, 2):
        list_c.append(i)
else:
    for i in range(var_e, var_f+1, 2):
        list_c.append(i)
list_d = list(set(list_b) | set(list_c))
list_d = [float(i) for i in list_d]
var_g = sum(list_d)
print(int(var_g))
Category: Arithmetic calculation

Question (EN): (A) car travels at 60 kilometers (km) per hour, and (B) car travels at 45 kilometers (km) per hour. If (A) car and (B) car travel at the same speed for 5 hours, how many kilometers will (A) travel more than (B) car?
Question (KO): (가) 자동차는 1시간에 60킬로미터(㎞) 달리고, (나) 자동차는 1시간에 45킬로미터(㎞) 달립니다. (가) 자동차와 (나) 자동차가 같은 빠르기로 5시간 동안 달린다면, (가) 자동차는 (나) 자동차보다 몇 킬로미터(㎞) 더 가겠습니까?

Answer: 75

Solution (Python):
var_a = 60
var_b = 5
var_c = var_a * var_b
var_d = 45
var_e = 5
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Grandmother wants to buy 21 boxes of 6kilograms (kg) sugar and distribute 32/41kilograms (kg) each to her neighbors. How many people can you share?
Question (KO): 할머니께서 6킬로그램(㎏)짜리 설탕을 21통 사서 이웃 사람들에게 32/41킬로그램(㎏)씩 나누어 주려고 합니다. 몇 명에게 나누어 줄 수 있습니까?

Answer: 161

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

Question (EN): School A has 217 boys and School B has 196 girls. If the sum of the number of male students in school A and the number of male students in school B is equal to the total number of female students in school A and school B, what is the difference between the number of male students in school B and the number of female students in school A?
Question (KO): A 학교의 남학생 수는 217명, B 학교의 여학생 수는 196명입니다. A 학교 남학생과 B 학교 남학생 수를 합친 것이 A 학교 여학생과 B 학교 여학생을 합친 것과 같을 때, B 학교 남학생 수와 A학교 여학생 수의 차이는 얼마인가?

Answer: 21

Solution (Python):
var_a = 217
var_b = 196
var_c = var_a - var_b
var_d = abs(var_c)
print(int(var_d))
Category: Geometry

Question (EN): If a cone-shaped solid figure with a polygonal base and triangular sides has 10 edges, how many vertices are there?
Question (KO): 밑면은 다각형이고, 옆면이 삼각형인 뿔 모양의 입체도형의 모서리가 10개라면, 꼭짓점은 몇 개입니까?

Answer: 6

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

Question (EN): There are bacteria that multiply twice as fast as they do every minute. The sum of the weight of the first beaker and the 100 bacteria in it was 23.97 grams (g), and the sum of the weight of the beaker and the bacteria in it after 5 minutes was 155.1 grams (g). How many grams (g) do 10000 cloned bacteria weigh?
Question (KO): 1분마다 처음의 2배로 복제되는 세균이 있습니다. 처음 비커와 비커에 담긴 세균 100마리의 무게의 합은 23.97그램(g)이었고, 5분 후 비커와 비커에 담긴 세균의 무게의 합은 155.1그램(g)이었습니다. 복제된 세균 10000마리의 무게는 몇 그램(g)입니까?

Answer: 423

Solution (Python):
var_a = 155.1
var_b = 23.97
var_c = var_a - var_b
var_d = 100
var_e = 2
var_f = 5
var_g = var_e ** var_f
var_h = var_d * var_g
var_i = 100
var_j = var_h - var_i
var_k = var_c / var_j
var_l = 10000
var_m = var_k * var_l
print(int(var_m))
Category: Correspondence

Question (EN): Yong-hee stood on the scale holding a bag weighing 1 kilogram (kg) and 750 grams (g), and the scale indicated 35 kilograms (kg) and 500 grams (g). When Yong-hee's younger brother climbed on the scale with a bag weighing 2 kilograms (kg) and 550 grams (g), the scale indicated 27 kilograms (kg) and 200 grams (g). How many kilograms (kg) will the scale show when Yong-hee stands on the scale with her younger brother on her back?
Question (KO): 용희가 무게 1킬로그램(㎏) 750그램(g)인 가방을 들고 저울에 올라섰더니 저울의 눈금이 35킬로그램(㎏) 500그램(g)을 가리켰습니다. 용희의 동생이 2킬로그램(㎏) 550그램(g)인 가방을 들고 저울에 올라갔을때 저울의 눈금이 27킬로그램(㎏) 200그램(g)를 가리켰습니다. 용희가 동생을 업고 저울에 올라서면 저울의 눈금은 몇 킬로그램(㎏)을 나타내겠습니까?

Answer: 58.4

Solution (Python):
var_a = 35
var_b = 500
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 1
var_g = 750
var_h = 1000
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e - var_j
var_l = 27
var_m = 200
var_n = 1000
var_o = var_m / var_n
var_p = var_l + var_o
var_q = 2
var_r = 550
var_s = 1000
var_t = var_r / var_s
var_u = var_q + var_t
var_v = var_p - var_u
var_w = var_k + var_v
print('{:.2f}'.format(round(var_w+1e-10,2)))
Category: Arithmetic calculation

Question (EN): There is a tape measure with a length of 2 meters (m) and 80 centimeters (cm). If you cut all the 40 centimeters (cm) lengths of this tape measure, how many times do you have to cut all of them?
Question (KO): 길이가 2미터(m) 80센티미터(㎝)인 줄자가 있습니다. 이 줄자를 40센티미터(㎝) 길이로 모두 자른다면, 모두 몇 번 잘라야 합니까?

Answer: 6

Solution (Python):
var_a = 2
var_b = 100
var_c = var_a * var_b
var_d = 80
var_e = var_c + var_d
var_f = 40
var_g = var_e / var_f
var_h = 1
var_i = var_g - var_h
print(int(var_i))
Category: Correspondence

Question (EN): I mistakenly subtracted what number should be multiplied by 423, and I got 421. Find the sum of the correctly calculated value and the incorrectly calculated value.
Question (KO): 423에 어떤 수를 곱해야 할 것을 잘못하여 뺐더니 421이 되었습니다. 바르게 계산한 값과 잘못 계산한 값의 합을 구해 보시오.

Answer: 1267

Solution (Python):
var_a = 421
var_b = 423
var_c = 423
var_d = 421
var_e = var_c - var_d
var_f = var_b * var_e
var_g = var_a + var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There are 7 ducks and 6 chickens. How many ducks and chickens are there?
Question (KO): 오리 7마리와 닭 6마리가 있습니다. 오리와 닭은 모두 몇 마리 있습니까?

Answer: 13

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

Question (EN): There are nine square-shaped plots of land measuring 6 meters (m) in length and width. Find the total area of the land in square meters (m2).
Question (KO): 가로, 세로가 6미터(m)인 정사각형 모양의 땅이 9개 있다. 전체 땅의 넓이가 몇 제곱미터(㎡)인지 구하시오.

Answer: 324

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

Question (EN): Consider 40 candies should be distributed into several baskets. Find the number of ways to divide the candies. (However, all 40 candies should not be put in one basket.)
Question (KO): 40의 사탕을 여러 바구니에 나누어 담으려고 한다. 바구니에 나누어 담는 방법의 수를 구하시오. (단, 한 바구니에 40개를 모두 담지는 않는다.)

Answer: 7

Solution (Python):
var_a = 40
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 1
list_b= []
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_b.append(var_b)
list_b.reverse()
list_c = list(set(list_a) - set(list_b))
var_c = len(list_c)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Yoongi ate 7 of the 15 apples his grandfather bought. How many apples did Grandpa buy remain?
Question (KO): 윤기는 할아버지가 사오신 사과 15개 중 7개를 먹었습니다. 할아버지께서 사오신 사과는 몇 개 남았을까요?

Answer: 8

Solution (Python):
var_a = 15
var_b = 7
var_c = var_a - var_b
print(int(var_c))
Category: Arithmetic calculation

Question (EN): It takes 6.64 grams (g) of glutinous rice flour to make one glutinous rice cake. Find how many kilograms (kg) of glutinous rice flour are left after making glutinous rice cakes with 202.66 grams (g) of glutinous rice flour.
Question (KO): 찹쌀떡 1개를 만드는 데 찹쌀가루가 6.64그램(g) 필요합니다. 찹쌀가루 202.66그램(g)으로 찹쌀떡을 다 만들고 남은 찹쌀가루는 몇 킬로그램(㎏)인지 구하시오.

Answer: 0

Solution (Python):
var_a = 202.66
var_b = 6.64
var_c = var_a % var_b
var_d = 1000
var_e = var_c / var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))
Category: Correspondence

Question (EN): Dividing 197 by a certain number leaves a remainder of 2, dividing 160 leaves a remainder of 4, and dividing 229 leaves a remainder of 5. Find the largest of these possible numbers.
Question (KO): 어떤 자연수로 197을 나누면 2가 남고, 160을 나누면 4가 남고, 229를 나누면 5가 부족하다고 한다. 이러한 수 중 가장 큰 수를 구하여라.

Answer: 39

Solution (Python):
var_a = 197
var_b = 2
var_c = var_a - var_b
var_d = 160
var_e = 4
var_f = var_d - var_e
var_g = math.gcd(int(var_f), int(var_c))
var_h = 229
var_i = 5
var_j = var_h + var_i
var_k = math.gcd(int(var_j), int(var_g))
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Company (A) hires only one security guard, but when the security guard is replaced, two security guards work together for a short time to instruct the work. In the meantime, there were a total of 3 guards, and the number of days each guard worked was the same as 217 days. If the number of days from the day the first guard was hired to the day the last guard quit was 627, find how many days the first and second guards worked together.
Question (KO): (가) 회사의 경비원은 1명만 고용하는데 경비원이 교체되는 때에는 업무를 알려주기 위해 잠깐동안 2명의 경비원이 같이 일을 하게 됩니다. 그동안 총 3명의 경비원이 있었고 각 경비원이 일한 일수가 217일로 같은데, 첫 번째 경비원이 고용된 날부터 마지막 경비원이 그만두는 날까지가 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: Arithmetic calculation

Question (EN): 30 trees are planted on two pavements in the street, 9 metres (m) apart. If trees are planted at the beginning and at the end, how many metres (m) is this road?
Question (KO): 도로속 두 개의 인도에 30그루의 나무가 9미터(m) 간격으로 심어져 있다고 합니다. 처음과 끝에도 나무가 심어져 있다고 할 때 이 도로는 몇 미터(m)인가요?

Answer: 126

Solution (Python):
var_a = 30
var_b = 2
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
var_f = 9
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): There were 13 flowers in the vase. Seven of them withered and were thrown away. How many flowers are left in the vase?
Question (KO): 꽃병에 꽃이 13송이 꽂혀 있었습니다. 그중에서 7송이가 시들어서 버렸습니다. 꽃병에 남아 있는 꽃은 몇 송이입니까?

Answer: 6

Solution (Python):
var_a = 13
var_b = 7
var_c = var_a - var_b
print(int(var_c))
Category: Possibility

Question (EN): If you are trying to choose 6 out of 7 black pens, find the number of ways in which you can choose.
Question (KO): 검은색 볼펜 7자루 중에서 6자루를 고르려고 할 때, 고를 수 있는 방법의 가지수를 구하시오.

Answer: 7

Solution (Python):
var_a = 7
var_b = 6
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: Comparison

Question (EN): Heejin has 10 red balloons, 8 blue balloons, 5 yellow balloons, and 6 green balloons. Of the 7 or more balloons, how many balloons have the smallest number?
Question (KO): 희진이에게는 빨간 풍선이 10개, 파란 풍선이 8개, 노란 풍선이 5개, 초록 풍선이 6개 있습니다. 7개 이상인 풍선 중 개수가 가장 적은 풍선은 몇 개 있습니까?

Answer: 8

Solution (Python):
var_a = 10
var_b = 8
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 = 7
list_b = []
for i in list_a:
    if i >= var_e:
        list_b.append(i)
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[var_f-1]
print(int(var_g))
Category: Possibility

Question (EN): Ji-woo and Ji-hyeon have one coin each. How many ways can each person flip a coin?
Question (KO): 지우와 지현이가 동전 1개씩을 가지고 있습니다. 각자 동전을 던질 때, 나올 수 있는 경우의 수는 몇 가지입니까?

Answer: 2

Solution (Python):
var_a = 2
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)
print(int(var_c))
Category: Correspondence

Question (EN): When you divide the number by -2/3 and multiply it by -4/5, the result is -1/2. Find the unknown number at the beginning.
Question (KO): 어떤 수에 -2/3을 나누고 -4/5를 곱했더니 그 결과가 -1/2이었습니다. 어떤 수를 구하시오.

Answer: 0.42

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

Question (EN): Seungmin and Hyoju went for a walk. When Seungmin gave Hyoju 0.43 liters (l) of water, the difference in the amount of water they had was 0.88 liters (l). Find the difference in the amount of water they had before Seungmin gave Hyoju water. However, Seungmin has more water than Heoju.
Question (KO): 승민과 효주는 산책을 갔다. 승민이 효주에게 0.43리터(L)의 물을 주었을 때 두 사람이 가진 물의 양의 차이는 0.88리터(L)였다고 한다. 승민이 효주에게 물을 주기 전에 두 사람이 가진 물의 양의 차이를 구하십시오. 단, 승민이 효주보다 물이 많다.

Answer: 1.74

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

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

Answer: 12750

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)
list_c = [float(i) for i in list_c]
var_e = sum(list_c)
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Multiplying 12 plus 3 by 12 minus A gives 120. Find A.
Question (KO): 12에 3을 더한 수와 12에 A를 뺀 수를 곱하였더니 120이 나왔다. A를 구해라.

Answer: 4

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

Question (EN): There are numbers 0.8, 1/2, and 0.9. Find the sum of the numbers greater than or equal to 0.3.
Question (KO): 0.8, 1/2, 0.9의 숫자가 있다. 이 중 0.3보다 크거나 같은 숫자들의 합을 구하시오.

Answer: 2.2

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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.3
list_b = []
for i in list_a:
    if i >= var_d:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_e = sum(list_b)
print('{:.2f}'.format(round(var_e+1e-10,2)))
Category: Correspondence

Question (EN): A is the number of 8 groups of 10 and 13 groups of 1. B is the number that is decreased by 9 for three times from 30. Find the quotient of A divided by B.
Question (KO): A는 10개씩 묶음이 8개와 1개씩 낱개가 13개인 수입니다. B는 30에서 9씩 작아지게 3번 뛰어서 센 수입니다. A를 B로 나눈 몫을 구하시오.

Answer: 31

Solution (Python):
var_a = 10
var_b = 8
var_c = var_a * var_b
var_d = 1
var_e = 13
var_f = var_d * var_e
var_g = var_c + var_f
var_h = 30
var_i = 9
var_j = 3
var_k = var_i * var_j
var_l = var_h - var_k
var_m = var_g / var_l
print(int(var_m))
Category: Correspondence

Question (EN): There are two natural numbers A and B. If the quotient of A divided by B is 9 and the remainder is 13, what is the remainder of A divided by 9?
Question (KO): 두 개의 자연수 A와 B가 있습니다. A를 B로 나눈 몫이 9이고 나머지가 13이면 A를 9로 나눈 나머지는 얼마입니까?

Answer: 4

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

Question (EN): How many edges are there in a regular tetrahedron?
Question (KO): 정사면체에서 모서리의 개수는 모두 몇개인가요?

Answer: 6

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

Question (EN): Subtract 300 from half of a number and you can get 350. What is the vaule of adding 200 to this number and multiplying it by 2?
Question (KO): 어떤 수의 절반에서 300을 빼면 350이 된다. 어떤 수에 200을 더하고 그 값에 2배를 하면 얼마인지 구하시오.

Answer: 3000

Solution (Python):
var_a = 350
var_b = 300
var_c = var_a + var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 200
var_i = var_g + var_h
var_j = 2
var_k = var_i * var_j
print(int(var_k))
Category: Comparison

Question (EN): Jaeho and Kyunghwan took a walk at the same time. Jaeho walked 1/100 of 10.2 kilometers (km), and Kyunghwan walked 100 meters (m). Who has gone farther?
Question (KO): 재호와 경환은 같은 시간 산책을 했다. 재호는 10.2킬로미터(㎞)의 1/100만큼 걸었고, 경환은 100미터(m)를 걸었다. 누가 더 멀리 갔는가?

Answer: Jaeho

Solution (Python):
var_a = 'Jaeho'
var_b = 'Kyunghwan'
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 = 10.2
var_d = 1000
var_e = var_c * var_d
var_f = 100
var_g = var_e / var_f
var_h = 100
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)
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)