Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lost_fight = int(input())
- helmet = float(input())
- sword = float(input())
- shield = float(input())
- armour = float(input())
- price = int(lost_fight / 2) * helmet + int(lost_fight / 3) * sword + int(lost_fight / 6) * shield + int(lost_fight / 12) * armour
- print(f'Gladiator expenses: {price:.2f} aureus')
- Тарикатско решение:)
- lost_fight = int(input())
- print(f'Gladiator expenses: {(int(lost_fight / 2) * float(input()) + int(lost_fight / 3) * float(input()) + int(lost_fight / 6) * float(input()) + int(lost_fight / 12) * float(input())):.2f} aureus')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement