結果
問題 |
No.628 Tagの勢い
|
ユーザー |
|
提出日時 | 2018-02-22 09:52:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 478 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-07 22:34:37 |
合計ジャッジ時間 | 1,773 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 19 |
ソースコード
t={} n=int(input()) for i in range(n): no=input() m,s=map(int,input().split()) l=input().split() for j in l: if j not in t: t.update({j:s}) else: t[j]+=s t={k:v for k,v in sorted(t.items(), key=lambda x:x[1],reverse=True)} v=sorted([x for x in set(t.values())],reverse=1) c=0 while v: s=v.pop(0) d=((k,v) for k,v in sorted({k:v for k,v in t.items() if v==s}.items())) for i,j in d: print(c,i,j) c+=1 if c>10: v=[] break