philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): There are 2180 liters (L) of water. There are a total of 12 200 liters (L) barrels and 150 liters (L) barrels. When all the water was divided, 30 liters (L) remained. How many 200-liter (L) barrels are there?
Question (KO): 물이 2180리터(L)있습니다. 200리터(L)짜리 통과 150리터(L)짜리 통이 총 12개 있습니다. 물을 전부 나누어 담았더니 30리터(L)가 남았습니다. 200리터(L)짜리 통은 몇 개 있나요?

Answer: 7

Solution (Python):
var_a = 2180
var_b = 30
var_c = var_a - var_b
var_d = 150
var_e = 12
var_f = var_d * var_e
var_g = var_c - var_f
var_h = 200
var_i = 150
var_j = var_h - var_i
var_k = var_g / var_j
print(int(var_k))
Category: Possibility

Question (EN): Find the difference between the largest and smallest four-digit numbers that can be made using the number cards 2, 0, 3, 5, and 8.
Question (KO): 숫자 카드 2, 0, 3, 5, 8 을 이용하여 만들 수 있는 네 자리 수 중에서 가장 큰 수와 가장 작은 수의 차를 구하시오.

Answer: 6497

Solution (Python):
var_a = 2
var_b = 0
var_c = 3
var_d = 5
var_e = 8
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 = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
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_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
var_i = 1
list_d=list_b.copy()
list_d.sort()
var_j = list_d[var_i-1]
var_k = var_h - var_j
print(int(var_k))
Category: Comparison

Question (EN): What is the sum of the numbers greater than 0.4 among 0.8, 1/2, 0.3, and 1/3?
Question (KO): 0.8, 1/2, 0.3, 1/3 중 0.4보다 큰 수의 총합은?

Answer: 1.3

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)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Arithmetic calculation

Question (EN): It is said that one doll factory makes an average of 18 dolls per hour. If you sell dolls that were made in this factory for 25 days with 8 hours a day, for 2,750 won for each doll, how much money can you get from selling all the dolls?
Question (KO): 어느 인형 공장에서는 1시간에 평균 18개의 인형을 만든다고 한다. 이 공장에서 하루에 8시간씩 25일 동안 만든 인형을 1개에 2750원 받고 판다면 인형을 판 돈은 모두 얼마인가?

Answer: 9900000

Solution (Python):
var_a = 18
var_b = 8
var_c = var_a * var_b
var_d = 25
var_e = var_c * var_d
var_f = 2750
var_g = var_e * var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): You want to plant trees at intervals of 10 meters (m) on a 100-meter (m) long road. If trees are to be planted at the beginning and end of the road, how many trees are needed if they are planted on both sides of the road?
Question (KO): 100미터(m) 길이의 도로에 10미터(m) 간격으로 나무를 심으려고 합니다. 도로의 처음과 끝에도 나무를 심는다고 할 때, 도로 양쪽에 심는다면 몇 그루가 필요합니까?

Answer: 22

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

Question (EN): In a two-digit natural number whose tens digit is 3, when the tens and ones digits are switched, the first number is the same as adding 9 to the switched number. What is the original number?
Question (KO): 십의 자리 숫자가 3인 두 자리 자연수 중, 십의 자리와 일의 자리 숫자를 바꾸었을 때 처음 수가 바꾼 수에다가 9를 더한 값과 같았다. 처음 수는 무엇인가?

Answer: 32

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

Question (EN): What is the total of numbers less than or equal to 0.4 among 0.8, 1/2, 0.3, and 1/3?
Question (KO): 0.8, 1/2, 0.3, 1/3 중 0.4보다 작거나 같은 수의 총합은?

Answer: 0.63

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)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print('{:.2f}'.format(round(var_f+1e-10,2)))
Category: Comparison

Question (EN): Two people are standing in front of Jungkook, and four people are standing behind him. If there are 8 people in Jungkook's line and there are the same number of people in each line, how many people are there in total?
Question (KO): 정국이의 앞에 2명이 서 있고, 정국이의 뒤에 4명이 서있습니다. 정국이의 줄에 8명이 있고, 각 줄에 서 있는 사람의 수가 같다면, 총 몇 명이 서 있습니까?

Answer: 56

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

Question (EN): There is a cube with one edge 9 centimeters (cm) long. If you cut a cube from the middle of each edge with one edge 3 centimeters (cm) long, what is the volume in cubic centimeters (cm3) of the remaining part?
Question (KO): 한 모서리의 길이가 9센티미터(㎝)인 정육면체가 있습니다. 각 모서리의 중간에서 한 모서리의 길이가 3센티미터(㎝)인 정육면체를 잘랐을 때, 남은 부분의 부피는 몇 세제곱센티미터입니까?

Answer: 702

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

Question (EN): You found two round-shaped jewels in the cave. A gem A is 10 centimeters (cm) in diameter, and the other gem B is 4 centimeters (cm) in radius. The larger size is more expensive. If you're going to bring something more expensive, what should you bring?
Question (KO): 동굴 속에서 원 모양의 보석 2개를 발견했다. A 보석은 지름이 10센티미터(㎝)이고, 다른 B 보석은 반지름이 4센티미터(㎝)이다. 크기가 큰 쪽이 더 비싸다. 더 비싼 것을 들고 가려고 한다면 무엇을 들고 가야하는가?

Answer: A

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 = 10
var_d = 2
var_e = var_c / var_d
var_f = 4
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: Geometry

Question (EN): There is an isosceles triangle. When the bisector of the vertical angle is drawn, the length of the base is divided by 4 centimeters (cm). What is the length of the base in centimeters (cm) ?
Question (KO): 이등변삼각형이 있습니다. 꼭지각의 이등분선을 그었더니, 밑변의 길이가 4 센티미터(㎝)로 나누어졌습니다. 밑변의 길이는 몇 센티미터(㎝)일까요?

Answer: 8

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

Question (EN): I mistakenly subtracted a certain number from 954 instead of adding, and I got 468. Find out how much it is if you calculate it correctly.
Question (KO): 954에 어떤 수를 더해야 할 것을 잘못하여 뺐더니 468이 되었습니다. 바르게 계산하면 얼마인지 구해 보시오.

Answer: 1440

Solution (Python):
var_a = 954
var_b = 468
var_c = var_a - var_b
var_d = 954
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): Jungkook, Hoseok, and Seokjin shared colored paper. Jungkook took 10 cards, Hoseok took 7, and Seokjin took 2 less than Jungkook. Which of the three people took the fewest pieces of colored paper?
Question (KO): 정국이, 호석이, 석진이는 색종이를 나누어 가졌습니다. 정국이가 10장, 호석이가 7장을 가져가고, 석진이는 정국이보다 2장 덜 가져갔습니다. 세 명 중에서 색종이를 가장 적게 가져간 사람은 누구입니까?

Answer: Hoseok

Solution (Python):
var_a = 'Jungkook'
var_b = 'Hoseok'
var_c = 'Seokjin'
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 = 10
var_e = 7
var_f = 10
var_g = 2
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)
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-1]
var_k = list_b.index(var_j)+1
var_l = list_a[var_k-1]
print(var_l)
Category: Arithmetic calculation

Question (EN): There is a certain number that, when divided by 12, have a quotient of 25 and a remainder of 11. What is the difference between 25 and the number?
Question (KO): 12로 나누면 몫이 25이고 나머지가 11이 되는 어떤 수가 있습니다. 25와 어떤 수의 차는 얼마입니까?

Answer: 286

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

Question (EN): The father's age will double the daughter's age in 12 years and is now triple. How old is the daughter this year?
Question (KO): 아버지의 나이는 12년 후에 딸의 나이의 2배가 되고, 현재는 3배이다. 올해 딸의 나이는 얼마인가?

Answer: 12

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

Question (EN): You want to make a 7-digit number using the numbers 3, 9, 6, 0, 5, 1, and 7 only once. What is the difference between the largest and smallest number in all possible numbers?
Question (KO): 3, 9, 6, 0, 5, 1, 7 위 숫자들을 한 번씩만 사용하여 7자리 수를 만들려고 한다. 만들 수 있는 모든 경우의 수에서 가장 큰 수와 가장 작은 수의 차는 얼마인가?

Answer: 8729631

Solution (Python):
var_a = 3
var_b = 9
var_c = 6
var_d = 0
var_e = 5
var_f = 1
var_g = 7
list_a= []
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
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_h = 7
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_h))
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_i = 1
list_c=list_b.copy()
list_c.sort()
var_j = list_c[-var_i]
var_k = 1
list_d=list_b.copy()
list_d.sort()
var_l = list_d[var_k-1]
var_m = var_j - var_l
print(int(var_m))
Category: Arithmetic calculation

