結果

問題 No.1806 Rotating Golem
ユーザー 安達天輝
提出日時 2022-02-27 22:00:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-05 21:10:23
合計ジャッジ時間 1,308 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

A = str(input())
B = str(input())
if A=="N":
    A = 0
elif A=="E":
    A = 1
elif A=="S":
    A = 2
elif A =="W":
    A = 3
if B == "N":
    B = 0
elif B=="E":
    B = 1
elif B=="S":
    B = 2
elif B =="W":
    B = 3
k=0
k = int(B)-int(A)
if k < 0:
    k=k+4
print(k)
    
0