Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_bricks(small,big,goal):
- if (small + big * 5) < goal:
- return False
- elif (big * 5) < goal:
- if (goal - big * 5) <= small:
- print True
- else:
- return False
- else:
- remainder = goal % 5
- if small < remainder:
- print False
- else:
- print True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement