philschmid/DMath huggingface dataset:
Category: Arithmetic calculation

Question (EN): Taehyung jumped rope 56 times a day for 3 days and Namjoon did 35 times a day for 4 days. How many times did Taehyung and Namjoon jump rope?
Question (KO): 태형이는 줄넘기를 하루에 56번씩 3일 동안 했고 남준이는 하루에 35번씩 4일 동안 했습니다. 태형이와 남준이가 한 줄넘기의 횟수는 모두 몇 번입니까?

Answer: 308

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

Question (EN): You have a box in the shape of a regular dodecahedron. How many vertices does this box have?
Question (KO): 정십이면체 모양의 상자가 있습니다. 이 상자의 꼭짓점의 개수는?

Answer: 20

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

Question (EN): There is a fountain in the shape of a square with sides measuring 2 meters (m). We are going to create several lakes with a radius of 3 meters (m) in this park. How many lakes can you create?
Question (KO): 한 변의 길이가 30미터(m)인 정사각형 모양의 공원이 있습니다. 이 공원에 반지름이 3미터(m)인 호수를 여러개 만들려고 합니다. 호수는 최대 몇 개 만들 수 있습니까?

Answer: 25

Solution (Python):
var_a = 30
var_b = 3
var_c = 2
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): There is a number that is a multiple of 5 when subtracted by 3, a multiple of 7 when subtracted by 2. If a number is greater than 50 and less than 70, what is this number?
Question (KO): 어떤 수에서 3을 빼면 5의 배수이고, 2를 빼면 7의 배수이다. 어떤 수가 50보다 크고 70보다 작을 때, 어떤 수가 얼마인지 구하시오.

Answer: 58

Solution (Python):
var_a = 50
var_b = 70
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
var_f = 5
var_g = 3
list_b = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_a:
    i = int(i)
    if i%var_f == var_g:
        list_b.append(i)
var_h = 7
var_i = 2
list_c = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_b:
    i = int(i)
    if i%var_h == var_i:
        list_c.append(i)
var_j = 1
var_k = list_c[var_j-1]
print(int(var_k))
Category: Correspondence

Question (EN): On the day of the soccer match, 12 bottles of water and 34 bottles of soda were given to the players. After the soccer game, I counted all the remaining water and drinks and it was 30 bottles. The number of bottles of drink consumed by the players is three times the number of bottles of water consumed by the players. How many bottles of water did the players drink?
Question (KO): 축구경기가 있는 날, 물 12병과 음료수 34병을 선수들에게 주었다. 축구 경기가 끝난 후 남은 물과 음료수를 모두 세보니 30병이었다. 선수들이 마신 음료수의 병 수는 선수들이 마신 물병 수의 3배이다. 선수들이 마신 물은 몇 병인가?

Answer: 4

Solution (Python):
var_a = 12
var_b = 34
var_c = var_a + var_b
var_d = 30
var_e = var_c - var_d
var_f = 1
var_g = 3
var_h = var_f + var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Students who like society are 25 students in class (A). 32 students voted to like music, and 27 students voted to both social studies and music. If every student voted for one or the other, how many students are in class (A)?
Question (KO): 사회를 좋아하는 학생은 (가) 반 학생 중 25명입니다. 음악을 좋아한다고 투표한 학생은 32명이고, 사회와 음악 모두에 투표한 학생은 27명이었습니다. 모든 학생이 둘 중 하나는 투표했을 때, (가) 반에는 모두 몇 명의 학생이 있습니까?

Answer: 30

Solution (Python):
var_a = 25
var_b = 32
var_c = var_a + var_b
var_d = 27
var_e = var_c - var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): Namjoon has 3 trucks and Taehyung has 2 trucks. How many trucks do Namjoon and Taehyung have?
Question (KO): 남준이는 트럭 3대가 있고, 태형이는 트럭 2대가 있습니다. 남준이와 태형이가 갖고있는 트럭은 몇 대 인가요?

