結果
問題 | No.341 沈黙の期間 |
ユーザー |
|
提出日時 | 2016-05-14 22:35:08 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 338 ms / 5,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 9,242 ms |
コンパイル使用メモリ | 186,368 KB |
実行使用メモリ | 36,228 KB |
最終ジャッジ日時 | 2024-10-06 02:50:45 |
合計ジャッジ時間 | 15,254 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (241 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.Text.RegularExpressionslet P = new Regex("…+")let S = stdin.ReadLine ()let mSeq = P.Matches(S) |> Seq.cast<Match> |> Seq.map (fun m -> m.Length)(if Seq.isEmpty mSeq then 0 else Seq.max mSeq) |> printfn "%d"