結果
| 問題 | No.1806 Rotating Golem |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2022-07-03 06:31:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 85,828 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-05-22 15:07:51 |
| 合計ジャッジ時間 | 1,781 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
def main():
a, b = [input() for _ in range(2)]
dic = "NESW"
ans = 0
t = dic.find(a)
while t != dic.find(b):
ans += 1
t = (t + 1) % len(dic)
print(ans)
main()
toshiro_yanagi