結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー akihito0000akihito0000
提出日時 2016-09-12 18:33:13
言語 Python2
(2.7.18)
結果
AC  
実行時間 65 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 7,396 KB
最終ジャッジ日時 2023-09-08 14:58:04
合計ジャッジ時間 1,820 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,948 KB
testcase_01 AC 65 ms
7,208 KB
testcase_02 AC 11 ms
6,088 KB
testcase_03 AC 11 ms
6,088 KB
testcase_04 AC 11 ms
5,828 KB
testcase_05 AC 50 ms
7,348 KB
testcase_06 AC 11 ms
5,960 KB
testcase_07 AC 10 ms
5,916 KB
testcase_08 AC 11 ms
5,840 KB
testcase_09 AC 11 ms
5,936 KB
testcase_10 AC 11 ms
5,888 KB
testcase_11 AC 11 ms
5,936 KB
testcase_12 AC 11 ms
5,956 KB
testcase_13 AC 11 ms
5,928 KB
testcase_14 AC 42 ms
6,760 KB
testcase_15 AC 24 ms
6,156 KB
testcase_16 AC 51 ms
7,016 KB
testcase_17 AC 23 ms
6,172 KB
testcase_18 AC 50 ms
6,992 KB
testcase_19 AC 38 ms
6,712 KB
testcase_20 AC 62 ms
7,228 KB
testcase_21 AC 12 ms
6,116 KB
testcase_22 AC 30 ms
6,452 KB
testcase_23 AC 57 ms
7,148 KB
testcase_24 AC 59 ms
7,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
# -*- coding: utf-8 -*-

N = int(raw_input())
arr = map(int, raw_input().split())
set_arr = sorted(set(arr))

max,max_num = 0 , 0
for i in set_arr:
	if max <= arr.count(i):
		max_num = i
		max = arr.count(i)
print max_num
0