結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー roiti46roiti46
提出日時 2014-12-17 00:34:12
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 230 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 6,640 KB
実行使用メモリ 10,108 KB
最終ジャッジ日時 2023-09-02 15:33:37
合計ジャッジ時間 2,420 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
6,572 KB
testcase_01 AC 75 ms
10,036 KB
testcase_02 AC 13 ms
6,196 KB
testcase_03 AC 13 ms
6,276 KB
testcase_04 AC 13 ms
6,268 KB
testcase_05 AC 81 ms
10,108 KB
testcase_06 AC 13 ms
6,236 KB
testcase_07 RE -
testcase_08 AC 13 ms
6,200 KB
testcase_09 AC 13 ms
6,272 KB
testcase_10 AC 14 ms
6,196 KB
testcase_11 AC 13 ms
6,192 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 51 ms
8,464 KB
testcase_15 AC 28 ms
6,996 KB
testcase_16 AC 62 ms
9,040 KB
testcase_17 AC 28 ms
7,064 KB
testcase_18 AC 59 ms
8,940 KB
testcase_19 AC 48 ms
8,072 KB
testcase_20 AC 76 ms
9,940 KB
testcase_21 AC 15 ms
6,432 KB
testcase_22 AC 35 ms
7,428 KB
testcase_23 AC 71 ms
9,716 KB
testcase_24 AC 75 ms
9,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(raw_input())
poll = [0]*N
for i in map(int,raw_input().split()):
    poll[i-1] += 1
mx = max(poll)
for i in range(N-1,-1,-1):
    if poll[i] == mx:
        print i+1
        break
0