task_id
stringlengths
8
11
language
stringclasses
1 value
prompt
stringlengths
67
820
description
stringlengths
12
628
test
stringlengths
134
152
entry_point
stringclasses
1 value
canonical_solution
stringlengths
46
582
MathQA/200
python
def problem(): """ 20 is subtracted from 60 % of a number , the result is 88 . find the number ? n0 = 20.0 n1 = 60.0 n2 = 88.0 """
20 is subtracted from 60 % of a number , the result is 88 . find the number ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 180.0) def check(x): pass
problem
n0 = 20.0 n1 = 60.0 n2 = 88.0 t0 = n0 + n2 t1 = n1 / 100.0 answer = t0 / t1 return answer
MathQA/201
python
def problem(): """ a solution contains 8 parts of water for every 7 parts of lemonade syrup . how many parts of the solution should be removed and replaced with water so that the solution will now contain 35 % lemonade syrup ? n0 = 8.0 n1 = 7.0 n2 = 35.0 """
a solution contains 8 parts of water for every 7 parts of lemonade syrup . how many parts of the solution should be removed and replaced with water so that the solution will now contain 35 % lemonade syrup ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2.1428571428571423) def check(x): pass
problem
n0 = 8.0 n1 = 7.0 n2 = 35.0 t0 = n0 + n1 t1 = 2.0 + 3.0 t2 = n1 / t0 t3 = 2.0 / t1 t4 = t2 - t3 t5 = t4 / t2 answer = t0 * t5 return answer
MathQA/202
python
def problem(): """ running at the same constant rate , 100 identical machines can produce a total of 500 coffee bar per minute . at this rate , how many bottles could 20 such machines produce in 2 minutes ? n0 = 100.0 n1 = 500.0 n2 = 20.0 n3 = 2.0 """
running at the same constant rate , 100 identical machines can produce a total of 500 coffee bar per minute . at this rate , how many bottles could 20 such machines produce in 2 minutes ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 200.0) def check(x): pass
problem
n0 = 100.0 n1 = 500.0 n2 = 20.0 n3 = 2.0 t0 = n1 / n0 t1 = n3 * t0 answer = n2 * t1 return answer
MathQA/203
python
def problem(): """ find the constant k so that : - x 2 - ( k + 8 ) x - 8 = - ( x - 2 ) ( x - 4 ) n0 = 2.0 n1 = 8.0 n2 = 8.0 n3 = 2.0 n4 = 4.0 """
find the constant k so that : - x 2 - ( k + 8 ) x - 8 = - ( x - 2 ) ( x - 4 )
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 14.0) def check(x): pass
problem
n0 = 2.0 n1 = 8.0 n2 = 8.0 n3 = 2.0 n4 = 4.0 t0 = n0 + n4 answer = n1 + t0 return answer
MathQA/204
python
def problem(): """ a , b and c invested rs . 6000 , rs . 4000 and rs . 10000 respectively , in a partnership business . find the share of a in profit of rs . 11000 after a year ? n0 = 6000.0 n1 = 4000.0 n2 = 10000.0 n3 = 11000.0 """
a , b and c invested rs . 6000 , rs . 4000 and rs . 10000 respectively , in a partnership business . find the share of a in profit of rs . 11000 after a year ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 3300.0) def check(x): pass
problem
n0 = 6000.0 n1 = 4000.0 n2 = 10000.0 n3 = 11000.0 t0 = n0 + n1 t1 = n2 + t0 t2 = n0 / t1 answer = n3 * t2 return answer
MathQA/205
python
def problem(): """ a group of people participate in some curriculum , 30 of them practice yoga , 20 study cooking , 15 study weaving , 5 of them study cooking only , 8 of them study both the cooking and yoga , 5 of them participate all curriculums . how many people study both cooking and weaving ? n0 = 30.0 n1 = 20.0 n2 = 15.0 n3 = 5.0 n4 = 8.0 n5 = 5.0 """
a group of people participate in some curriculum , 30 of them practice yoga , 20 study cooking , 15 study weaving , 5 of them study cooking only , 8 of them study both the cooking and yoga , 5 of them participate all curriculums . how many people study both cooking and weaving ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2.0) def check(x): pass
problem
n0 = 30.0 n1 = 20.0 n2 = 15.0 n3 = 5.0 n4 = 8.0 n5 = 5.0 t0 = n1 - n4 t1 = t0 - n5 answer = t1 - n3 return answer
MathQA/206
python
def problem(): """ at what rate percent on simple interest will rs . 750 amount to rs . 825 in 5 years ? n0 = 750.0 n1 = 825.0 n2 = 5.0 """
at what rate percent on simple interest will rs . 750 amount to rs . 825 in 5 years ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2.0) def check(x): pass
problem
n0 = 750.0 n1 = 825.0 n2 = 5.0 t0 = n1 - n0 t1 = t0 / n0 t2 = t1 / n2 answer = t2 * 100.0 return answer
MathQA/207
python
def problem(): """ two ants , arthur and amy , have discovered a picnic and are bringing crumbs back to the anthill . amy makes twice as many trips and carries one and a half times as many crumbs per trip as arthur . if arthur carries a total of b crumbs to the anthill , how many crumbs will amy bring to the anthill , in terms of b ? """
two ants , arthur and amy , have discovered a picnic and are bringing crumbs back to the anthill . amy makes twice as many trips and carries one and a half times as many crumbs per trip as arthur . if arthur carries a total of b crumbs to the anthill , how many crumbs will amy bring to the anthill , in terms of b ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 3.0) def check(x): pass
problem
t0 = 1.0 / 2.0 t1 = t0 + 1.0 answer = t1 * 2.0 return answer
MathQA/208
python
def problem(): """ a certain number of badges were distributed among a class of students . the student who got 1 / 6 th of the total number of badges actually got 5 times the average number of badges the others got ! how many students were there in the class ? n0 = 1.0 n1 = 6.0 n2 = 5.0 """
a certain number of badges were distributed among a class of students . the student who got 1 / 6 th of the total number of badges actually got 5 times the average number of badges the others got ! how many students were there in the class ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 26.0) def check(x): pass
problem
n0 = 1.0 n1 = 6.0 n2 = 5.0 t0 = n1 * n2 t1 = t0 - n2 answer = n0 + t1 return answer
MathQA/209
python
def problem(): """ tough and tricky questions : work / rate problems . a group of 4 junior lawyers require 7 hours to complete a legal research assignment . how many hours would it take a group of 3 legal assistants to complete the same research assignment assuming that a legal assistant works at two - thirds the rate of a junior lawyer ? source : chili hot gmat n0 = 4.0 n1 = 7.0 n2 = 3.0 """
tough and tricky questions : work / rate problems . a group of 4 junior lawyers require 7 hours to complete a legal research assignment . how many hours would it take a group of 3 legal assistants to complete the same research assignment assuming that a legal assistant works at two - thirds the rate of a junior lawyer ? source : chili hot gmat
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 14.0) def check(x): pass
problem
n0 = 4.0 n1 = 7.0 n2 = 3.0 t0 = 2.0 / 3.0 t1 = n2 * t0 answer = n1 * t1 return answer
MathQA/210
python
def problem(): """ mahesh can do a piece of work in 30 days . he works at it for 20 days and then rajesh finished it in 30 days . how long will y take to complete the work ? n0 = 30.0 n1 = 20.0 n2 = 30.0 """
mahesh can do a piece of work in 30 days . he works at it for 20 days and then rajesh finished it in 30 days . how long will y take to complete the work ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 90.0) def check(x): pass
problem
n0 = 30.0 n1 = 20.0 n2 = 30.0 t0 = 1.0 / n0 t1 = n1 * t0 t2 = 1.0 - t1 t3 = t2 / n2 answer = 1.0 / t3 return answer
MathQA/211
python
def problem(): """ if x and y are numbers such that ( x + 6 ) ( y - 6 ) = 0 , what is the smallest possible value of x ^ 2 + y ^ 2 n0 = 6.0 n1 = 6.0 n2 = 0.0 n3 = 2.0 n4 = 2.0 """
if x and y are numbers such that ( x + 6 ) ( y - 6 ) = 0 , what is the smallest possible value of x ^ 2 + y ^ 2
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 36.0) def check(x): pass
problem
n0 = 6.0 n1 = 6.0 n2 = 0.0 n3 = 2.0 n4 = 2.0 answer = n0**min(n3, 5) return answer
MathQA/212
python
def problem(): """ the difference of a larger number and a smaller number is 6 . the sum of the larger number and twice the smaller is 15 . what is the larger number ? n0 = 6.0 n1 = 15.0 """
the difference of a larger number and a smaller number is 6 . the sum of the larger number and twice the smaller is 15 . what is the larger number ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 9.0) def check(x): pass
problem
n0 = 6.0 n1 = 15.0 t0 = 1.0 + 2.0 t1 = n0 * 2.0 t2 = n1 + t1 answer = t2 / t0 return answer
MathQA/213
python
def problem(): """ a train traveling at 72 kmph crosses a platform in 30 seconds and a man standing on the platform in 18 seconds . what is the length of the platform in meters ? n0 = 72.0 n1 = 30.0 n2 = 18.0 """
a train traveling at 72 kmph crosses a platform in 30 seconds and a man standing on the platform in 18 seconds . what is the length of the platform in meters ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 240.0) def check(x): pass
problem
n0 = 72.0 n1 = 30.0 n2 = 18.0 t0 = n0 * 1000.0 t1 = t0 / 3600.0 t2 = n1 * t1 t3 = n2 * t1 answer = t2 - t3 return answer
MathQA/214
python
def problem(): """ a vessel of capacity 2 litre has 16 % of alcohol and another vessel of capacity 6 litre had 40 % alcohol . the total liquid of 8 litre was poured out in a vessel of capacity 10 litre and thus the rest part of the vessel was filled with the water . what is the new concentration of mixture ? n0 = 2.0 n1 = 16.0 n2 = 6.0 n3 = 40.0 n4 = 8.0 n5 = 10.0 """
a vessel of capacity 2 litre has 16 % of alcohol and another vessel of capacity 6 litre had 40 % alcohol . the total liquid of 8 litre was poured out in a vessel of capacity 10 litre and thus the rest part of the vessel was filled with the water . what is the new concentration of mixture ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 27.200000000000003) def check(x): pass
problem
n0 = 2.0 n1 = 16.0 n2 = 6.0 n3 = 40.0 n4 = 8.0 n5 = 10.0 t0 = n1 / 100.0 t1 = n3 / 100.0 t2 = n0 * t0 t3 = n2 * t1 t4 = t2 + t3 t5 = t4 / n5 answer = t5 * 100.0 return answer
MathQA/215
python
def problem(): """ there are 3 prizes to be distributed among 10 students . if no students gets more than one prize , then this can be done in ? n0 = 3.0 n1 = 10.0 """
there are 3 prizes to be distributed among 10 students . if no students gets more than one prize , then this can be done in ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 120.0) def check(x): pass
problem
n0 = 3.0 n1 = 10.0 t0 = n0 * n1 t1 = n1 - 1.0 t2 = n1 * t1 answer = t0 + t2 return answer
MathQA/216
python
def problem(): """ a student got 72 % in math and 82 % in history . to get an overall average of 75 % , how much should the student get in the third subject ? n0 = 72.0 n1 = 82.0 n2 = 75.0 """
a student got 72 % in math and 82 % in history . to get an overall average of 75 % , how much should the student get in the third subject ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 71.0) def check(x): pass
problem
n0 = 72.0 n1 = 82.0 n2 = 75.0 t0 = n0 + n1 t1 = n2 * 3.0 answer = t1 - t0 return answer
MathQA/217
python
def problem(): """ a starts business with rs . 3500 and after 5 months , b joins with a as his partner . after a year , the profit is divided in the ratio 2 : 3 . what is b ' s contribution in the capital ? n0 = 3500.0 n1 = 5.0 n2 = 2.0 n3 = 3.0 """
a starts business with rs . 3500 and after 5 months , b joins with a as his partner . after a year , the profit is divided in the ratio 2 : 3 . what is b ' s contribution in the capital ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 9000.0) def check(x): pass
problem
n0 = 3500.0 n1 = 5.0 n2 = 2.0 n3 = 3.0 t0 = n0 * 12.0 t1 = 12.0 - n1 t2 = n3 * t0 t3 = n2 * t1 answer = t2 / t3 return answer
MathQA/218
python
def problem(): """ a car dealership has 40 cars on the lot , 15 % of which are silver . if the dealership receives a new shipment of 80 cars , 45 % of which are not silver , what percentage of total number of cars are silver ? n0 = 40.0 n1 = 15.0 n2 = 80.0 n3 = 45.0 """
a car dealership has 40 cars on the lot , 15 % of which are silver . if the dealership receives a new shipment of 80 cars , 45 % of which are not silver , what percentage of total number of cars are silver ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 35.0) def check(x): pass
problem
n0 = 40.0 n1 = 15.0 n2 = 80.0 n3 = 45.0 t0 = n0 + n2 t1 = n1 / 100.0 t2 = n3 / 100.0 t3 = n0 * t1 t4 = n2 * t2 t5 = t3 + t4 t6 = t5 / t0 answer = t6 * 100.0 return answer
MathQA/219
python
def problem(): """ a person travels from p to q a speed of 60 km / hr and returns by increasing his speed by 20 % . what is his average speed for both the trips ? n0 = 60.0 n1 = 20.0 """
a person travels from p to q a speed of 60 km / hr and returns by increasing his speed by 20 % . what is his average speed for both the trips ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 66.0) def check(x): pass
problem
n0 = 60.0 n1 = 20.0 t0 = n1 / 100.0 t1 = t0 + 1.0 t2 = n0 * t1 t3 = n0 + t2 answer = t3 / 2.0 return answer
MathQA/220
python
def problem(): """ a and b can together finish a work in 10 days . they worked together for 5 days and then b left . after another 5 days , a finished the remaining work . in how many days a alone can finish the job ? n0 = 10.0 n1 = 5.0 n2 = 5.0 """
a and b can together finish a work in 10 days . they worked together for 5 days and then b left . after another 5 days , a finished the remaining work . in how many days a alone can finish the job ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 10.0) def check(x): pass
problem
n0 = 10.0 n1 = 5.0 n2 = 5.0 t0 = n0 * n2 t1 = n0 - n1 answer = t0 / t1 return answer
MathQA/221
python
def problem(): """ a bag contains 7 green and 8 white balls . if two balls are drawn simultaneously , the probability that both are of the same colour is - . n0 = 7.0 n1 = 8.0 """
a bag contains 7 green and 8 white balls . if two balls are drawn simultaneously , the probability that both are of the same colour is - .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.4666666666666667) def check(x): pass
problem
n0 = 7.0 n1 = 8.0 t0 = n0 + n1 t1 = n1 - 1.0 t2 = n0 - 1.0 t3 = n1 / t0 t4 = n0 / t0 t5 = t0 - 1.0 t6 = t1 / t5 t7 = t2 / t5 t8 = t3 * t6 t9 = t4 * t7 answer = t8 + t9 return answer
MathQA/222
python
def problem(): """ if 4 men working 10 hours a day earn rs . 1600 per week , then 9 men working 6 hours a day will earn how much per week ? n0 = 4.0 n1 = 10.0 n2 = 1600.0 n3 = 9.0 n4 = 6.0 """
if 4 men working 10 hours a day earn rs . 1600 per week , then 9 men working 6 hours a day will earn how much per week ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2160.0) def check(x): pass
problem
n0 = 4.0 n1 = 10.0 n2 = 1600.0 n3 = 9.0 n4 = 6.0 t0 = n3 * n4 t1 = n0 * n1 t2 = t0 / t1 answer = n2 * t2 return answer
MathQA/223
python
def problem(): """ a student was asked to find 4 / 5 of a number . but the student divided the number by 4 / 5 , thus the student got 9 more than the correct answer . find the number . n0 = 4.0 n1 = 5.0 n2 = 4.0 n3 = 5.0 n4 = 9.0 """
a student was asked to find 4 / 5 of a number . but the student divided the number by 4 / 5 , thus the student got 9 more than the correct answer . find the number .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 20.000000000000007) def check(x): pass
problem
n0 = 4.0 n1 = 5.0 n2 = 4.0 n3 = 5.0 n4 = 9.0 t0 = n0 / n1 t1 = n4 * t0 t2 = t0 * t0 t3 = t0 * t1 t4 = 1.0 - t2 t5 = t3 / t4 answer = t5 / t0 return answer
MathQA/224
python
def problem(): """ raman mixed 24 kg of butter at rs . 150 per kg with 36 kg butter at the rate of rs . 125 per kg . at what price per kg should he sell the mixture to make a profit of 40 % in the transaction ? n0 = 24.0 n1 = 150.0 n2 = 36.0 n3 = 125.0 n4 = 40.0 """
raman mixed 24 kg of butter at rs . 150 per kg with 36 kg butter at the rate of rs . 125 per kg . at what price per kg should he sell the mixture to make a profit of 40 % in the transaction ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 189.0) def check(x): pass
problem
n0 = 24.0 n1 = 150.0 n2 = 36.0 n3 = 125.0 n4 = 40.0 t0 = n0 + n2 t1 = n4 / 100.0 t2 = n0 * n1 t3 = n2 * n3 t4 = t2 + t3 t5 = t4 / t0 t6 = t5 * t1 answer = t5 + t6 return answer
MathQA/225
python
def problem(): """ if jake loses 8 pounds , he will weigh twice as much as his sister kendra . together they now weigh 284 pounds . what is jake ’ s present weight , in pounds ? n0 = 8.0 n1 = 284.0 """
if jake loses 8 pounds , he will weigh twice as much as his sister kendra . together they now weigh 284 pounds . what is jake ’ s present weight , in pounds ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 192.0) def check(x): pass
problem
n0 = 8.0 n1 = 284.0 t0 = n1 - n0 t1 = t0 / 3.0 t2 = t1 * 2.0 answer = n0 + t2 return answer
MathQA/226
python
def problem(): """ arun and tarun can do a work in 10 days . after 4 days tarun went to his village . how many days are required to complete the remaining work by arun alone . arun can do the work alone in 40 days . n0 = 10.0 n1 = 4.0 n2 = 40.0 """
arun and tarun can do a work in 10 days . after 4 days tarun went to his village . how many days are required to complete the remaining work by arun alone . arun can do the work alone in 40 days .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 24.0) def check(x): pass
problem
n0 = 10.0 n1 = 4.0 n2 = 40.0 t0 = n2 / n0 t1 = n1 * t0 answer = n2 - t1 return answer
MathQA/227
python
def problem(): """ a towel , when bleached , lost 30 % of its length and 20 % of its breadth . what is the percentage decrease in area ? n0 = 30.0 n1 = 20.0 """
a towel , when bleached , lost 30 % of its length and 20 % of its breadth . what is the percentage decrease in area ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 44.0) def check(x): pass
problem
n0 = 30.0 n1 = 20.0 t0 = 100.0 * 100.0 t1 = 100.0 - n0 t2 = 100.0 - n1 t3 = t1 * t2 t4 = t0 - t3 answer = t4 / 100.0 return answer
MathQA/228
python
def problem(): """ a man is 30 years older than his son . in two years , his age will be twice the age of his son . the present age of the son is n0 = 30.0 """
a man is 30 years older than his son . in two years , his age will be twice the age of his son . the present age of the son is
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 28.0) def check(x): pass
problem
n0 = 30.0 t0 = 2.0 * 2.0 t1 = 2.0 - 1.0 t2 = t0 - 2.0 t3 = n0 - t2 answer = t3 / t1 return answer
MathQA/229
python
def problem(): """ fox jeans regularly sell for $ 15 a pair and pony jeans regularly sell for $ 18 a pair . during a sale these regular unit prices are discounted at different rates so that a total of $ 8.73 is saved by purchasing 5 pairs of jeans : 3 pairs of fox jeans and 2 pairs of pony jeans . if the sum of the two discount rates is 22 percent , what is the discount rate on pony jeans ? n0 = 15.0 n1 = 18.0 n2 = 8.73 n3 = 5.0 n4 = 3.0 n5 = 2.0 n6 = 22.0 """
fox jeans regularly sell for $ 15 a pair and pony jeans regularly sell for $ 18 a pair . during a sale these regular unit prices are discounted at different rates so that a total of $ 8.73 is saved by purchasing 5 pairs of jeans : 3 pairs of fox jeans and 2 pairs of pony jeans . if the sum of the two discount rates is 22 percent , what is the discount rate on pony jeans ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 12.999999999999995) def check(x): pass
problem
n0 = 15.0 n1 = 18.0 n2 = 8.73 n3 = 5.0 n4 = 3.0 n5 = 2.0 n6 = 22.0 t0 = n6 / 100.0 t1 = n1 * n5 t2 = n0 * n4 t3 = t0 * t1 t4 = t2 - t1 t5 = n2 - t3 t6 = t5 / t4 t7 = t0 - t6 answer = t7 * 100.0 return answer
MathQA/230
python
def problem(): """ a trader bought a car at 20 % discount on its original price . he sold it at a 80 % increase on the price he bought it . what percent of profit did he make on the original price ? n0 = 20.0 n1 = 80.0 """
a trader bought a car at 20 % discount on its original price . he sold it at a 80 % increase on the price he bought it . what percent of profit did he make on the original price ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 43.99999999999999) def check(x): pass
problem
n0 = 20.0 n1 = 80.0 t0 = n1 + 100.0 t1 = 100.0 - n0 t2 = t0 * t1 t3 = t2 / 100.0 t4 = t3 / 100.0 t5 = t4 - 1.0 answer = t5 * 100.0 return answer
MathQA/231
python
def problem(): """ 800 men have provisions for 15 days . if 200 more men join them , for how many days will the provisions last now ? n0 = 800.0 n1 = 15.0 n2 = 200.0 """
800 men have provisions for 15 days . if 200 more men join them , for how many days will the provisions last now ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 12.0) def check(x): pass
problem
n0 = 800.0 n1 = 15.0 n2 = 200.0 t0 = n0 + n2 t1 = n0 * n1 answer = t1 / t0 return answer
MathQA/232
python
def problem(): """ n = 1 ! + 2 ! + 3 ! . . . . . + 10 ! . what is the last digit of n ^ n ? n0 = 1.0 n1 = 2.0 n2 = 3.0 n3 = 10.0 """
n = 1 ! + 2 ! + 3 ! . . . . . + 10 ! . what is the last digit of n ^ n ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 7.0) def check(x): pass
problem
n0 = 1.0 n1 = 2.0 n2 = 3.0 n3 = 10.0 t0 = n3 - n2 answer = t0**min(1.0, 5) return answer
MathQA/233
python
def problem(): """ by weight , liquid x makes up 0.8 percent of solution a and 1.8 percent of solution b . if 250 grams of solution a are mixed with 700 grams of solution b , then liquid x accounts for what percent of the weight of the resulting solution ? n0 = 0.8 n1 = 1.8 n2 = 250.0 n3 = 700.0 """
by weight , liquid x makes up 0.8 percent of solution a and 1.8 percent of solution b . if 250 grams of solution a are mixed with 700 grams of solution b , then liquid x accounts for what percent of the weight of the resulting solution ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 1.46) def check(x): pass
problem
n0 = 0.8 n1 = 1.8 n2 = 250.0 n3 = 700.0 t0 = n0 * n2 t1 = n1 * n3 t2 = t0 + t1 answer = t2 / 1000.0 return answer
MathQA/234
python
def problem(): """ set s contains exactly 10 numbers and has an average ( arithmetic mean ) of 6.2 . if one of the numbers in set s is increased by 3 , while all other numbers remain the same , what is the new average of set s ? n0 = 10.0 n1 = 6.2 n2 = 3.0 """
set s contains exactly 10 numbers and has an average ( arithmetic mean ) of 6.2 . if one of the numbers in set s is increased by 3 , while all other numbers remain the same , what is the new average of set s ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 6.5) def check(x): pass
problem
n0 = 10.0 n1 = 6.2 n2 = 3.0 t0 = n0 * n1 t1 = n2 + t0 answer = t1 / n0 return answer
MathQA/235
python
def problem(): """ a group of people participate in some curriculum , 30 of them practice yoga , 25 study cooking , 15 study weaving , 6 of them study cooking only , 8 of them study both the cooking and yoga , 7 of them participate all curriculums . how many people study both cooking and weaving ? n0 = 30.0 n1 = 25.0 n2 = 15.0 n3 = 6.0 n4 = 8.0 n5 = 7.0 """
a group of people participate in some curriculum , 30 of them practice yoga , 25 study cooking , 15 study weaving , 6 of them study cooking only , 8 of them study both the cooking and yoga , 7 of them participate all curriculums . how many people study both cooking and weaving ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4.0) def check(x): pass
problem
n0 = 30.0 n1 = 25.0 n2 = 15.0 n3 = 6.0 n4 = 8.0 n5 = 7.0 t0 = n1 - n4 t1 = t0 - n5 answer = t1 - n3 return answer
MathQA/236
python
def problem(): """ a carpenter constructed a rectangular sandbox with a capacity of 10 cubic feet . if the carpenter were to make a similar sandbox twice as long , twice as wide , and twice as high as the first sandbox , what would be the capacity , in cubic feet , of the second sandbox ? n0 = 10.0 """
a carpenter constructed a rectangular sandbox with a capacity of 10 cubic feet . if the carpenter were to make a similar sandbox twice as long , twice as wide , and twice as high as the first sandbox , what would be the capacity , in cubic feet , of the second sandbox ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 80.0) def check(x): pass
problem
n0 = 10.0 t0 = 2.0**min(3.0, 5) answer = n0 * t0 return answer
MathQA/237
python
def problem(): """ what is the area inscribed by the lines y = 2 , x = 2 , y = 10 - x on an xy - coordinate plane ? n0 = 2.0 n1 = 2.0 n2 = 10.0 """
what is the area inscribed by the lines y = 2 , x = 2 , y = 10 - x on an xy - coordinate plane ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 18.0) def check(x): pass
problem
n0 = 2.0 n1 = 2.0 n2 = 10.0 t0 = 0.25 * 2.0 t1 = n2 - n0 t2 = t1 - n0 t3 = t0 * t2 answer = t3 * t2 return answer
MathQA/238
python
def problem(): """ if n is a positive integer , what is the remainder when ( 4 ^ ( 4 n + 3 ) ) ( 6 ^ n ) is divided by 10 ? n0 = 4.0 n1 = 4.0 n2 = 3.0 n3 = 6.0 n4 = 10.0 """
if n is a positive integer , what is the remainder when ( 4 ^ ( 4 n + 3 ) ) ( 6 ^ n ) is divided by 10 ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4.0) def check(x): pass
problem
n0 = 4.0 n1 = 4.0 n2 = 3.0 n3 = 6.0 n4 = 10.0 t0 = 3.0 * 3.0 t1 = n3 * t0 answer = t1 % n4 return answer
MathQA/239
python
def problem(): """ each of the dogs in a certain kennel is a single color . each of the dogs in the kennel either has long fur or does not . of the 45 dogs in the kennel , 28 have long fur , 17 are brown , and 8 are neither long - furred nor brown . how many long - furred dogs are brown ? n0 = 45.0 n1 = 28.0 n2 = 17.0 n3 = 8.0 """
each of the dogs in a certain kennel is a single color . each of the dogs in the kennel either has long fur or does not . of the 45 dogs in the kennel , 28 have long fur , 17 are brown , and 8 are neither long - furred nor brown . how many long - furred dogs are brown ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 8.0) def check(x): pass
problem
n0 = 45.0 n1 = 28.0 n2 = 17.0 n3 = 8.0 t0 = n1 + n2 t1 = n0 - n3 answer = t0 - t1 return answer
MathQA/240
python
def problem(): """ when tossed , a certain coin has equal probability of landing on either side . if the coin is tossed 4 times , what is the probability that it will land twice on heads and twice tails ? n0 = 4.0 """
when tossed , a certain coin has equal probability of landing on either side . if the coin is tossed 4 times , what is the probability that it will land twice on heads and twice tails ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.0625) def check(x): pass
problem
n0 = 4.0 t0 = 2.0**min(n0, 5) answer = 1.0 / t0 return answer
MathQA/241
python
def problem(): """ the effective annual rate of interest corresponding to a nominal rate of 14 % per annum payable half - yearly is ? n0 = 14.0 """
the effective annual rate of interest corresponding to a nominal rate of 14 % per annum payable half - yearly is ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 14.49) def check(x): pass
problem
n0 = 14.0 t0 = n0 / 2.0 t1 = t0 + t0 t2 = t0 * t0 t3 = t2 / 100.0 answer = t1 + t3 return answer
MathQA/242
python
def problem(): """ mary ' s income is 60 percent more than tim ' s income , and tim ' s income is 50 percent less than juan ' s income . what percent of juan ' s income is mary ' s income ? n0 = 60.0 n1 = 50.0 """
mary ' s income is 60 percent more than tim ' s income , and tim ' s income is 50 percent less than juan ' s income . what percent of juan ' s income is mary ' s income ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 80.0) def check(x): pass
problem
n0 = 60.0 n1 = 50.0 t0 = n0 / 100.0 t1 = n1 / 100.0 t2 = t0 + 1.0 t3 = 1.0 - t1 t4 = t2 * t3 answer = t4 * 100.0 return answer
MathQA/243
python
def problem(): """ the circumferences of the fore and hind - wheels of a carriage are 2 2 / 5 and 3 3 / 7 meters respectively . a chalk mark is put on the point of contact of each wheel with the ground at any given moment . how far will the carriage have travelled so that their chalk marks may be again on the ground at the same time ? n0 = 2.0 n1 = 2.0 n2 = 5.0 n3 = 3.0 n4 = 3.0 n5 = 7.0 """
the circumferences of the fore and hind - wheels of a carriage are 2 2 / 5 and 3 3 / 7 meters respectively . a chalk mark is put on the point of contact of each wheel with the ground at any given moment . how far will the carriage have travelled so that their chalk marks may be again on the ground at the same time ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 24.0) def check(x): pass
problem
n0 = 2.0 n1 = 2.0 n2 = 5.0 n3 = 3.0 n4 = 3.0 n5 = 7.0 t0 = n3 * n5 answer = n3 + t0 return answer
MathQA/244
python
def problem(): """ a 100 - litre mixture of milk and water contains 30.25 litres of milk . ' x ' litres of this mixture is removed and replaced with an equal quantum of water . if the process is repeated once , then the concentration of the milk stands reduced at 25 % . what is the value of x ? n0 = 100.0 n1 = 30.25 n2 = 25.0 """
a 100 - litre mixture of milk and water contains 30.25 litres of milk . ' x ' litres of this mixture is removed and replaced with an equal quantum of water . if the process is repeated once , then the concentration of the milk stands reduced at 25 % . what is the value of x ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 9.090909090909093) def check(x): pass
problem
import math n0 = 100.0 n1 = 30.25 n2 = 25.0 t0 = n2 / n1 t1 = math.sqrt(max(0, t0)) t2 = 1.0 - t1 answer = n0 * t2 return answer
MathQA/245
python
def problem(): """ m and n are the x and y coordinates , respectively , of a point in the coordinate plane . if the points ( m , n ) and ( m + p , n + 12 ) both lie on the line defined by the equation x = ( y / 4 ) - ( 2 / 5 ) , what is the value of p ? n0 = 12.0 n1 = 4.0 n2 = 2.0 n3 = 5.0 """
m and n are the x and y coordinates , respectively , of a point in the coordinate plane . if the points ( m , n ) and ( m + p , n + 12 ) both lie on the line defined by the equation x = ( y / 4 ) - ( 2 / 5 ) , what is the value of p ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 3.0) def check(x): pass
problem
n0 = 12.0 n1 = 4.0 n2 = 2.0 n3 = 5.0 answer = n0 / n1 return answer
MathQA/246
python
def problem(): """ 1000 men have provisions for 15 days . if 300 more men join them , for how many days will the provisions last now ? n0 = 1000.0 n1 = 15.0 n2 = 300.0 """
1000 men have provisions for 15 days . if 300 more men join them , for how many days will the provisions last now ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 11.538461538461538) def check(x): pass
problem
n0 = 1000.0 n1 = 15.0 n2 = 300.0 t0 = n0 + n2 t1 = n0 * n1 answer = t1 / t0 return answer
MathQA/247
python
def problem(): """ the equation of line a is y = 4 / 3 * x - 100 . what is the smallest possible distance in the xy - plane from the point with coordinates ( 0 , 0 ) to any point on line a ? n0 = 4.0 n1 = 3.0 n2 = 100.0 n3 = 0.0 n4 = 0.0 """
the equation of line a is y = 4 / 3 * x - 100 . what is the smallest possible distance in the xy - plane from the point with coordinates ( 0 , 0 ) to any point on line a ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 60.0) def check(x): pass
problem
import math n0 = 4.0 n1 = 3.0 n2 = 100.0 n3 = 0.0 n4 = 0.0 t0 = n1 * n2 t1 = n0**min(2.0, 5) t2 = n1**min(2.0, 5) t3 = t1 + t2 t4 = math.sqrt(max(0, t3)) answer = t0 / t4 return answer
MathQA/248
python
def problem(): """ the average age of applicants for a new job is 31 , with a standard deviation of 6 . the hiring manager is only willing to accept applications whose age is within one standard deviation of the average age . what is the maximum number of different ages of the applicants ? n0 = 31.0 n1 = 6.0 """
the average age of applicants for a new job is 31 , with a standard deviation of 6 . the hiring manager is only willing to accept applications whose age is within one standard deviation of the average age . what is the maximum number of different ages of the applicants ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 13.0) def check(x): pass
problem
n0 = 31.0 n1 = 6.0 t0 = n1 * 2.0 answer = t0 + 1.0 return answer
MathQA/249
python
def problem(): """ machine a produces 100 parts thrice as fast as machine b does . machine b produces 100 parts in 30 minutes . if each machine produces parts at a constant rate , how many parts does machine a produce in 6 minutes ? n0 = 100.0 n1 = 100.0 n2 = 30.0 n3 = 6.0 """
machine a produces 100 parts thrice as fast as machine b does . machine b produces 100 parts in 30 minutes . if each machine produces parts at a constant rate , how many parts does machine a produce in 6 minutes ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 60.0) def check(x): pass
problem
n0 = 100.0 n1 = 100.0 n2 = 30.0 n3 = 6.0 t0 = n0 / n2 t1 = t0 * 3.0 answer = n3 * t1 return answer
MathQA/250
python
def problem(): """ in the faculty of reverse - engineering , 226 second year students study numeric methods , 423 second year students study automatic control of airborne vehicles and 134 second year students study them both . how many students are there in the faculty if the second year students are approximately 80 % of the total ? n0 = 226.0 n1 = 423.0 n2 = 134.0 n3 = 80.0 """
in the faculty of reverse - engineering , 226 second year students study numeric methods , 423 second year students study automatic control of airborne vehicles and 134 second year students study them both . how many students are there in the faculty if the second year students are approximately 80 % of the total ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 649.0) def check(x): pass
problem
n0 = 226.0 n1 = 423.0 n2 = 134.0 n3 = 80.0 answer = n0 + n1 return answer
MathQA/251
python
def problem(): """ the average of 5 quantities is 9 . the average of 3 of them is 4 . what is the average of remaining 2 numbers ? n0 = 5.0 n1 = 9.0 n2 = 3.0 n3 = 4.0 n4 = 2.0 """
the average of 5 quantities is 9 . the average of 3 of them is 4 . what is the average of remaining 2 numbers ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 16.5) def check(x): pass
problem
n0 = 5.0 n1 = 9.0 n2 = 3.0 n3 = 4.0 n4 = 2.0 t0 = n0 * n1 t1 = n2 * n3 t2 = t0 - t1 answer = t2 / n4 return answer
MathQA/252
python
def problem(): """ the average height of 30 students in a class was calculated as 177 cm . it has later found that the height of one of the students in the class was incorrectly written as 151 cm whereas the actual height was 106 cm . what was the actual average height of the students in the class ? n0 = 30.0 n1 = 177.0 n2 = 151.0 n3 = 106.0 """
the average height of 30 students in a class was calculated as 177 cm . it has later found that the height of one of the students in the class was incorrectly written as 151 cm whereas the actual height was 106 cm . what was the actual average height of the students in the class ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 175.5) def check(x): pass
problem
n0 = 30.0 n1 = 177.0 n2 = 151.0 n3 = 106.0 t0 = n0 * n1 t1 = n2 - n3 t2 = t0 - t1 answer = t2 / n0 return answer
MathQA/253
python
def problem(): """ a train 150 m long passes a km stone in 15 seconds and another train of the same length travelling in opposite direction in 8 seconds . the speed of the second train is n0 = 150.0 n1 = 15.0 n2 = 8.0 """
a train 150 m long passes a km stone in 15 seconds and another train of the same length travelling in opposite direction in 8 seconds . the speed of the second train is
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 99.0) def check(x): pass
problem
n0 = 150.0 n1 = 15.0 n2 = 8.0 t0 = n0 + n0 t1 = n0 / n1 t2 = n2 * t1 t3 = t0 - t2 t4 = t3 / n2 answer = t4 * 3.6 return answer
MathQA/254
python
def problem(): """ what is the max number of rectangular boxes , each measuring 5 inches by 2 inches by 7 inches , that can be packed into a rectangular packing box measuring 15 inches by 20 inches by 35 inches , if all boxes are aligned in the same direction ? n0 = 5.0 n1 = 2.0 n2 = 7.0 n3 = 15.0 n4 = 20.0 n5 = 35.0 """
what is the max number of rectangular boxes , each measuring 5 inches by 2 inches by 7 inches , that can be packed into a rectangular packing box measuring 15 inches by 20 inches by 35 inches , if all boxes are aligned in the same direction ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 150.0) def check(x): pass
problem
n0 = 5.0 n1 = 2.0 n2 = 7.0 n3 = 15.0 n4 = 20.0 n5 = 35.0 t0 = n3 * n4 t1 = n0 * n1 t2 = n5 * t0 t3 = n2 * t1 answer = t2 / t3 return answer
MathQA/255
python
def problem(): """ the difference between the compound interest compounded annually and simple interest for 2 years at 20 % per annum is rs . 288 . find the principal ? n0 = 2.0 n1 = 20.0 n2 = 288.0 """
the difference between the compound interest compounded annually and simple interest for 2 years at 20 % per annum is rs . 288 . find the principal ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 7199.999999999994) def check(x): pass
problem
n0 = 2.0 n1 = 20.0 n2 = 288.0 t0 = n1 / 100.0 t1 = t0 + 1.0 t2 = n0 * t0 t3 = t2 + 1.0 t4 = t1**min(n0, 5) t5 = t4 - t3 answer = n2 / t5 return answer
MathQA/256
python
def problem(): """ 63.2 is what percent of 867 ? n0 = 63.2 n1 = 867.0 """
63.2 is what percent of 867 ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 7.289504036908881) def check(x): pass
problem
n0 = 63.2 n1 = 867.0 t0 = n0 / n1 answer = t0 * 100.0 return answer
MathQA/257
python
def problem(): """ p can do a work in the same time in which q and r together can do it . if p and q work together , the work can be completed in 10 days . r alone needs 15 days to complete the same work . then q alone can do it in n0 = 10.0 n1 = 15.0 """
p can do a work in the same time in which q and r together can do it . if p and q work together , the work can be completed in 10 days . r alone needs 15 days to complete the same work . then q alone can do it in
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 59.999999999999964) def check(x): pass
problem
n0 = 10.0 n1 = 15.0 t0 = 1.0 / n0 t1 = 1.0 / n1 t2 = t0 + t1 t3 = t2 / 2.0 t4 = t3 - t1 answer = 1.0 / t4 return answer
MathQA/258
python
def problem(): """ at a wedding reception , 125 guests ate chicken and 75 guests ate beef . if exactly 100 guests ate only one of the two types of meat , how many guests ate both types of meat ? n0 = 125.0 n1 = 75.0 n2 = 100.0 """
at a wedding reception , 125 guests ate chicken and 75 guests ate beef . if exactly 100 guests ate only one of the two types of meat , how many guests ate both types of meat ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 50.0) def check(x): pass
problem
n0 = 125.0 n1 = 75.0 n2 = 100.0 t0 = n0 - n2 t1 = n2 - n1 answer = t0 + t1 return answer
MathQA/259
python
def problem(): """ the average temperature for monday , tuesday and wednsday is 36.3 degrees c . the average temperature for tuesday , wednesday and thursday is 36.7 degrees c . if monday ’ s temperature recorded as 39 degrees c , find the thursday ’ s temperature ? n0 = 36.3 n1 = 36.7 n2 = 39.0 """
the average temperature for monday , tuesday and wednsday is 36.3 degrees c . the average temperature for tuesday , wednesday and thursday is 36.7 degrees c . if monday ’ s temperature recorded as 39 degrees c , find the thursday ’ s temperature ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 40.20000000000002) def check(x): pass
problem
n0 = 36.3 n1 = 36.7 n2 = 39.0 t0 = n1 * 3.0 t1 = n0 * 3.0 t2 = t1 - n2 answer = t0 - t2 return answer
MathQA/260
python
def problem(): """ a palindrome is a number that reads the same forward and backward , such as 343 . how many odd , 6 - digit numbers are palindromes ? n0 = 343.0 n1 = 6.0 """
a palindrome is a number that reads the same forward and backward , such as 343 . how many odd , 6 - digit numbers are palindromes ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 500.0) def check(x): pass
problem
n0 = 343.0 n1 = 6.0 t0 = n1 / 2.0 t1 = 10.0**min(t0, 5) answer = t1 / 2.0 return answer
MathQA/261
python
def problem(): """ p , q and r have $ 6000 among themselves . r has two - thirds of the total amount with p and q . find the amount with r ? n0 = 6000.0 """
p , q and r have $ 6000 among themselves . r has two - thirds of the total amount with p and q . find the amount with r ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2400.0) def check(x): pass
problem
n0 = 6000.0 t0 = 2.0 * 2.0 t1 = 1.0 * 3.0 t2 = t0 / 3.0 t3 = n0 * t0 t4 = t2 * 3.0 t5 = t4 + t1 t6 = t5 + t1 answer = t3 / t6 return answer
MathQA/262
python
def problem(): """ light glows for every 15 seconds . how many max . times did it glow between 1 : 57 : 58 and 3 : 20 : 47 am . n0 = 15.0 n1 = 1.0 n2 = 57.0 n3 = 58.0 n4 = 3.0 n5 = 20.0 n6 = 47.0 """
light glows for every 15 seconds . how many max . times did it glow between 1 : 57 : 58 and 3 : 20 : 47 am .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 331.26666666666665) def check(x): pass
problem
n0 = 15.0 n1 = 1.0 n2 = 57.0 n3 = 58.0 n4 = 3.0 n5 = 20.0 n6 = 47.0 t0 = n6 + 2.0 t1 = 2.0 + 60.0 t2 = n5 + t1 t3 = t2 * 60.0 t4 = t0 + t3 answer = t4 / n0 return answer
MathQA/263
python
def problem(): """ a boy goes to his school from his house at a speed of 3 km / hr and returns at a speed of 2 km / hr . if he takes 5 hours in going and coming . the distance between his house and school is : n0 = 3.0 n1 = 2.0 n2 = 5.0 """
a boy goes to his school from his house at a speed of 3 km / hr and returns at a speed of 2 km / hr . if he takes 5 hours in going and coming . the distance between his house and school is :
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 6.0) def check(x): pass
problem
n0 = 3.0 n1 = 2.0 n2 = 5.0 t0 = n0 / n1 t1 = t0 + 1.0 t2 = n2 / t1 answer = n0 * t2 return answer
MathQA/264
python
def problem(): """ of the 120 passengers on flight 750 , 60 % are female . 10 % of the passengers sit in first class , and the rest of the passengers sit in coach class . if 1 / 3 of the passengers in first class are male , how many females are there in coach class ? n0 = 120.0 n1 = 750.0 n2 = 60.0 n3 = 10.0 n4 = 1.0 n5 = 3.0 """
of the 120 passengers on flight 750 , 60 % are female . 10 % of the passengers sit in first class , and the rest of the passengers sit in coach class . if 1 / 3 of the passengers in first class are male , how many females are there in coach class ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 64.0) def check(x): pass
problem
n0 = 120.0 n1 = 750.0 n2 = 60.0 n3 = 10.0 n4 = 1.0 n5 = 3.0 t0 = n2 / 100.0 t1 = n3 / 100.0 t2 = n0 * t0 t3 = n0 * t1 t4 = t3 / n5 t5 = t3 - t4 answer = t2 - t5 return answer
MathQA/265
python
def problem(): """ how many kilograms of sugar costing rs . 9 per kg must be mixed with 27 kg of sugar costing rs . 7 per kg so that there may be a gain of 10 % by selling the mixture at rs . 9.24 per kg ? n0 = 9.0 n1 = 27.0 n2 = 7.0 n3 = 10.0 n4 = 9.24 """
how many kilograms of sugar costing rs . 9 per kg must be mixed with 27 kg of sugar costing rs . 7 per kg so that there may be a gain of 10 % by selling the mixture at rs . 9.24 per kg ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 63.00000000000006) def check(x): pass
problem
n0 = 9.0 n1 = 27.0 n2 = 7.0 n3 = 10.0 n4 = 9.24 t0 = n3 / 100.0 t1 = n1 * n2 t2 = t0 + 1.0 t3 = n4 / t2 t4 = n1 * t3 t5 = n0 - t3 t6 = t4 - t1 answer = t6 / t5 return answer
MathQA/266
python
def problem(): """ a sum of money lent out at s . i . amounts to rs . 820 after 2 years and to rs . 1020 after a further period of 5 years . the sum is ? n0 = 820.0 n1 = 2.0 n2 = 1020.0 n3 = 5.0 """
a sum of money lent out at s . i . amounts to rs . 820 after 2 years and to rs . 1020 after a further period of 5 years . the sum is ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 740.0) def check(x): pass
problem
n0 = 820.0 n1 = 2.0 n2 = 1020.0 n3 = 5.0 t0 = n2 - n0 t1 = t0 / n3 t2 = n1 * t1 answer = n0 - t2 return answer
MathQA/267
python
def problem(): """ a business executive and his client are charging their dinner tab on the executive ' s expense account . the company will only allow them to spend a total of 60 $ for the meal . assuming that they will pay 7 % in sales tax for the meal and leave a 15 % tip , what is the most their food can cost ? n0 = 60.0 n1 = 7.0 n2 = 15.0 """
a business executive and his client are charging their dinner tab on the executive ' s expense account . the company will only allow them to spend a total of 60 $ for the meal . assuming that they will pay 7 % in sales tax for the meal and leave a 15 % tip , what is the most their food can cost ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 49.18032786885246) def check(x): pass
problem
n0 = 60.0 n1 = 7.0 n2 = 15.0 t0 = n1 + n2 t1 = t0 / 100.0 t2 = t1 + 1.0 answer = n0 / t2 return answer
MathQA/268
python
def problem(): """ for 2 consecutive yrs , my incomes are in the ratio of 4 : 7 and expenses in the ratio of 3 : 5 . if my income in the 2 nd yr is rs . 42000 & my expenses in the first yr in rs . 21000 , my total savings for the two - year is n0 = 2.0 n1 = 4.0 n2 = 7.0 n3 = 3.0 n4 = 5.0 n5 = 2.0 n6 = 42000.0 n7 = 21000.0 """
for 2 consecutive yrs , my incomes are in the ratio of 4 : 7 and expenses in the ratio of 3 : 5 . if my income in the 2 nd yr is rs . 42000 & my expenses in the first yr in rs . 21000 , my total savings for the two - year is
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 10000.0) def check(x): pass
problem
n0 = 2.0 n1 = 4.0 n2 = 7.0 n3 = 3.0 n4 = 5.0 n5 = 2.0 n6 = 42000.0 n7 = 21000.0 t0 = n4 * n7 t1 = n1 * n6 t2 = t0 / n3 t3 = t1 / n2 t4 = n6 - t2 t5 = t3 - n7 answer = t4 + t5 return answer
MathQA/269
python
def problem(): """ a boat can travel with a speed of 12 km / hr in still water . if the speed of the stream is 4 km / hr , find the time taken by the boat to go 68 km downstream . n0 = 12.0 n1 = 4.0 n2 = 68.0 """
a boat can travel with a speed of 12 km / hr in still water . if the speed of the stream is 4 km / hr , find the time taken by the boat to go 68 km downstream .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4.25) def check(x): pass
problem
n0 = 12.0 n1 = 4.0 n2 = 68.0 t0 = n0 + n1 answer = n2 / t0 return answer
MathQA/270
python
def problem(): """ the cost of one photocopy is $ 0.02 . however , a 25 % discount is offered on orders of more than 100 photocopies . if saran and david have to make 80 copies each , how much will each of them save if they submit a single order of 160 copies ? n0 = 0.02 n1 = 25.0 n2 = 100.0 n3 = 80.0 n4 = 160.0 """
the cost of one photocopy is $ 0.02 . however , a 25 % discount is offered on orders of more than 100 photocopies . if saran and david have to make 80 copies each , how much will each of them save if they submit a single order of 160 copies ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.40000000000000013) def check(x): pass
problem
n0 = 0.02 n1 = 25.0 n2 = 100.0 n3 = 80.0 n4 = 160.0 t0 = n0 * n3 t1 = n2 - n1 t2 = t1 / n2 t3 = t0 * 2.0 t4 = n4 * t2 t5 = n0 * t4 t6 = t3 - t5 answer = t6 / 2.0 return answer
MathQA/271
python
def problem(): """ p is able to do a piece of work in 10 days and q can do the same work in 12 days . if they can work together for 5 days , what is the fraction of work left ? n0 = 10.0 n1 = 12.0 n2 = 5.0 """
p is able to do a piece of work in 10 days and q can do the same work in 12 days . if they can work together for 5 days , what is the fraction of work left ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.08333333333333326) def check(x): pass
problem
n0 = 10.0 n1 = 12.0 n2 = 5.0 t0 = 1.0 / n1 t1 = 1.0 / n0 t2 = t0 + t1 t3 = n2 * t2 answer = 1.0 - t3 return answer
MathQA/272
python
def problem(): """ find the area of a parallelogram with base 24 cm and height 12 cm ? n0 = 24.0 n1 = 12.0 """
find the area of a parallelogram with base 24 cm and height 12 cm ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 288.0) def check(x): pass
problem
n0 = 24.0 n1 = 12.0 answer = n0 * n1 return answer
MathQA/273
python
def problem(): """ a glass was filled with 10 ounces of water , and 0.05 ounce of the water evaporated each day during a 20 - day period . what percent of the original amount of water evaporated during this period ? n0 = 10.0 n1 = 0.05 n2 = 20.0 """
a glass was filled with 10 ounces of water , and 0.05 ounce of the water evaporated each day during a 20 - day period . what percent of the original amount of water evaporated during this period ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 10.0) def check(x): pass
problem
n0 = 10.0 n1 = 0.05 n2 = 20.0 t0 = n1 * n2 t1 = t0 / n0 answer = t1 * 100.0 return answer
MathQA/274
python
def problem(): """ a starts business with rs . 3500 and after 5 months , b joins with a as his partner . after a year , the profit is divided in the ratio 2 : 3 . what is b ' s contribution in the capital n0 = 3500.0 n1 = 5.0 n2 = 2.0 n3 = 3.0 """
a starts business with rs . 3500 and after 5 months , b joins with a as his partner . after a year , the profit is divided in the ratio 2 : 3 . what is b ' s contribution in the capital
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 9000.0) def check(x): pass
problem
n0 = 3500.0 n1 = 5.0 n2 = 2.0 n3 = 3.0 t0 = n0 * 12.0 t1 = 12.0 - n1 t2 = n3 * t0 t3 = n2 * t1 answer = t2 / t3 return answer
MathQA/275
python
def problem(): """ a cistern can be filled by a tap in 5 hours while it can be emptied by another tap in 10 hours . if both the taps are opened simultaneously then after how much time will the cistern get filled ? n0 = 5.0 n1 = 10.0 """
a cistern can be filled by a tap in 5 hours while it can be emptied by another tap in 10 hours . if both the taps are opened simultaneously then after how much time will the cistern get filled ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 10.0) def check(x): pass
problem
n0 = 5.0 n1 = 10.0 t0 = 1.0 / n0 t1 = 1.0 / n1 t2 = t0 - t1 answer = 1.0 / t2 return answer
MathQA/276
python
def problem(): """ the mall charges 50 cents for the first hour of parking and $ 3 for each additional hour until the customer reaches 4 hours , after that the parking fee is $ 1 per hour . if a certain customer parked his in the mall for 7 hours and 30 minutes , how much is he going to pay ? n0 = 50.0 n1 = 3.0 n2 = 4.0 n3 = 1.0 n4 = 7.0 n5 = 30.0 """
the mall charges 50 cents for the first hour of parking and $ 3 for each additional hour until the customer reaches 4 hours , after that the parking fee is $ 1 per hour . if a certain customer parked his in the mall for 7 hours and 30 minutes , how much is he going to pay ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 13.0) def check(x): pass
problem
n0 = 50.0 n1 = 3.0 n2 = 4.0 n3 = 1.0 n4 = 7.0 n5 = 30.0 t0 = n0 / 100.0 t1 = n1 * n1 t2 = n4 - n2 t3 = t0 + t2 t4 = n3 * t3 t5 = t1 + t4 answer = t5 + t0 return answer
MathQA/277
python
def problem(): """ x and y invested in a business . they earned some profit which they divided in the ratio of 2 : 3 . if x invested rs . 40000 , the amount invested by y is n0 = 2.0 n1 = 3.0 n2 = 40000.0 """
x and y invested in a business . they earned some profit which they divided in the ratio of 2 : 3 . if x invested rs . 40000 , the amount invested by y is
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 60000.0) def check(x): pass
problem
n0 = 2.0 n1 = 3.0 n2 = 40000.0 t0 = n0 + n1 t1 = n1 / t0 t2 = n2 * t0 t3 = t2 / n0 answer = t3 * t1 return answer
MathQA/278
python
def problem(): """ an article with cost price of 245 is sold at 34 % profit . what is the selling price ? n0 = 245.0 n1 = 34.0 """
an article with cost price of 245 is sold at 34 % profit . what is the selling price ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 328.3) def check(x): pass
problem
n0 = 245.0 n1 = 34.0 t0 = n1 / 100.0 t1 = n0 * t0 answer = n0 + t1 return answer
MathQA/279
python
def problem(): """ two stations p and q are 155 km apart on a straight track . one train starts from p at 7 a . m . and travels towards q at 20 kmph . another train starts from q at 8 a . m . and travels towards p at a speed of 25 kmph . at what time will they meet ? n0 = 155.0 n1 = 7.0 n2 = 20.0 n3 = 8.0 n4 = 25.0 """
two stations p and q are 155 km apart on a straight track . one train starts from p at 7 a . m . and travels towards q at 20 kmph . another train starts from q at 8 a . m . and travels towards p at a speed of 25 kmph . at what time will they meet ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 11.0) def check(x): pass
problem
n0 = 155.0 n1 = 7.0 n2 = 20.0 n3 = 8.0 n4 = 25.0 t0 = n0 + n4 t1 = n2 + n4 t2 = t0 / t1 answer = n1 + t2 return answer
MathQA/280
python
def problem(): """ the captain of a cricket team of 11 members is 26 years old and the wicket keeper is 3 years older . if the ages of these two are excluded , the average age of the remaining players is one year less than the average age of the whole team . what is the average age of the team ? n0 = 11.0 n1 = 26.0 n2 = 3.0 """
the captain of a cricket team of 11 members is 26 years old and the wicket keeper is 3 years older . if the ages of these two are excluded , the average age of the remaining players is one year less than the average age of the whole team . what is the average age of the team ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 23.0) def check(x): pass
problem
n0 = 11.0 n1 = 26.0 n2 = 3.0 t0 = n1 + n2 t1 = n2 * n2 t2 = n1 + t0 t3 = t2 - t1 answer = t3 / 2.0 return answer
MathQA/281
python
def problem(): """ the number of students in each section of a school is 24 . after admitting new students , 3 new sections were started . now , the total number of sections is 16 and there are 21 students in each section . the number of new students admitted is : n0 = 24.0 n1 = 3.0 n2 = 16.0 n3 = 21.0 """
the number of students in each section of a school is 24 . after admitting new students , 3 new sections were started . now , the total number of sections is 16 and there are 21 students in each section . the number of new students admitted is :
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 24.0) def check(x): pass
problem
n0 = 24.0 n1 = 3.0 n2 = 16.0 n3 = 21.0 t0 = n2 * n3 t1 = n2 - n1 t2 = n0 * t1 answer = t0 - t2 return answer
MathQA/282
python
def problem(): """ - 24 * 29 + 1240 = ? n0 = 24.0 n1 = 29.0 n2 = 1240.0 """
- 24 * 29 + 1240 = ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 544.0) def check(x): pass
problem
n0 = 24.0 n1 = 29.0 n2 = 1240.0 t0 = -n0 t1 = n1 * t0 answer = n2 + t1 return answer
MathQA/283
python
def problem(): """ x and y started a business by investing rs . 36000 and rs . 42000 respectively after 4 months z joined in the business with an investment of rs . 48000 , then find share of z in the profit of rs . 13750 ? n0 = 36000.0 n1 = 42000.0 n2 = 4.0 n3 = 48000.0 n4 = 13750.0 """
x and y started a business by investing rs . 36000 and rs . 42000 respectively after 4 months z joined in the business with an investment of rs . 48000 , then find share of z in the profit of rs . 13750 ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4000.0) def check(x): pass
problem
n0 = 36000.0 n1 = 42000.0 n2 = 4.0 n3 = 48000.0 n4 = 13750.0 t0 = 3.0 * 4.0 t1 = n0 * t0 t2 = n1 * t0 t3 = t0 - 4.0 t4 = t1 + t2 t5 = n3 * t3 t6 = t4 + t5 t7 = n4 / t6 answer = t7 * t5 return answer
MathQA/284
python
def problem(): """ machine a and machine b are each used to manufacture 550 sprockets . it takes machine a 10 hours longer to produce 550 sprockets than machine b . machine b produces 10 percent more sprockets per hour than machine a . how many sprockets per hour does machine a produces ? n0 = 550.0 n1 = 10.0 n2 = 550.0 n3 = 10.0 """
machine a and machine b are each used to manufacture 550 sprockets . it takes machine a 10 hours longer to produce 550 sprockets than machine b . machine b produces 10 percent more sprockets per hour than machine a . how many sprockets per hour does machine a produces ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4.999999999999999) def check(x): pass
problem
n0 = 550.0 n1 = 10.0 n2 = 550.0 n3 = 10.0 t0 = n1 + 100.0 t1 = n0 * n1 t2 = t0 / 100.0 t3 = t2 * t1 t4 = n0 * t2 t5 = t4 - n0 t6 = t3 / t5 answer = n0 / t6 return answer
MathQA/285
python
def problem(): """ how long does a train 100 m long travelling at 60 kmph takes to cross a bridge of 120 m in length ? n0 = 100.0 n1 = 60.0 n2 = 120.0 """
how long does a train 100 m long travelling at 60 kmph takes to cross a bridge of 120 m in length ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 13.198944084473244) def check(x): pass
problem
n0 = 100.0 n1 = 60.0 n2 = 120.0 t0 = n0 + n2 t1 = n1 * 0.2778 answer = t0 / t1 return answer
MathQA/286
python
def problem(): """ kathleen can paint a room in 2 hours , and anthony can paint an identical room in 3 hours . how many hours would it take kathleen and anthony to paint both rooms if they work together at their respective rates ? n0 = 2.0 n1 = 3.0 """
kathleen can paint a room in 2 hours , and anthony can paint an identical room in 3 hours . how many hours would it take kathleen and anthony to paint both rooms if they work together at their respective rates ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 2.4000000000000004) def check(x): pass
problem
n0 = 2.0 n1 = 3.0 t0 = 1.0 / n0 t1 = 1.0 / n1 t2 = t0 + t1 t3 = 1.0 / t2 answer = t3 * n0 return answer
MathQA/287
python
def problem(): """ a can run 2.7 km distance in 1 min 20 seconds , while b can run this distance in 1 min 30 sec . by how much distance can a beat b ? n0 = 2.7 n1 = 1.0 n2 = 20.0 n3 = 1.0 n4 = 30.0 """
a can run 2.7 km distance in 1 min 20 seconds , while b can run this distance in 1 min 30 sec . by how much distance can a beat b ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 300.0) def check(x): pass
problem
n0 = 2.7 n1 = 1.0 n2 = 20.0 n3 = 1.0 n4 = 30.0 t0 = n0 * 1000.0 t1 = n1 * 60.0 t2 = n3 * 60.0 t3 = n2 + t1 t4 = n4 + t2 t5 = t0 / t4 t6 = t3 * t5 answer = t0 - t6 return answer
MathQA/288
python
def problem(): """ a parallelogram has a base that is four time the size of it ' s height . the total area of this parallelogram is 2,304 sq ft . what is the height of the parallelogram ? n0 = 2304.0 """
a parallelogram has a base that is four time the size of it ' s height . the total area of this parallelogram is 2,304 sq ft . what is the height of the parallelogram ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 24.0) def check(x): pass
problem
import math n0 = 2304.0 t0 = 1000.0 * 2.0 t1 = 100.0 * 3.0 t2 = t0 + t1 t3 = t2 + 4.0 t4 = t3 / 4.0 answer = math.sqrt(max(0, t4)) return answer
MathQA/289
python
def problem(): """ how long does a train 150 m long traveling at 60 kmph takes to cross a bridge of 170 m in length ? n0 = 150.0 n1 = 60.0 n2 = 170.0 """
how long does a train 150 m long traveling at 60 kmph takes to cross a bridge of 170 m in length ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 19.19846412287017) def check(x): pass
problem
n0 = 150.0 n1 = 60.0 n2 = 170.0 t0 = n0 + n2 t1 = n1 * 0.2778 answer = t0 / t1 return answer
MathQA/290
python
def problem(): """ if a randomly selected non - negative single digit integer is added to { 2 , 3 , 4 , 7 } . what is the probability that the median of the set will increase but the range still remains the same ? n0 = 2.0 n1 = 3.0 n2 = 4.0 n3 = 7.0 """
if a randomly selected non - negative single digit integer is added to { 2 , 3 , 4 , 7 } . what is the probability that the median of the set will increase but the range still remains the same ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.4) def check(x): pass
problem
n0 = 2.0 n1 = 3.0 n2 = 4.0 n3 = 7.0 answer = 4.0 / 10.0 return answer
MathQA/291
python
def problem(): """ a student chose a number , multiplied it by 6 , then subtracted 250 from the result and got 122 . what was the number he chose ? n0 = 6.0 n1 = 250.0 n2 = 122.0 """
a student chose a number , multiplied it by 6 , then subtracted 250 from the result and got 122 . what was the number he chose ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 62.0) def check(x): pass
problem
n0 = 6.0 n1 = 250.0 n2 = 122.0 t0 = n1 + n2 answer = t0 / n0 return answer
MathQA/292
python
def problem(): """ in an election contested by two parties , party d secured 12 % of the total votes more than party r . if party r got 132000 votes , by how many votes did it lose the election ? n0 = 12.0 n1 = 132000.0 """
in an election contested by two parties , party d secured 12 % of the total votes more than party r . if party r got 132000 votes , by how many votes did it lose the election ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 36000.0) def check(x): pass
problem
n0 = 12.0 n1 = 132000.0 t0 = 100.0 - n0 t1 = t0 / 2.0 t2 = n1 / t1 answer = n0 * t2 return answer
MathQA/293
python
def problem(): """ in measuring the sides of a rectangle , one side is taken 4 % in excess , and the other 3 % in deficit . find the error percent in the area calculated from these measurements . n0 = 4.0 n1 = 3.0 """
in measuring the sides of a rectangle , one side is taken 4 % in excess , and the other 3 % in deficit . find the error percent in the area calculated from these measurements .
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 0.88) def check(x): pass
problem
n0 = 4.0 n1 = 3.0 t0 = n0 * n1 t1 = n0 - n1 t2 = t0 / 100.0 answer = t1 - t2 return answer
MathQA/294
python
def problem(): """ a multiple choice test consists of 4 questions , and each question has 5 answer choices . in how many e ways can the test be completed if every question is unanswered ? n0 = 4.0 n1 = 5.0 """
a multiple choice test consists of 4 questions , and each question has 5 answer choices . in how many e ways can the test be completed if every question is unanswered ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 625.0) def check(x): pass
problem
n0 = 4.0 n1 = 5.0 answer = n1**min(n0, 5) return answer
MathQA/295
python
def problem(): """ a and b undertake to do a piece of work for $ 600 . a alone can do it in 6 days while b alone can do it in 8 days . with the help of c , they finish it in 3 days . find the share of a ? n0 = 600.0 n1 = 6.0 n2 = 8.0 n3 = 3.0 """
a and b undertake to do a piece of work for $ 600 . a alone can do it in 6 days while b alone can do it in 8 days . with the help of c , they finish it in 3 days . find the share of a ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 300.0) def check(x): pass
problem
n0 = 600.0 n1 = 6.0 n2 = 8.0 n3 = 3.0 t0 = 1 / n1 t1 = 1 / n3 t2 = 1 / n2 t3 = n2 * n3 t4 = t0 + t2 t5 = t0 * t3 t6 = t2 * t3 t7 = t1 - t4 t8 = t3 * t7 t9 = t8 + t5 t10 = t9 + t6 t11 = t5 / t10 answer = n0 * t11 return answer
MathQA/296
python
def problem(): """ two employees x and y are paid a total of rs . 660 per week by their employer . if x is paid 120 percent of the sum paid to y , how much is y paid per week ? n0 = 660.0 n1 = 120.0 """
two employees x and y are paid a total of rs . 660 per week by their employer . if x is paid 120 percent of the sum paid to y , how much is y paid per week ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 300.0) def check(x): pass
problem
n0 = 660.0 n1 = 120.0 t0 = 1.0 + 4.0 t1 = t0 * 2.0 t2 = t1 + 1.0 t3 = n0 * t1 t4 = t2 * 2.0 answer = t3 / t4 return answer
MathQA/297
python
def problem(): """ a 250 metres long train running at the speed of 120 kmph crosses another train running in opposite direction at the speed of 80 kmph in 9 seconds . what is the length of the other train ? n0 = 250.0 n1 = 120.0 n2 = 80.0 n3 = 9.0 """
a 250 metres long train running at the speed of 120 kmph crosses another train running in opposite direction at the speed of 80 kmph in 9 seconds . what is the length of the other train ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 250.03999999999996) def check(x): pass
problem
n0 = 250.0 n1 = 120.0 n2 = 80.0 n3 = 9.0 t0 = n1 + n2 t1 = t0 * 0.2778 t2 = n3 * t1 answer = t2 - n0 return answer
MathQA/298
python
def problem(): """ the value of x + x ( xx ) when x = 7 n0 = 7.0 """
the value of x + x ( xx ) when x = 7
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 350.0) def check(x): pass
problem
n0 = 7.0 t0 = n0 * n0 t1 = n0 * t0 answer = n0 + t1 return answer
MathQA/299
python
def problem(): """ in a class of 40 students , 2 students did not borrow any books from the library , 12 students each borrowed 1 book , 11 students each borrowed 2 books , and the rest borrowed at least 3 books . if the average number of books per student was 2 , what is the maximum number of books any single student could have borrowed ? n0 = 40.0 n1 = 2.0 n2 = 12.0 n3 = 1.0 n4 = 11.0 n5 = 2.0 n6 = 3.0 n7 = 2.0 """
in a class of 40 students , 2 students did not borrow any books from the library , 12 students each borrowed 1 book , 11 students each borrowed 2 books , and the rest borrowed at least 3 books . if the average number of books per student was 2 , what is the maximum number of books any single student could have borrowed ?
import math def compare(x, y): return math.fabs(x-y)<1e-8 candidate = problem assert compare(candidate(), 4.0) def check(x): pass
problem
n0 = 40.0 n1 = 2.0 n2 = 12.0 n3 = 1.0 n4 = 11.0 n5 = 2.0 n6 = 3.0 n7 = 2.0 t0 = n0 * n1 t1 = n2 * n3 t2 = n1 * n4 t3 = t1 + t2 t4 = n4 + t1 t5 = n1 + t4 t6 = n0 - t5 t7 = t6 - n3 t8 = n6 * t7 t9 = t3 + t8 answer = t0 - t9 return answer