結果

問題 No.1806 Rotating Golem
ユーザー first_vilfirst_vil
提出日時 2022-01-14 21:21:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,388 KB
最終ジャッジ日時 2023-08-12 17:27:25
合計ジャッジ時間 2,302 ms
ジャッジサーバーID
(参考情報)
judge9 / judge8
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,964 KB
testcase_01 AC 73 ms
71,208 KB
testcase_02 AC 70 ms
71,284 KB
testcase_03 AC 72 ms
71,212 KB
testcase_04 AC 71 ms
71,312 KB
testcase_05 AC 72 ms
71,120 KB
testcase_06 AC 70 ms
71,064 KB
testcase_07 AC 71 ms
71,340 KB
testcase_08 AC 73 ms
71,112 KB
testcase_09 AC 72 ms
71,032 KB
testcase_10 AC 72 ms
71,308 KB
testcase_11 AC 72 ms
70,956 KB
testcase_12 AC 73 ms
71,032 KB
testcase_13 AC 73 ms
71,300 KB
testcase_14 AC 71 ms
71,020 KB
testcase_15 AC 71 ms
71,388 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