結果

問題 No.1285 ゴミ捨て
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2021-02-12 15:32:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 12,792 KB
最終ジャッジ日時 2023-09-26 14:27:32
合計ジャッジ時間 3,890 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,804 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,852 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 208 ms
12,488 KB
testcase_08 WA -
testcase_09 AC 97 ms
10,228 KB
testcase_10 AC 181 ms
12,008 KB
testcase_11 AC 162 ms
11,824 KB
testcase_12 AC 122 ms
10,692 KB
testcase_13 AC 121 ms
10,852 KB
testcase_14 AC 191 ms
12,420 KB
testcase_15 AC 142 ms
11,116 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 87 ms
9,880 KB
testcase_20 WA -
testcase_21 AC 60 ms
9,048 KB
testcase_22 AC 207 ms
12,760 KB
testcase_23 AC 209 ms
12,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=[int(input()) for _ in range(n)]
a.sort()
c=[0]*n
for i in range(1,n):
	if c[i]-c[i-1]<2:
		print(2)
		break
else:
	print(1)
0