結果
| 問題 |
No.1806 Rotating Golem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-15 03:28:52 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 178 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-20 21:30:05 |
| 合計ジャッジ時間 | 766 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
local a = io.read()
local b = io.read()
local corr = {}; do
corr["N"] = 0
corr["E"] = 1
corr["S"] = 2
corr["W"] = 3
end
local ans = (corr[b] - corr[a]) % 4
print(ans)