結果
| 問題 |
No.2757 Pin Game
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-07-17 06:32:23 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 210 ms / 2,000 ms |
| コード長 | 168 bytes |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 44,448 KB |
| 最終ジャッジ日時 | 2024-07-17 06:32:25 |
| 合計ジャッジ時間 | 1,956 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
N,K=map(int,input().split())
X=list(map(int,input().split()))
queue=[]
for x in X:
if not queue or queue[-1]+K<=x:
queue.append(x)
ans=len(queue)
print(ans)
vwxyz