# 07. Hotel Room

May 22nd, 2022
1,122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. month = input()
2. nightsCount = int(input())
3.
4. apartmentPrice = 0
5. studioPrice = 0
6.
7. if month == "May" or month == "October":
8.     apartmentPrice = nightsCount * 65
9.     studioPrice = nightsCount * 50
10. elif month == "June" or month == "September":
11.     apartmentPrice = nightsCount * 68.70
12.     studioPrice = nightsCount * 75.20
13. elif month == "July" or month == "August":
14.     apartmentPrice = nightsCount * 77
15.     studioPrice = nightsCount * 76
16.
17. if nightsCount > 14 and (month == "May" or month == "October"):
18.     studioPrice *= 0.70
19. elif nightsCount > 7 and (month == "May" or month == "October"):
20.     studioPrice *= 0.95
21. elif nightsCount > 14 and (month == "June" or month == "September"):
22.     studioPrice *= 0.80
23.
24. if nightsCount > 14:
25.     apartmentPrice *= 0.90
26.
27. print(f"Apartment: {apartmentPrice:.2f} lv.")
28. print(f"Studio: {studioPrice:.2f} lv.")