結果
問題 | No.331 CodeRunnerでやれ |
ユーザー | 👑 obakyan |
提出日時 | 2020-05-05 15:44:28 |
言語 | Lua (LuaJit 2.1.1696795921) |
結果 |
TLE
|
実行時間 | - |
コード長 | 609 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 5,336 KB |
実行使用メモリ | 158,800 KB |
平均クエリ数 | 134.88 |
最終ジャッジ日時 | 2023-09-24 03:27:03 |
合計ジャッジ時間 | 12,020 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 131 ms
24,088 KB |
testcase_01 | AC | 128 ms
23,428 KB |
testcase_02 | AC | 165 ms
23,680 KB |
testcase_03 | AC | 160 ms
24,072 KB |
testcase_04 | AC | 153 ms
24,424 KB |
testcase_05 | AC | 159 ms
23,440 KB |
testcase_06 | AC | 155 ms
24,084 KB |
testcase_07 | AC | 240 ms
23,476 KB |
testcase_08 | AC | 152 ms
23,436 KB |
testcase_09 | AC | 223 ms
23,416 KB |
testcase_10 | AC | 283 ms
23,844 KB |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
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 s == "0" do s = query("R") 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