結果
問題 |
No.1285 ゴミ捨て
|
ユーザー |
![]() |
提出日時 | 2020-11-13 21:24:07 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 77,792 KB |
最終ジャッジ日時 | 2024-07-22 20:25:50 |
合計ジャッジ時間 | 3,028 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 21 |
ソースコード
n = int(input()) a = [int(input()) for i in range(n)] a.sort() ans = 0 max_ = -10 for i in range(n): if max_ + 1< a[i]: ans += 1 max_ = a[i] print(ans)