Question (EN): If 63 people are equally in 9 cars, how many people are in one car?
Question (KO): 9대의 자동차에 63명이 똑같이 탔을 때, 자동차 한 대에는 몇 명이 있는가?

Answer: 7

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

Question (EN): Namjoon was the 43rd to buy the book at the bookstore, and Taehyung bought the book after 10 more people bought the book after Namjoon. In what number did Taehyung buy the book?
Question (KO): 남준이는 서점에서 43번째로 책을 샀고, 태형이는 남준이 다음으로 10명이 더 산 뒤에 책을 샀습니다. 태형이는 몇 번째로 책을 샀습니까?

Answer: 54

Solution (Python):
var_a = 43
var_b = 10
var_c = var_a + var_b
var_d = 1
var_e = var_c + var_d
print(int(var_e))
Category: Comparison

Question (EN): As a result of the Korean language test conducted at the school, Taehyung, Minju, Sangmin, Yoonjung, and Yoojung received the highest score in that order. Who got 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: Possibility

Question (EN): Play ball toss. If you hit inside the red circle, you get 5 points, if you hit inside the yellow circle, you get 2 points, and if you don't fit inside both circles, you get 0 points. How many possible points can you get by throwing the ball three times?
Question (KO): 공 던지기 놀이를 합니다. 빨간색 원 안에 맞히면 5점, 노란색 원 안에 맞히면 2점, 두 원 안에 모두 맞히지 못하면 0점입니다. 공을 세 번 던질 때 얻을 수 있는 점수는 모두 몇 가지입니까?

Answer: 18

Solution (Python):
var_a = 5
var_b = 2
var_c = 0
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.product(list_b, repeat=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]
list_c=[]
for i in list_b:
    var_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = len(list_c)
print(int(var_f))
Category: Geometry

Question (EN): Find the difference between the area of a square with a perimeter of 36 centimeters (cm) and a rectangle with a width of 15 centimeters (cm) and a perimeter of 38 centimeters (cm).
Question (KO): 둘레가 36센티미터(㎝) 인 정사각형과 가로가 15 센티미터(㎝) 이고, 둘레가 38센티미터(㎝)인 직사각형의 넓이의 차를 구하시오.

Answer: 21

Solution (Python):
var_a = 36
var_b = 4
var_c = var_a / var_b
var_d = 2
var_e = var_c ** var_d
var_f = 38
var_g = 2
var_h = var_f / var_g
var_i = 15
var_j = var_h - var_i
var_k = 15
var_l = var_j * var_k
var_m = var_e - var_l
var_n = abs(var_m)
print(int(var_n))
Category: Arithmetic calculation

Question (EN): It is said that the average Korean language test scores of the four classes is 64, 73, 69, and 82, respectively. How many classes are there with an average above 70?
Question (KO): 4개 반의 국어 시험 평균이 각각 64, 73, 69, 82라고 한다. 평균이 70점을 넘는 반은 모두 몇 개인지 구하시오.

Answer: 2

Solution (Python):
var_a = 64
var_b = 73
var_c = 69
var_d = 82
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 = 70
list_b = []
for i in list_a:
    if i > var_e:
        list_b.append(i)
var_f = len(list_b)
print(int(var_f))
Category: Correspondence

Question (EN): You had to subtract 16 from a certain number, but you mistakenly add it, and the result was 64. What is the value if you calculate correctly?
Question (KO): 어떤 수에서 16을 빼야 하는데 잘못하여 더했더니 64가 되었습니다. 바르게 계산한 값은 얼마입니까?

Answer: 32

Solution (Python):
var_a = 64
var_b = 16
var_c = var_a - var_b
var_d = 16
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): When Sungmo solved and scored the math problems, he got 1/5 of the questions wrong. How many times the number of questions answered correctly is the total number of questions?
Question (KO): 성모가 수학 문제를 풀고 채점을 했더니 전체의 1/5 문제를 틀렸다면, 정답을 맞힌 문제는 전체 문제의 몇 배입니까?

Answer: 0.8

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

Question (EN): A baseball is 1/4 the radius of a basketball. When calculating the volume of a baseball and basketball, how many times bigger is the volume of a basketball compared to that of a baseball?
Question (KO): 야구공은 농구공의 반지름 길이의 1/4입니다. 야구공과 농구공의 부피를 계산할 때 농구공은 야구공의 부피의 몇 배가 큰가요?

Answer: 64

Solution (Python):
var_a = 1
var_b = 0.25
var_c = 3
var_d = var_b ** var_c
var_e = var_a / var_d
print(int(var_e))
Category: Comparison

Question (EN): Seokjin is heavier than Hoseok and lighter than Jimin. Namjoon is heavier than Jimin. Which of the 4 is the lightest?
Question (KO): 석진이는 호석이보다 무겁고 지민이보다 가볍습니다. 남준이는 지민이보다 무겁습니다. 4명 중 가장 가벼운 사람은 누구입니까?

Answer: Hoseok

Solution (Python):
var_a = 'Seokjin'
var_b = 'Hoseok'
var_c = 'Jimin'
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 = 'Seokjin'
var_f = 'Hoseok'
var_g = '>'
var_h = 'Seokjin'
var_i = 'Jimin'
var_j = '<'
var_k = 'Namjoon'
var_l = 'Jimin'
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): The sum of the prices of an apple and a pear is 15,000 won. If an apple costs 2,400 won more than a pear, what is the price of the pear?
Question (KO): 사과와 배의 가격의 합은 15000원이다. 사과가 배 보다 2400원 더 비싸다면 배는 얼마인지 구하시오.

Answer: 6300

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

Question (EN): When a number is divided by 75, the quotient is 11. Find the largest number.
Question (KO): 어떤 수를 75로 나누었더니 몫이 11이 되었습니다. 어떤 수 중 가장 큰 수를 구하세요.

Answer: 899

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

Question (EN): In a multiplication where both numbers are two digits, you multiplied 2 instead of 5 in the ones place of the number by mistake, and got a value of 704. If the correctly calculated value is 800, find what the larger digit of the two two-digit numbers is.
Question (KO): 두 숫자가 모두 두 자리 수인 곱셈에서 곱하는 수의 일의 자리 숫자 5를 2로 잘못 보고 계산한 값이 704가 되었습니다. 바르게 계산한 값이 800일 때, 2개의 두 자리 수 중 더 큰 수를 쓰시오.

Answer: 32

Solution (Python):
var_a = 704
var_b = 800
var_c = var_a - var_b
var_d = 2
var_e = 5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 800
var_i = 704
var_j = 800
var_k = var_i - var_j
var_l = 2
var_m = 5
var_n = var_l - var_m
var_o = var_k / var_n
var_p = var_h / var_o
list_a= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_a.append(var_p)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
list_a.reverse()
var_q = 1
list_b=list_a.copy()
list_b.sort()
var_r = list_b[-var_q]
print(int(var_r))
Category: Arithmetic calculation

Question (EN): There is a tape measure that is 5 meters (m) long and weighs 29/8 kilograms (kg) and a computer that is 4 meters (m) long and weighs 2.8 kilograms (kg). If you cut a tape measure and computer into 2 meters (m) and weigh them together, how many kilograms (kg) do you get?
Question (KO): 길이가 5미터(m), 무게가 29/8킬로그램(㎏)의 줄자와 길이가 4미터(m), 무게가 2.8킬로그램(㎏)인 컴퓨터가 있다. 줄자와 컴퓨터를 2미터(m)씩 잘라 함께 무게를 재면 몇 킬로그램(㎏)입니까?

Answer: 2.85

Solution (Python):
var_a = 3.625
var_b = 5
var_c = var_a / var_b
var_d = 2
var_e = var_c * var_d
var_f = 2.8
var_g = 4
var_h = var_f / var_g
var_i = 2
var_j = var_h * var_i
var_k = var_e + var_j
print('{:.2f}'.format(round(var_k+1e-10,2)))
Category: Geometry

Question (EN): If you draw diagonals in a hexagon, what is the total number of diagonals?
Question (KO): 육각형 내에 대각선을 그린다고 할 때, 총 대각선의 수는?

Answer: 9

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

Question (EN): B is C plus 185, and A is greater than B by 157. Find C when A is 680.
Question (KO): B는 C에 185를 더한 값이고 B보다 A는 157만큼 크다. A가 680일때 C를 구하여라.

Answer: 338

Solution (Python):
var_a = 680
var_b = 157
var_c = var_a - var_b
var_d = 185
var_e = var_c - var_d
print(int(var_e))