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