結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
|
提出日時 | 2018-02-20 18:44:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 12,792 KB |
最終ジャッジ日時 | 2024-07-20 17:42:46 |
合計ジャッジ時間 | 2,327 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 11 WA * 11 |
ソースコード
N = int(input()) L = list(map(int, input().split())) M = {} for Li in L: if Li in M.keys(): M[Li]+=1 else: M[Li] = 1 M_sorted = sorted(M.items(), key=lambda x: x[1]) M_sorted = sorted(M_sorted, key=lambda x: x[0]) print(M_sorted[-1][0])