結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ktshunktshun
提出日時 2015-05-30 00:21:45
言語 Python2
(2.7.18)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 6,516 KB
実行使用メモリ 7,868 KB
最終ジャッジ日時 2023-09-08 14:28:13
合計ジャッジ時間 1,986 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,428 KB
testcase_01 AC 73 ms
7,708 KB
testcase_02 AC 13 ms
6,612 KB
testcase_03 AC 13 ms
6,436 KB
testcase_04 AC 13 ms
6,560 KB
testcase_05 AC 74 ms
7,868 KB
testcase_06 AC 13 ms
6,384 KB
testcase_07 AC 13 ms
6,352 KB
testcase_08 AC 13 ms
6,424 KB
testcase_09 AC 13 ms
6,444 KB
testcase_10 AC 13 ms
6,444 KB
testcase_11 AC 13 ms
6,352 KB
testcase_12 AC 13 ms
6,444 KB
testcase_13 AC 13 ms
6,488 KB
testcase_14 AC 49 ms
7,132 KB
testcase_15 AC 28 ms
6,656 KB
testcase_16 AC 59 ms
7,668 KB
testcase_17 AC 27 ms
6,788 KB
testcase_18 AC 57 ms
7,500 KB
testcase_19 AC 45 ms
7,120 KB
testcase_20 AC 74 ms
7,720 KB
testcase_21 AC 15 ms
6,384 KB
testcase_22 AC 34 ms
7,096 KB
testcase_23 AC 71 ms
7,664 KB
testcase_24 AC 71 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import collections

if __name__ == "__main__":
	n = input()
	l = map(int,raw_input().split())
	count = collections.Counter(l)
	max = -1
	ans = 0
	for i,j in count.most_common():
		if max == -1:
			max = j
		if max > j:
			break
		elif max == j and ans < i:
			ans = i
	print ans
0