結果

問題 No.1285 ゴミ捨て
ユーザー TakoKurageTakoKurage
提出日時 2020-11-23 15:52:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 12,792 KB
最終ジャッジ日時 2023-08-19 07:25:59
合計ジャッジ時間 2,207 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,764 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 AC 15 ms
7,840 KB
testcase_04 AC 15 ms
7,852 KB
testcase_05 AC 15 ms
7,856 KB
testcase_06 AC 16 ms
7,844 KB
testcase_07 AC 65 ms
12,440 KB
testcase_08 AC 17 ms
8,240 KB
testcase_09 AC 37 ms
10,244 KB
testcase_10 AC 59 ms
12,004 KB
testcase_11 AC 57 ms
11,696 KB
testcase_12 AC 46 ms
10,624 KB
testcase_13 AC 47 ms
10,700 KB
testcase_14 AC 63 ms
12,236 KB
testcase_15 AC 51 ms
11,056 KB
testcase_16 AC 26 ms
8,884 KB
testcase_17 AC 25 ms
9,048 KB
testcase_18 AC 25 ms
8,936 KB
testcase_19 AC 35 ms
9,892 KB
testcase_20 AC 24 ms
8,836 KB
testcase_21 AC 27 ms
9,096 KB
testcase_22 AC 68 ms
12,792 KB
testcase_23 AC 71 ms
12,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, *A = map(int, open(0))

A.sort()

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