Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- отв 345925
- tovary = list()
- tovary_dorozhe_90 = list()
- for i in range(int(input())):
- price = int(input())
- if price > 90:
- tovary_dorozhe_90.append(price)
- else:
- tovary.append(price)
- tovary_dorozhe_90.sort()
- for i in range(len(tovary_dorozhe_90)// 2):
- tovary_dorozhe_90[i] *= 0.65
- print(sum(tovary) + sum(tovary_dorozhe_90)) # 345924.4 = 345925
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement