Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max_house = 0
- max_house_liters = 0
- bottles_sum = 0
- for i in range(8):
- number, bottles = list(map(int, input().split()))
- bottles_sum += bottles
- current_liters = bottles * 19
- if current_liters > max_house_liters:
- max_house_liters = current_liters
- max_house = number
- print('Кол-во бутылей:', bottles_sum, '\n'+
- 'Кол-во литров:', bottles_sum*19, '\n'+
- 'Номер корпуса с наибольшим кол-вом воды:', max_house)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement