結果

問題 No.2757 Pin Game
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-13 16:29:03
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 12,050 ms
コンパイル使用メモリ 232,560 KB
実行使用メモリ 14,916 KB
最終ジャッジ日時 2024-10-13 16:29:22
合計ジャッジ時間 18,171 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
5,248 KB
testcase_03 WA -
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