Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. while True:
  2. try:
  3. i,j = list(map(int, input().strip().split(" ")))
  4.  
  5. soma = 0
  6. for x in range(i):
  7. vetor = list(map(int, input().strip().split(" ")))
  8. soma += sum(vetor)
  9.  
  10. sacas = soma // 60
  11. litros = soma - (sacas * 60)
  12.  
  13. print("%i saca(s) e %i litro(s)" %(sacas, litros))
  14.  
  15. except EOFError:
  16. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement