category
stringclasses 5
values | question
stringlengths 20
555
| answer
stringlengths 1
20
| solution_abst
stringlengths 1
287
| solution_code
stringlengths 27
5.97k
|
---|---|---|---|---|
Correspondence | Divide 107.8 by some number to get 9.8. Find out what the number is. | 11 | 107.8 9.8 [OP_DIV] | var_a = 107.8
var_b = 9.8
var_c = var_a / var_b
print(int(eval('{:.2f}'.format(round(var_c+1e-10,2))))) |
Arithmetic calculation | There are 49, 31, 76 and 62. Find the value of the largest number minus the smallest number. | 45 | [OP_LIST_SOL] 49 31 76 62 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 49
var_b = 31
var_c = 76
var_d = 62
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f - var_h
print(int(var_i)) |
Possibility | In Yoongi's class, there are 4 people who are running for the presidenct and the vice presidenct. How many ways can a class president and vice president be selected out of the four students? | 12 | 4 2 [OP_PERM] | var_a = 4
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)) |
Arithmetic calculation | Heeju's school has 500 students. Among them, 337 students like the sea, 289 students like the mountains, and 56 students do not like either the mountains or the sea. At this time, how many students like both the mountains and the sea? | 182 | 289 337 [OP_ADD] 500 56 [OP_SUB] [OP_SUB] | var_a = 289
var_b = 337
var_c = var_a + var_b
var_d = 500
var_e = 56
var_f = var_d - var_e
var_g = var_c - var_f
print(int(var_g)) |
Correspondence | A large ice cream container contains 8050 grams (g) of ice cream. You scooped out some of the ice cream and weighed it on a scale, and it was 80.5 grams (g). Find the amount of scooped ice cream relative to the total ice cream. | 0.01 | 80.5 8050 [OP_DIV] | var_a = 80.5
var_b = 8050
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Arithmetic calculation | How many three-digit numbers are divisible by 6, 5, 8, and 9? | 2 | 100 999 1 [OP_LIST_ARANGE] 6 [OP_LIST_DIVISIBLE] 5 [OP_LIST_DIVISIBLE] 8 [OP_LIST_DIVISIBLE] 9 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | 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 = 6
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 = 8
list_d = []
var_f = int(var_f)
for i in list_c:
i = int(i)
if i % var_f == 0:
list_d.append(i)
var_g = 9
list_e = []
var_g = int(var_g)
for i in list_d:
i = int(i)
if i % var_g == 0:
list_e.append(i)
var_h = len(list_e)
print(int(var_h)) |
Arithmetic calculation | How many numbers greater than 40 and less than or equal to 80 are multiples of 8? | 5 | 40 1 [OP_ADD] 80 1 [OP_LIST_ARANGE] 8 [OP_LIST_DIVISIBLE] [OP_LIST_LEN] | var_a = 40
var_b = 1
var_c = var_a + var_b
var_d = 80
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 8
list_b = []
var_f = int(var_f)
for i in list_a:
i = int(i)
if i % var_f == 0:
list_b.append(i)
var_g = len(list_b)
print(int(var_g)) |
Arithmetic calculation | The number of students in the 3rd and 5th grades combined in a school is equal to the number of students in the 4th and 6th grades combined. Find the difference between the number of students in the 5th and 6th grades when the number of students in the 3rd and 4th grades is 217 and 196, respectively. | 21 | 217 196 [OP_SUB] [OP_ABS] | var_a = 217
var_b = 196
var_c = var_a - var_b
var_d = abs(var_c)
print(int(var_d)) |
Comparison | There are 4 boxes - (a), (b), (c), and (d). Box (b) is larger than box (d). Box (a) is smaller than box (d). Box (b) is smaller than box (c). Which box is the smallest in size? | (a) | [OP_LIST_SOL] (a) (b) (c) (d) [OP_LIST_EOL] [OP_LIST_SOL] (b) (d) > (d) (a) > (c) (b) > [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] [OP_LIST_LEN] [OP_LIST_GET] | 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 = '(b)'
var_f = '(d)'
var_g = '>'
var_h = '(d)'
var_i = '(a)'
var_j = '>'
var_k = '(c)'
var_l = '(b)'
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) |
Possibility | Find out how many three-digit numbers that are less than 900 and greater than 600 are composed of the three numbers 6, 4, and 9. | 2 | [OP_LIST_SOL] 6 4 9 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 600 [OP_LIST_MORE] 900 [OP_LIST_LESS] [OP_LIST_LEN] | var_a = 6
var_b = 4
var_c = 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 = 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 = 900
list_d = []
for i in list_c:
if i < var_f:
list_d.append(i)
var_g = len(list_d)
print(int(var_g)) |
Possibility | Toby wants to make a number greater than 550 by moving the digit position of 458. How many are possible? | 3 | 458 [OP_NUM2LIST] 3 [OP_LIST_GET_PERM] 550 [OP_LIST_MORE] [OP_LIST_LEN] | var_a = 458
list_a = []
var_a = int(var_a)
while var_a//10 > 0:
list_a.append(var_a%10)
var_a = var_a//10
list_a.append(var_a%10)
list_a = list_a[::-1]
var_b = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_b))
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_c = 550
list_c = []
for i in list_b:
if i > var_c:
list_c.append(i)
var_d = len(list_c)
print(int(var_d)) |
Geometry | There is a square that has the same perimeter as a regular hexagon with a side of 6 centimeters (cm). How long is one side of the square in centimeters (cm)? | 9 | 6 6 [OP_MUL] 4 [OP_DIV] | var_a = 6
var_b = 6
var_c = var_a * var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e)) |
Possibility | You want to create decimal numbers by using all three number cards: 1, 2, and 7 once. Find the product of the largest two-digit number and the smallest one-digit number that can be made. | 91.57 | [OP_LIST_SOL] 1 2 7 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 10 3 2 [OP_SUB] [OP_POW] [OP_DIV] 1 [OP_LIST_MIN] 10 3 1 [OP_SUB] [OP_POW] [OP_DIV] [OP_MUL] | var_a = 1
var_b = 2
var_c = 7
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 = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = 10
var_h = 3
var_i = 2
var_j = var_h - var_i
var_k = var_g ** var_j
var_l = var_f / var_k
var_m = 1
list_d=list_b.copy()
list_d.sort()
var_n = list_d[var_m-1]
var_o = 10
var_p = 3
var_q = 1
var_r = var_p - var_q
var_s = var_o ** var_r
var_t = var_n / var_s
var_u = var_l * var_t
print('{:.2f}'.format(round(var_u+1e-10,2))) |
Arithmetic calculation | I have a ribbon tape that is 28 meters (m) long. If you cut this ribbon tape to make ribbons, each of which are 1.12 meter (m) long, how many ribbons can you make? | 25 | 28 1.12 [OP_DIV] 1 [OP_CEIL] | var_a = 28
var_b = 1.12
var_c = var_a / var_b
var_d = 1
var_e=int(((var_c+9*10**(var_d-2))//(10**(var_d-1)))*10**(var_d-1))
print(int(var_e)) |
Comparison | It is said that 2/7 of the participants in the sports day are on the white team and 3/8 are on the blue team. Which team will have more participants? | blue | [OP_LIST_SOL] white blue [OP_LIST_EOL] [OP_LIST_SOL] 2/7 3/8 [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'white'
var_b = 'blue'
list_a= []
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_c = 0.2857142857142857
var_d = 0.375
list_b= []
if "/" in str(var_d):
var_d = eval(str(var_d))
list_b.append(var_d)
if "/" in str(var_c):
var_c = eval(str(var_c))
list_b.append(var_c)
list_b.reverse()
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[-var_e]
var_g = list_b.index(var_f)+1
var_h = list_a[var_g-1]
print(var_h) |
Arithmetic calculation | We are going to install flags on the playground at intervals of 20 meters (m). If there are 12 flags and the circumference of the field is 200 meters (m), how many flags are left? | 2 | 12 200 20 [OP_DIV] [OP_SUB] | var_a = 12
var_b = 200
var_c = 20
var_d = var_b / var_c
var_e = var_a - var_d
print(int(var_e)) |
Possibility | You want to wrap 54 chocolates without any leftovers. How many ways can it be packed? (However, packing 54 at once is not considered.) | 7 | 54 [OP_LIST_GET_DIVISOR] [OP_LIST_SOL] 54 [OP_LIST_EOL] [OP_SET_DIFFERENCE] [OP_LIST_LEN] | var_a = 54
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 = 54
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)) |
Comparison | Three different people A, B, and C have books. The average number of books owned by two people, A and B, is 23 more than the average number of books owned by three people. And the average number of books owned by two people, B and C, is 17 less than the average of what three people have. If B has 66 books, find how many books A has. | 88 | 66 2 [OP_DIV] 17 [OP_ADD] 66 3 [OP_DIV] [OP_SUB] 6 [OP_MUL] 2 [OP_MUL] 23 66 3 [OP_DIV] [OP_ADD] 66 2 [OP_DIV] [OP_SUB] 6 [OP_MUL] [OP_SUB] 3 [OP_DIV] | var_a = 66
var_b = 2
var_c = var_a / var_b
var_d = 17
var_e = var_c + var_d
var_f = 66
var_g = 3
var_h = var_f / var_g
var_i = var_e - var_h
var_j = 6
var_k = var_i * var_j
var_l = 2
var_m = var_k * var_l
var_n = 23
var_o = 66
var_p = 3
var_q = var_o / var_p
var_r = var_n + var_q
var_s = 66
var_t = 2
var_u = var_s / var_t
var_v = var_r - var_u
var_w = 6
var_x = var_v * var_w
var_y = var_m - var_x
var_z = 3
var_A = var_y / var_z
print(int(var_A)) |
Comparison | The older brother and younger brother are trying to get 25 stamps. How many stamps does the older brother have if the older brother owns one more than twice the younger brother's stamps? | 17 | 25 1 [OP_SUB] 2 1 [OP_ADD] [OP_DIV] 2 [OP_MUL] 1 [OP_ADD] | var_a = 25
var_b = 1
var_c = var_a - var_b
var_d = 2
var_e = 1
var_f = var_d + var_e
var_g = var_c / var_f
var_h = 2
var_i = var_g * var_h
var_j = 1
var_k = var_i + var_j
print(int(var_k)) |
Arithmetic calculation | What is the number if 540 increases with 10 by 6 times? | 600 | 540 10 6 [OP_MUL] [OP_ADD] | var_a = 540
var_b = 10
var_c = 6
var_d = var_b * var_c
var_e = var_a + var_d
print(int(var_e)) |
Arithmetic calculation | There is a subway that runs at 288 centimeters (cm) per second. If the length of the subway is 20 meters (m), and it takes 25 seconds to completely get through the platform, how long is the platform in meters (m)? | 52 | 288 100 [OP_DIV] 25 [OP_MUL] 20 [OP_SUB] | var_a = 288
var_b = 100
var_c = var_a / var_b
var_d = 25
var_e = var_c * var_d
var_f = 20
var_g = var_e - var_f
print(int(var_g)) |
Correspondence | Divide 493 by 17 to get a number. What number is it? | 29 | 493 17 [OP_DIV] | var_a = 493
var_b = 17
var_c = var_a / var_b
print(int(var_c)) |
Geometry | A pizza is 30 centimeters (cm) in diameter and its circumference is 94.2 centimeters (cm). How many times the circumference of the pizza is greater than the diameter? | 3.14 | 94.2 30 [OP_DIV] | var_a = 94.2
var_b = 30
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Comparison | Jungkook has a number card 0.8, Yoongi has 1/2, Yoojung has 0.9, and Yuna has 1/3. How many people have number cards less than or equal to 0.3? | 0 | [OP_LIST_SOL] 0.8 1/2 0.9 1/3 [OP_LIST_EOL] 0.3 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN] | 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 = 0.3
list_b = []
for i in list_a:
if i <= var_e:
list_b.append(i)
var_f = len(list_b)
print(int(var_f)) |
Possibility | You want to distribute 36 pairs of shoes to two different female students. Girls receive at least one pair of shoes. How many ways are there to distribute shoes? | 35 | 36 2 1 [OP_MUL] [OP_SUB] 1 [OP_ADD] | var_a = 36
var_b = 2
var_c = 1
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 1
var_g = var_e + var_f
print(int(var_g)) |
Correspondence | There are 36 students in Jisoo’s class. If you multiply the number of students in Jisoo's class by the number of students in Sunghoon's class, you get 1008. Find the number of students in Sunghoon's class. | 28 | 1008 36 [OP_DIV] | var_a = 1008
var_b = 36
var_c = var_a / var_b
print(int(var_c)) |
Possibility | If two coins A and B are tossed, how many times can it come up with 2 heads? | 1 | 2 [OP_LIST_SOL] A B [OP_LIST_EOL] [OP_LIST_LEN] 2 [OP_SUB] [OP_POW] | var_a = 2
var_b = 'A'
var_c = 'B'
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)
list_a.reverse()
var_d = len(list_a)
var_e = 2
var_f = var_d - var_e
var_g = var_a ** var_f
print(int(var_g)) |
Geometry | The sum of the perimeters of one regular triangle and one square equals 78 centimeters (cm). If the perimeter of the triangle is 46 centimeters (cm), what is the length of one side of the square in centimeters (cm)? | 8 | 78 46 [OP_SUB] 4 [OP_DIV] | var_a = 78
var_b = 46
var_c = var_a - var_b
var_d = 4
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | Find the difference between the largest and smallest even number between 5 and 29. | 22 | 5 29 [OP_LIST_EVEN] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] | var_a = 5
var_b = 29
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 = 1
list_b=list_a.copy()
list_b.sort()
var_d = list_b[-var_c]
var_e = 1
list_c=list_a.copy()
list_c.sort()
var_f = list_c[var_e-1]
var_g = var_d - var_f
print(int(var_g)) |
Arithmetic calculation | I bought 4 school supplies sets with 16 mechanical pencils each. How many mechanical pencils are there in all? | 64 | 16 4 [OP_MUL] | var_a = 16
var_b = 4
var_c = var_a * var_b
print(int(var_c)) |
Correspondence | If you accidentally divide the number by 18 and divide it again by 1.8, the quotient is 21 with the remainder of 0.2. Find the remainder of the correct calculation. | 2 | 21 1.8 [OP_MUL] 0.2 [OP_ADD] 18 [OP_MOD] | var_a = 21
var_b = 1.8
var_c = var_a * var_b
var_d = 0.2
var_e = var_c + var_d
var_f = 18
var_g = var_e % var_f
print(int(eval('{:.2f}'.format(round(var_g+1e-10,2))))) |
Possibility | How many two-digit natural numbers are there with all digits different, only consisting of 0, 1, 7, and 9? | 9 | [OP_LIST_SOL] 0 1 7 9 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 0
var_b = 1
var_c = 7
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 = 2
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)) |
Comparison | How many of 0.8, 1/2, 0.9, and 1/3 are greater than 0.4? | 3 | [OP_LIST_SOL] 0.8 1/2 0.9 1/3 [OP_LIST_EOL] 0.4 [OP_LIST_MORE] [OP_LIST_LEN] | 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 = 0.4
list_b = []
for i in list_a:
if i > var_e:
list_b.append(i)
var_f = len(list_b)
print(int(var_f)) |
Geometry | Using all of the 40 centimeters (cm) lengths of wire, the largest regular octagons was created. How many centimeters (cm) is one side of the regular octagon you created? | 5 | 40 8 [OP_DIV] | var_a = 40
var_b = 8
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | There are three numbers: 10, 11 and 12. What is the product of the largest number and the second largest number? | 132 | [OP_LIST_SOL] 10 11 12 [OP_LIST_EOL] 1 [OP_LIST_MAX] 2 [OP_LIST_MAX] [OP_MUL] | var_a = 10
var_b = 11
var_c = 12
list_a= []
if "/" in str(var_c):
var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 1
list_b=list_a.copy()
list_b.sort()
var_e = list_b[-var_d]
var_f = 2
list_c=list_a.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = var_e * var_g
print(int(var_h)) |
Arithmetic calculation | Find the sum of the two numbers with the greatest difference among the four different natural numbers 1, 3, 7, and 9. | 10 | [OP_LIST_SOL] 1 3 7 9 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD] | var_a = 1
var_b = 3
var_c = 7
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f + var_h
print(int(var_i)) |
Arithmetic calculation | There is a car that traveled 2 hours and 36 minutes at a speed of 80 kilometers (km) per hour. This car consumes 0.08 liters (l) of gasoline to travel 1 kilometer (km). How many liters (L) of gasoline is consumed? | 16.64 | 0.08 80 2 36 60 [OP_DIV] [OP_ADD] [OP_MUL] [OP_MUL] | var_a = 0.08
var_b = 80
var_c = 2
var_d = 36
var_e = 60
var_f = var_d / var_e
var_g = var_c + var_f
var_h = var_b * var_g
var_i = var_a * var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Arithmetic calculation | This year, the age of the father is three times the age of the daughter, and after 12 years, the age of the father will be twice the age of the daughter. How old is the daughter this year? | 12 | 12 2 [OP_MUL] 12 [OP_SUB] 3 2 [OP_SUB] [OP_DIV] | 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)) |
Comparison | The shape (A) is a rectangle 12 centimeters (cm) wide and 5 centimeters (cm) long. The shape (B) is a rectangle with a perimeter of 32 centimeters (cm) and a width of 8 centimeters (cm). Which of the two shapes is wider? | (B) | [OP_LIST_SOL] (A) (B) [OP_LIST_EOL] [OP_LIST_SOL] 4 4 [OP_MUL] 32 8 2 [OP_MUL] [OP_SUB] 2 [OP_DIV] 8 [OP_MUL] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | 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 = 4
var_d = 4
var_e = var_c * var_d
var_f = 32
var_g = 8
var_h = 2
var_i = var_g * var_h
var_j = var_f - var_i
var_k = 2
var_l = var_j / var_k
var_m = 8
var_n = var_l * var_m
list_b= []
if "/" in str(var_n):
var_n = eval(str(var_n))
list_b.append(var_n)
if "/" in str(var_e):
var_e = eval(str(var_e))
list_b.append(var_e)
list_b.reverse()
var_o = 1
list_c=list_b.copy()
list_c.sort()
var_p = list_c[-var_o]
var_q = list_b.index(var_p)+1
var_r = list_a[var_q-1]
print(var_r) |
Correspondence | When 34 is divided by 7, the remainder is 6 and the quotient is A. Find the right value for A. | 4 | 34 6 [OP_SUB] 7 [OP_DIV] | var_a = 34
var_b = 6
var_c = var_a - var_b
var_d = 7
var_e = var_c / var_d
print(int(var_e)) |
Arithmetic calculation | When we weighed 9 robots of the same weight and 7 tops also of the same weight in total, it was 10.98 kilograms (kg). If the weight of one robot is 0.8 kilograms (kg), find the weight of one top in kilograms (kg). | 0.54 | 10.98 0.8 9 [OP_MUL] [OP_SUB] 7 [OP_DIV] | var_a = 10.98
var_b = 0.8
var_c = 9
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 7
var_g = var_e / var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Comparison | Find the sum of the largest and smallest of the five numbers 0.45, 1/2, 0.77, 3/8, and 6/8. | 1.15 | [OP_LIST_SOL] 0.45 1/2 0.77 3/8 6/8 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD] | var_a = 0.45
var_b = 0.5
var_c = 0.77
var_d = 0.375
var_e = 0.75
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
list_b=list_a.copy()
list_b.sort()
var_g = list_b[-var_f]
var_h = 1
list_c=list_a.copy()
list_c.sort()
var_i = list_c[var_h-1]
var_j = var_g + var_i
print('{:.2f}'.format(round(var_j+1e-10,2))) |
Correspondence | Say that the equation 57A-B14=364 holds. To make the equation hold, what number should go in B? | 2 | 57A-B14=364 B [OP_DIGIT_UNK_SOLVER] | var_a = '57A-B14=364'
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)) |
Correspondence | Sangeun goes shopping and spends half of her money and 2,000 won at the first store, then half of her remaining money and 2,000 won at the second store, and she has no money left. How much money did Sangeun have at first? | 12000 | 0 2000 [OP_ADD] 2 [OP_MUL] 2000 [OP_ADD] 2 [OP_MUL] | var_a = 0
var_b = 2000
var_c = var_a + var_b
var_d = 2
var_e = var_c * var_d
var_f = 2000
var_g = var_e + var_f
var_h = 2
var_i = var_g * var_h
print(int(var_i)) |
Comparison | Seokjin is heavier than Hoseok but lighter than Jimin. Namjoon is heavier than Jimin. Which of the 4 is the lightest? | Hoseok | [OP_LIST_SOL] Seokjin Hoseok Jimin Namjoon [OP_LIST_EOL] [OP_LIST_SOL] Seokjin Hoseok > Seokjin Jimin < Namjoon Jimin > [OP_LIST_EOL] [OP_LIST_COND_MAX_MIN] [OP_LIST_LEN] [OP_LIST_GET] | 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) |
Correspondence | There is a four-digit number 8A42 which, when rounded, is 8000. How many possible A's are there if A range between 0 to 9? | 5 | 8A42 [OP_GEN_POSSIBLE_LIST] 8500 [OP_LIST_MORE_EQUAL] 8A42 A [OP_LIST_FIND_UNK] [OP_LIST_LEN] | var_a = '8A42'
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 = 8500
list_b = []
for i in list_a:
if i >= var_b:
list_b.append(i)
var_c = '8A42'
var_d = 'A'
var_c = str(var_c)
var_d = str(var_d)
unk_idx = var_c.index(var_d)
list_c = []
for elem in list_b:
elem = str(elem)
list_c.append(int(elem[unk_idx]))
list_c = list(set(list_c))
var_e = len(list_c)
print(int(var_e)) |
Geometry | A circle has a radius of 5 centimeters (cm). How many times is the area of the circle whose radius is tripled bigger compared to the area of the original circle? | 9 | 3 2 [OP_POW] | var_a = 3
var_b = 2
var_c = var_a ** var_b
print(int(var_c)) |
Correspondence | If you take away 46 from this number it becomes 15. What is the result of subtracting 29 from this number? | 32 | 15 46 [OP_ADD] 29 [OP_SUB] | var_a = 15
var_b = 46
var_c = var_a + var_b
var_d = 29
var_e = var_c - var_d
print(int(var_e)) |
Correspondence | I have to divide a number by 8, but I multiply it by 8 by mistake, it's 56. If calculated correctly, indicate how much to the second decimal place. | 0.88 | 56 8 [OP_DIV] 8 [OP_DIV] | var_a = 56
var_b = 8
var_c = var_a / var_b
var_d = 8
var_e = var_c / var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Comparison | There are numbers 0.8, 1/2, and 0.9. Find the smallest number that is greater than or equal to 0.6. | 0.8 | [OP_LIST_SOL] 0.8 1/2 0.9 [OP_LIST_EOL] 0.6 [OP_LIST_MORE_EQUAL] 1 [OP_LIST_MIN] | 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.6
list_b = []
for i in list_a:
if i >= var_d:
list_b.append(i)
var_e = 1
list_c=list_b.copy()
list_c.sort()
var_f = list_c[var_e-1]
print('{:.2f}'.format(round(var_f+1e-10,2))) |
Correspondence | What number must go in A to make 51-A3=28? | 2 | 51-A3=28 A [OP_DIGIT_UNK_SOLVER] | var_a = '51-A3=28'
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)) |
Geometry | What is the length of one side of a rhombus made out of a string of 32 centimeters (cm) in length? | 8 | 32 4 [OP_DIV] | var_a = 32
var_b = 4
var_c = var_a / var_b
print(int(var_c)) |
Arithmetic calculation | We want to share the books that Yoongi, Eunji, and Yuna had together fairly. If Yoongi gives 5 books to Eunji and receives 15 books from Yuna, and Eunji gives 10 books to Yuna, the three of them will each have 45 books. How many books did Yunji bring at first? | 35 | 45 15 [OP_SUB] 5 [OP_ADD] | var_a = 45
var_b = 15
var_c = var_a - var_b
var_d = 5
var_e = var_c + var_d
print(int(var_e)) |
Possibility | There are 6 robot toys that look different. Find the number of cases in which one is given each to Kahi, Nahee, Dahee, and Rahee. | 360 | 6 1 1 [OP_ADD] 1 [OP_ADD] 1 [OP_ADD] [OP_PERM] | var_a = 6
var_b = 1
var_c = 1
var_d = var_b + var_c
var_e = 1
var_f = var_d + var_e
var_g = 1
var_h = var_f + var_g
var_i = 1
var_a = int(var_a)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
var_i = var_i * (var_a-i)
print(int(var_i)) |
Geometry | How many pairs of parallel sides are there in a regular hexagon? | 3 | 6 2 [OP_FDIV] | var_a = 6
var_b = 2
var_c = var_a // var_b
print(int(var_c)) |
Arithmetic calculation | A ballpoint pen is 20 centimeters (cm) long and a pencil is 16 centimeters (cm) long. What is the average of the two writing instruments in centimeters (cm)? | 18 | 20 16 [OP_ADD] 2 [OP_DIV] | var_a = 20
var_b = 16
var_c = var_a + var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e)) |
Correspondence | If 397 is 236 lesser than a certain number, find the value that is 496 lesser than this certain number. | 137 | 397 236 [OP_ADD] 496 [OP_SUB] | var_a = 397
var_b = 236
var_c = var_a + var_b
var_d = 496
var_e = var_c - var_d
print(int(var_e)) |
Possibility | Find the third largest number among five-digit numbers that can be formed using 0, 4, 6, 7, and 8 only once each. | 87460 | [OP_LIST_SOL] 0 4 6 7 8 [OP_LIST_EOL] 5 [OP_LIST_GET_PERM] 3 [OP_LIST_MAX] | var_a = 0
var_b = 4
var_c = 6
var_d = 7
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 = 5
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 = 3
list_c=list_b.copy()
list_c.sort()
var_h = list_c[-var_g]
print(int(var_h)) |
Geometry | Find how long is the side of a regular pentagon in centimeters (cm) when it has the same perimeter as an equilateral triangle with a side length of 20/9 centimeters (cm). | 1.33 | 20/9 3 [OP_MUL] 5 [OP_DIV] | var_a = 2.2222222222222223
var_b = 3
var_c = var_a * var_b
var_d = 5
var_e = var_c / var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Comparison | Find the sum of the largest and smallest numbers among 0.11, 0.98, 3/4, and 2/3. | 1.09 | [OP_LIST_SOL] 0.11 0.98 3/4 2/3 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_ADD] | var_a = 0.11
var_b = 0.98
var_c = 0.75
var_d = 0.6666666666666666
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 = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f + var_h
print('{:.2f}'.format(round(var_i+1e-10,2))) |
Comparison | Taehyung and Namjoon read 32 pages and 25 pages of fairy tales yesterday, respectively. Today Taehyung read 13 pages less than yesterday, but Namjoon read 14 pages more than yesterday. Which student read more fairy tales in two days? | Namjoon | [OP_LIST_SOL] Taehyung Namjoon [OP_LIST_EOL] [OP_LIST_SOL] 32 13 [OP_SUB] 32 [OP_ADD] 25 14 [OP_ADD] 25 [OP_ADD] [OP_LIST_EOL] 1 [OP_LIST_MAX] [OP_LIST_INDEX] [OP_LIST_POP] [OP_LIST_GET] | var_a = 'Taehyung'
var_b = 'Namjoon'
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 = 32
var_d = 13
var_e = var_c - var_d
var_f = 32
var_g = var_e + var_f
var_h = 25
var_i = 14
var_j = var_h + var_i
var_k = 25
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_g):
var_g = eval(str(var_g))
list_b.append(var_g)
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) |
Arithmetic calculation | When 1231, 2311, 2131, 1312, 1123, and 3112 are arranged in order from largest to smallest, write the third largest number. | 2131 | [OP_LIST_SOL] 1231 2311 2131 1312 1123 3112 [OP_LIST_EOL] 3 [OP_LIST_MAX] | var_a = 1231
var_b = 2311
var_c = 2131
var_d = 1312
var_e = 1123
var_f = 3112
list_a= []
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_g = 3
list_b=list_a.copy()
list_b.sort()
var_h = list_b[-var_g]
print(int(var_h)) |
Correspondence | When you subtract 220 from a particular number and then multiply it by 4, you get 320. Find out the value of that particular number multiplied by 5 and then divided by 3. | 500 | 320 4 [OP_DIV] 220 [OP_ADD] 5 [OP_MUL] 3 [OP_DIV] | var_a = 320
var_b = 4
var_c = var_a / var_b
var_d = 220
var_e = var_c + var_d
var_f = 5
var_g = var_e * var_f
var_h = 3
var_i = var_g / var_h
print(int(var_i)) |
Geometry | There is a square piece of land with a side length of 4 kilometers (km). A rhombus-shaped park was created by connecting the points that divided the four sides of the land into two equally. Find the area of the park. | 8 | 4 4 [OP_MUL] 2 [OP_DIV] | var_a = 4
var_b = 4
var_c = var_a * var_b
var_d = 2
var_e = var_c / var_d
print(int(var_e)) |
Correspondence | If A is the reciprocal of -0.4 and B is the reciprocal of +5/2, find the reciprocal of 3/A+2/B. | 0.26 | 1 3 1 -0.4 [OP_DIV] [OP_DIV] 2 1 5/2 [OP_DIV] [OP_DIV] [OP_ADD] [OP_DIV] | var_a = 1
var_b = 3
var_c = 1
var_d = -0.4
var_e = var_c / var_d
var_f = var_b / var_e
var_g = 2
var_h = 1
var_i = 2.5
var_j = var_h / var_i
var_k = var_g / var_j
var_l = var_f + var_k
var_m = var_a / var_l
print('{:.2f}'.format(round(var_m+1e-10,2))) |
Geometry | How many vertices does the cube-shaped gift box have? | 8 | 4 2 [OP_MUL] | var_a = 4
var_b = 2
var_c = var_a * var_b
print(int(var_c)) |
Geometry | If a circle with a circumference of 94.2 centimeters (cm) is drawn on the field and its diameter is 30 centimeters (cm), how many times the circumference of the circle is greater than the diameter? | 3.14 | 94.2 30 [OP_DIV] | var_a = 94.2
var_b = 30
var_c = var_a / var_b
print('{:.2f}'.format(round(var_c+1e-10,2))) |
Geometry | The area of a rectangle with the length all four sides being the same is 64/5 square centimeters (cm2). If the length of one diagonal is 64/9 centimeters (cm), what is the length of the other diagonal in cm (cm)? | 3.6 | 64/5 2 [OP_MUL] 64/9 [OP_DIV] | var_a = 12.8
var_b = 2
var_c = var_a * var_b
var_d = 7.111111111111111
var_e = var_c / var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Arithmetic calculation | What is the average of the natural numbers from 12 to 53? | 32.5 | 12 53 1 [OP_LIST_ARANGE] [OP_LIST_MEAN] | var_a = 12
var_b = 53
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_a = [float(i) for i in list_a]
var_d = sum(list_a)/len(list_a)
print('{:.2f}'.format(round(var_d+1e-10,2))) |
Possibility | There are 5 pens, with all different colors, including a red pen. When two of them are given to Seoyoon and one is given to Jiwoo, find the number of cases where the red pen is given to Seoyoon. | 12 | 5 1 [OP_SUB] 2 1 [OP_SUB] 1 [OP_ADD] [OP_PERM] | var_a = 5
var_b = 1
var_c = var_a - var_b
var_d = 2
var_e = 1
var_f = var_d - var_e
var_g = 1
var_h = var_f + var_g
var_i = 1
var_c = int(var_c)
var_h = int(var_h)
for i, elem in enumerate(range(var_h)):
var_i = var_i * (var_c-i)
print(int(var_i)) |
Comparison | Among 5.21, 2/3 3.21, 3.42, and 1/3, what is the product of the smallest number and the second smallest number? | 0.22 | [OP_LIST_SOL] 5.21 2 3 [OP_DIV] 3.21 3.42 1 3 [OP_DIV] [OP_LIST_EOL] 1 [OP_LIST_MIN] 2 [OP_LIST_MIN] [OP_MUL] | var_a = 5.21
var_b = 2
var_c = 3
var_d = var_b / var_c
var_e = 3.21
var_f = 3.42
var_g = 1
var_h = 3
var_i = var_g / var_h
list_a= []
if "/" in str(var_i):
var_i = eval(str(var_i))
list_a.append(var_i)
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_a):
var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_j = 1
list_b=list_a.copy()
list_b.sort()
var_k = list_b[var_j-1]
var_l = 2
list_c=list_a.copy()
list_c.sort()
var_m = list_c[var_l-1]
var_n = var_k * var_m
print('{:.2f}'.format(round(var_n+1e-10,2))) |
Geometry | A large square was made by attaching several squares with a side length of 6 centimeters (cm). Find how much the square's area has increased if the length and width of the large square are three times their original length. | 288 | 6 3 [OP_MUL] 2 [OP_POW] 6 2 [OP_POW] [OP_SUB] | var_a = 6
var_b = 3
var_c = var_a * var_b
var_d = 2
var_e = var_c ** var_d
var_f = 6
var_g = 2
var_h = var_f ** var_g
var_i = var_e - var_h
print(int(var_i)) |
Arithmetic calculation | I bought 7 boxes of cucumbers, 16 in each box. Thirteen of them were rotten and thrown away, and the remaining cucumbers are going to be divided equally into 8 bags. How many pieces should you put in one bag? | 12 | 16 7 [OP_MUL] 13 [OP_SUB] 8 [OP_FDIV] | var_a = 16
var_b = 7
var_c = var_a * var_b
var_d = 13
var_e = var_c - var_d
var_f = 8
var_g = var_e // var_f
print(int(var_g)) |
Correspondence | When 15 is multiplied by a number, it is 45. What number is 1 subtracted from the number? | 2 | 45 15 [OP_DIV] 1 [OP_SUB] | var_a = 45
var_b = 15
var_c = var_a / var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e)) |
Geometry | If you divide a cuboid into 3 equal parts, you get three cubes with each edge measuring 6 centimeters (cm). Find the volume of the original cuboid in cubic centimeters (cm3). | 648 | 6 3 [OP_POW] 3 [OP_MUL] | var_a = 6
var_b = 3
var_c = var_a ** var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e)) |
Correspondence | Subtracting a number from 8.9 gives 3.1. Multiply a number by 3.1 and then multiply it by 2.5 to find the value. | 44.95 | 8.9 3.1 [OP_SUB] 3.1 [OP_MUL] 2.5 [OP_MUL] | var_a = 8.9
var_b = 3.1
var_c = var_a - var_b
var_d = 3.1
var_e = var_c * var_d
var_f = 2.5
var_g = var_e * var_f
print('{:.2f}'.format(round(var_g+1e-10,2))) |
Geometry | You are trying to put as many square tiles as possible on a blank wall in the shape of a rectangle with 262 centimeters (cm) long and 185 centimeters (cm) wide. Find the amount of tiles you need. | 140 | 262 18 [OP_FDIV] 185 18 [OP_FDIV] [OP_MUL] | var_a = 262
var_b = 18
var_c = var_a // var_b
var_d = 185
var_e = 18
var_f = var_d // var_e
var_g = var_c * var_f
print(int(var_g)) |
Arithmetic calculation | There are a total of 100 roses, lilies and tulips. There are 22 more roses than lilies and 20 fewer roses than tulips. How many roses are there? | 34 | 100 22 [OP_ADD] 20 [OP_SUB] 3 [OP_DIV] | var_a = 100
var_b = 22
var_c = var_a + var_b
var_d = 20
var_e = var_c - var_d
var_f = 3
var_g = var_e / var_f
print(int(var_g)) |
Possibility | We are going to divide 32 walnuts equally into the basket without any remainder. How many different ways can there be in a basket? (However, not all 32 walnuts are placed in one basket.) | 5 | 32 [OP_LIST_GET_DIVISOR] [OP_LIST_SOL] 1 [OP_LIST_EOL] [OP_SET_DIFFERENCE] [OP_LIST_LEN] | var_a = 32
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)) |
Possibility | When a number is divided by 5 and 6, there is no remainder, but when it is divided by 7, 6 remains. Find the largest two-digit number that satisfies the condition. | 90 | 10 99 1 [OP_LIST_ARANGE] 5 6 [OP_LCM] [OP_LIST_DIVISIBLE] 7 6 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX] | 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 = 5
var_e = 6
var_f = var_e * var_d / math.gcd(int(var_e), int(var_d))
list_b = []
var_f = int(var_f)
for i in list_a:
i = int(i)
if i % var_f == 0:
list_b.append(i)
var_g = 7
var_h = 6
list_c = []
var_g = int(var_g)
var_h = int(var_h)
if var_h < 0:
var_h = var_h + var_g
for i in list_b:
i = int(i)
if i%var_g == var_h:
list_c.append(i)
var_i = 1
list_d=list_c.copy()
list_d.sort()
var_j = list_d[-var_i]
print(int(var_j)) |
Comparison | When comparing the number of coins that A, B, C, and D have, A has 21 coins, which is 9 more than B, and C has 17 more coins than B. If the sum of the coins of A and B is 5 less than the sum of the coins of C and D, how many coins does D have? | 9 | 21 21 9 [OP_SUB] [OP_ADD] 21 9 [OP_SUB] 17 [OP_ADD] [OP_SUB] 5 [OP_ADD] | var_a = 21
var_b = 21
var_c = 9
var_d = var_b - var_c
var_e = var_a + var_d
var_f = 21
var_g = 9
var_h = var_f - var_g
var_i = 17
var_j = var_h + var_i
var_k = var_e - var_j
var_l = 5
var_m = var_k + var_l
print(int(var_m)) |
Comparison | Eunji was the 100th to get on the train, and Yuna got on the train before 11 people got on the train before Eunji. In what number did Yuna get on the train? | 88 | 100 11 [OP_SUB] 1 [OP_SUB] | var_a = 100
var_b = 11
var_c = var_a - var_b
var_d = 1
var_e = var_c - var_d
print(int(var_e)) |
Arithmetic calculation | The distance between the school and Hyosung's house is 2.5 kilometers (km). Hyoseong and Mimi started at the same time from home and school, respectively, and walked toward each other at a certain speed. If Hyosung walks at 0.08 kilometers (km) per minute and Mimi walks at 2.4 kilometers (km) per hour, how many kilometers (km) is the distance between the two people after 15 minutes? | 0.7 | 2.5 0.08 15 [OP_MUL] [OP_SUB] 2.4 60 [OP_DIV] 15 [OP_MUL] [OP_SUB] | var_a = 2.5
var_b = 0.08
var_c = 15
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 2.4
var_g = 60
var_h = var_f / var_g
var_i = 15
var_j = var_h * var_i
var_k = var_e - var_j
print('{:.2f}'.format(round(var_k+1e-10,2))) |
Possibility | Find the number of two-digit natural numbers that can be formed by drawing two of the number cards 0, 2, 4, 5, 8. | 16 | [OP_LIST_SOL] 0 2 4 5 8 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 0
var_b = 2
var_c = 4
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 = 2
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 = len(list_b)
print(int(var_g)) |
Correspondence | Yuna wants to divide 42 by some number. If the result of accidentally multiplying 8 by some number is 56, find the correct result. | 6 | 42 56 8 [OP_DIV] [OP_DIV] | var_a = 42
var_b = 56
var_c = 8
var_d = var_b / var_c
var_e = var_a / var_d
print(int(var_e)) |
Correspondence | 12.4A<12.45. How many digits from 0 to 9 can be used for A? | 5 | 12.4A<12.45 A [OP_DIGIT_UNK_SOLVER] [OP_LIST_LEN] | var_a = '12.4A<12.45'
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] = []
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].append(int(c[i]))
list_a = list(set(ans_dict[var_b]))
var_c = len(list_a)
print(int(var_c)) |
Possibility | You want to use 1, 3, 6, and 7 to make a three-digit number. If each number can only be used once, in how many ways can you make it? | 24 | [OP_LIST_SOL] 1 3 6 7 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] [OP_LIST_LEN] | var_a = 1
var_b = 3
var_c = 6
var_d = 7
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)) |
Geometry | The sum of the lengths of the four sides of a rhombus is 32. What is the length of one side? | 8 | 32 4 [OP_DIV] | var_a = 32
var_b = 4
var_c = var_a / var_b
print(int(var_c)) |
Correspondence | If you round down A76 from the hundred place, it becomes 700. Find the value of A. | 7 | A76 [OP_GEN_POSSIBLE_LIST] 700 [OP_LIST_MORE_EQUAL] 700 100 [OP_ADD] [OP_LIST_LESS] A76 A [OP_LIST_FIND_UNK] | var_a = 'A76'
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 = 700
list_b = []
for i in list_a:
if i >= var_b:
list_b.append(i)
var_c = 700
var_d = 100
var_e = var_c + var_d
list_c = []
for i in list_b:
if i < var_e:
list_c.append(i)
var_f = 'A76'
var_g = 'A'
var_f = str(var_f)
var_g = str(var_g)
unk_idx = var_f.index(var_g)
var_h = 0
for elem in list_c:
elem = str(elem)
var_h = int(elem[unk_idx])
print(int(var_h)) |
Geometry | You want to count the number of edges of a cube. How many edges are there in total? | 12 | 6 2 [OP_SUB] 3 [OP_MUL] | var_a = 6
var_b = 2
var_c = var_a - var_b
var_d = 3
var_e = var_c * var_d
print(int(var_e)) |
Arithmetic calculation | Calculate the sum of all numbers from 1 to 100 that have a remainder of 1 when divided by 3. | 1717 | 1 100 1 [OP_LIST_ARANGE] 3 1 [OP_LIST_DIVIDE_AND_REMAIN] [OP_LIST_SUM] | var_a = 1
var_b = 100
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
var_e = 1
list_b = []
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
var_e = var_e + var_d
for i in list_a:
i = int(i)
if i%var_d == var_e:
list_b.append(i)
list_b = [float(i) for i in list_b]
var_f = sum(list_b)
print(int(var_f)) |
Arithmetic calculation | How many three digit numbers are there that are less than 403 and greater than 285? | 117 | 285 1 [OP_ADD] 403 1 [OP_SUB] 1 [OP_LIST_ARANGE] [OP_LIST_LEN] | var_a = 285
var_b = 1
var_c = var_a + var_b
var_d = 403
var_e = 1
var_f = var_d - var_e
var_g = 1
list_a = [i for i in range(var_c, var_f + 1, var_g)]
var_h = len(list_a)
print(int(var_h)) |
Arithmetic calculation | There are 135.1 liters (L) of water. If this is divided into 7 liters (L) buckets of water, how many milliliters (ml) are left after the buckets are full? | 2100 | 135.1 7 [OP_MOD] 1000 [OP_MUL] | var_a = 135.1
var_b = 7
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))))) |
Geometry | Find the number of faces in the tetrahedron. | 4 | 4 | var_a = 4
print(int(var_a)) |
Arithmetic calculation | Minyoung and Hoseok each had 150 pieces of colored paper. If Minyoung bought 32 more pieces of colored paper and Hoseok bought 49 more, how many more pieces of colored paper does Hoseok have than Minyoung? | 17 | 150 49 [OP_ADD] 150 32 [OP_ADD] [OP_SUB] | var_a = 150
var_b = 49
var_c = var_a + var_b
var_d = 150
var_e = 32
var_f = var_d + var_e
var_g = var_c - var_f
print(int(var_g)) |
Arithmetic calculation | How many kilograms (kg) is equal to the sum of two weights of 0.3 kilograms (kg) and one weight of 0.5 kilograms (kg)? | 1.1 | 0.5 0.3 2 [OP_MUL] [OP_ADD] | var_a = 0.5
var_b = 0.3
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
print('{:.2f}'.format(round(var_e+1e-10,2))) |
Arithmetic calculation | Six years ago, when Sunkyung added her and her mother's ages, it was 48. This year, Sunkyung's mother is said to be three times older than Sunkyung. How old is her mother? | 45 | 48 6 2 [OP_MUL] [OP_ADD] 1 3 [OP_ADD] [OP_DIV] 3 [OP_MUL] | var_a = 48
var_b = 6
var_c = 2
var_d = var_b * var_c
var_e = var_a + var_d
var_f = 1
var_g = 3
var_h = var_f + var_g
var_i = var_e / var_h
var_j = 3
var_k = var_i * var_j
print(int(var_k)) |
Possibility | You want to create a two-digit number by drawing two of the four number cards 1, 3, 4, and 7, and using each card only once. How many possible numbers are greater than 36 and less than or equal to 45? | 3 | [OP_LIST_SOL] 1 3 4 7 [OP_LIST_EOL] 2 [OP_LIST_GET_PERM] 36 [OP_LIST_MORE] 45 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN] | var_a = 1
var_b = 3
var_c = 4
var_d = 7
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 = 2
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 = 36
list_c = []
for i in list_b:
if i > var_f:
list_c.append(i)
var_g = 45
list_d = []
for i in list_c:
if i <= var_g:
list_d.append(i)
var_h = len(list_d)
print(int(var_h)) |
Arithmetic calculation | Jimin has 2 packs of pencils and 7 individual pencils. Yuna has 1 pack of pencils and 9 individual pencils. How many pencils do Jimin and Yuna have? (However, a pack of pencils means 12 pencils.) | 52 | 2 12 [OP_MUL] 7 [OP_ADD] 1 12 [OP_MUL] [OP_ADD] 9 [OP_ADD] | var_a = 2
var_b = 12
var_c = var_a * var_b
var_d = 7
var_e = var_c + var_d
var_f = 1
var_g = 12
var_h = var_f * var_g
var_i = var_e + var_h
var_j = 9
var_k = var_i + var_j
print(int(var_k)) |
Arithmetic calculation | There is a 10 liter (L) container filled with water. In this container, you used a full bowl with a capacity of 1 liter (L) and 500 milliliters (㎖) to take the water out three times from the container. And then you took the water out several times using a bowl with a capacity of 1 liter (L) and 250 milliliters (㎖). When 1 liter (L) and 750 milliliters (mL) of water remained in the container, how many times did you use a bowl of 1 liter (L) and 250 milliliters (㎖)? | 3 | 10 1000 [OP_MUL] 1 1000 [OP_MUL] 500 [OP_ADD] 3 [OP_MUL] [OP_SUB] 1 1000 [OP_MUL] 750 [OP_ADD] [OP_SUB] 1 1000 [OP_MUL] 250 [OP_ADD] [OP_DIV] | var_a = 10
var_b = 1000
var_c = var_a * var_b
var_d = 1
var_e = 1000
var_f = var_d * var_e
var_g = 500
var_h = var_f + var_g
var_i = 3
var_j = var_h * var_i
var_k = var_c - var_j
var_l = 1
var_m = 1000
var_n = var_l * var_m
var_o = 750
var_p = var_n + var_o
var_q = var_k - var_p
var_r = 1
var_s = 1000
var_t = var_r * var_s
var_u = 250
var_v = var_t + var_u
var_w = var_q / var_v
print(int(var_w)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.