結果
| 問題 |
No.1806 Rotating Golem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-19 13:33:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 51,712 KB |
| 最終ジャッジ日時 | 2024-06-29 10:23:01 |
| 合計ジャッジ時間 | 1,528 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
s1 = input()
s2 = input()
count=0
while s1!=s2:
if s1=="N":
s1="E"
elif s1=="E":
s1="S"
elif s1=="S":
s1="W"
else:
s1="N"
count+=1
print(count)