結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー convexineqconvexineq
提出日時 2020-12-03 07:41:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 91,012 KB
最終ジャッジ日時 2023-10-11 16:35:52
合計ジャッジ時間 3,906 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
76,056 KB
testcase_01 AC 95 ms
90,924 KB
testcase_02 AC 74 ms
71,312 KB
testcase_03 AC 77 ms
71,272 KB
testcase_04 AC 74 ms
71,388 KB
testcase_05 AC 97 ms
91,012 KB
testcase_06 AC 75 ms
71,416 KB
testcase_07 AC 73 ms
71,384 KB
testcase_08 AC 74 ms
71,188 KB
testcase_09 AC 73 ms
71,172 KB
testcase_10 AC 74 ms
71,416 KB
testcase_11 AC 75 ms
71,280 KB
testcase_12 AC 73 ms
71,356 KB
testcase_13 AC 75 ms
71,388 KB
testcase_14 AC 91 ms
84,304 KB
testcase_15 AC 81 ms
77,988 KB
testcase_16 AC 92 ms
87,256 KB
testcase_17 AC 81 ms
77,704 KB
testcase_18 AC 92 ms
87,176 KB
testcase_19 AC 87 ms
83,176 KB
testcase_20 AC 94 ms
90,956 KB
testcase_21 AC 78 ms
75,972 KB
testcase_22 AC 84 ms
79,764 KB
testcase_23 AC 95 ms
90,648 KB
testcase_24 AC 96 ms
90,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

n = int(readline())
*x, = map(int,readline().split())

r = [0]*7
for i in x:
    r[i] += 1
ans = v = max(r)
for i in range(7):
    if r[i]==v: ans = i
print(ans)
0