結果

問題 No.2757 Pin Game
ユーザー ああいい
提出日時 2024-05-23 17:47:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 120,344 KB
最終ジャッジ日時 2024-12-20 18:55:44
合計ジャッジ時間 1,704 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

X = list(map(int,input().split()))

now = 0
ans = 1
for i in range(1,N):
	a = X[i-1]
	b = X[i]
	now += b - a
	if now < K:
		pass
	else:
		ans += 1
		now = 0
print(ans)
0