Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. pprogramme = 0        
  2. shortprogramme = 0
  3. i = 0      
  4. bossprograme = 0        
  5. a = list(map(int, input().split(' ')))*17
  6. while i<6:
  7.     bossprograme+=a[i]
  8.     i+=1
  9. print (bossprograme)
  10. for l in range (6, 12):
  11.     shortprogramme += a[l]
  12. print (shortprogramme)
  13. for m in range (12, 18):
  14.     pprogramme+=a[m]
  15. print (pprogramme)
  16. if (bossprograme>shortprogramme) and (bossprograme>pprogramme) :
  17.     print (bossprograme)
  18. if bossprograme<shortprogramme and pprogramme<shortprogramme :
  19.     print (shortprogramme )
  20. if pprogramme>bossprograme and pprogramme>shortprogramme:
  21.     print (pprogramme)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement