Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import math
  4. a = int(input())
  5. b = int(input())
  6. c = int(input())
  7. desks = 0
  8.  
  9. nums = [a,b,c]
  10. for x in nums:
  11. if x % 2 == 0:
  12. desks += int(x/2)
  13. else:
  14. desks += int(math.floor(x/2) + 1)
  15.  
  16. print desks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement