結果

問題 No.1285 ゴミ捨て
ユーザー None
提出日時 2021-05-05 03:00:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 88,244 KB
最終ジャッジ日時 2024-11-28 22:02:18
合計ジャッジ時間 2,875 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N=int(input())
A=[]
for _ in range(N):
    A.append(int(input()))
A.sort()
D=[]
for i in range(1,N):
    D.append(A[i]-A[i-1])
C=Counter(D)
if C[1]==0:
    print(1)
elif C[1]>=1:
    print(2)
0