fork download
  1. # Ввод данных
  2. games = [
  3. (26, 17),
  4. (13, 15),
  5. (19, 11),
  6. (14, 16)
  7. ]
  8.  
  9. team1 = 0
  10. team2 = 0
  11.  
  12. for a, b in games:
  13. if a > b:
  14. team1 += 1
  15. elif b > a:
  16. team2 += 1
  17.  
  18. if team1 > team2:
  19. print("1-komanda")
  20. elif team2 > team1:
  21. print("2-komanda")
  22. else:
  23. print("ten oiun") # ничья
  24.  
Success #stdin #stdout 0.11s 14124KB
stdin
Standard input is empty
stdout
ten oiun