結果
| 問題 | 
                            No.1285 ゴミ捨て
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-11-18 18:03:36 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 199 bytes | 
| コンパイル時間 | 107 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 15,188 KB | 
| 最終ジャッジ日時 | 2024-07-23 09:08:15 | 
| 合計ジャッジ時間 | 4,244 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 WA * 12 | 
ソースコード
N = int(input())
A = [int(input()) for _ in range(N)]
A.sort(reverse=True)
count = 1
gara = A[0]
for i in range(1,N):
    if A[i] + 1 >= gara:
        count += 1
        gara =  A[i]
print(count)