結果
問題 |
No.628 Tagの勢い
|
ユーザー |
|
提出日時 | 2018-01-05 21:56:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-07 22:10:30 |
合計ジャッジ時間 | 1,529 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 18 |
ソースコード
t = int(input()) d = {} for i in range(t): no = int(input()) tc, sc = [int(x) for x in input().split()] for tn in input().split(): if not tn in d.keys(): d[tn] = 0 d[tn] += sc for k, v in sorted(d.items(), key=lambda x: x[1], reverse=True): print(k, v)