Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. CountPlayers=int(input())
  2. fios=[]
  3. goals=[]
  4. years=[]
  5. for i in range(CountPlayers):
  6. Players=input("")
  7. kk=Players.split()
  8. fio=kk[0]+" "+kk[1]
  9. fios.append(fio)
  10. years.append(int(kk[2]))
  11. goals.append(int(kk[3]))
  12. if goals[i]==0:
  13. fios.pop(i)
  14. years.pop(i)
  15. goals.pop(i)
  16. fios.sort()
  17. print(fios)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement