結果
| 問題 | No.1285 ゴミ捨て |
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-21 23:40:52 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 85,504 KB |
| 最終ジャッジ日時 | 2026-05-27 15:41:40 |
| 合計ジャッジ時間 | 3,907 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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