philschmid/DMath huggingface dataset:
Category: Comparison

Question (EN): At a Gimbap shop, basic Gimbap is 2,000 won, tuna Gimbap is 3,500 won, red pepper Gimbap is 3,000 won, beef Gimbap is 4,000 won, and nude Gimbap is 3,500 won. how much would you have to pay if you bought two gimbaps each that cost more than or equal to 3500 won?
Question (KO): 어느 김밥 가게에서 기본 김밥은 2000원, 참치 김밥은 3500원, 고추 김밥은 3000원, 소고기 김밥은 4000원, 누드 김밥은 3500원일 때 3500원 이상인 김밥을 모두 두 개씩 샀다면 얼마를 내야 합니까?

Answer: 22000

Solution (Python):
var_a = 2000
var_b = 3500
var_c = 3000
var_d = 4000
var_e = 3500
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 = 3500
list_b = []
for i in list_a:
    if i >= var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)
var_h = 2
var_i = var_g * var_h
print(int(var_i))
Category: Arithmetic calculation

Question (EN): Jungkook's weight is 154 grams (g) heavier than 54 kilograms (kg). Write Jungkook's weight in grams (g).
Question (KO): 정국의 몸무게는 54킬로그램(㎏)보다 154그램(g) 무겁습니다. 정국이의 몸무게를 그램(g)으로 써보시오

Answer: 54154

Solution (Python):
var_a = 54
var_b = 1000
var_c = var_a * var_b
var_d = 154
var_e = var_c + var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): What is the greatest two-digit multiple of 3?
Question (KO): 3의 배수 중 가장 큰 두 자리 수는?

Answer: 99

Solution (Python):
var_a = 10
var_b = 99
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
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
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
print(int(var_f))
Category: Comparison

Question (EN): Seokjin is 15th in line at the mart, and Namjoon is 6 people ahead of Seokjin. What number is Namjoon on?
Question (KO): 석진이는 마트에서 15번째 줄에 서있고, 남준이는 석진이보다 6명 앞에 있습니다. 남준이는 몇 번째에 서 있습니까?

Answer: 8

Solution (Python):
var_a = 15
var_b = 6
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e))
Category: Possibility

Question (EN): Use the number cards 1, 4, 9, and 5 once each to form the biggest number.
Question (KO): 숫자 카드 1, 4, 9, 5를 한 번씩 모두 사용하여 합이 가장 큰 값을 구하시오.

Answer: 9541

Solution (Python):
var_a = 1
var_b = 4
var_c = 9
var_d = 5
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.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
print(int(var_g))
Category: Arithmetic calculation

Question (EN): I bought 8 cupboards of the same shape. This cupboard has 5 compartments and each compartment can hold 85 tea cups. How many teacups can I put in my new cupboard?
Question (KO): 같은 모양의 찬장을 8개 샀습니다. 이 찬장은 5칸으로 되어있고 각 칸마다 85개의 찻잔을 놓을 수 있습니다. 새로 산 찬장에 놓을 수 있는 찻잔은 모두 몇 잔입니까?

Answer: 3400

Solution (Python):
var_a = 8
var_b = 5
var_c = var_a * var_b
var_d = 85
var_e = var_c * var_d
print(int(var_e))
Category: Arithmetic calculation

Question (EN): I am trying to create numbers from 1 to 300 with number cards from 0 to 9. How many number card 3 are needed in all?
Question (KO): 0부터 9까지의 숫자 카드로 1부터 300까지의 수를 만드려고 합니다. 숫자 카드 3은 모두 몇 장 필요한지 구하시오.

Answer: 61

Solution (Python):
var_a = 1
var_b = 300
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d=""
for i in list_a:
    i = str(i)
    var_d = var_d + i
list_b = []
var_d = int(var_d)
while var_d//10 > 0:
    list_b.append(var_d%10)
    var_d = var_d//10
list_b.append(var_d%10)
list_b = list_b[::-1]
var_e = 3
var_f = 0
var_e = int(var_e)
for i in list_b:
    i = int(i)
    if i == var_e:
        var_f = var_f + 1
