結果

問題 No.331 CodeRunnerでやれ
ユーザー 👑 obakyanobakyan
提出日時 2020-05-05 15:41:46
言語 Lua
(LuaJit 2.1.1696795921)
結果
TLE  
実行時間 -
コード長 570 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 143,256 KB
平均クエリ数 5.18
最終ジャッジ日時 2023-09-24 03:26:50
合計ジャッジ時間 7,973 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
23,932 KB
testcase_01 AC 130 ms
23,560 KB
testcase_02 AC 171 ms
23,460 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

local isend = "Merry Christmas!"
local function query(str)
  io.write(str .. "\n")
  io.flush()
  local ret = io.read("*l")
  if ret == isend then os.exit() end
  return ret
end
local s = io.read()
while s == "0" do
  s = query("L")
end
while s ~= "0" do
  s = query("F")
end
while true do
  if s == "0" then
    s = query("L")
    if s == "0" then
      while s == "0" do
        s = query("R")
      end
    end
    s = query("F")
  else
    s = query("L")
    if s == "0" then
      s = query("R")
      s = query("F")
    else
      s = query("F")
    end
  end
end
0