結果
問題 |
No.1806 Rotating Golem
|
ユーザー |
![]() |
提出日時 | 2023-06-23 01:31:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 53,368 KB |
最終ジャッジ日時 | 2024-06-30 07:21:53 |
合計ジャッジ時間 | 1,537 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
A = input() B = input() def f(x): if x == "E": return "S" if x == "S": return "W" if x == "W": return "N" if x == "N": return "E" count = 0 while A != B: A = f(A) count += 1 print(count)