print(int(var_f))
Category: Arithmetic calculation

Question (EN): The total weight of persimmon is 3 kg (kg). If the weight of 5 persimmons is 1 kg, how many persimmons are there in all?
Question (KO): 감의 총 무게는 3킬로그램(㎏)이다. 감 5개의 무게가 1킬로그램(㎏)이라면 감은 모두 몇 개 있는가?

Answer: 15

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

Question (EN): As a result of the Korean test at school, Taehyung, Minju, Sangmin, Yoonjung, and Yoojung scored higher in the order of name. Who has 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: Correspondence

Question (EN): We have the expression 3A+B82=216. Find the number that goes into B
Question (KO): 식 3A+B82=216이 있습니다. B에 들어가야 하는 숫자를 구하시오

Answer: 1

Solution (Python):
var_a = '3A+B82=216'
var_b = 'B'
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: Arithmetic calculation

Question (EN): There are 7, 1, 3, 2, 4, 9 and 5. How many of them are between 2 and 6?
Question (KO): 7, 1, 3, 2, 4, 9, 5가 있습니다. 그중에서 2와 6 사이에 있는 수는 모두 몇 개입니까?

Answer: 4

Solution (Python):
var_a = 7
var_b = 1
var_c = 3
var_d = 2
var_e = 4
var_f = 9
var_g = 5
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 = 2
list_b = []
for i in list_a:
    if i >= var_h:
        list_b.append(i)
var_i = 6
list_c = []
for i in list_b:
    if i <= var_i:
        list_c.append(i)
var_j = len(list_c)
print(int(var_j))
Category: Comparison

Question (EN): There are 5 boxes of 30 tangerines, each weighing 200 grams (g). There are 3 boxes of 20 apples, each weighing 450 grams (g). In addition, there are 4 boxes containing 15 pears, each weighing 800 grams (g). Which fruit has the highest frequency?
Question (KO): 1개의 무게가 200그램(g)인 귤을 30개씩 담은 상자가 5개 있습니다. 1개의 무게가 450그램(g)인 사과를 20개씩 담은 상자는 3개 있습니다. 또 1개의 무게가 800그램(g)인 배를 15개씩 담은 상자는 4개 있습니다. 개수가 가장 많은 과일은 무엇입니까?

Answer: tangerines

Solution (Python):
var_a = 'tangerines'
var_b = 'apples'
var_c = 'pears'
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 = 30
var_e = 5
var_f = var_d * var_e
var_g = 20
var_h = 3
var_i = var_g * var_h
var_j = 15
var_k = 4
var_l = var_j * var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Comparison

Question (EN): Yoongi had 4 apples and Jungkook had 6 apples, but he ate 3 of them. Who has more apples?
Question (KO): 윤기가 가진 사과가 4개, 정국이는 6개의 사과의 사과를 가지고 있었지만 3개를 먹었습니다. 누가 더 많은 사과를 가지고 있나요?

Answer: Yoongi

Solution (Python):
var_a = 'Yoongi'
var_b = 'Jungkook'
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 = 4
var_d = 6
var_e = 3
var_f = var_d - var_e
list_b= []
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_b.append(var_c)
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): Find the sum of odd numbers from 1 to 50.
Question (KO): 1부터 50까지의 수 중 홀수의 합을 구하시오.

Answer: 625

Solution (Python):
var_a = 1
var_b = 50
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)
list_a = [float(i) for i in list_a]
var_c = sum(list_a)
print(int(var_c))
Category: Arithmetic calculation

Question (EN): There are 60 red balls and 30 blue balls. If there are 5 more number of red balls than the number of blue and white balls combined. How many white balls are there?
Question (KO): 빨간색 공 60개와 파란색 공 30개가 있습니다. 빨간색 공은 파란색 공과 흰색 공을 합한 것보다 5개 더 많습니다. 흰색 공은 몇 개입니까?

Answer: 25

Solution (Python):
var_a = 60
var_b = 30
var_c = var_a - var_b
var_d = 5
var_e = var_c - var_d
print(int(var_e))
Category: Geometry

