結果
問題 |
No.1806 Rotating Golem
|
ユーザー |
![]() |
提出日時 | 2021-12-11 17:45:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-07-20 00:12:05 |
合計ジャッジ時間 | 1,749 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
a = input() b = input() if(a == b): print(0) elif(a == 'N'): if(b == 'E'): print(1) elif(b == 'S'): print(2) else: print(3) elif(a == 'E'): if(b == 'S'): print(1) elif(b == 'W'): print(2) else: print(3) elif(a == 'S'): if(b == 'W'): print(1) elif(b == 'N'): print(2) else: print(3) else: if(b == 'N'): print(1) elif(b == 'E'): print(2) else: print(3)