結果

問題 No.1806 Rotating Golem
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-23 01:27:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 2,812 ms
コンパイル使用メモリ 86,608 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-12 19:37:47
合計ジャッジ時間 3,993 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

A = input()
B = input()

def f(x):
    if x == "E":
        return "W"
    if x == "W":
        return "S"
    if x == "S":
        return "N"
    if x == "N":
        return "E"

count = 0
while A != B:
    A = f(A)
    count += 1
print(count)
0