結果
問題 | No.1806 Rotating Golem |
ユーザー |
![]() |
提出日時 | 2022-01-14 21:25:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,764 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-11-20 07:43:18 |
合計ジャッジ時間 | 1,332 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
l = ["E","S","W","N"] ans = 5 a,b = input(),input() cnt = l.index(a) for i in range(4): if l[(i + cnt) % 4] == b: ans =min(ans,i) print(ans)