Advertisement
jurgemaister

Untitled

Nov 8th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def checkio(data):
  2.     balance, withdrawal = data
  3.    
  4.     for w in withdrawal:
  5.         if w >= balance:
  6.             continue
  7.         elif w % 5 != 0:
  8.             continue
  9.         balance -= w + (w * 0.01)
  10.         balance = math.floor(balance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement