結果
問題 | No.341 沈黙の期間 |
ユーザー | ichibanshibori |
提出日時 | 2016-05-14 22:35:08 |
言語 | F# (.NET 7) |
結果 |
AC
|
実行時間 | 123 ms / 5,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 4,321 ms |
コンパイル使用メモリ | 161,164 KB |
実行使用メモリ | 28,132 KB |
最終ジャッジ日時 | 2023-07-28 12:51:41 |
合計ジャッジ時間 | 5,966 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
27,996 KB |
testcase_01 | AC | 123 ms
28,056 KB |
testcase_02 | AC | 122 ms
25,892 KB |
testcase_03 | AC | 122 ms
25,900 KB |
testcase_04 | AC | 121 ms
25,868 KB |
testcase_05 | AC | 123 ms
25,920 KB |
testcase_06 | AC | 121 ms
27,888 KB |
testcase_07 | AC | 123 ms
26,024 KB |
testcase_08 | AC | 122 ms
25,792 KB |
testcase_09 | AC | 121 ms
27,908 KB |
testcase_10 | AC | 121 ms
28,132 KB |
testcase_11 | AC | 116 ms
25,720 KB |
testcase_12 | AC | 121 ms
25,872 KB |
testcase_13 | AC | 116 ms
25,576 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System.Text.RegularExpressions let 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"