結果

問題 No.1285 ゴミ捨て
ユーザー osrgy01osrgy01
提出日時 2021-05-15 14:45:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 12,552 KB
最終ジャッジ日時 2023-08-19 07:30:23
合計ジャッジ時間 3,070 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,888 KB
testcase_01 AC 12 ms
7,964 KB
testcase_02 AC 13 ms
7,844 KB
testcase_03 AC 13 ms
7,832 KB
testcase_04 AC 12 ms
7,860 KB
testcase_05 AC 13 ms
7,776 KB
testcase_06 AC 13 ms
7,836 KB
testcase_07 AC 176 ms
12,224 KB
testcase_08 AC 18 ms
8,284 KB
testcase_09 AC 86 ms
9,928 KB
testcase_10 AC 155 ms
11,900 KB
testcase_11 AC 151 ms
11,472 KB
testcase_12 AC 111 ms
10,504 KB
testcase_13 AC 113 ms
10,456 KB
testcase_14 AC 172 ms
12,132 KB
testcase_15 AC 133 ms
10,796 KB
testcase_16 AC 47 ms
8,868 KB
testcase_17 AC 48 ms
8,900 KB
testcase_18 AC 46 ms
8,788 KB
testcase_19 AC 80 ms
9,820 KB
testcase_20 AC 41 ms
8,740 KB
testcase_21 AC 52 ms
9,068 KB
testcase_22 AC 186 ms
12,396 KB
testcase_23 AC 186 ms
12,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
t=sorted(int(input()) for _ in range(n))
ans=1
for i in range(1,n):
    if t[i]-t[i-1]==1:
        ans=2
        break
print(ans)
0