結果
問題 | No.341 沈黙の期間 |
ユーザー | ichibanshibori |
提出日時 | 2016-05-14 22:35:08 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 346 ms / 5,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 6,859 ms |
コンパイル使用メモリ | 187,140 KB |
実行使用メモリ | 35,852 KB |
最終ジャッジ日時 | 2024-04-15 21:35:36 |
合計ジャッジ時間 | 12,954 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 323 ms
35,852 KB |
testcase_01 | AC | 331 ms
35,728 KB |
testcase_02 | AC | 331 ms
35,588 KB |
testcase_03 | AC | 328 ms
35,596 KB |
testcase_04 | AC | 331 ms
35,840 KB |
testcase_05 | AC | 327 ms
35,592 KB |
testcase_06 | AC | 320 ms
35,592 KB |
testcase_07 | AC | 326 ms
35,852 KB |
testcase_08 | AC | 329 ms
35,468 KB |
testcase_09 | AC | 334 ms
35,692 KB |
testcase_10 | AC | 324 ms
35,588 KB |
testcase_11 | AC | 346 ms
35,572 KB |
testcase_12 | AC | 321 ms
35,844 KB |
testcase_13 | AC | 320 ms
35,836 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (233 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.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"