結果

問題 No.1992 Tendon Walk
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-15 21:06:22
言語 Go
(1.22.1)
結果
TLE  
実行時間 -
コード長 246 bytes
コンパイル時間 15,124 ms
コンパイル使用メモリ 219,384 KB
実行使用メモリ 12,032 KB
最終ジャッジ日時 2024-10-15 21:06:44
合計ジャッジ時間 21,461 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

import . "fmt"
import . "os"

var x,p,t int

func a() {
	p+=2
	t+=2
}
func b() {
	p-=1
	t+=1
}
func c() {
	if p==x {
		Println(t)
		Exit(0)
	}
}

func main() {
	Scan(&x)
	p,t=0,0
	for {
		a()
		a()
		b()
		b()
		a()
		b()
		b()
	}
}
0