結果

問題 No.1285 ゴミ捨て
ユーザー zentsu999zentsu999
提出日時 2020-11-13 22:08:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 12,768 KB
最終ジャッジ日時 2023-08-19 07:17:41
合計ジャッジ時間 3,444 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,908 KB
testcase_01 AC 15 ms
7,920 KB
testcase_02 AC 15 ms
7,852 KB
testcase_03 AC 15 ms
7,900 KB
testcase_04 AC 16 ms
7,856 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 16 ms
7,856 KB
testcase_07 AC 200 ms
12,496 KB
testcase_08 AC 23 ms
8,332 KB
testcase_09 AC 95 ms
10,192 KB
testcase_10 AC 179 ms
12,164 KB
testcase_11 AC 167 ms
11,852 KB
testcase_12 AC 127 ms
10,684 KB
testcase_13 AC 125 ms
10,816 KB
testcase_14 AC 194 ms
12,352 KB
testcase_15 AC 145 ms
11,200 KB
testcase_16 AC 52 ms
8,936 KB
testcase_17 AC 53 ms
9,084 KB
testcase_18 AC 49 ms
8,872 KB
testcase_19 AC 89 ms
10,080 KB
testcase_20 AC 47 ms
8,808 KB
testcase_21 AC 59 ms
9,272 KB
testcase_22 AC 210 ms
12,636 KB
testcase_23 AC 213 ms
12,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[int(input())for _ in range(N)]
A.sort()
print([2,1][all(a1+1<a2 for a1,a2 in zip(A,A[1:]))])
0