結果

問題 No.1806 Rotating Golem
ユーザー iii aaaiii aaa
提出日時 2022-01-29 21:32:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 1,292 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 71,352 KB
最終ジャッジ日時 2023-08-30 21:01:34
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,176 KB
testcase_01 AC 69 ms
71,256 KB
testcase_02 AC 68 ms
71,256 KB
testcase_03 AC 68 ms
71,084 KB
testcase_04 AC 69 ms
71,156 KB
testcase_05 AC 69 ms
71,248 KB
testcase_06 AC 67 ms
71,324 KB
testcase_07 AC 69 ms
71,124 KB
testcase_08 AC 69 ms
71,120 KB
testcase_09 AC 69 ms
71,276 KB
testcase_10 AC 70 ms
71,144 KB
testcase_11 AC 69 ms
71,352 KB
testcase_12 AC 70 ms
71,000 KB
testcase_13 AC 69 ms
71,200 KB
testcase_14 AC 69 ms
71,152 KB
testcase_15 AC 69 ms
71,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
def inputSynario():
    input = stdin.readline
    A = input().rstrip()
    B = input().rstrip()
    return A,B

def toNum(str):
    if(str=="N"):
        return 0
    elif(str=="E"):
        return 3
    elif(str=="S"):
        return 2
    else:
        return 1

(A,B)=inputSynario()
a = toNum(A)+4
b = toNum(B)
print((a-b)%4)
0