結果

問題 No.1806 Rotating Golem
ユーザー ryusuke
提出日時 2022-01-26 16:53:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 55,292 KB
最終ジャッジ日時 2024-12-23 08:23:42
合計ジャッジ時間 1,651 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

a = input()
b = input()

d = defaultdict(int)
for i, j in enumerate('NESW'):
    d[j] = i

print((4 + d[b] - d[a]) % 4)
0