結果

問題 No.1285 ゴミ捨て
ユーザー rekkrekk
提出日時 2020-12-02 11:46:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 180 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 17,096 KB
最終ジャッジ日時 2023-10-11 07:26:04
合計ジャッジ時間 4,186 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,172 KB
testcase_01 AC 15 ms
7,884 KB
testcase_02 AC 16 ms
7,868 KB
testcase_03 AC 16 ms
7,836 KB
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 16 ms
7,816 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
array = [int(input()) for i in range(int(n))]
answer = 0
for i in array:
    if any([i + 1 < j for j in array]) is True:
        continue
    answer += 1
print(answer)
0