結果
問題 |
No.628 Tagの勢い
|
ユーザー |
|
提出日時 | 2018-07-15 19:59:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-07 22:51:56 |
合計ジャッジ時間 | 1,661 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 19 |
ソースコード
N = int(input()) dic = {} for _ in range(N): input() M, _ = map(int, input().split()) for s in input().split(): dic[s] = dic.get(s, 0) + 1 li = list(dic.items()) li = sorted(li, key=lambda x:(-x[1], x[0])) for i in range(min(10, len(li))): print(li[i][0],li[i][1])