結果
問題 |
No.934 Explosive energy drink
|
ユーザー |
👑 |
提出日時 | 2020-03-10 09:08:05 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 294 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 709.58 |
最終ジャッジ日時 | 2024-07-16 20:35:55 |
合計ジャッジ時間 | 4,411 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
local n = io.read() local t = {} for i = 1, n do io.write("? " .. n - 1 .. "\n") local z = {} for j = 1, n do if i ~= j then table.insert(z, j) end end io.write(table.concat(z, " ")) io.write("\n") io.flush() local ret = io.read() if ret == "0" then table.insert(t, i) end end io.write("! " .. #t .. "\n") io.write(table.concat(t, " ") .. "\n") io.flush()