結果

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

ソースコード

diff #

from decimal import *
import math

n = int(input())

A = []

count = 1

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

a=A[0]

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