Advertisement
Zuneve

не получилось

Feb 6th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. t=int(input())
  2. for _ in range(t):
  3. s=input()
  4. k=int(input())
  5. d = {}
  6. mas=set()
  7.  
  8. for b in range(k):
  9.  
  10. u=list(input().split())
  11. playlist=u[0][1:]
  12. count=int(u[-1])
  13. for n in range(count):
  14. v=list(input().split())
  15. namesong=(v[0])[1:]
  16. Muse=(v[v.index('by')+1])[1:-1]
  17. mas.add(namesong)
  18. longsong=(int(v[-1][:2])*60+int(v[-1][3:5]))
  19. d[playlist]={namesong: longsong, 'globtime': 0, 'cntpros': 0}
  20. work=int(input())
  21. for qq in range(work):
  22. cin=list(input().split())
  23. if cin[0]=='Start':
  24. gooooool=cin[1][1:]
  25. time=(int(cin[-1][:2])*60+int(cin[-1][3:5]))
  26. d[gooooool]['globtime']+=time
  27. else:
  28. gooooool = cin[1][1:]
  29. time = (int(cin[-1][:2]) * 60 + int(cin[-1][3:5]))
  30. d[gooooool]['globtime'] += time
  31. for i in d:
  32. print(d[i], "by autor times", d[gooooool]['globtime']//time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement