結果

問題 No.1806 Rotating Golem
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-16 21:13:21
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 14,263 ms
コンパイル使用メモリ 222,348 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-16 21:13:37
合計ジャッジ時間 13,256 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

import . "fmt"
import . "strings"

func main() {
	var a,b string
	Scan(&a,&b)
	const s="ESWN"
	x:=Index(s,a)
	y:=Index(s[x:]+s,b)
	Println(y-x)
}
0