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(f"{tien:.1f}")
Success #stdin #stdout 0.02s 9308KB
stdin
30
25
stdout
750.0