aneliabogeva

Training Lab

Apr 15th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import math
  2.  
  3. w = float(input())
  4. h = float(input())
  5.  
  6. width = w*100
  7. height = h *100 - 100
  8.  
  9. row = math.floor(height / 70)
  10. coloumn = math.floor(width / 120)
  11.  
  12. totalNumber = row * coloumn - 3
  13.  
  14. print(totalNumber)
Advertisement
Add Comment
Please, Sign In to add comment