Answer: 5

Solution (Python):
var_a = 3
var_b = 2
var_c = var_a + var_b
print(int(var_c))
Category: Geometry

Question (EN): There is a mirror in the shape of a regular triangle with a side length of 50 centimeters (cm). If you want to place the lights around the perimeter of this mirror with 10 centimeters (cm) of intervals, how many lights do you need?
Question (KO): 한 변의 길이가 50센티미터(㎝)인 정삼각형 모양의 거울이 있습니다. 이 거울의 둘레에 10센티미터(㎝) 간격으로 조명을 설치할 때 조명은 모두 몇 개가 필요합니까?

Answer: 15

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

Question (EN): The multiples of 3 less than 100 are written in order from smallest to biggest. Find the product of the numbers between the 21st and 24th numbers from the left.
Question (KO): 100보다 작은 3의 배수를 작은 수부터 차례대로 썼습니다. 왼쪽에서 21번째와 24번째에 있는 수의 사이에 있는 수들의 곱을 구하시오.

Answer: 4554

Solution (Python):
var_a = 0
var_b = 3
var_c = var_a + var_b
var_d = 100
var_e = 3
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 22
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
var_h = 23
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g * var_i
print(int(var_j))
Category: Arithmetic calculation

Question (EN): Cabbage was planted in 1/3 of the 2.4 square meters (m2) field, and peppers were planted in the remaining 1/4. Find the area of the field where the peppers were planted.
Question (KO): 넓이가 2.4제곱미터(㎡)인 밭의 1/3에 배추를 심고, 나머지의 1/4에 고추를 심었다. 고추를 심은 밭의 넓이를 구하여라.

Answer: 0.4

Solution (Python):
var_a = 2.4
var_b = 1
var_c = 0.3333333333333333
var_d = var_b - var_c
var_e = var_a * var_d
var_f = 0.25
var_g = var_e * var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): 20 students are waiting for the bus. If Jungkook came right before Yoongi, and there are 11 people who came before Jungkook, how many people came later than Yoongi?
Question (KO): 20명의 학생들이 버스를 기다리고 있습니다. 정국이는 윤기 바로 앞에 왔고, 정국이보다 먼저 온 사람은 11명이라면 윤기보다 늦게 온 사람들은 몇 명입니까?

Answer: 7

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

Question (EN): When AB-10=15, what number should go in A?
Question (KO): AB-10=15일 때, A에 들어가야 하는 숫자는 무엇인가요?

Answer: 2

Solution (Python):
var_a = 'AB-10=15'
var_b = 'A'
ans_dict = dict()
var_a = var_a.replace('×','*')
var_a = var_a.replace('x','*')
var_a = var_a.replace('÷','/')
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 1
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    term_list = []
    op_list = []
    temp_c = ''
    for tc in temp:
        if tc not in '+-*/=><().':
            temp_c += tc
        else:
            op_list.append(tc)
            term_list.append(temp_c)
            temp_c = ''
    term_list.append(temp_c)
    new_eq = ''
    for i in range(len(op_list)):
        new_eq += str(int(term_list[i]))+op_list[i]
    new_eq += str(int(term_list[-1]))
    if len(new_eq) == len(var_a):
        new_eq=new_eq.replace('=', '==')
        new_eq=new_eq.replace('>==', '>=')
        new_eq=new_eq.replace('<==', '<=')
        eval_result = False
        try:
            eval_result = eval(new_eq)
        except:
            pass
        if eval_result:
            for i, (k, _) in enumerate(ans_dict.items()):
                ans_dict[k] = int(c[i])
var_c = ans_dict[var_b]
print(int(var_c))
Category: Geometry

