結果

問題 No.1285 ゴミ捨て
ユーザー ohanaohana
提出日時 2023-11-06 16:39:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 81,820 KB
実行使用メモリ 78,940 KB
最終ジャッジ日時 2023-11-06 16:40:03
合計ジャッジ時間 4,669 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,512 KB
testcase_01 AC 35 ms
53,512 KB
testcase_02 AC 40 ms
53,512 KB
testcase_03 AC 35 ms
53,512 KB
testcase_04 AC 35 ms
53,512 KB
testcase_05 AC 36 ms
53,512 KB
testcase_06 AC 36 ms
53,512 KB
testcase_07 AC 114 ms
78,804 KB
testcase_08 AC 60 ms
68,928 KB
testcase_09 AC 86 ms
77,136 KB
testcase_10 AC 106 ms
78,440 KB
testcase_11 AC 101 ms
78,400 KB
testcase_12 AC 91 ms
77,540 KB
testcase_13 AC 91 ms
77,540 KB
testcase_14 AC 111 ms
78,664 KB
testcase_15 AC 96 ms
77,776 KB
testcase_16 AC 72 ms
76,372 KB
testcase_17 AC 72 ms
76,504 KB
testcase_18 AC 67 ms
74,632 KB
testcase_19 AC 82 ms
77,024 KB
testcase_20 AC 69 ms
73,888 KB
testcase_21 AC 77 ms
76,540 KB
testcase_22 AC 115 ms
78,940 KB
testcase_23 AC 115 ms
78,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = [int(input()) for i in range(n)]
A.sort()
A = [A[0] - 3] + A
if min([A[i + 1] - A[i] for i in range(n)]) < 2:
    print(2)
else:
    print(1)
0