結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2020-06-14 16:05:00 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 21,444 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 01:06:25 |
合計ジャッジ時間 | 1,055 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
Scanf.scanf "%s %s" (fun c d -> let s = c ^ d in let rec loop i cur mx = if i = 14 then mx else if s.[i] = 'o' then loop (i + 1) (cur + 1) (max mx (cur + 1)) else loop (i + 1) 0 mx in loop 0 0 0 |> Printf.printf "%d\n" )