結果
| 問題 | No.1285 ゴミ捨て |
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-21 23:40:52 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,512 KB |
| 実行使用メモリ | 87,860 KB |
| 最終ジャッジ日時 | 2026-10-05 06:44:02 |
| 合計ジャッジ時間 | 3,526 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_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