結果
問題 |
No.628 Tagの勢い
|
ユーザー |
![]() |
提出日時 | 2020-09-02 12:00:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-21 14:07:07 |
合計ジャッジ時間 | 1,534 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 11 |
ソースコード
n=int(input()) ans=dict() for _ in range(n): input() m,s=map(int,input().split()) t=list(input().split()) for u in t: if not u in ans:ans[u]=0 ans[u]+=s ans=dict(sorted(ans.items(),key=lambda x:x[1],reverse=True)) buf={k:ans[k] for k in list(ans)[:min(len(ans),10)]} for a in buf.items(): print(*a)