結果

問題 No.1285 ゴミ捨て
ユーザー etale.K3etale.K3
提出日時 2020-12-19 13:13:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,492 KB
実行使用メモリ 13,248 KB
最終ジャッジ日時 2023-08-19 07:28:46
合計ジャッジ時間 3,253 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,832 KB
testcase_01 AC 14 ms
7,840 KB
testcase_02 AC 14 ms
7,968 KB
testcase_03 AC 13 ms
7,920 KB
testcase_04 AC 13 ms
7,884 KB
testcase_05 AC 13 ms
7,872 KB
testcase_06 AC 13 ms
7,908 KB
testcase_07 AC 184 ms
13,124 KB
testcase_08 AC 19 ms
8,248 KB
testcase_09 AC 88 ms
10,148 KB
testcase_10 AC 170 ms
12,388 KB
testcase_11 AC 153 ms
12,080 KB
testcase_12 AC 114 ms
10,924 KB
testcase_13 AC 111 ms
10,984 KB
testcase_14 AC 168 ms
12,852 KB
testcase_15 AC 138 ms
11,212 KB
testcase_16 AC 50 ms
9,112 KB
testcase_17 AC 46 ms
9,068 KB
testcase_18 AC 42 ms
9,028 KB
testcase_19 AC 77 ms
10,184 KB
testcase_20 AC 42 ms
8,788 KB
testcase_21 AC 52 ms
9,160 KB
testcase_22 AC 185 ms
13,248 KB
testcase_23 AC 183 ms
13,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = sorted([int(input()) for _ in range(N)])

if all(a+1 < b for a,b in zip(A, A[1:])):
    print(1)
else:
    print(2)
0