結果

問題 No.1806 Rotating Golem
ユーザー first_vilfirst_vil
提出日時 2022-01-14 21:21:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 82,552 KB
実行使用メモリ 53,480 KB
最終ジャッジ日時 2024-04-30 12:32:06
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,884 KB
testcase_01 AC 32 ms
53,172 KB
testcase_02 AC 36 ms
53,360 KB
testcase_03 AC 33 ms
52,400 KB
testcase_04 AC 33 ms
52,748 KB
testcase_05 AC 33 ms
52,892 KB
testcase_06 AC 33 ms
52,552 KB
testcase_07 AC 33 ms
52,812 KB
testcase_08 AC 32 ms
52,644 KB
testcase_09 AC 31 ms
53,380 KB
testcase_10 AC 31 ms
52,744 KB
testcase_11 AC 33 ms
52,188 KB
testcase_12 AC 31 ms
53,416 KB
testcase_13 AC 34 ms
53,040 KB
testcase_14 AC 31 ms
53,240 KB
testcase_15 AC 33 ms
53,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

int1 = lambda x: int(x) - 1

# input = lambda: sys.stdin.buffer.readline()
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
i1 = lambda: int1(input())
mi = lambda: map(int, input().split())
mi1 = lambda: map(int1, input().split())
li = lambda: list(mi())
li1 = lambda: list(mi1())
lli = lambda n: [li() for _ in range(n)]

INF = float("inf")
mod = int(1e9 + 7)
# mod = 998244353

s = "ESWN"
print((-s.index(input()) + s.index(input()) + 4) % 4)
0