結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-07 16:13:05
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 6,600 KB
実行使用メモリ 9,720 KB
最終ジャッジ日時 2023-09-14 16:26:48
合計ジャッジ時間 2,032 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,056 KB
testcase_01 AC 63 ms
9,652 KB
testcase_02 AC 11 ms
5,920 KB
testcase_03 AC 11 ms
5,932 KB
testcase_04 AC 12 ms
5,928 KB
testcase_05 AC 63 ms
9,584 KB
testcase_06 AC 12 ms
5,988 KB
testcase_07 AC 11 ms
5,848 KB
testcase_08 AC 12 ms
5,968 KB
testcase_09 AC 12 ms
6,036 KB
testcase_10 AC 11 ms
5,864 KB
testcase_11 AC 12 ms
5,848 KB
testcase_12 AC 12 ms
5,952 KB
testcase_13 AC 11 ms
5,836 KB
testcase_14 AC 42 ms
8,116 KB
testcase_15 AC 24 ms
6,772 KB
testcase_16 AC 51 ms
8,780 KB
testcase_17 AC 23 ms
6,688 KB
testcase_18 AC 50 ms
8,580 KB
testcase_19 AC 39 ms
7,640 KB
testcase_20 AC 64 ms
9,720 KB
testcase_21 AC 13 ms
5,912 KB
testcase_22 AC 30 ms
7,064 KB
testcase_23 AC 60 ms
9,428 KB
testcase_24 AC 61 ms
9,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
L = map(int, raw_input().split())
counter = [0, 0, 0, 0, 0, 0, 0]
for i in range(0, N):
	counter[L[i]] += 1
max = 0
tmp = 0
for i in range(1, 7):
	if max <= counter[i]:
		max = counter[i]
		tmp = i
print tmp
0