結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-29 01:28:05 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 36 ms |
| コンパイル使用メモリ | 7,712 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-11 22:32:01 |
| 合計ジャッジ時間 | 1,032 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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