結果
| 問題 |
No.345 最小チワワ問題
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-29 01:28:05 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 202 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-25 13:57:25 |
| 合計ジャッジ時間 | 1,062 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
print((function (f, s)
return f(s)
end)(function (s)
local r = #s+1
for e in s:gmatch("c[^c]-w[^w]-w") do if #e < r then r = #e end end
if r > #s then r = -1 end
return r
end, io.stdin:read("*l")))
nobigomu