結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kutsutamakutsutama
提出日時 2018-12-13 14:05:50
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 11,692 KB
実行使用メモリ 11,896 KB
最終ジャッジ日時 2023-10-25 09:23:25
合計ジャッジ時間 2,375 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,024 KB
testcase_01 AC 84 ms
11,896 KB
testcase_02 AC 27 ms
9,948 KB
testcase_03 AC 28 ms
9,948 KB
testcase_04 AC 27 ms
9,948 KB
testcase_05 AC 77 ms
11,748 KB
testcase_06 AC 27 ms
9,948 KB
testcase_07 AC 28 ms
9,948 KB
testcase_08 AC 28 ms
9,948 KB
testcase_09 AC 28 ms
9,948 KB
testcase_10 AC 28 ms
9,948 KB
testcase_11 AC 27 ms
9,948 KB
testcase_12 AC 28 ms
9,948 KB
testcase_13 AC 28 ms
9,948 KB
testcase_14 AC 58 ms
10,780 KB
testcase_15 AC 42 ms
10,412 KB
testcase_16 AC 67 ms
11,196 KB
testcase_17 AC 40 ms
10,372 KB
testcase_18 AC 68 ms
11,184 KB
testcase_19 AC 56 ms
10,776 KB
testcase_20 AC 79 ms
11,748 KB
testcase_21 AC 30 ms
9,988 KB
testcase_22 AC 46 ms
10,460 KB
testcase_23 AC 74 ms
11,476 KB
testcase_24 AC 80 ms
11,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
cnt = [0] * 7
mode = 1
L = [int(x) for x in input().split()]
for li in L:
  cnt[li] += 1
  if cnt[li] >= cnt[mode] and li >= mode or cnt[li] > cnt[mode]:
    mode = li
print(mode)
0