結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-04-18 10:07:50
言語 Python2
(2.7.18)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 354 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 6,512 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-09-08 14:24:15
合計ジャッジ時間 2,195 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,508 KB
testcase_01 AC 74 ms
7,888 KB
testcase_02 AC 13 ms
6,628 KB
testcase_03 AC 13 ms
6,700 KB
testcase_04 AC 13 ms
6,624 KB
testcase_05 AC 73 ms
7,820 KB
testcase_06 AC 14 ms
6,620 KB
testcase_07 AC 14 ms
6,620 KB
testcase_08 AC 14 ms
6,564 KB
testcase_09 AC 13 ms
6,464 KB
testcase_10 AC 13 ms
6,668 KB
testcase_11 AC 14 ms
6,516 KB
testcase_12 AC 14 ms
6,448 KB
testcase_13 AC 14 ms
6,604 KB
testcase_14 AC 49 ms
7,224 KB
testcase_15 AC 29 ms
6,912 KB
testcase_16 AC 60 ms
7,792 KB
testcase_17 AC 28 ms
6,764 KB
testcase_18 AC 58 ms
7,728 KB
testcase_19 AC 46 ms
7,284 KB
testcase_20 AC 74 ms
7,888 KB
testcase_21 AC 15 ms
6,544 KB
testcase_22 AC 35 ms
7,140 KB
testcase_23 AC 69 ms
7,884 KB
testcase_24 AC 71 ms
7,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from collections import Counter, namedtuple
Item = namedtuple('Item', 'level, users')

N = int(raw_input())
L = map(int, raw_input().split())
counter = Counter(L)
hamark = max(counter.values())
filtered = filter(lambda x: x.users==hamark, (Item(k, v) for k, v in counter.items()))
print sorted(filtered, key=lambda x: x.level)[-1].level
0