make_bricks
1
2
3
4
5
6
7
8
9
10
11
def make_bricks(small, big, goal):
big_can_be_used = goal // 5 # 2
if (big_can_be_used > big):
if (big * 5 + small >= goal):
return True
else:
if (big_can_be_used * 5 + small >= goal):
return True
return False
https://codingbat.com/prob/p118406