結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,584 KB
testcase_01 AC 73 ms
7,864 KB
testcase_02 AC 14 ms
6,652 KB
testcase_03 AC 14 ms
6,408 KB
testcase_04 AC 13 ms
6,524 KB
testcase_05 AC 74 ms
7,900 KB
testcase_06 AC 14 ms
6,408 KB
testcase_07 AC 14 ms
6,648 KB
testcase_08 AC 14 ms
6,528 KB
testcase_09 AC 13 ms
6,516 KB
testcase_10 AC 14 ms
6,532 KB
testcase_11 AC 13 ms
6,584 KB
testcase_12 AC 14 ms
6,464 KB
testcase_13 AC 14 ms
6,444 KB
testcase_14 AC 49 ms
7,360 KB
testcase_15 AC 29 ms
6,724 KB
testcase_16 AC 59 ms
7,700 KB
testcase_17 AC 27 ms
6,716 KB
testcase_18 AC 57 ms
7,744 KB
testcase_19 AC 46 ms
7,256 KB
testcase_20 AC 74 ms
7,968 KB
testcase_21 AC 15 ms
6,548 KB
testcase_22 AC 35 ms
7,124 KB
testcase_23 AC 69 ms
7,740 KB
testcase_24 AC 72 ms
7,860 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 max(filtered, key=lambda x:x.level).level
0