Question (EN): Find the volume of a quadrangular prism whose base and sides are squares with a perimeter of 32 centimeters (cm).
Question (KO): 둘레의 길이가 32센티미터(㎝)인 정사각형을 밑면과 옆면으로 갖는 사각기둥의 부피를 구하시오.

Answer: 512

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

Question (EN): The total weight of Hanbyul and Hansol is 88 kg (kg). If Hanbyul is 4 kilograms (kg) heavier than Hansol, how many kilograms (kg) does Hansol weigh?
Question (KO): 한별이와 한솔이의 몸무게의 합은 88킬로그램(㎏)입니다. 한별이가 한솔이보다 4킬로그램(㎏) 더 무겁다면 한솔이의 몸무게는 몇 킬로그램(㎏)입니까?

Answer: 42

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

Question (EN): Find the sum of the interior angles of a regular decagon divided by the number of interior angles.
Question (KO): 정십각형의 내각의 크기의 합을 내각의 개수로 나누면 얼마인지 구하라.

Answer: 144

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

Question (EN): Street lamps are erected at 50 meter (m) intervals along the both sides of lake road. If the total length of the lake road is 1650 meters (m) and there are street lamps at the beginning and end of the bridge, how many street lamps are there on both sides of the lake road?
Question (KO): 호수길에 가로등이 50미터(m) 간격으로 세워져 있습니다. 호수길의 총 길이는 1650미터(m)이고, 다리의 처음과 끝에도 가로등이 세워져 있을 때, 호수길 양쪽에 세워진 가로등의 수는 모두 몇 개입니까?

Answer: 68

Solution (Python):
var_a = 1650
var_b = 50
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: Possibility

Question (EN): Use number cards 1, 6, 3, and 9 all and once to find the sum of the largest and smallest numbers that can be made.
Question (KO): 숫자 카드 1, 6, 3, 9를 한 번씩 모두 사용해서 가장 큰 수와 가장 작은 수의 합을 구하시오.

Answer: 11000

Solution (Python):
var_a = 1
var_b = 6
var_c = 3
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 = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_f = 1
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 1
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g + var_i
print(int(var_j))
Category: Correspondence

Question (EN): A company has 928 employees. If 713 employees of those are working in Korea,  find how many fewer employees work abroad than those working in Korea?
Question (KO): 어느 회사에 직원 수는 928명이다. 국내에서 근무하는 직원이 713명일 때, 해외에서 근무하는 직원은 국내에서 근무하는 직원보다 몇 명이 더 적은지 구하시오.

Answer: 498

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

Question (EN): Taehyung has 12,000 won and Minwoo has 4,000 won. Taehyung gets an allowance of 300 won every day and Minwoo gets an allowance of 500 won every day. How many days later will Taehyung and Minwoo have the same amount of money?
Question (KO): 태형이는 12000원을 가지고 있고 민우는 4000원을 가지고 있습니다. 태형이는 매일 300원의 용돈을 받고 민우는 매일 500원의 용돈을 받습니다. 태형이와 민우가 가진 돈이 같아지는 때는 며칠 후입니까?

Answer: 40

Solution (Python):
var_a = 12000
var_b = 4000
var_c = var_a - var_b
var_d = 500
var_e = 300
var_f = var_d - var_e
var_g = var_c / var_f
print(int(var_g))
Category: Correspondence

Question (EN): Divide a number by 11 and get 2. Find the result of 6 multiplied by a number.
Question (KO): 11로 어떤 수를 나누었더니 2가 되었습니다. 6을 어떤 수에 곱하면 얼마가 되는지 구하시오.

Answer: 132

Solution (Python):
var_a = 2
var_b = 11
var_c = var_a * var_b
var_d = 6
var_e = var_c * var_d
print(int(var_e))
Category: Comparison

Question (EN): In the auditorium at Yunju's school, the number of chairs in each row is the same in a square shape. The seat for Yunju is 2nd from the front, 5th from the back, 3rd from the right, and 4th from the left. How many chairs are there in the auditorium at Yunju's school?
Question (KO): 윤주네 학교 강당에는 가로, 세로 각 줄의 의자 수가 같게 사각형 모양으로 놓여 있습니다. 윤주가 앉을 자리는 앞에서 2번째, 뒤에서 5번째, 오른쪽에서 3번째, 왼쪽에서 4번째에 있습니다. 윤주네 학교 강당에 있는 의자는 모두 몇 개입니까?

Answer: 36

Solution (Python):
var_a = 2
var_b = 5
var_c = var_a + var_b
var_d = 1
var_e = var_c - var_d
var_f = 3
var_g = 4
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: Correspondence

Question (EN): What number must go into A to make AB2-41=591 valid?
Question (KO): AB2-41=591이 성립하기 위해 A에 들어가야 하는 숫자는 무엇인가요?

Answer: 6

Solution (Python):
var_a = 'AB2-41=591'
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: Comparison

Question (EN): Jina gave Donghwa 4 out of 12 tangerines, and Youngho gave Donghwa 6 out of 15 tangerines. Who has the most tangerines when Donghwa has only the tangerines that were given by Jina and Youngho?
Question (KO): 진아는 가지고 있던 귤 12개 중에서 4개를 동화에게 주었고, 영호는 가지고 있던 귤 15개 중에서 6개를 동화에게 주었습니다. 동화는 진아와 영호에게 받은 귤만 있을 때 귤을 가장 많이 가지고 있는 사람은 누구입니까?

Answer: Donghwa

Solution (Python):
var_a = 'Jina'
var_b = 'Youngho'
var_c = 'Donghwa'
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 = 12
var_e = 4
var_f = var_d - var_e
var_g = 15
var_h = 6
var_i = var_g - var_h
var_j = 4
var_k = 6
var_l = var_j + var_k
list_b= []
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_b.append(var_l)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_b.append(var_i)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_b.append(var_f)
list_b.reverse()
var_m = 1
list_c=list_b.copy()
list_c.sort()
var_n = list_c[-var_m]
var_o = list_b.index(var_n)+1
var_p = list_a[var_o-1]
print(var_p)
Category: Comparison

Question (EN): Namjoon came second, and Yoongi came right behind him. 3 people came after Yoongi and after them, Hoseok came. What's Hoseok's ranking?
Question (KO): 남준이는 2등을 했고, 윤기는 바로 그 뒤에 들어갔습니다. 호석이는 윤기 뒤 3번째에 들어갔습니다. 호석이는 몇등입니까?

Answer: 6

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

Question (EN): There are four numbers 0.8, 1/2, 0.9, and1/3. What is the largest number less than 3?
Question (KO): 4개의 숫자 0.8, 1/2, 0.9, 1/3가 있습니다. 3보다 작은 수 중 가장 큰 숫자는 얼마인가요?

Answer: 0.9

Solution (Python):
var_a = 0.8
var_b = 0.5
var_c = 0.9
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 = 3
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: Comparison

Question (EN): There are bags weighing 1.2 kilograms (kg), 3.1 kilograms (kg), 2.4 kilograms (kg), 3.0 kilograms (kg), and 1.8 kilograms (kg), respectively. How many bags are there weighing more than 2 kilograms (kg)?
Question (KO): 무게가 각각 1.2킬로그램(㎏), 3.1킬로그램(㎏), 2.4킬로그램(㎏), 3.0킬로그램(㎏), 1.8킬로그램(㎏)인 가방이 있습니다. 2킬로그램(㎏)이 넘는 가방은 모두 몇 개입니까?

Answer: 3

Solution (Python):
var_a = 1.2
var_b = 3.1
var_c = 2.4
var_d = 3
var_e = 1.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 = 2
list_b = []
for i in list_a:
    if i > var_f:
        list_b.append(i)
var_g = len(list_b)
print(int(var_g))
Category: Geometry

Question (EN): The radius of a circle is 2 centimeters (cm). What is the other radius of this circle in centimeters (cm)?
Question (KO): 어떤 원의 지름을 반지름으로 나눈 값은 몇입니까?

Answer: 2

Solution (Python):
var_a = 2
print(int(var_a))
Category: Arithmetic calculation

Question (EN): What is the largest three-digit number with 7 in the hundreds place?
Question (KO): 백의 자리가 7인 세 자리수 중 가장 큰 수는 얼마입니까?

Answer: 799

Solution (Python):
var_a = '7AB'
ans_dict = dict()
var_a = str(var_a)
list_a = []
variable_candi = set(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'])
for v in set(var_a):
    if v in variable_candi:
        ans_dict[v] = 0
candi = list(itertools.product('0123456789', repeat=len(ans_dict)))
for c in candi:
    temp = var_a
    for i, (k, _) in enumerate(ans_dict.items()):
        temp = temp.replace(k, str(c[i]))
    if len(var_a) == len(str(int(temp))):
        new_elem = int(temp)
        list_a.append(new_elem)
var_b = 1
list_b=list_a.copy()
list_b.sort()
var_c = list_b[-var_b]
print(int(var_c))
Category: Arithmetic calculation

Question (EN): Seokjin, Taehyung, and Eunji's math test average score is 92. Also, Min-young and Hoseok's scores are 90 and 95, respectively. Find the average score of these five students on the math test, including decimal points.
Question (KO): 석진, 태형, 은지의 수학 시험 평균 점수는 92점입니다. 또 민영이와 호석이의 점수는 각각 90점, 95점입니다. 이 다섯 명의 수학 시험 평균 점수는 몇 점인지 소수점을 포함하여 답을 구하시오.

Answer: 92.2

Solution (Python):
var_a = 92
var_b = 3
var_c = var_a * var_b
var_d = 90
var_e = var_c + var_d
var_f = 95
var_g = var_e + var_f
var_h = 5
var_i = var_g / var_h
print('{:.2f}'.format(round(var_i+1e-10,2)))
Category: Arithmetic calculation

Question (EN): Suna traveled 7/15 of the total distance by train, 5/8 of the remaining distance by bus, and 2/3 of the remaining distance by taxi. The rest of the distance was 2.6 kilometers (km) on foot. How many kilometers (km) did Suna travel?
Question (KO): 선아는 여행을 가는데 전체 거리의 7/15은 기차를 탔고, 나머지 거리의 5/8는 버스를 탔으며, 그 나머지 거리의 2/3는 택시를 탔다. 또 그 나머지 거리 2.6킬로미터(㎞)는 걸어서 갔다. 선아가 여행한 거리는 모두 몇 킬로미터(㎞)인가?

Answer: 39

Solution (Python):
var_a = 2.6
var_b = 1
var_c = 0.4666666666666667
var_d = var_b - var_c
var_e = 1
var_f = 0.625
var_g = var_e - var_f
var_h = var_d * var_g
var_i = 1
var_j = 0.6666666666666666
var_k = var_i - var_j
var_l = var_h * var_k
var_m = var_a / var_l
print(int(eval('{:.2f}'.format(round(var_m+1e-10,2)))))
Category: Geometry

Question (EN): When there are several cuboids, the sum of the number of faces and the number of edges of all the cuboids is 216. Find the sum of the number of vertices of all the cuboids.
Question (KO): 여러 개의 직육면체가 있을 때 모든 직육면체의 면의수와 모서리의 수를 합하면 216입니다. 모든 직육면체의 꼭짓점의 수의 합을 구하시오.

Answer: 96

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

Question (EN): Kyuhyung has several square-shaped cards. The cards are laid out neatly to form a large square, and there are 3 cards left. It is said that 44 more cards are needed to increase to fill the outer perimeter with cards. How many cards does Kyuhyung have?
Question (KO): 규형이는 정사각형 모양의 카드를 여러 장 가지고 있습니다. 이 카드를 빈틈없이 늘어놓아 큰 정사각형 모양을 만들었더니 3장의 카드가 남았습니다. 만든 정사각형의 가로 한 변과 세로 한 변을 2열씩 늘리려면 44장의 카드가 더 필요하다고 합니다. 규형이는 카드 몇 장을 가지고 있습니까?

Answer: 103

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