Advertisement
GroZnik81

1vata

Dec 17th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. monney_need = float(input())
  2. months = int(input())
  3. end_months_monney = 0
  4. # current_monney = 0
  5. total_money = 0
  6. for every_month in range(months):
  7. end_months_monney += monney_need * 0.25
  8. if not months % 2 == 0 and months != 1:
  9. end_months_monney -= monney_need * 0.16
  10. elif months % 4 == 0:
  11. end_months_monney += end_months_monney *0.25
  12.  
  13. total_money = end_months_monney - monney_need
  14.  
  15. if total_money >= monney_need:
  16. print(f"Bravo! You can go to Disneyland and you will have {total_money}lv. for souvenirs")
  17. else:
  18. print(f"Sorry. You need{total_money}lv. more")
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement