結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-04-20 22:44:25 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-12 22:25:27 |
| 合計ジャッジ時間 | 1,247 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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