Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adv_days = int(input())
- player_count = int(input())
- group_energy = float(input())
- water_day_person = float(input())
- food_day_person = float(input())
- total_water = water_day_person * player_count * adv_days
- total_food = food_day_person * player_count * adv_days
- quest = True
- for day in range(1, adv_days + 1):
- energy_loss = float(input())
- group_energy -= energy_loss
- if group_energy <= 0:
- quest = False
- break
- if day % 2 == 0:
- group_energy += group_energy * 0.05
- total_water *= 0.7
- if day % 3 == 0:
- total_food -= total_food / player_count
- group_energy *= 1.1
- if quest:
- print(f'You are ready for the quest. You will be left with - {group_energy:.2f} energy!')
- else:
- print(f'You will run out of energy. You will be left with {total_food:.2f} food and {total_water:.2f} water.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement