結果

問題 No.1285 ゴミ捨て
ユーザー ssmkzkssmkzk
提出日時 2020-11-21 16:44:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 230 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 12,496 KB
最終ジャッジ日時 2023-08-19 07:25:25
合計ジャッジ時間 3,728 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,848 KB
testcase_01 AC 15 ms
7,852 KB
testcase_02 AC 16 ms
7,908 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 16 ms
7,808 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 15 ms
7,824 KB
testcase_07 AC 220 ms
12,316 KB
testcase_08 AC 23 ms
7,776 KB
testcase_09 AC 105 ms
9,868 KB
testcase_10 AC 190 ms
11,768 KB
testcase_11 AC 183 ms
11,452 KB
testcase_12 AC 136 ms
10,468 KB
testcase_13 AC 137 ms
10,548 KB
testcase_14 AC 210 ms
12,124 KB
testcase_15 AC 160 ms
10,848 KB
testcase_16 AC 56 ms
8,916 KB
testcase_17 AC 57 ms
8,944 KB
testcase_18 AC 54 ms
8,740 KB
testcase_19 AC 97 ms
9,836 KB
testcase_20 AC 51 ms
8,872 KB
testcase_21 AC 63 ms
9,072 KB
testcase_22 AC 227 ms
12,480 KB
testcase_23 AC 230 ms
12,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
l =[]

for i in range(N):
    l.append(int(input()))

l.sort()
ans = 1
for i in range(N-1):
    if l[i + 1] - l[i] <= 1:
        ans +=1
        break


print(ans)
0