Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- party = int(input())
- days = int(input())
- coins = 0
- for i in range(1, days + 1):
- if i % 15 == 0:
- party += 5
- if i % 10 == 0:
- party -= 2
- if i % 5 == 0:
- coins += party * 20
- if i % 3 == 0:
- coins -= party * 2
- if i % 3 == 0:
- coins -= party * 3
- coins += 50 - party * 2
- print(f'{party} companions received {int(coins / party)} coins each.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement