fork download
  1. hour=int(input())
  2. rate=int(input())
  3. if hour<0 or rate<0:
  4. print("Lỗi nhập dữ liệu")
  5. else:
  6. if hour<=40:
  7. tien=hour*rate
  8. else:
  9. tien=40*rate+(hour-40)*rate*1.5
  10. print(tien)
Success #stdin #stdout 0.02s 9344KB
stdin
45
10
stdout
475.0