結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー a_tena_ten
提出日時 2016-03-23 15:40:29
言語 Python2
(2.7.18)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 261 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 7,504 KB
最終ジャッジ日時 2023-09-08 14:48:56
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,128 KB
testcase_01 AC 57 ms
7,308 KB
testcase_02 AC 11 ms
6,008 KB
testcase_03 AC 11 ms
5,948 KB
testcase_04 AC 11 ms
5,932 KB
testcase_05 AC 55 ms
7,396 KB
testcase_06 AC 12 ms
6,028 KB
testcase_07 AC 11 ms
5,952 KB
testcase_08 AC 11 ms
6,232 KB
testcase_09 AC 11 ms
6,044 KB
testcase_10 AC 11 ms
6,120 KB
testcase_11 AC 11 ms
6,120 KB
testcase_12 AC 11 ms
5,936 KB
testcase_13 AC 11 ms
6,184 KB
testcase_14 AC 38 ms
6,856 KB
testcase_15 AC 23 ms
6,372 KB
testcase_16 AC 47 ms
7,172 KB
testcase_17 AC 21 ms
6,272 KB
testcase_18 AC 45 ms
7,272 KB
testcase_19 AC 37 ms
6,864 KB
testcase_20 AC 58 ms
7,412 KB
testcase_21 AC 12 ms
6,164 KB
testcase_22 AC 28 ms
6,548 KB
testcase_23 AC 55 ms
7,260 KB
testcase_24 AC 56 ms
7,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8

N=input()
L=map(int,raw_input().split())

s=[]
for i in range(1,7):
	s.append([L.count(i),i])

ma=0
for i in s:
	ma=max(ma,i[0])

s_max=[]
for i in s:
	if i[0]==ma:
		s_max.append(i)

if len(s_max)==1:
	print s_max[0][1]
else:
	print s_max[-1][1]
0