結果

問題 No.2757 Pin Game
ユーザー 𖧱𖦸𖥩𖥣𖥩𖥣
提出日時 2024-05-30 11:19:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,632 KB
最終ジャッジ日時 2024-12-20 21:09:45
合計ジャッジ時間 1,911 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
ls = list(map(int,input().split()))
c = ls[0]
s = 0
for i in ls:
	if i-c >= k:
		s += 1
		c = i
print(s)
0