結果
| 問題 | No.2757 Pin Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-19 11:33:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 2,000 ms |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 121,744 KB |
| 最終ジャッジ日時 | 2026-05-27 15:00:16 |
| 合計ジャッジ時間 | 1,762 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)