結果

問題 No.1806 Rotating Golem
ユーザー 👑 KazunKazun
提出日時 2022-01-14 21:21:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 87 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 53,548 KB
最終ジャッジ日時 2024-04-30 12:27:59
合計ジャッジ時間 1,192 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,800 KB
testcase_01 AC 32 ms
52,592 KB
testcase_02 AC 32 ms
52,456 KB
testcase_03 AC 31 ms
52,756 KB
testcase_04 AC 31 ms
52,488 KB
testcase_05 AC 33 ms
53,292 KB
testcase_06 AC 31 ms
52,504 KB
testcase_07 AC 31 ms
52,488 KB
testcase_08 AC 32 ms
53,548 KB
testcase_09 AC 34 ms
52,304 KB
testcase_10 AC 31 ms
52,052 KB
testcase_11 AC 33 ms
52,096 KB
testcase_12 AC 32 ms
52,820 KB
testcase_13 AC 32 ms
52,820 KB
testcase_14 AC 35 ms
52,536 KB
testcase_15 AC 30 ms
53,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=input()
B=input()

D="NESW"*10

a=D.index(A)
k=0
while D[a+k]!=B:
    k+=1

print(k)
0