Advertisement
Guest User

it_school_2

a guest
May 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. max_house = 0
  2. max_house_liters = 0
  3. bottles_sum = 0
  4. for i in range(8):
  5.     number, bottles = list(map(int, input().split()))
  6.     bottles_sum += bottles
  7.     current_liters = bottles * 19
  8.     if current_liters > max_house_liters:
  9.         max_house_liters = current_liters
  10.         max_house = number
  11. print('Кол-во бутылей:', bottles_sum, '\n'+
  12.       'Кол-во литров:', bottles_sum*19, '\n'+
  13.       'Номер корпуса с наибольшим кол-вом воды:', max_house)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement