結果

問題 No.1806 Rotating Golem
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-01-14 22:29:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 71,296 KB
最終ジャッジ日時 2023-08-12 20:46:30
合計ジャッジ時間 2,570 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,228 KB
testcase_01 AC 68 ms
71,176 KB
testcase_02 AC 70 ms
71,068 KB
testcase_03 AC 67 ms
71,296 KB
testcase_04 AC 69 ms
71,192 KB
testcase_05 AC 69 ms
71,268 KB
testcase_06 AC 69 ms
71,292 KB
testcase_07 AC 68 ms
70,940 KB
testcase_08 AC 67 ms
71,124 KB
testcase_09 AC 68 ms
71,284 KB
testcase_10 AC 69 ms
71,068 KB
testcase_11 AC 68 ms
71,164 KB
testcase_12 AC 68 ms
71,220 KB
testcase_13 AC 69 ms
71,120 KB
testcase_14 AC 68 ms
71,032 KB
testcase_15 AC 69 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = input()
b = input()

l = list("NESW")
s = l.index(a)
ans = 0
while a != b:
    s += 1
    a = l[s%4]
    ans += 1
print(ans)
0