Sofya_Soloveva_

Untitled

Jul 17th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. s1,s2,s3 = 0,0,0
  2. estimation = [None] * 18
  3. for i in range(18):
  4.     estimation[i] = int(input())
  5.     if i < 6:
  6.         s1 += estimation[i]    
  7.     elif i >= 6 and i < 12:
  8.         s2 += estimation[i]
  9.     else:
  10.         s3 += estimation[i]
  11. if s2 > s1 and s2 > s3:
  12.     print(2)
  13. if s3 > s1 and s3 > s2:
  14.     print(3)
  15. if s1 > s2 and s1 > s3:
  16.     print(1)
  17. if s1 == s2 and s2 == s3:
  18.     print('  ',123)
Advertisement
Add Comment
Please, Sign In to add comment