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/100 | python | def problem():
"""
in a particular state , 60 % of the counties received some rain on monday , and 65 % of the counties received some rain on tuesday . no rain fell either day in 25 % of the counties in the state . what percent of the counties received some rain on monday and tuesday ? n0 = 60.0 n1 = 65.0 n2 = 25.0
"""
| in a particular state , 60 % of the counties received some rain on monday , and 65 % of the counties received some rain on tuesday . no rain fell either day in 25 % of the counties in the state . what percent of the counties received some rain on monday and tuesday ? | 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 = 60.0
n1 = 65.0
n2 = 25.0
t0 = n0 + n1
t1 = 100.0 - n2
answer = t0 - t1
return answer
|
MathQA/101 | python | def problem():
"""
two boys starts from the same place walking at the rate of 5 kmph and 5.5 kmph respectively in the same direction . what time will they take to be 8.5 km apart ? n0 = 5.0 n1 = 5.5 n2 = 8.5
"""
| two boys starts from the same place walking at the rate of 5 kmph and 5.5 kmph respectively in the same direction . what time will they take to be 8.5 km apart ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 17.0)
def check(x): pass
| problem | n0 = 5.0
n1 = 5.5
n2 = 8.5
t0 = n1 - n0
answer = n2 / t0
return answer
|
MathQA/102 | python | def problem():
"""
two dogsled teams raced across a 300 mile course in wyoming . team a finished the course in 3 fewer hours than team q . if team a ' s average speed was 5 mph greater than team q ' s , what was team q ' s average mph ? n0 = 300.0 n1 = 3.0 n2 = 5.0
"""
| two dogsled teams raced across a 300 mile course in wyoming . team a finished the course in 3 fewer hours than team q . if team a ' s average speed was 5 mph greater than team q ' s , what was team q ' s average mph ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 20.0)
def check(x): pass
| problem | n0 = 300.0
n1 = 3.0
n2 = 5.0
t0 = n0 / n2
answer = t0 / n1
return answer
|
MathQA/103 | python | def problem():
"""
the average salary of the employees in a office is rs . 120 / month . the avg salary of officers is rs . 460 and of non officers is rs 110 . if the no . of officers is 15 , then find the no of nonofficers in the office . n0 = 120.0 n1 = 460.0 n2 = 110.0 n3 = 15.0
"""
| the average salary of the employees in a office is rs . 120 / month . the avg salary of officers is rs . 460 and of non officers is rs 110 . if the no . of officers is 15 , then find the no of nonofficers in the office . | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 510.0)
def check(x): pass
| problem | n0 = 120.0
n1 = 460.0
n2 = 110.0
n3 = 15.0
t0 = n1 * n3
t1 = n0 * n3
t2 = n0 - n2
t3 = t0 - t1
answer = t3 / t2
return answer
|
MathQA/104 | python | def problem():
"""
the h . c . f . of two numbers is 10 and the other two factors of their l . c . m . are 13 and 14 . the larger of the two numbers is : n0 = 10.0 n1 = 13.0 n2 = 14.0
"""
| the h . c . f . of two numbers is 10 and the other two factors of their l . c . m . are 13 and 14 . the larger of the two numbers is : | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 140.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 13.0
n2 = 14.0
answer = n0 * n2
return answer
|
MathQA/105 | python | def problem():
"""
a and b began business with rs . 3000 and rs . 4000 after 8 months , a withdraws rs . 1000 and b advances rs . 1000 more . at the end of the year , their profits amounted to rs . 672 find the share of a . n0 = 3000.0 n1 = 4000.0 n2 = 8.0 n3 = 1000.0 n4 = 1000.0 n5 = 672.0
"""
| a and b began business with rs . 3000 and rs . 4000 after 8 months , a withdraws rs . 1000 and b advances rs . 1000 more . at the end of the year , their profits amounted to rs . 672 find the share of a . | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 256.0)
def check(x): pass
| problem | n0 = 3000.0
n1 = 4000.0
n2 = 8.0
n3 = 1000.0
n4 = 1000.0
n5 = 672.0
t0 = n1 + n3
t1 = n0 * n2
t2 = n1 * n2
t3 = n0 - n3
t4 = 12.0 - n2
t5 = t3 * t4
t6 = t0 * t4
t7 = t1 + t5
t8 = t2 + t6
t9 = t7 + t8
t10 = n5 / t9
answer = t7 * t10
return answer
|
MathQA/106 | python | def problem():
"""
a cricketer whose bowling average is 12.4 runs per wicket takes 5 wickets for 26 runs and there by decreases his average by 0.4 . the number age of the family now is ? n0 = 12.4 n1 = 5.0 n2 = 26.0 n3 = 0.4
"""
| a cricketer whose bowling average is 12.4 runs per wicket takes 5 wickets for 26 runs and there by decreases his average by 0.4 . the number age of the family now is ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 85.0)
def check(x): pass
| problem | n0 = 12.4
n1 = 5.0
n2 = 26.0
n3 = 0.4
t0 = n0 - n3
t1 = n1 * t0
t2 = t1 - n2
answer = t2 / n3
return answer
|
MathQA/107 | python | def problem():
"""
a began business with rs . 27000 and was joined afterwards by b with rs . 54000 . when did b join if the profits at the end of the year were divided in the ratio of 2 : 1 ? n0 = 27000.0 n1 = 54000.0 n2 = 2.0 n3 = 1.0
"""
| a began business with rs . 27000 and was joined afterwards by b with rs . 54000 . when did b join if the profits at the end of the year were divided in the ratio of 2 : 1 ? | 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 = 27000.0
n1 = 54000.0
n2 = 2.0
n3 = 1.0
t0 = 3.0 * 4.0
t1 = n0 * t0
t2 = t1 / n1
t3 = t2 / n2
answer = t0 - t3
return answer
|
MathQA/108 | python | def problem():
"""
out of 40 applicants to a law school , 15 majored in political science , 20 had a grade point average higher than 3.0 , and 10 did not major in political science and had a gpa equal to or lower than 3.0 . how many t applicants majored in political science and had a gpa higher than 3.0 ? n0 = 40.0 n1 = 15.0 n2 = 20.0 n3 = 3.0 n4 = 10.0 n5 = 3.0 n6 = 3.0
"""
| out of 40 applicants to a law school , 15 majored in political science , 20 had a grade point average higher than 3.0 , and 10 did not major in political science and had a gpa equal to or lower than 3.0 . how many t applicants majored in political science and had a gpa higher than 3.0 ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 5.0)
def check(x): pass
| problem | n0 = 40.0
n1 = 15.0
n2 = 20.0
n3 = 3.0
n4 = 10.0
n5 = 3.0
n6 = 3.0
t0 = n1 + n4
t1 = n0 - t0
answer = n2 - t1
return answer
|
MathQA/109 | python | def problem():
"""
20 men do a work in 20 days . how many men are needed to finish the work in 10 days ? n0 = 20.0 n1 = 20.0 n2 = 10.0
"""
| 20 men do a work in 20 days . how many men are needed to finish the work in 10 days ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 20.0
n1 = 20.0
n2 = 10.0
t0 = n0 * n1
answer = t0 / n2
return answer
|
MathQA/110 | python | def problem():
"""
if 5 a = 6 b and ab ≠0 , what is the ratio of a / 6 to b / 5 ? n0 = 5.0 n1 = 6.0 n2 = 0.0 n3 = 6.0 n4 = 5.0
"""
| if 5 a = 6 b and ab ≠0 , what is the ratio of a / 6 to b / 5 ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 1.0)
def check(x): pass
| problem | n0 = 5.0
n1 = 6.0
n2 = 0.0
n3 = 6.0
n4 = 5.0
t0 = n0 * n1
answer = t0 / t0
return answer
|
MathQA/111 | python | def problem():
"""
x does a work in 20 days . y does the same work in 30 days . in how many days they together will do the same work ? n0 = 20.0 n1 = 30.0
"""
| x does a work in 20 days . y does the same work in 30 days . in how many days they together will do the same work ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 11.999999999999998)
def check(x): pass
| problem | n0 = 20.0
n1 = 30.0
t0 = 1.0 / n0
t1 = 1.0 / n1
t2 = t0 + t1
answer = 1 / t2
return answer
|
MathQA/112 | python | def problem():
"""
jack and jill are marathon runners . jack can finish a marathon ( 42 km ) in 3.5 hours and jill can run a marathon in 4.2 hours . what is the ratio of their average running speed ? ( jack : jill ) n0 = 42.0 n1 = 3.5 n2 = 4.2
"""
| jack and jill are marathon runners . jack can finish a marathon ( 42 km ) in 3.5 hours and jill can run a marathon in 4.2 hours . what is the ratio of their average running speed ? ( jack : jill ) | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 1.2)
def check(x): pass
| problem | n0 = 42.0
n1 = 3.5
n2 = 4.2
t0 = n0 / n1
t1 = n0 / n2
answer = t0 / t1
return answer
|
MathQA/113 | python | def problem():
"""
a container contains 1000 liters of milk , from this container 10 liters of milk was taken out and replaced by water . this process was repeated further 2 times . how much milk is now contained by the container ? n0 = 1000.0 n1 = 10.0 n2 = 2.0
"""
| a container contains 1000 liters of milk , from this container 10 liters of milk was taken out and replaced by water . this process was repeated further 2 times . how much milk is now contained by the container ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 970.0)
def check(x): pass
| problem | n0 = 1000.0
n1 = 10.0
n2 = 2.0
t0 = n0 - n1
t1 = t0 - n1
answer = t1 - n1
return answer
|
MathQA/114 | python | def problem():
"""
a squirrel runs up a cylindrical post , in a perfect spiral path making one circuit for each rise of 3 feet . how many feet does the squirrel travels if the post is 18 feet tall and 3 feet in circumference ? n0 = 3.0 n1 = 18.0 n2 = 3.0
"""
| a squirrel runs up a cylindrical post , in a perfect spiral path making one circuit for each rise of 3 feet . how many feet does the squirrel travels if the post is 18 feet tall and 3 feet in circumference ? | 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 = 3.0
n1 = 18.0
n2 = 3.0
t0 = n1 / n0
answer = n2 * t0
return answer
|
MathQA/115 | python | def problem():
"""
in an electric circuit , two resistors with resistances 3 ohm and 5 ohm are connected in parallel . in this case , if r is the combined resistance of these two resistors , then the reciprocal of r is equal to the sum of the reciprocals of two resistors . what is the value ? n0 = 3.0 n1 = 5.0
"""
| in an electric circuit , two resistors with resistances 3 ohm and 5 ohm are connected in parallel . in this case , if r is the combined resistance of these two resistors , then the reciprocal of r is equal to the sum of the reciprocals of two resistors . what is the value ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 1.875)
def check(x): pass
| problem | n0 = 3.0
n1 = 5.0
t0 = n0 + n1
t1 = n0 * n1
answer = t1 / t0
return answer
|
MathQA/116 | python | def problem():
"""
a and b enterd into a partnership investing rs . 16000 and rs . 12000 respectively . after 3 months , a withdrew rs . 5000 while b invested rs . 5000 more . after 3 more months . c joins the business with a capital of rs . 21000 . the share of b exceeds that of c , out of a total profit of rs . 26400 after one year by n0 = 16000.0 n1 = 12000.0 n2 = 3.0 n3 = 5000.0 n4 = 5000.0 n5 = 3.0 n6 = 21000.0 n7 = 26400.0
"""
| a and b enterd into a partnership investing rs . 16000 and rs . 12000 respectively . after 3 months , a withdrew rs . 5000 while b invested rs . 5000 more . after 3 more months . c joins the business with a capital of rs . 21000 . the share of b exceeds that of c , out of a total profit of rs . 26400 after one year by | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 3600.000000000001)
def check(x): pass
| problem | n0 = 16000.0
n1 = 12000.0
n2 = 3.0
n3 = 5000.0
n4 = 5000.0
n5 = 3.0
n6 = 21000.0
n7 = 26400.0
t0 = n1 + n3
t1 = n1 * n2
t2 = n0 * n2
t3 = 12.0 - n2
t4 = n0 - n3
t5 = t0 * t3
t6 = t4 * t3
t7 = t3 - n2
t8 = t1 + t5
t9 = t2 + t6
t10 = n6 * t7
t11 = t9 + t8
t12 = t11 + t10
t13 = t8 / t12
t14 = t10 / t12
t15 = n7 * t13
t16 = n7 * t14
answer = t15 - t16
return answer
|
MathQA/117 | python | def problem():
"""
in a 500 m race , the ratio of the speeds of two contestants a and b is 3 : 4 . a has a start of 155 m . then , a wins by : n0 = 500.0 n1 = 3.0 n2 = 4.0 n3 = 155.0
"""
| in a 500 m race , the ratio of the speeds of two contestants a and b is 3 : 4 . a has a start of 155 m . then , a wins by : | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 500.0
n1 = 3.0
n2 = 4.0
n3 = 155.0
t0 = n0 - n3
t1 = n2 * t0
t2 = t1 / n1
answer = n0 - t2
return answer
|
MathQA/118 | python | def problem():
"""
dan ' s age after 16 years will be 6 times his age 4 years ago . what is the present age of dan ? n0 = 16.0 n1 = 6.0 n2 = 4.0
"""
| dan ' s age after 16 years will be 6 times his age 4 years ago . what is the present age of dan ? | 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 = 16.0
n1 = 6.0
n2 = 4.0
t0 = n1 * n2
t1 = n1 - 1.0
t2 = n0 + t0
answer = t2 / t1
return answer
|
MathQA/119 | python | def problem():
"""
by selling 20 pencils for a rupee a man loses 60 % . how many for a rupee should he sell in order to gain 60 % ? n0 = 20.0 n1 = 60.0 n2 = 60.0
"""
| by selling 20 pencils for a rupee a man loses 60 % . how many for a rupee should he sell in order to gain 60 % ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 5.0)
def check(x): pass
| problem | n0 = 20.0
n1 = 60.0
n2 = 60.0
t0 = n2 + 100.0
t1 = 100.0 - n1
t2 = 1.0 / t1
t3 = t0 * t2
t4 = 1.0 / t3
answer = n0 * t4
return answer
|
MathQA/120 | python | def problem():
"""
after decreasing 24 % in the price of an article costs rs . 1216 . find the actual cost of an article ? n0 = 24.0 n1 = 1216.0
"""
| after decreasing 24 % in the price of an article costs rs . 1216 . find the actual cost of an article ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 1600.0)
def check(x): pass
| problem | n0 = 24.0
n1 = 1216.0
t0 = n0 / 100.0
t1 = 1.0 - t0
answer = n1 / t1
return answer
|
MathQA/121 | python | def problem():
"""
if ( 18 ^ a ) * 9 ^ ( 3 a – 1 ) = ( 2 ^ 3 ) ( 3 ^ b ) and a and b are positive integers , what is the value of a ? n0 = 18.0 n1 = 9.0 n2 = 3.0 n3 = 1.0 n4 = 2.0 n5 = 3.0 n6 = 3.0
"""
| if ( 18 ^ a ) * 9 ^ ( 3 a – 1 ) = ( 2 ^ 3 ) ( 3 ^ b ) and a and b are positive integers , what is the value of a ? | 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 = 18.0
n1 = 9.0
n2 = 3.0
n3 = 1.0
n4 = 2.0
n5 = 3.0
n6 = 3.0
answer = n2 * n3
return answer
|
MathQA/122 | python | def problem():
"""
a student traveled 10 percent of the distance of the trip alone , continued another 30 miles with a friend , and then finished the last half of the trip alone . how many miles long was the trip ? n0 = 10.0 n1 = 30.0
"""
| a student traveled 10 percent of the distance of the trip alone , continued another 30 miles with a friend , and then finished the last half of the trip alone . how many miles long was the trip ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 75.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 30.0
t0 = 1.0 / 2.0
t1 = 1 / n0
t2 = 1.0 - t1
t3 = t2 - t0
answer = n1 / t3
return answer
|
MathQA/123 | python | def problem():
"""
a bag marked at $ 250 is sold for $ 120 . the rate of discount is ? n0 = 250.0 n1 = 120.0
"""
| a bag marked at $ 250 is sold for $ 120 . the rate of discount is ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 52.0)
def check(x): pass
| problem | n0 = 250.0
n1 = 120.0
t0 = n0 - n1
t1 = t0 / n0
answer = t1 * 100.0
return answer
|
MathQA/124 | python | def problem():
"""
a can do a piece of work 30 days . b can do work in 45 days . in how many days they will complete the work together ? n0 = 30.0 n1 = 45.0
"""
| a can do a piece of work 30 days . b can do work in 45 days . in how many days they will complete the work together ? | 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 = 30.0
n1 = 45.0
t0 = 1.0 / n0
t1 = 1.0 / n1
t2 = t0 + t1
answer = 1.0 / t2
return answer
|
MathQA/125 | python | def problem():
"""
average between two sets of numbers is closer to the set with morenumbers ?
"""
| average between two sets of numbers is closer to the set with morenumbers ? | 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 | t0 = 2.0 * 4.0
answer = t0 * 10.0
return answer
|
MathQA/126 | python | def problem():
"""
what is the probability that the sum of two dice will yield a 6 , and then when both are thrown again , their sum will again yield a 6 ? assume that each die has 5 sides with faces numbered 1 to 5 . n0 = 6.0 n1 = 6.0 n2 = 5.0 n3 = 1.0 n4 = 5.0
"""
| what is the probability that the sum of two dice will yield a 6 , and then when both are thrown again , their sum will again yield a 6 ? assume that each die has 5 sides with faces numbered 1 to 5 . | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 0.04000000000000001)
def check(x): pass
| problem | n0 = 6.0
n1 = 6.0
n2 = 5.0
n3 = 1.0
n4 = 5.0
t0 = n2**min(2.0, 5)
t1 = n2 / t0
answer = t1 * t1
return answer
|
MathQA/127 | python | def problem():
"""
the average of runs of a cricket player of 10 innings was 34 . how many runs must he make in his next innings so as to increase his average of runs by 4 ? n0 = 10.0 n1 = 34.0 n2 = 4.0
"""
| the average of runs of a cricket player of 10 innings was 34 . how many runs must he make in his next innings so as to increase his average of runs by 4 ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 78.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 34.0
n2 = 4.0
t0 = n0 + 1.0
t1 = n1 + n2
t2 = n0 * n1
t3 = t0 * t1
answer = t3 - t2
return answer
|
MathQA/128 | python | def problem():
"""
a truck covers a distance of 288 km at a certain speed in 8 hours . how much time would a car take at an average speed which is 18 kmph more than that of the speed of the truck to cover a distance which is 90 km more than that travelled by the truck ? n0 = 288.0 n1 = 8.0 n2 = 18.0 n3 = 90.0
"""
| a truck covers a distance of 288 km at a certain speed in 8 hours . how much time would a car take at an average speed which is 18 kmph more than that of the speed of the truck to cover a distance which is 90 km more than that travelled by the truck ? | 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 = 288.0
n1 = 8.0
n2 = 18.0
n3 = 90.0
t0 = n0 + n3
t1 = n0 / n1
t2 = n2 + t1
answer = t0 / t2
return answer
|
MathQA/129 | python | def problem():
"""
a , b and c play a cricket match . the ratio of the runs scored by them in the match is a : b = 2 : 3 and b : c = 2 : 5 . if the total runs scored by all of them are 75 , the runs scored by b are ? a . 15 b . 18 n0 = 2.0 n1 = 3.0 n2 = 2.0 n3 = 5.0 n4 = 75.0 n5 = 15.0 n6 = 18.0
"""
| a , b and c play a cricket match . the ratio of the runs scored by them in the match is a : b = 2 : 3 and b : c = 2 : 5 . if the total runs scored by all of them are 75 , the runs scored by b are ? a . 15 b . 18 | 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 = 3.0
n2 = 2.0
n3 = 5.0
n4 = 75.0
n5 = 15.0
n6 = 18.0
t0 = n0 / n3
t1 = n0 / n1
t2 = t1 * t0
t3 = t0 + t2
t4 = t3 + 1.0
t5 = n4 / t4
answer = t5 * t0
return answer
|
MathQA/130 | python | def problem():
"""
if 65 percent of a class answered the first question on a certain test correctly , 50 percent answered the second question on the test correctly , and 20 percent answered neither of the questions correctly , what percent answered both correctly ? n0 = 65.0 n1 = 50.0 n2 = 20.0
"""
| if 65 percent of a class answered the first question on a certain test correctly , 50 percent answered the second question on the test correctly , and 20 percent answered neither of the questions correctly , what percent answered both correctly ? | 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 = 65.0
n1 = 50.0
n2 = 20.0
t0 = n0 + n1
t1 = n2 + t0
answer = t1 - 100.0
return answer
|
MathQA/131 | python | def problem():
"""
john and ingrid pay 30 % and 40 % tax annually , respectively . if john makes $ 56000 and ingrid makes $ 73000 , what is their combined tax rate ? n0 = 30.0 n1 = 40.0 n2 = 56000.0 n3 = 73000.0
"""
| john and ingrid pay 30 % and 40 % tax annually , respectively . if john makes $ 56000 and ingrid makes $ 73000 , what is their combined tax rate ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 35.65891472868217)
def check(x): pass
| problem | n0 = 30.0
n1 = 40.0
n2 = 56000.0
n3 = 73000.0
t0 = n2 + n3
t1 = n0 / 100.0
t2 = n1 / 100.0
t3 = n2 * t1
t4 = n3 * t2
t5 = t3 + t4
t6 = t5 / t0
answer = t6 * 100.0
return answer
|
MathQA/132 | python | def problem():
"""
the average ( arithmetic mean ) of 20 , 40 , and 60 is 6 more than the average of 10 , 70 , and what number ? n0 = 20.0 n1 = 40.0 n2 = 60.0 n3 = 6.0 n4 = 10.0 n5 = 70.0
"""
| the average ( arithmetic mean ) of 20 , 40 , and 60 is 6 more than the average of 10 , 70 , and what number ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 22.0)
def check(x): pass
| problem | n0 = 20.0
n1 = 40.0
n2 = 60.0
n3 = 6.0
n4 = 10.0
n5 = 70.0
t0 = n0 + n1
t1 = n3 * 3.0
t2 = n2 + t0
t3 = n4 + t1
t4 = n5 + t3
answer = t2 - t4
return answer
|
MathQA/133 | python | def problem():
"""
the average height of 20 students in a class was calculated as 175 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 131 cm . what was the actual average height of the students in the class ? n0 = 20.0 n1 = 175.0 n2 = 151.0 n3 = 131.0
"""
| the average height of 20 students in a class was calculated as 175 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 131 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(), 174.0)
def check(x): pass
| problem | n0 = 20.0
n1 = 175.0
n2 = 151.0
n3 = 131.0
t0 = n0 * n1
t1 = n2 - n3
t2 = t0 - t1
answer = t2 / n0
return answer
|
MathQA/134 | python | def problem():
"""
a certain number of workers can do a work in 85 days . if there were 10 workers more it could be finished in 10 days less . how many workers are there ? n0 = 85.0 n1 = 10.0 n2 = 10.0
"""
| a certain number of workers can do a work in 85 days . if there were 10 workers more it could be finished in 10 days less . how many workers are there ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 75.0)
def check(x): pass
| problem | n0 = 85.0
n1 = 10.0
n2 = 10.0
t0 = n0 - n1
t1 = n1 * t0
t2 = n0 - t0
answer = t1 / t2
return answer
|
MathQA/135 | python | def problem():
"""
car z travels 48 miles per gallon of gasoline when driven at a constant rate of 45 miles per hour , but travels 20 percent fewer miles per gallon of gasoline when driven at a constant rate of 60 miles per hour . how many miles does car z travel on 10 gallons of gasoline when driven at a constant rate of 60 miles per hour ? n0 = 48.0 n1 = 45.0 n2 = 20.0 n3 = 60.0 n4 = 10.0 n5 = 60.0
"""
| car z travels 48 miles per gallon of gasoline when driven at a constant rate of 45 miles per hour , but travels 20 percent fewer miles per gallon of gasoline when driven at a constant rate of 60 miles per hour . how many miles does car z travel on 10 gallons of gasoline when driven at a constant rate of 60 miles per hour ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 384.00000000000006)
def check(x): pass
| problem | n0 = 48.0
n1 = 45.0
n2 = 20.0
n3 = 60.0
n4 = 10.0
n5 = 60.0
t0 = n2 / 100.0
t1 = 1.0 - t0
t2 = n0 * t1
answer = n4 * t2
return answer
|
MathQA/136 | python | def problem():
"""
mr yadav spends 60 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport . he saves the remaining amount . if his savings at the end of the year were 24000 , how much amount per month would he have spent on clothes and transport ? n0 = 60.0 n1 = 50.0 n2 = 24000.0
"""
| mr yadav spends 60 % of his monthly salary on consumable items and 50 % of the remaining on clothes and transport . he saves the remaining amount . if his savings at the end of the year were 24000 , how much amount per month would he have spent on clothes and transport ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 2000.0)
def check(x): pass
| problem | n0 = 60.0
n1 = 50.0
n2 = 24000.0
t0 = 3.0 * 4.0
t1 = 100.0 - n0
t2 = n1 * t1
t3 = t2 / 100.0
t4 = t3 / 100.0
t5 = n2 / t4
t6 = t5 / t0
answer = t6 * t4
return answer
|
MathQA/137 | python | def problem():
"""
in the class of 50 students , 30 speak tamil and 40 speak telugu . what is the lowest possible number of students who speak both the languages ? n0 = 50.0 n1 = 30.0 n2 = 40.0
"""
| in the class of 50 students , 30 speak tamil and 40 speak telugu . what is the lowest possible number of students who speak both the languages ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 20.0)
def check(x): pass
| problem | n0 = 50.0
n1 = 30.0
n2 = 40.0
t0 = n1 + n2
answer = t0 - n0
return answer
|
MathQA/138 | python | def problem():
"""
two trains start simultaneously from opposite ends of a 175 - km route and travel toward each other on parallel tracks . train x , traveling at a constant rate , completes the 175 - km trip in 4 hours . train y , travelling at a constant rate , completes the 175 - km trip in 3 hours . how many kilometers had train x traveled when it met train y ? n0 = 175.0 n1 = 175.0 n2 = 4.0 n3 = 175.0 n4 = 3.0
"""
| two trains start simultaneously from opposite ends of a 175 - km route and travel toward each other on parallel tracks . train x , traveling at a constant rate , completes the 175 - km trip in 4 hours . train y , travelling at a constant rate , completes the 175 - km trip in 3 hours . how many kilometers had train x traveled when it met train y ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 75.0)
def check(x): pass
| problem | n0 = 175.0
n1 = 175.0
n2 = 4.0
n3 = 175.0
n4 = 3.0
t0 = n0 / n2
t1 = n0 / n4
t2 = t0 + t1
t3 = n0 / t2
answer = t0 * t3
return answer
|
MathQA/139 | python | def problem():
"""
what is the rate percent when the simple interest on rs . 2000 amount to rs . 320 in 4 years ? n0 = 2000.0 n1 = 320.0 n2 = 4.0
"""
| what is the rate percent when the simple interest on rs . 2000 amount to rs . 320 in 4 years ? | 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 = 2000.0
n1 = 320.0
n2 = 4.0
t0 = n1 * 100.0
t1 = n0 * n2
answer = t0 / t1
return answer
|
MathQA/140 | python | def problem():
"""
a ratio between two numbers is 4 : 5 and their l . c . m . is 200 . the first number is n0 = 4.0 n1 = 5.0 n2 = 200.0
"""
| a ratio between two numbers is 4 : 5 and their l . c . m . is 200 . the first number is | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 4.0
n1 = 5.0
n2 = 200.0
t0 = n0 * n1
t1 = n2 / t0
answer = n0 * t1
return answer
|
MathQA/141 | python | def problem():
"""
10 camels cost as much as 24 horses , 16 horses cost as much as 4 oxen and 6 oxen as much as 4 elephants . if the cost of 10 elephants is rs . 170000 , find the cost of a camel ? n0 = 10.0 n1 = 24.0 n2 = 16.0 n3 = 4.0 n4 = 6.0 n5 = 4.0 n6 = 10.0 n7 = 170000.0
"""
| 10 camels cost as much as 24 horses , 16 horses cost as much as 4 oxen and 6 oxen as much as 4 elephants . if the cost of 10 elephants is rs . 170000 , find the cost of a camel ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 6800.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 24.0
n2 = 16.0
n3 = 4.0
n4 = 6.0
n5 = 4.0
n6 = 10.0
n7 = 170000.0
t0 = n1 * n3
t1 = n0 * n2
t2 = n3 * t0
t3 = n4 * t1
t4 = n7 * t2
t5 = n0 * t3
answer = t4 / t5
return answer
|
MathQA/142 | python | def problem():
"""
when the positive integer k is divided by the positive integer n , the remainder is 11 . if k / n = 81.1 , what is the value of n ? n0 = 11.0 n1 = 81.1
"""
| when the positive integer k is divided by the positive integer n , the remainder is 11 . if k / n = 81.1 , what is the value of n ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 81.1)
def check(x): pass
| problem | n0 = 11.0
n1 = 81.1
t0 = 2.0 / 10.0
t1 = n1 * 10.0
t2 = n0 / t0
t3 = t1 - 2.0
t4 = t3 / 10.0
t5 = t4 * t2
t6 = n0 + t5
answer = t6 / t2
return answer
|
MathQA/143 | python | def problem():
"""
if a person walks at 10 km / hr instead of 8 km / hr , he would have walked 14 km more . the actual distance traveled by him is ? n0 = 10.0 n1 = 8.0 n2 = 14.0
"""
| if a person walks at 10 km / hr instead of 8 km / hr , he would have walked 14 km more . the actual distance traveled by him is ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 56.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 8.0
n2 = 14.0
t0 = n0 - n1
t1 = n2 / t0
answer = n1 * t1
return answer
|
MathQA/144 | python | def problem():
"""
3 people candidates contested an election and they received 1136 , 7636 and 11628 votes respectively . what is the percentage of the total votes did the winning candidate get ? n0 = 3.0 n1 = 1136.0 n2 = 7636.0 n3 = 11628.0
"""
| 3 people candidates contested an election and they received 1136 , 7636 and 11628 votes respectively . what is the percentage of the total votes did the winning candidate get ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 56.99999999999999)
def check(x): pass
| problem | n0 = 3.0
n1 = 1136.0
n2 = 7636.0
n3 = 11628.0
t0 = n1 + n2
t1 = n3 + t0
t2 = n3 / t1
answer = t2 * 100.0
return answer
|
MathQA/145 | python | def problem():
"""
a spirit and water solution is sold in a market . the cost per liter of the solution is directly proportional to the part ( fraction ) of spirit ( by volume ) the solution has . a solution of 1 liter of spirit and 1 liter of water costs 40 cents . how many cents does a solution of 1 liter of spirit and 2 liters of water cost ? n0 = 1.0 n1 = 1.0 n2 = 40.0 n3 = 1.0 n4 = 2.0
"""
| a spirit and water solution is sold in a market . the cost per liter of the solution is directly proportional to the part ( fraction ) of spirit ( by volume ) the solution has . a solution of 1 liter of spirit and 1 liter of water costs 40 cents . how many cents does a solution of 1 liter of spirit and 2 liters of water cost ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 1.0
n1 = 1.0
n2 = 40.0
n3 = 1.0
n4 = 2.0
t0 = n0 + n4
t1 = n0 / t0
t2 = n2 * t1
answer = t0 * t2
return answer
|
MathQA/146 | python | def problem():
"""
if 12 men or 20 women can do a piece of work in 54 days , then in how many days can 9 men and 12 women together do the work ? n0 = 12.0 n1 = 20.0 n2 = 54.0 n3 = 9.0 n4 = 12.0
"""
| if 12 men or 20 women can do a piece of work in 54 days , then in how many days can 9 men and 12 women together do the work ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 12.0
n1 = 20.0
n2 = 54.0
n3 = 9.0
n4 = 12.0
t0 = n0 * n2
t1 = n1 * n2
t2 = n3 / t0
t3 = n4 / t1
t4 = t2 + t3
answer = 1 / t4
return answer
|
MathQA/147 | python | def problem():
"""
a and b started a business jointly a ' s investment was thrice the investment of b and the period of his investment was two times the period of investment of b . if b received rs . 4000 as profit , then their total profit is n0 = 4000.0
"""
| a and b started a business jointly a ' s investment was thrice the investment of b and the period of his investment was two times the period of investment of b . if b received rs . 4000 as profit , then their total profit is | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 28000.0)
def check(x): pass
| problem | n0 = 4000.0
t0 = 2.0 * 3.0
t1 = t0 + 1.0
answer = n0 * t1
return answer
|
MathQA/148 | python | def problem():
"""
excluding stoppages , the average speed of a bus is 100 km / hr and including stoppages , the average speed of the bus is 40 km / hr . for how many minutes does the bus stop per hour ? n0 = 100.0 n1 = 40.0
"""
| excluding stoppages , the average speed of a bus is 100 km / hr and including stoppages , the average speed of the bus is 40 km / hr . for how many minutes does the bus stop per hour ? | 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 = 100.0
n1 = 40.0
t0 = n1 / n0
t1 = 1.0 * 60.0
t2 = t0 * 60.0
answer = t1 - t2
return answer
|
MathQA/149 | python | def problem():
"""
tom traveled the entire 60 miles trip . if he did the first 15 miles of at a constant rate 24 miles per hour and the remaining trip of at a constant rate 45 miles per hour , what is the his average speed , in miles per hour ? n0 = 60.0 n1 = 15.0 n2 = 24.0 n3 = 45.0
"""
| tom traveled the entire 60 miles trip . if he did the first 15 miles of at a constant rate 24 miles per hour and the remaining trip of at a constant rate 45 miles per hour , what is the his average speed , in miles per hour ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 36.92307692307692)
def check(x): pass
| problem | n0 = 60.0
n1 = 15.0
n2 = 24.0
n3 = 45.0
t0 = n1 / n2
t1 = n0 - n1
t2 = n3 / t1
t3 = t2 + t0
answer = n0 / t3
return answer
|
MathQA/150 | python | def problem():
"""
a shopkeeper sold 8 articles at the cost price of 10 articles . then find the profit % or lost % n0 = 8.0 n1 = 10.0
"""
| a shopkeeper sold 8 articles at the cost price of 10 articles . then find the profit % or lost % | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 25.0)
def check(x): pass
| problem | n0 = 8.0
n1 = 10.0
t0 = n1 - n0
t1 = t0 / n0
answer = t1 * 100.0
return answer
|
MathQA/151 | python | def problem():
"""
the general hospital is comprised of , 3 / 5 pediatricians , 1 / 4 surgeons , and the rest are gp doctors . if 1 / 4 of the surgeons are heart surgeons , and the hospital doubles the number of gp doctors , what proportion of the hospital are now heart surgeons ? n0 = 3.0 n1 = 5.0 n2 = 1.0 n3 = 4.0 n4 = 1.0 n5 = 4.0
"""
| the general hospital is comprised of , 3 / 5 pediatricians , 1 / 4 surgeons , and the rest are gp doctors . if 1 / 4 of the surgeons are heart surgeons , and the hospital doubles the number of gp doctors , what proportion of the hospital are now heart surgeons ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 0.041666666666666664)
def check(x): pass
| problem | n0 = 3.0
n1 = 5.0
n2 = 1.0
n3 = 4.0
n4 = 1.0
n5 = 4.0
t0 = n2 + n2
t1 = n1 * n3
t2 = n3 + t1
t3 = n0 - t0
answer = t3 / t2
return answer
|
MathQA/152 | python | def problem():
"""
45 pupil , out of them 12 in debate only and 22 in singing only . then how many in both ? n0 = 45.0 n1 = 12.0 n2 = 22.0
"""
| 45 pupil , out of them 12 in debate only and 22 in singing only . then how many in both ? | 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 = 45.0
n1 = 12.0
n2 = 22.0
t0 = n1 + n2
answer = n0 - t0
return answer
|
MathQA/153 | python | def problem():
"""
of the 75 cars on a car lot , 45 have air - conditioning , 35 have power steering , and 12 have both air - conditioning and power steering . how many of the cars on the lot have neither air - conditioning nor power steering ? n0 = 75.0 n1 = 45.0 n2 = 35.0 n3 = 12.0
"""
| of the 75 cars on a car lot , 45 have air - conditioning , 35 have power steering , and 12 have both air - conditioning and power steering . how many of the cars on the lot have neither air - conditioning nor power steering ? | 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 = 75.0
n1 = 45.0
n2 = 35.0
n3 = 12.0
t0 = n1 + n2
t1 = t0 - n3
answer = n0 - t1
return answer
|
MathQA/154 | python | def problem():
"""
a corporation 5 times its annual bonus to 10 of its employees . what percent of the employees ’ new bonus is the increase ? n0 = 5.0 n1 = 10.0
"""
| a corporation 5 times its annual bonus to 10 of its employees . what percent of the employees ’ new bonus is the increase ? | 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 = 5.0
n1 = 10.0
t0 = n0 - 1.0
t1 = t0 / n0
answer = t1 * 100.0
return answer
|
MathQA/155 | python | def problem():
"""
the sum of ages of 5 children born at the intervals of 3 years each is 50 years . what is the age of the youngest child ? n0 = 5.0 n1 = 3.0 n2 = 50.0
"""
| the sum of ages of 5 children born at the intervals of 3 years each is 50 years . what is the age of the youngest child ? | 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 = 5.0
n1 = 3.0
n2 = 50.0
t0 = n2 / n0
t1 = t0 - n1
answer = t1 - n1
return answer
|
MathQA/156 | python | def problem():
"""
yearly subscription to professional magazines cost a company $ 940.00 . to make a 25 % cut in the magazine budget , how much less must be spent ? n0 = 940.0 n1 = 25.0
"""
| yearly subscription to professional magazines cost a company $ 940.00 . to make a 25 % cut in the magazine budget , how much less must be spent ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 705.0)
def check(x): pass
| problem | n0 = 940.0
n1 = 25.0
t0 = 100.0 - n1
t1 = t0 / 100.0
answer = n0 * t1
return answer
|
MathQA/157 | python | def problem():
"""
the mean of 50 observations was 40 . it was found later that an observation 48 was wrongly taken as 23 . the corrected new mean is n0 = 50.0 n1 = 40.0 n2 = 48.0 n3 = 23.0
"""
| the mean of 50 observations was 40 . it was found later that an observation 48 was wrongly taken as 23 . the corrected new mean is | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.5)
def check(x): pass
| problem | n0 = 50.0
n1 = 40.0
n2 = 48.0
n3 = 23.0
t0 = n0 * n1
t1 = n0 - 2.0
t2 = t1 - n3
t3 = t0 + t2
answer = t3 / n0
return answer
|
MathQA/158 | python | def problem():
"""
a certain tests consists 8 sections with 25 questions , numbered from 1 to 25 , in each section . if a student answered all of the even - numbered questions correctly and 3 / 4 of the odd - numbered questions correctly , what was the total number of questions he answered correctly ? a . 150 b . 172 c . 174 d . 175 e . 176 n0 = 8.0 n1 = 25.0 n2 = 1.0 n3 = 25.0 n4 = 3.0 n5 = 4.0 n6 = 150.0 n7 = 172.0 n8 = 174.0 n9 = 175.0 n10 = 176.0
"""
| a certain tests consists 8 sections with 25 questions , numbered from 1 to 25 , in each section . if a student answered all of the even - numbered questions correctly and 3 / 4 of the odd - numbered questions correctly , what was the total number of questions he answered correctly ? a . 150 b . 172 c . 174 d . 175 e . 176 | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 175.0)
def check(x): pass
| problem | n0 = 8.0
n1 = 25.0
n2 = 1.0
n3 = 25.0
n4 = 3.0
n5 = 4.0
n6 = 150.0
n7 = 172.0
n8 = 174.0
n9 = 175.0
n10 = 176.0
t0 = n4 / n5
t1 = n0 * n1
t2 = t1 / 2.0
t3 = t2 * t0
answer = t2 + t3
return answer
|
MathQA/159 | python | def problem():
"""
a train running at the speed of 60 km / hr crosses a pole in 30 seconds . what is the length of the train ? n0 = 60.0 n1 = 30.0
"""
| a train running at the speed of 60 km / hr crosses a pole in 30 seconds . what is the length of the train ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 500.00000000000006)
def check(x): pass
| problem | n0 = 60.0
n1 = 30.0
t0 = n0 * 1000.0
t1 = t0 / 3600.0
answer = n1 * t1
return answer
|
MathQA/160 | python | def problem():
"""
when greenville state university decided to move its fine arts collection to a new library , it had to package the collection in 20 - inch by 20 - inch by 15 - inch boxes . if the university pays $ 0.60 for every box , and if the university needs 3.06 million cubic inches to package the collection , what is the minimum amount the university must spend on boxes ? n0 = 20.0 n1 = 20.0 n2 = 15.0 n3 = 0.6 n4 = 3.06
"""
| when greenville state university decided to move its fine arts collection to a new library , it had to package the collection in 20 - inch by 20 - inch by 15 - inch boxes . if the university pays $ 0.60 for every box , and if the university needs 3.06 million cubic inches to package the collection , what is the minimum amount the university must spend on boxes ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 306.0)
def check(x): pass
| problem | n0 = 20.0
n1 = 20.0
n2 = 15.0
n3 = 0.6
n4 = 3.06
t0 = 1000.0 * 1000.0
t1 = n0 * n0
t2 = n4 * t0
t3 = n2 * t1
t4 = t2 / t3
answer = n3 * t4
return answer
|
MathQA/161 | python | def problem():
"""
the sum of ages of 5 children born at the intervals of 3 years each is 80 years . what is the age of the youngest child ? n0 = 5.0 n1 = 3.0 n2 = 80.0
"""
| the sum of ages of 5 children born at the intervals of 3 years each is 80 years . what is the age of the youngest child ? | 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 = 3.0
n2 = 80.0
t0 = n2 / n0
t1 = t0 - n1
answer = t1 - n1
return answer
|
MathQA/162 | python | def problem():
"""
2 is what percent of 40 ? n0 = 2.0 n1 = 40.0
"""
| 2 is what percent of 40 ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 5.0)
def check(x): pass
| problem | n0 = 2.0
n1 = 40.0
t0 = n0 / n1
answer = t0 * 100.0
return answer
|
MathQA/163 | python | def problem():
"""
in an examination , a student scores 4 marks for every correct answer and loses 1 mark for every wrong answer . if he attempts all 80 questions and secures 120 marks , the number of questions he attempts correctly , is : n0 = 4.0 n1 = 1.0 n2 = 80.0 n3 = 120.0
"""
| in an examination , a student scores 4 marks for every correct answer and loses 1 mark for every wrong answer . if he attempts all 80 questions and secures 120 marks , the number of questions he attempts correctly , is : | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 40.0)
def check(x): pass
| problem | n0 = 4.0
n1 = 1.0
n2 = 80.0
n3 = 120.0
t0 = n2 + n3
t1 = n0 + n1
answer = t0 / t1
return answer
|
MathQA/164 | python | def problem():
"""
a no . when divided by the sum of 555 and 445 gives 2 times their difference as quotient & 10 as remainder . find the no . is ? n0 = 555.0 n1 = 445.0 n2 = 2.0 n3 = 10.0
"""
| a no . when divided by the sum of 555 and 445 gives 2 times their difference as quotient & 10 as remainder . find the no . is ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 220010.0)
def check(x): pass
| problem | n0 = 555.0
n1 = 445.0
n2 = 2.0
n3 = 10.0
t0 = n0 + n1
t1 = n0 - n1
t2 = n2 * t0
t3 = t2 * t1
answer = n3 + t3
return answer
|
MathQA/165 | python | def problem():
"""
in a sports club with 55 members , 23 play badminton and 29 play tennis and 7 do not play either . how many members play both badminton and tennis ? n0 = 55.0 n1 = 23.0 n2 = 29.0 n3 = 7.0
"""
| in a sports club with 55 members , 23 play badminton and 29 play tennis and 7 do not play either . how many members play both badminton and tennis ? | 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 = 55.0
n1 = 23.0
n2 = 29.0
n3 = 7.0
t0 = n1 + n2
t1 = n3 + t0
answer = t1 - n0
return answer
|
MathQA/166 | python | def problem():
"""
a garrison of 500 men has provisions for 20 days . at the end of 14 days , a reinforcement arrives , and it is now found that the provisions will last only for 3 days more . what is the reinforcement ? n0 = 500.0 n1 = 20.0 n2 = 14.0 n3 = 3.0
"""
| a garrison of 500 men has provisions for 20 days . at the end of 14 days , a reinforcement arrives , and it is now found that the provisions will last only for 3 days more . what is the reinforcement ? | 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 = 500.0
n1 = 20.0
n2 = 14.0
n3 = 3.0
t0 = n0 * n1
t1 = n0 * n2
t2 = t0 - t1
t3 = t2 / n3
answer = t3 - n0
return answer
|
MathQA/167 | python | def problem():
"""
how long does a train 165 meters long running at the rate of 54 kmph take to cross a bridge 660 meters in length ? n0 = 165.0 n1 = 54.0 n2 = 660.0
"""
| how long does a train 165 meters long running at the rate of 54 kmph take to cross a bridge 660 meters in length ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 54.995600351971845)
def check(x): pass
| problem | n0 = 165.0
n1 = 54.0
n2 = 660.0
t0 = n0 + n2
t1 = n1 * 0.2778
answer = t0 / t1
return answer
|
MathQA/168 | python | def problem():
"""
in covering a distance of 54 km , abhay takes 2 hours more than sameer . if abhay doubles his speed , then he would take 1 hour less than sameer . abhay ' s speed is : n0 = 54.0 n1 = 2.0 n2 = 1.0
"""
| in covering a distance of 54 km , abhay takes 2 hours more than sameer . if abhay doubles his speed , then he would take 1 hour less than sameer . abhay ' s speed is : | 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 = 54.0
n1 = 2.0
n2 = 1.0
t0 = n1 + n2
t1 = n0 / n1
t2 = n0 - t1
answer = t2 / t0
return answer
|
MathQA/169 | python | def problem():
"""
the length of minute hand of a clock is 5.6 cm . what is the area covered by this in 10 minutes n0 = 5.6 n1 = 10.0
"""
| the length of minute hand of a clock is 5.6 cm . what is the area covered by this in 10 minutes | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 16.426666666666662)
def check(x): pass
| problem | n0 = 5.6
n1 = 10.0
t0 = 3.0 + 4.0
t1 = 10.0 * 2.0
t2 = 1.0 * 60.0
t3 = 100.0 * 3.6
t4 = n0 * n0
t5 = t1 + 2.0
t6 = t2 / t3
t7 = t5 / t0
t8 = t6 * t4
answer = t7 * t8
return answer
|
MathQA/170 | python | def problem():
"""
john has $ 1600 at the beginning of his trip , after spending money , he still has exactly $ 600 less than he spent on the trip . how much money does john still have ? n0 = 1600.0 n1 = 600.0
"""
| john has $ 1600 at the beginning of his trip , after spending money , he still has exactly $ 600 less than he spent on the trip . how much money does john still have ? | 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 = 1600.0
n1 = 600.0
t0 = n0 - n1
answer = t0 / 2.0
return answer
|
MathQA/171 | python | def problem():
"""
students at a school were on average 180 cm tall . the average female height was 170 cm , and the average male height was 181 cms . what was the ratio of men to women ? n0 = 180.0 n1 = 170.0 n2 = 181.0
"""
| students at a school were on average 180 cm tall . the average female height was 170 cm , and the average male height was 181 cms . what was the ratio of men to women ? | 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 = 180.0
n1 = 170.0
n2 = 181.0
t0 = n0 - n1
t1 = n2 - n0
answer = t0 / t1
return answer
|
MathQA/172 | python | def problem():
"""
if the length of the longest chord of a certain circle is 18 , what is the radius of that certain circle ? n0 = 18.0
"""
| if the length of the longest chord of a certain circle is 18 , what is the radius of that certain circle ? | 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 = 18.0
answer = n0 / 2.0
return answer
|
MathQA/173 | python | def problem():
"""
a cistern 10 meters long and 4 meters wide contains water up to a depth of 1 meter 25 cm . what is the total area of the wet surface ? n0 = 10.0 n1 = 4.0 n2 = 1.0 n3 = 25.0
"""
| a cistern 10 meters long and 4 meters wide contains water up to a depth of 1 meter 25 cm . what is the total area of the wet surface ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 75.0)
def check(x): pass
| problem | n0 = 10.0
n1 = 4.0
n2 = 1.0
n3 = 25.0
t0 = n3 / 100.0
t1 = n0 * n1
t2 = n2 + t0
t3 = n1 * t2
t4 = n0 * t2
t5 = t3 * 2.0
t6 = t4 * 2.0
t7 = t1 + t5
answer = t7 + t6
return answer
|
MathQA/174 | python | def problem():
"""
if 50 % of ( x - y ) = 30 % of ( x + y ) then what percent of x is y ? n0 = 50.0 n1 = 30.0
"""
| if 50 % of ( x - y ) = 30 % of ( x + y ) then what percent of x is y ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 25.0)
def check(x): pass
| problem | n0 = 50.0
n1 = 30.0
t0 = n0 + n1
t1 = n0 - n1
t2 = t1 / t0
answer = t2 * 100.0
return answer
|
MathQA/175 | python | def problem():
"""
how many seconds does sandy take to cover a distance of 600 meters , if sandy runs at a speed of 18 km / hr ? n0 = 600.0 n1 = 18.0
"""
| how many seconds does sandy take to cover a distance of 600 meters , if sandy runs at a speed of 18 km / hr ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 119.99040076793857)
def check(x): pass
| problem | n0 = 600.0
n1 = 18.0
t0 = n1 * 0.2778
answer = n0 / t0
return answer
|
MathQA/176 | python | def problem():
"""
calculate how many days it will take for 10 boys to paint a 80 m long wall if 6 boys can paint a 70 m long wall in 8 days , n0 = 10.0 n1 = 80.0 n2 = 6.0 n3 = 70.0 n4 = 8.0
"""
| calculate how many days it will take for 10 boys to paint a 80 m long wall if 6 boys can paint a 70 m long wall in 8 days , | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 5.485714285714286)
def check(x): pass
| problem | n0 = 10.0
n1 = 80.0
n2 = 6.0
n3 = 70.0
n4 = 8.0
t0 = n2 * n4
t1 = n0 * n3
t2 = n1 * t0
answer = t2 / t1
return answer
|
MathQA/177 | python | def problem():
"""
a no . when divided by the sum of 555 and 445 gives 2 times their difference as quotient & 60 as remainder . find the no . is ? n0 = 555.0 n1 = 445.0 n2 = 2.0 n3 = 60.0
"""
| a no . when divided by the sum of 555 and 445 gives 2 times their difference as quotient & 60 as remainder . find the no . is ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 220060.0)
def check(x): pass
| problem | n0 = 555.0
n1 = 445.0
n2 = 2.0
n3 = 60.0
t0 = n0 + n1
t1 = n0 - n1
t2 = n2 * t0
t3 = t2 * t1
answer = n3 + t3
return answer
|
MathQA/178 | python | def problem():
"""
a monkey start climbing up a tree 18 ft tall . each hour it hops 3 ft and slips back 2 ft . how much time would it take the monkey to reach the top . n0 = 18.0 n1 = 3.0 n2 = 2.0
"""
| a monkey start climbing up a tree 18 ft tall . each hour it hops 3 ft and slips back 2 ft . how much time would it take the monkey to reach the top . | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 16.0)
def check(x): pass
| problem | n0 = 18.0
n1 = 3.0
n2 = 2.0
t0 = n1 - n2
t1 = n0 / t0
answer = t1 - n2
return answer
|
MathQA/179 | python | def problem():
"""
jane and ashley take 8 days and 40 days respectively to complete a project when they work on it alone . they thought if they worked on the project together , they would take fewer days to complete it . during the period that they were working together , jane took an eight day leave from work . this led to jane ' s working for four extra days on her own to complete the project . how long did it take to finish the project ? n0 = 8.0 n1 = 40.0
"""
| jane and ashley take 8 days and 40 days respectively to complete a project when they work on it alone . they thought if they worked on the project together , they would take fewer days to complete it . during the period that they were working together , jane took an eight day leave from work . this led to jane ' s working for four extra days on her own to complete the project . how long did it take to finish the project ? | 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 = 8.0
n1 = 40.0
t0 = 4.0 + 4.0
t1 = 1.0 / n0
t2 = 1.0 / n1
t3 = t1 + t2
t4 = t1 * 4.0
t5 = t0 * t2
t6 = 1.0 - t4
t7 = t6 - t5
t8 = t7 / t3
t9 = t0 + t8
answer = t9 + 4.0
return answer
|
MathQA/180 | python | def problem():
"""
if an integer n is to be selected at random from 1 to 100 , inclusive , what is probability n ( n + 1 ) will be divisible by 32 ? n0 = 1.0 n1 = 100.0 n2 = 1.0 n3 = 32.0
"""
| if an integer n is to be selected at random from 1 to 100 , inclusive , what is probability n ( n + 1 ) will be divisible by 32 ? | 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 = 1.0
n1 = 100.0
n2 = 1.0
n3 = 32.0
answer = 2.0 / n3
return answer
|
MathQA/181 | python | def problem():
"""
today jim is twice as old as fred , and sam is 4 years younger than fred . 4 years ago jim was 8 times as old as sam . how old is jim now ? n0 = 4.0 n1 = 4.0 n2 = 8.0
"""
| today jim is twice as old as fred , and sam is 4 years younger than fred . 4 years ago jim was 8 times as old as sam . how old is jim now ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 20.0)
def check(x): pass
| problem | n0 = 4.0
n1 = 4.0
n2 = 8.0
t0 = n2 * n2
t1 = n2 - 2.0
t2 = t0 - n0
t3 = t2 / t1
answer = t3 * 2.0
return answer
|
MathQA/182 | python | def problem():
"""
a bullet train 150 m long is running with a speed of 30 kmph . in what time will it pass a man who is running at 6 kmph in the direction opposite to that in which the bullet train is going ? n0 = 150.0 n1 = 30.0 n2 = 6.0
"""
| a bullet train 150 m long is running with a speed of 30 kmph . in what time will it pass a man who is running at 6 kmph in the direction opposite to that in which the bullet train is going ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 15.0)
def check(x): pass
| problem | n0 = 150.0
n1 = 30.0
n2 = 6.0
t0 = n1 + n2
t1 = t0 * 1000.0
t2 = t1 / 3600.0
answer = n0 / t2
return answer
|
MathQA/183 | python | def problem():
"""
a dealer purchases 15 articles for rs . 25 and sells 12 articles for rs . 30 . find the profit percentage ? n0 = 15.0 n1 = 25.0 n2 = 12.0 n3 = 30.0
"""
| a dealer purchases 15 articles for rs . 25 and sells 12 articles for rs . 30 . find the profit percentage ? | 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 = 15.0
n1 = 25.0
n2 = 12.0
n3 = 30.0
t0 = 1.0 + 4.0
t1 = n1 * 4.0
t2 = n3 * t0
answer = t2 - t1
return answer
|
MathQA/184 | python | def problem():
"""
a worker ' s daily wage is increased by 50 % and the new wage is $ 30 per day . what was the worker ' s daily wage before the increase ? n0 = 50.0 n1 = 30.0
"""
| a worker ' s daily wage is increased by 50 % and the new wage is $ 30 per day . what was the worker ' s daily wage before the increase ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 20.0)
def check(x): pass
| problem | n0 = 50.0
n1 = 30.0
t0 = n0 / 100.0
t1 = t0 + 1.0
answer = n1 / t1
return answer
|
MathQA/185 | python | def problem():
"""
if the weight of 12 meters long rod is 13.4 kg . what is the weight of 6 meters long rod ? n0 = 12.0 n1 = 13.4 n2 = 6.0
"""
| if the weight of 12 meters long rod is 13.4 kg . what is the weight of 6 meters long rod ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 6.7)
def check(x): pass
| problem | n0 = 12.0
n1 = 13.4
n2 = 6.0
t0 = n1 * n2
answer = t0 / n0
return answer
|
MathQA/186 | python | def problem():
"""
a store sells 2 kinds of jelly beans mixes ( a and b ) both made up of red and yellow beans . if b contains 20 % more red beans than a but 10 % fewer yellow beans . and jar a contains twice as many red beans as yellow by what percent is the number of beans in jar b larger than the number in jar a n0 = 2.0 n1 = 20.0 n2 = 10.0
"""
| a store sells 2 kinds of jelly beans mixes ( a and b ) both made up of red and yellow beans . if b contains 20 % more red beans than a but 10 % fewer yellow beans . and jar a contains twice as many red beans as yellow by what percent is the number of beans in jar b larger than the number in jar a | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 10.000000000000009)
def check(x): pass
| problem | n0 = 2.0
n1 = 20.0
n2 = 10.0
t0 = n1 + 100.0
t1 = 100.0 - n2
t2 = t0 + t1
t3 = t2 / 100.0
t4 = t3 - 2.0
answer = t4 * 100.0
return answer
|
MathQA/187 | python | def problem():
"""
find the greatest common factor ( gfc ) of 24 , 40 and 60 . n0 = 24.0 n1 = 40.0 n2 = 60.0
"""
| find the greatest common factor ( gfc ) of 24 , 40 and 60 . | 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 | import scipy
n0 = 24.0
n1 = 40.0
n2 = 60.0
t0 = scipy.gcd(int(n0), int(n1))
answer = scipy.gcd(int(n2), int(t0))
return answer
|
MathQA/188 | python | def problem():
"""
when 242 is divided by a certain divisor the remainder obtained is 12 . when 698 is divided by the same divisor the remainder obtained is 16 . however , when the sum of the two numbers 242 and 698 is divided by the divisor , the remainder obtained is 10 . what is the value of the divisor ? n0 = 242.0 n1 = 12.0 n2 = 698.0 n3 = 16.0 n4 = 242.0 n5 = 698.0 n6 = 10.0
"""
| when 242 is divided by a certain divisor the remainder obtained is 12 . when 698 is divided by the same divisor the remainder obtained is 16 . however , when the sum of the two numbers 242 and 698 is divided by the divisor , the remainder obtained is 10 . what is the value of the divisor ? | 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 = 242.0
n1 = 12.0
n2 = 698.0
n3 = 16.0
n4 = 242.0
n5 = 698.0
n6 = 10.0
t0 = n1 + n3
answer = t0 - n6
return answer
|
MathQA/189 | python | def problem():
"""
the cost price of an article is 64 % of the marked price . calculate the gain percent after allowing a discount of 20 % ? n0 = 64.0 n1 = 20.0
"""
| the cost price of an article is 64 % of the marked price . calculate the gain percent after allowing a discount of 20 % ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 25.0)
def check(x): pass
| problem | n0 = 64.0
n1 = 20.0
t0 = 100.0 - n1
t1 = t0 / n0
t2 = t1 - 1.0
answer = t2 * 100.0
return answer
|
MathQA/190 | python | def problem():
"""
a and b start a business jointly . a invests rs 16000 for 8 month and b remains in the business for 4 months . out of total profit , b claims 2 / 7 of the profit . how much money was contributed by b ? n0 = 16000.0 n1 = 8.0 n2 = 4.0 n3 = 2.0 n4 = 7.0
"""
| a and b start a business jointly . a invests rs 16000 for 8 month and b remains in the business for 4 months . out of total profit , b claims 2 / 7 of the profit . how much money was contributed by b ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 12800.0)
def check(x): pass
| problem | n0 = 16000.0
n1 = 8.0
n2 = 4.0
n3 = 2.0
n4 = 7.0
t0 = n2 + 1.0
t1 = n1 / n2
t2 = n0 * n1
t3 = t1 * t2
t4 = n2 * t0
answer = t3 / t4
return answer
|
MathQA/191 | python | def problem():
"""
john and steve are speed walkers in a race . john is 10 meters behind steve when he begins his final push . john blazes to the finish at a pace of 4.2 m / s , while steve maintains a blistering 3.7 m / s speed . if john finishes the race 2 meters ahead of steve , how long was john ’ s final push ? n0 = 10.0 n1 = 4.2 n2 = 3.7 n3 = 2.0
"""
| john and steve are speed walkers in a race . john is 10 meters behind steve when he begins his final push . john blazes to the finish at a pace of 4.2 m / s , while steve maintains a blistering 3.7 m / s speed . if john finishes the race 2 meters ahead of steve , how long was john ’ s final push ? | 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.2
n2 = 3.7
n3 = 2.0
t0 = n0 + n3
t1 = n1 - n2
t2 = n2 * t0
t3 = t2 / t1
t4 = t0 + t3
answer = t4 / n1
return answer
|
MathQA/192 | python | def problem():
"""
in the standard formulation of a flavored drink the ratio by volume of flavoring to corn syrup to water is 1 : 12 : 30 . in the ` ` sport ' ' formulation , the ratio of flavoring to corn syrup is three times as great as in the standard formulation , and the ratio of flavoring to water is half that of the standard formulation . if a large bottle of the ` ` sport ' ' formulation contains 3 ounces of corn syrup , how many ounces of water does it contain ? n0 = 1.0 n1 = 12.0 n2 = 30.0 n3 = 3.0
"""
| in the standard formulation of a flavored drink the ratio by volume of flavoring to corn syrup to water is 1 : 12 : 30 . in the ` ` sport ' ' formulation , the ratio of flavoring to corn syrup is three times as great as in the standard formulation , and the ratio of flavoring to water is half that of the standard formulation . if a large bottle of the ` ` sport ' ' formulation contains 3 ounces of corn syrup , how many ounces of water does it contain ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 45.0)
def check(x): pass
| problem | n0 = 1.0
n1 = 12.0
n2 = 30.0
n3 = 3.0
t0 = n3 / 4.0
t1 = n2 * 2.0
answer = t0 * t1
return answer
|
MathQA/193 | python | def problem():
"""
two employees x and y are paid a total of rs . 440 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 = 440.0 n1 = 120.0
"""
| two employees x and y are paid a total of rs . 440 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(), 200.0)
def check(x): pass
| problem | n0 = 440.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/194 | python | def problem():
"""
how many gallons of milk that is 10 percent butter - fat must be added to 8 gallons of milk that is 25 percent butterfat to obtain milk that is 20 percent butterfat ? n0 = 10.0 n1 = 8.0 n2 = 25.0 n3 = 20.0
"""
| how many gallons of milk that is 10 percent butter - fat must be added to 8 gallons of milk that is 25 percent butterfat to obtain milk that is 20 percent butterfat ? | 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 = 10.0
n1 = 8.0
n2 = 25.0
n3 = 20.0
t0 = n2 - n3
t1 = n1 * t0
answer = t1 / n0
return answer
|
MathQA/195 | python | def problem():
"""
a envelop weight 8.5 gm , if 820 of these envelop are sent with an advertisement mail . how much wieght ? n0 = 8.5 n1 = 820.0
"""
| a envelop weight 8.5 gm , if 820 of these envelop are sent with an advertisement mail . how much wieght ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 6.97)
def check(x): pass
| problem | n0 = 8.5
n1 = 820.0
t0 = n0 * n1
answer = t0 / 1000.0
return answer
|
MathQA/196 | python | def problem():
"""
the area of a rectangular field is equal to 500 square meters . its perimeter is equal to 90 meters . find the width of this rectangle . n0 = 500.0 n1 = 90.0
"""
| the area of a rectangular field is equal to 500 square meters . its perimeter is equal to 90 meters . find the width of this rectangle . | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 20.0)
def check(x): pass
| problem | import math
n0 = 500.0
n1 = 90.0
t0 = n1 / 2.0
t1 = n0 * 4.0
t2 = t0 * t0
t3 = t2 - t1
t4 = math.sqrt(max(0, t3))
t5 = t0 - t4
answer = t5 / 2.0
return answer
|
MathQA/197 | python | def problem():
"""
the angle between the minute hand and the hour hand of a clock when the time is 11.30 , is n0 = 11.3
"""
| the angle between the minute hand and the hour hand of a clock when the time is 11.30 , is | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 164.99999999999997)
def check(x): pass
| problem | n0 = 11.3
t0 = 1.0 + 4.0
t1 = 60.0 / 2.0
t2 = 3.0 * 4.0
t3 = t2 - 1.0
t4 = t2 / t3
t5 = t0 * t3
t6 = t4 * t5
t7 = t6 - t1
t8 = t7 * t3
answer = t8 / 2.0
return answer
|
MathQA/198 | python | def problem():
"""
there are 16 bees in the hive , then 6 more fly . how many bees are there in all ? n0 = 16.0 n1 = 6.0
"""
| there are 16 bees in the hive , then 6 more fly . how many bees are there in all ? | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 22.0)
def check(x): pass
| problem | n0 = 16.0
n1 = 6.0
answer = n0 + n1
return answer
|
MathQA/199 | python | def problem():
"""
a train moves with a speed of 108 kmph . its speed in metres per second is : n0 = 108.0
"""
| a train moves with a speed of 108 kmph . its speed in metres per second is : | import math
def compare(x, y):
return math.fabs(x-y)<1e-8
candidate = problem
assert compare(candidate(), 30.002399999999998)
def check(x): pass
| problem | n0 = 108.0
answer = n0 * 0.2778
return answer
|