Question (EN): Seokgi went hiking with his father. It is 4 kilometers (km) and 436 meters (m) from the entrance of the mountain to the temple, and 1999 meters (m) from the temple to the top of the mountain. If Seokgi went up starting from the entrance of the mountain through the temple and to the top of the mountain, and then came down the same road, how many kilometers (km) did he walk?
Question (KO): 석기는 아버지와 함께 등산을 갔습니다. 산 입구에서 절까지는 4킬로미터(㎞) 436미터(m)이고, 절에서 산꼭대기까지는 1999미터(m)입니다. 석기가 산 입구에서 절을 거쳐 산꼭대기까지 갔다가 같은 길을 내려왔다면 몇 킬로미터(㎞)를 걸은 것입니까?

Answer: 12.87

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

Question (EN): Find the sum of the lengths of the four sides of a square whose side is 13 centimeters (cm).
Question (KO): 한 변의 길이가 13센티미터(㎝)인 정사각형의 네 변의 길이의 합을 구하시오.

Answer: 52

Solution (Python):
var_a = 13
var_b = 4
var_c = var_a * var_b
print(int(var_c))
Category: Geometry

Question (EN): What is the surface area, in square centimeters (cm2), of a cube with one edge 7 centimeters (cm) long?
Question (KO): 한 모서리의 길이가 7㎝인 정육면체의 겉넓이는 몇 제곱센티미터입니까?

Answer: 294

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

Question (EN): What is the largest three-digit number that is divisible by both 4 and 5?
Question (KO): 숫자 4, 5로 나누어 떨어질 수 있는 세 자리 수 중 가장 큰 수는 무엇입니까?

Answer: 980

Solution (Python):
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 4
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 = 5
list_c = []
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i % var_e == 0:
        list_c.append(i)
var_f = 1
list_d=list_c.copy()
list_d.sort()
var_g = list_d[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): Eunji is 25 years younger than her uncle and Yuna is 3 years older than Eunji. If her uncle is 41 years old, what is the sum of Eunji's and Yuna's ages?
Question (KO): 은지의 나이는 삼촌보다 25살 더 적고 유나의 나이는 은지보다 3살 더 많습니다. 삼촌의 나이가 41살이라면 은지의 나이와 유나의 나이의 합은 몇 살인지 구하시오.

Answer: 35

Solution (Python):
var_a = 41
var_b = 25
var_c = var_a - var_b
var_d = 41
var_e = 25
var_f = var_d - var_e
var_g = 3
var_h = var_f + var_g
var_i = var_c + var_h
print(int(var_i))
Category: Possibility

Question (EN): Find out the number of three-digit numbers that are greater than 600 and less than 950, and which can be made by combining the numbers 9, 4, and 6 only once.
Question (KO): 주어진 숫자 카드 9, 4, 6을 한 번씩 모두 사용하여 세 자리 수를 만들 때, 600보다 크고 950보다 작은 수는 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 9
var_b = 4
var_c = 6
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 = 600
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 950
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: Correspondence

Question (EN): I made the mistake of adding 20 to a number and multiplying it by 5, when I needed to add 20 to this number and divide it by 5. The result value was 225. Find the rightly calculated value.
Question (KO): 어떤 수에 20을 더한 다음 5로 나누어야 할 것을 잘못하여 어떤 수에 20을 더한 다음 5를 곱했더니 225가 되었습니다. 바르게 계산한 값을 구하시오.

Answer: 225

Solution (Python):
var_a = 225
var_b = 5
var_c = var_a / var_b
var_d = 20
var_e = var_c - var_d
var_f = 20
var_g = var_e + var_f
var_h = 5
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Taeyeon's height is 1.06 times that of Sunghee's. When Seonghee measured her height, it was 134.5 centimeters (cm). At this time, find out how tall Taeyeon is in centimeters (cm).
Question (KO): 태연이의 키는 성희의 키의 1.06배입니다. 성희가 키를 쟀을 때 134.5센티미터(㎝)였습니다. 이 때, 태연이의 키는 몇 센티미터(㎝)인지 구해보세요.

