結果
| 問題 |
No.1285 ゴミ捨て
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-23 21:44:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 82,448 KB |
| 実行使用メモリ | 80,264 KB |
| 最終ジャッジ日時 | 2024-07-23 17:49:48 |
| 合計ジャッジ時間 | 3,130 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 10 |
ソースコード
N = int(input())
Alist = []
for _ in range(N):
a = int(input())
Alist.append(a)
Alist.sort()
a = Alist[0]
cnt = 1
for i in range(1, N):
if Alist[i] == a+1:
cnt += 1
a = Alist[i]
print(cnt)