結果

問題 No.1285 ゴミ捨て
ユーザー pypypymipypypymi
提出日時 2022-03-09 20:56:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 80,432 KB
最終ジャッジ日時 2023-10-11 22:11:46
合計ジャッジ時間 5,216 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,024 KB
testcase_01 AC 75 ms
71,004 KB
testcase_02 AC 74 ms
71,000 KB
testcase_03 AC 74 ms
71,220 KB
testcase_04 AC 73 ms
71,508 KB
testcase_05 AC 74 ms
71,224 KB
testcase_06 AC 74 ms
71,068 KB
testcase_07 WA -
testcase_08 AC 97 ms
76,988 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 108 ms
77,828 KB
testcase_17 AC 109 ms
77,476 KB
testcase_18 AC 105 ms
77,464 KB
testcase_19 WA -
testcase_20 AC 102 ms
77,232 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
an = sorted([int(input()) for i in range(n)])[::-1]
max_v = max(an)
count = 1
for i in range(1,len(an)):
    if an[i]+1 >= max_v:
        count+=1
print(count)
    
0