Answer: 142.57

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

Question (EN): If the son's age is 1 year less than 1/4 of the father's age and the father's age is 5 years less than 5 times the son's age, how old is the son?
Question (KO): 아들의 나이는 아버지의 나이의 1/4보다 1살이 적고 아버지의 나이는 아들의 나이의 5배보다 5살이 적을 때, 아들의 나이는 몇 살입니까?

Answer: 9

Solution (Python):
var_a = 0.25
var_b = 5
var_c = var_a * var_b
var_d = 1
var_e = var_c + var_d
var_f = 0.25
var_g = 5
var_h = var_f * var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e / var_j
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Tigers are said to run 3.8 kilometers (km) per hour. How many kilometers (km) could the tiger run without stopping in 2 hours and 45 minutes?
Question (KO): 호랑이는 한 시간에 3.8킬로미터(㎞)를 달린다고 합니다. 호랑이가 2시간 45분동안 쉬지않고 달린 거리는 몇 킬로미터(㎞)입니까?

Answer: 10.45

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

Question (EN): There is one black go stone and two white go stones. How many ways are there to place 3 go stones in a row?
Question (KO): 검은색 바둑돌 1개와 흰색 바둑돌 2개가 있습니다. 바둑돌 3개를 한 줄로 놓을 때 가능한 방법은 모두 몇 가지입니까?

Answer: 3

Solution (Python):
var_a = 2
var_b = 1
var_c = var_a + var_b
var_d = 2
var_e = 1
var_c = int(var_c)
var_d = int(var_d)
for i, elem in enumerate(range(var_d)):
    var_e = var_e * (var_c-i)
for i, elem in enumerate(range(var_d)):
    var_e = var_e / (i+1)
print(int(var_e))
Category: Comparison

Question (EN): The average height of the three people, A, B, and C is 143 centimeters (cm). If A's height is increased by 4.5 centimeters (cm), it becomes the average height of B and C. If B is 3 centimeters (cm) taller than C, how tall is C in centimeters (cm)?
Question (KO): 갑, 을 병 세 사람의 평균 키는 143센티미터(㎝)이다. 갑의 키에 4.5센티미터(㎝)를 더하면 을과 병의 평균 키가 된다. 을이 병보다 3센티미터(㎝) 더 크면, 병의 키는 몇 센티미터(㎝)인가?

Answer: 143

Solution (Python):
var_a = 143
var_b = 3
var_c = var_a * var_b
var_d = 3
var_e = 2
var_f = var_d / var_e
var_g = 4.5
var_h = var_f - var_g
var_i = var_c - var_h
var_j = 3
var_k = var_i - var_j
var_l = 3
var_m = var_k / var_l
print(int(var_m))
Category: Geometry

Question (EN): There is a pillar with a base in the shape of a equilateral triangle. If a 78 centimeters (cm) long string is wrapped around this pillar and there is neither shortage nor excess string, how many centimeters (cm) is one side of the base of this pillar?
Question (KO): 밑면이 정삼각형 모양인 기둥이 있습니다. 길이가 78센티미터(㎝)인 끈을 이용해 이 기둥을 한 바퀴 감쌌을 때 끈이 부족하지도 남지도 않았다면, 기둥의 밑면의 한 변의 길이는 몇 센티미터(㎝)입니까?

Answer: 26

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

Question (EN): Hyogeun, Seokgi, and Gayeong weigh 106 kilograms (kg) and 600 grams (g). Gayeong is 7 kg (kg) 700 grams (g) lighter than Seokgi, and Seokgi is 4.8 kg (kg) lighter than Hyogeun. How many kilograms (kg) does Hyogeun weigh?
Question (KO): 효근, 석기, 가영 세 사람의 몸무게의 합은 106킬로그램(㎏) 600그램(g)입니다. 가영이는 석기보다 7킬로그램(㎏) 700그램(g) 더 가볍고, 석기는 효근이보다 4.8킬로그램(㎏) 더 가볍습니다. 효근이의 몸무게는 몇 킬로그램(㎏)입니까?

