結果

問題 No.2757 Pin Game
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-13 16:30:55
言語 Go
(1.22.1)
結果
TLE  
実行時間 -
コード長 173 bytes
コンパイル時間 13,911 ms
コンパイル使用メモリ 221,548 KB
実行使用メモリ 14,920 KB
最終ジャッジ日時 2024-10-13 16:31:13
合計ジャッジ時間 16,818 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
13,636 KB
testcase_01 AC 1 ms
6,816 KB
testcase_02 AC 1 ms
6,816 KB
testcase_03 AC 1 ms
6,816 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var n,k,x int64
	fmt.Scan(&n,&k,&x)
	a:=1
	for p:=x ;n>1;n-- {
		fmt.Scan(&x)
		if x>=p+k {
			a++
			p=x
		}
	}
	fmt.Println(a)
}
0