結果
| 問題 |
No.1806 Rotating Golem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-30 08:41:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 111 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 82,336 KB |
| 実行使用メモリ | 53,100 KB |
| 最終ジャッジ日時 | 2024-11-19 01:19:40 |
| 合計ジャッジ時間 | 1,672 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
A = input() B = input() dir = ['N', 'E', 'S', 'W'] a = dir.index(A) b = dir.index(B) ans = (b+4-a)%4 print(ans)