結果
問題 |
No.2757 Pin Game
|
ユーザー |
|
提出日時 | 2024-05-19 11:33:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 458 ms |
コンパイル使用メモリ | 82,096 KB |
実行使用メモリ | 120,068 KB |
最終ジャッジ日時 | 2024-12-20 16:53:35 |
合計ジャッジ時間 | 2,042 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
n,k=map(int,input().split()) x=list(map(int,input().split())) cnt=1 t=x[0] for i in range(1,n): if x[i]-t>=k: t=x[i] cnt+=1 print(cnt)