Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=int(input())
- for _ in range(t):
- s=input()
- k=int(input())
- d = {}
- mas=set()
- for b in range(k):
- u=list(input().split())
- playlist=u[0][1:]
- count=int(u[-1])
- for n in range(count):
- v=list(input().split())
- namesong=(v[0])[1:]
- Muse=(v[v.index('by')+1])[1:-1]
- mas.add(namesong)
- longsong=(int(v[-1][:2])*60+int(v[-1][3:5]))
- d[playlist]={namesong: longsong, 'globtime': 0, 'cntpros': 0}
- work=int(input())
- for qq in range(work):
- cin=list(input().split())
- if cin[0]=='Start':
- gooooool=cin[1][1:]
- time=(int(cin[-1][:2])*60+int(cin[-1][3:5]))
- d[gooooool]['globtime']+=time
- else:
- gooooool = cin[1][1:]
- time = (int(cin[-1][:2]) * 60 + int(cin[-1][3:5]))
- d[gooooool]['globtime'] += time
- for i in d:
- print(d[i], "by autor times", d[gooooool]['globtime']//time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement