結果
| 問題 | No.2757 Pin Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-17 21:24:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 121,416 KB |
| 最終ジャッジ日時 | 2026-05-27 13:19:15 |
| 合計ジャッジ時間 | 1,316 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
N, K = map(int, input().split())
X = list(map(int, input().split()))
count = 1
last_position = X[0]
for i in range(1, N):
if X[i] - last_position >= K:
count += 1
last_position = X[i]
print(count)