Advertisement
shubhamgoyal

Untitled

Aug 19th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def make_bricks(small,big,goal):
  2. if (small + big * 5) < goal:
  3. return False
  4. elif (big * 5) < goal:
  5. if (goal - big * 5) <= small:
  6. print True
  7. else:
  8. return False
  9. else:
  10. remainder = goal % 5
  11. if small < remainder:
  12. print False
  13. else:
  14. print True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement