結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー tookunn_1213tookunn_1213
提出日時 2015-04-09 20:59:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 167 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 6,612 KB
実行使用メモリ 7,488 KB
最終ジャッジ日時 2023-09-08 14:23:39
合計ジャッジ時間 1,843 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
6,112 KB
testcase_01 AC 69 ms
7,396 KB
testcase_02 AC 11 ms
6,060 KB
testcase_03 AC 11 ms
6,180 KB
testcase_04 AC 11 ms
6,140 KB
testcase_05 AC 50 ms
7,348 KB
testcase_06 AC 11 ms
6,116 KB
testcase_07 AC 10 ms
5,972 KB
testcase_08 AC 10 ms
5,980 KB
testcase_09 AC 10 ms
6,060 KB
testcase_10 AC 10 ms
6,028 KB
testcase_11 AC 11 ms
6,220 KB
testcase_12 AC 12 ms
6,060 KB
testcase_13 AC 11 ms
5,968 KB
testcase_14 AC 45 ms
6,900 KB
testcase_15 AC 27 ms
6,364 KB
testcase_16 AC 56 ms
7,252 KB
testcase_17 AC 25 ms
6,200 KB
testcase_18 AC 54 ms
7,208 KB
testcase_19 AC 41 ms
6,708 KB
testcase_20 AC 69 ms
7,488 KB
testcase_21 AC 13 ms
6,008 KB
testcase_22 AC 31 ms
6,664 KB
testcase_23 AC 65 ms
7,440 KB
testcase_24 AC 67 ms
7,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
L = map(int,raw_input().split())
m = 0
v = 0
for s in set(L):
	if m < L.count(s):
		v = s
		m = L.count(s)
	elif m == L.count(s) and v < s:
		v = s
print v
0