結果
| 問題 | No.1806 Rotating Golem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-19 20:24:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 123 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-03-19 12:08:48 |
| 合計ジャッジ時間 | 1,541 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
A = input()
B = input()
g = ["N", "E", "S", "W"]
x = g.index(A)
y = g.index(B)
s = y - x
if s < 0:
s += 4
print(s)