結果
問題 |
No.548 国士無双
|
ユーザー |
👑 |
提出日時 | 2019-04-20 17:46:30 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-17 14:57:42 |
合計ジャッジ時間 | 1,371 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
local str = io.read() local moji = {"a","b","c","d","e","f","g","h","i","j","k","l","m"} local cand = {} for k, v in pairs(moji) do if(not string.find(str, v)) then table.insert(cand, v) end end if(#cand == 0) then for k, v in pairs(moji) do print(v) end elseif(#cand == 1) then print(cand[1]) else print("Impossible") end