結果
問題 |
No.1806 Rotating Golem
|
ユーザー |
|
提出日時 | 2022-03-12 15:19:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 399 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-09-16 22:26:46 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
A = input() B = input() if A == B: print(0) elif (A == "E" and B == "N") or (A == "S" and B == "E") or (A == "W" and B == "S") or (A == "N" and B == "W"): print(3) elif (A == "E" and B == "W") or (A == "S" and B == "N") or (A == "W" and B == "E") or (A == "N" and B == "S"): print(2) else: print(1)