結果
| 問題 |
No.1285 ゴミ捨て
|
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-21 23:40:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 80,772 KB |
| 最終ジャッジ日時 | 2024-12-20 18:18:32 |
| 合計ジャッジ時間 | 3,226 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 10 |
ソースコード
N = int(input())
a = []
for _ in range(N):
a.append(int(input()))
a.sort()
cnt = [a[i+1] - a[i] <= 1 for i in range(N-1)].count(True) + 1
print(cnt)
splash9494