結果

問題 No.1285 ゴミ捨て
ユーザー masayamatu
提出日時 2020-11-23 22:36:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 86,144 KB
最終ジャッジ日時 2024-07-23 18:01:35
合計ジャッジ時間 5,091 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
import math

n = int(input())

A = []

count = 1

for i in range(n):
    A.append(int(input()))
A.sort()

for i in range(1,n):
    if A[i] - A[i-1] <= 1:
        count += 1

print(count)
0