Answer: 41.3

Solution (Python):
var_a = 106
var_b = 600
var_c = 1000
var_d = var_b / var_c
var_e = var_a + var_d
var_f = 7
var_g = 700
var_h = 1000
var_i = var_g / var_h
var_j = var_f + var_i
var_k = var_e + var_j
var_l = 4.8
var_m = 2
var_n = var_l * var_m
var_o = var_k + var_n
var_p = 3
var_q = var_o / var_p
print('{:.2f}'.format(round(var_q+1e-10,2)))
Category: Possibility

Question (EN): How many of the three-digit number can be formed from four natural numbers 2, 4, 6, and 8 using only 3 numbers?
Question (KO): 네 자연수 2, 4, 6, 8중 3개만을 골라 모두 사용하여 세 자리 수를 만들 때, 만들 수 있는 개수는 몇 개인가?

Answer: 24

Solution (Python):
var_a = 2
var_b = 4
var_c = 8
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 = len(list_b)
print(int(var_f))
Category: Possibility

Question (EN): When Beomjin wants to put two math books and two English books on the bookshelf, in how many ways can the math books be placed together?
Question (KO): 범진이가 책장에 수학책 두 권과 영어책 두 권을 올려놓으려고 할 때, 수학책을 붙여서 놓는 방법의 개수는?

Answer: 12

Solution (Python):
var_a = 3
var_b = 3
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)
var_d = 2
var_e = var_c * var_d
print(int(var_e))
Category: Geometry

Question (EN): There is a triangle whose base is 3.6 and whose height is 2.5 times the base. Find the area of the triangle.
Question (KO): 밑변이 3.6이고 높이가 밑변의 2.5배인 삼각형이 있다. 삼각형의 넓이를 구하시오.

Answer: 16.2

Solution (Python):
var_a = 3.6
var_b = 3.6
var_c = 2.5
var_d = var_b * var_c
var_e = var_a * var_d
var_f = 2
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2)))
Category: Comparison

Question (EN): Yuna, Eunji, Minyoung, and Yoojung are having a flying contest. Minyoung flew farther than Eunji, Eunji flew farther than Yoojung, and Yuna flew farther than Yoojung. When Minyoung flew farther than Yoojung, who was the bottom person in the competition?
Question (KO): 유나, 은지, 민영, 유정이가 비행기 멀리 날리기 대회를 하고 있습니다. 민영이는 은지보다, 은지가 유정이보다 비행기를 멀리 날렸고 유나는 유정이보다 비행기를 멀리 날렸습니다. 유정이보다 민영이가 비행기를 멀리 날렸을 때, 대회에서 꼴등한 사람은 누구일까요?

Answer: Yoojung

Solution (Python):
var_a = 'Yuna'
var_b = 'Eunji'
var_c = 'Minyoung'
var_d = 'Yoojung'
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 = 'Yuna'
var_f = 'Yoojung'
var_g = '>'
var_h = 'Minyoung'
var_i = 'Eunji'
var_j = '>'
var_k = 'Eunji'
var_l = 'Yoojung'
var_m = '>'
var_n = 'Yoojung'
var_o = 'Minyoung'
var_p = '<'
list_b= []
if "/" in str(var_p):
    var_p = eval(str(var_p))
list_b.append(var_p)
if "/" in str(var_o):
    var_o = eval(str(var_o))
list_b.append(var_o)
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_b.append(var_n)
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_q = len(list_c)
var_r = list_c[var_q-1]
print(var_r)
Category: Comparison

Question (EN): How many three-digit numbers are less than 306 and greater than or equal to 300?
Question (KO): 306보다 작은 수 중에서 300보다 크거나 같은 세 자리 수는 몇 개입니까?

Answer: 6

