結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2016-08-18 18:21:13 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 314 ms / 1,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 13,260 ms |
コンパイル使用メモリ | 187,792 KB |
実行使用メモリ | 34,716 KB |
最終ジャッジ日時 | 2024-11-18 09:47:53 |
合計ジャッジ時間 | 19,646 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (294 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open System type Sol() = member this.Solve() = let ss = stdin.ReadLine() + stdin.ReadLine(); let mutable cnt = 0 let mutable max = 0 let N = Seq.length ss for i = 0 to (N-1) do if ss.[i] = 'o' then ( cnt <- cnt + 1; max <- if cnt > max then cnt else max ) else ( cnt <- 0 ) printfn "%d" max let mySol = new Sol() mySol.Solve()