結果
| 問題 |
No.1285 ゴミ捨て
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-03 22:16:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 125 ms / 2,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 82,104 KB |
| 実行使用メモリ | 78,336 KB |
| 最終ジャッジ日時 | 2024-11-28 22:02:39 |
| 合計ジャッジ時間 | 3,350 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
N=int(input())
if N==1:
print(1)
else:
A=[0]*N
for i in range(N):
A[i]=int(input())
A=sorted(A)
for i in range(N-1):
if A[i+1]-A[i]==1:
print(2)
exit()
print(1)