Solution (Python):
var_a = 3
var_b = 100
var_c = var_a * var_b
var_d = 3
var_e = 100
var_f = var_d * var_e
var_g = 99
var_h = var_f + var_g
var_i = 1
list_a = [i for i in range(var_c, var_h + 1, var_i)]
var_j = 306
list_b = []
for i in list_a:
    if i < var_j:
        list_b.append(i)
var_k = len(list_b)
print(int(var_k))
Category: Arithmetic calculation

Question (EN): Twenty-four sheets of 28 centimeters (cm) long paper strips were overlapped to the same length and attached to a long line. If the total length of the 24 strips is 580 cm (cm), find out how many centimeters (cm) of strips were overlapped.
Question (KO): 길이가 28센티미터(㎝)인 종이띠 24장을 같은 길이만큼씩 겹쳐서 한 줄로 길게 이어 붙였습니다. 24장을 이어 붙인 종이띠의 전체 길이가 580센티미터(㎝)라면 종이띠를 몇 센티미터(㎝)씩 겹치게 이어 붙인 것인지 구해 보시오.

Answer: 4

Solution (Python):
var_a = 28
var_b = 24
var_c = var_a * var_b
var_d = 580
var_e = var_c - var_d
var_f = 24
var_g = 1
var_h = var_f - var_g
var_i = var_e / var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): There are 36 colored pencils. The number of red colored pencils is 5/9 of the total. The number of blue colored pencils is 5/12 of the total. How many more red colored pencils are there than the blue colored pencils?
Question (KO): 색연필이 36자루 있습니다. 빨간색 색연필 개수는 전체의 5/9입니다. 파란색 색연필 개수는 전체의 5/12입니다. 빨간색 색연필은 파란색 색연필보다 몇 자루 더 많습니까?

Answer: 5

Solution (Python):
var_a = 36
var_b = 0.5555555555555556
var_c = var_a * var_b
var_d = 36
var_e = 0.4166666666666667
var_f = var_d * var_e
var_g = var_c - var_f
print(int(var_g))
Category: Arithmetic calculation

Question (EN): If there are 41 students in Seonghoe's class, and there are 3 more students walking to school than those using public transportation, find out how many students walk to school.
Question (KO): 성회네 반의 학생은 41명이고, 그중 걸어서 등교하는 학생은 대중교통을 이용하여 등교하는 학생보다 3명 많을 때, 걸어서 등교하는 학생은 몇 명인지 구하시오.

Answer: 22

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

Question (EN): Yoongi is standing in the 7th row from the left, the 13th row from the right, the 8th row from the front, and the 14th row from the back. If the number of students standing in each row is the same, how many students are doing gymnastics?
Question (KO): 윤기는 왼쪽에서 7번째 열, 오른쪽에서 13번째 열, 앞에서 8번째 줄, 뒤에서 14번째 줄에 서서 체조를 하고 있습니다. 각 줄마다 서 있는 학생의 수가 같다고 할 때, 체조를 하고 있는 학생은 모두 몇 명입니까?

Answer: 399

Solution (Python):
var_a = 7
var_b = 13
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 8
var_g = 14
var_h = var_f + var_g
var_i = 1
var_j = var_h - var_i
var_k = var_e * var_j
print(int(var_k))
Category: Comparison

Question (EN): Hanbyul and Seulgi ran. During the same time, Hanbyul ran 1/100 of 10.2 kilometers (km), and Seulgi ran 100 meters (m). Who ran more?
Question (KO): 한별이와 슬기가 달리기를 했습니다. 같은 시간 동안 한별이는 10.2킬로미터(㎞)의 1/100 배를 달렸고, 슬기는 100미터(m)를 달렸습니다. 누가 더 많이 달렸습니까?

Answer: Hanbyul

Solution (Python):
var_a = 'Hanbyul'
var_b = 'Seulgi'
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 = 0.01
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)