結果

問題 No.1806 Rotating Golem
ユーザー superzugansuperzugan
提出日時 2022-06-29 01:46:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 486 ms
コンパイル使用メモリ 10,460 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-08-14 02:55:56
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,924 KB
testcase_01 AC 15 ms
7,848 KB
testcase_02 AC 15 ms
7,772 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,832 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,756 KB
testcase_07 AC 15 ms
7,796 KB
testcase_08 AC 15 ms
7,904 KB
testcase_09 AC 15 ms
7,840 KB
testcase_10 AC 16 ms
7,748 KB
testcase_11 WA -
testcase_12 AC 16 ms
7,916 KB
testcase_13 WA -
testcase_14 AC 15 ms
7,872 KB
testcase_15 AC 15 ms
7,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def zen(s):
    if s=="E":ss=0
    elif s=="S":ss=1
    elif s=="W":ss=2
    elif s=="N":ss=3
    return ss
def kei(ss,nn):
    return abs(nn-ss)%4

def main():
    s=input()
    t=input()
    print(kei(zen(t),zen(s)))

main()
0