結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-04-20 22:44:25 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 5,504 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 10:24:36 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
print((function (f, a, b)
local r,t = f(a,0,0)
r,t = f(b,r,t)
return t>0 and t>r and t or r
end)(function (s, r, t)
for i=1,#s do if s:sub(i,i)=="x" then r,t = t>r and t or r,0 else t = t+1 end end
return r,t
end, io.stdin:read("*l"), io.stdin:read("*l")))
nobigomu