結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー itezpaceitezpace
提出日時 2016-08-21 17:50:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 623 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 82,684 KB
最終ジャッジ日時 2023-09-08 14:57:52
合計ジャッジ時間 3,793 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,064 KB
testcase_01 AC 84 ms
82,632 KB
testcase_02 AC 69 ms
71,116 KB
testcase_03 AC 73 ms
71,364 KB
testcase_04 AC 69 ms
71,556 KB
testcase_05 AC 82 ms
82,684 KB
testcase_06 AC 69 ms
71,284 KB
testcase_07 AC 68 ms
71,256 KB
testcase_08 AC 71 ms
71,352 KB
testcase_09 AC 71 ms
71,568 KB
testcase_10 AC 70 ms
71,080 KB
testcase_11 AC 70 ms
71,260 KB
testcase_12 AC 69 ms
71,360 KB
testcase_13 AC 69 ms
71,084 KB
testcase_14 AC 82 ms
79,548 KB
testcase_15 AC 82 ms
77,036 KB
testcase_16 AC 80 ms
81,200 KB
testcase_17 AC 74 ms
76,464 KB
testcase_18 AC 83 ms
81,036 KB
testcase_19 AC 81 ms
79,160 KB
testcase_20 AC 81 ms
82,440 KB
testcase_21 AC 75 ms
75,940 KB
testcase_22 AC 75 ms
77,324 KB
testcase_23 AC 83 ms
82,580 KB
testcase_24 AC 83 ms
82,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=[0,0,0,0,0,0]
li=input()
lis=li.split()
for i in range(0,n):
    a=int(lis[i])
    l[a-1]+=1
x=0
y=0
for i in range(0,6):
    if l[i]>=x:
        x=l[i]
        y=i+1
print(y)
0