結果
問題 |
No.1806 Rotating Golem
|
ユーザー |
![]() |
提出日時 | 2022-01-14 21:22:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-11-20 07:37:22 |
合計ジャッジ時間 | 1,591 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline A = input().rstrip('\n') B = input().rstrip('\n') S = "NESW" a = S.index(A) b = S.index(B) if b - a >= 0: print(b - a) else: print(b - a + 4) if __name__ == '__main__': main()