結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
|
提出日時 | 2017-01-04 04:42:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 65 ms / 5,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 251 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 12,772 KB |
最終ジャッジ日時 | 2024-06-26 08:07:46 |
合計ジャッジ時間 | 2,136 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
# yukicoder No.79 過小評価ダメ・ゼッタイ from collections import Counter N = int(input()) L = [int(i) for i in input().split()] c = Counter(L) max_v = max(c.values()) # 最も回答の多いレベルの集合 s_mode = {i for (i, j) in c.items() if j == max_v} # 値が最大のレベルを出力 print(max(s_mode))