結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kuuso1kuuso1
提出日時 2016-08-18 18:21:13
言語 F#
(F# 4.0)
結果
AC  
実行時間 334 ms / 1,000 ms
コード長 473 bytes
コンパイル時間 13,289 ms
コンパイル使用メモリ 188,548 KB
実行使用メモリ 34,536 KB
最終ジャッジ日時 2024-04-29 08:10:36
合計ジャッジ時間 24,305 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 331 ms
34,532 KB
testcase_01 AC 331 ms
33,816 KB
testcase_02 AC 331 ms
34,524 KB
testcase_03 AC 331 ms
34,400 KB
testcase_04 AC 330 ms
34,396 KB
testcase_05 AC 331 ms
34,512 KB
testcase_06 AC 331 ms
34,528 KB
testcase_07 AC 331 ms
33,592 KB
testcase_08 AC 328 ms
33,632 KB
testcase_09 AC 331 ms
34,536 KB
testcase_10 AC 331 ms
33,756 KB
testcase_11 AC 331 ms
34,400 KB
testcase_12 AC 331 ms
34,376 KB
testcase_13 AC 333 ms
33,632 KB
testcase_14 AC 330 ms
34,316 KB
testcase_15 AC 330 ms
34,264 KB
testcase_16 AC 331 ms
34,524 KB
testcase_17 AC 332 ms
33,900 KB
testcase_18 AC 331 ms
33,840 KB
testcase_19 AC 333 ms
34,280 KB
testcase_20 AC 334 ms
33,968 KB
testcase_21 AC 331 ms
34,004 KB
testcase_22 AC 332 ms
34,244 KB
testcase_23 AC 330 ms
34,524 KB
testcase_24 AC 331 ms
34,500 KB
testcase_25 AC 331 ms
34,404 KB
testcase_26 AC 332 ms
34,396 KB
testcase_27 AC 332 ms
33,508 KB
testcase_28 AC 331 ms
34,280 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (406 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/

ソースコード

diff #

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()
0