simeonshopov

Стая с работни места

Sep 2nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import math
  2. length=float(input())
  3. width=float(input())
  4. if 3<=width<=length<=100:
  5.   rows=math.trunc((length*100)/120)
  6.   cols=math.trunc(((width*100)-100)/70)
  7.   seats=rows*cols-3
  8.   print(seats)
  9. else:
  10.   print('Invalid combination.')
  11.   quit()
Add Comment
Please, Sign In to add comment