結果

問題 No.345 最小チワワ問題
ユーザー chike_pluschike_plus
提出日時 2020-03-15 20:31:02
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 18,287 ms
コンパイル使用メモリ 187,348 KB
実行使用メモリ 34,960 KB
最終ジャッジ日時 2024-05-04 03:43:31
合計ジャッジ時間 15,310 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
31,744 KB
testcase_01 AC 51 ms
31,872 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 51 ms
31,488 KB
testcase_05 AC 51 ms
31,740 KB
testcase_06 AC 53 ms
31,488 KB
testcase_07 AC 51 ms
32,768 KB
testcase_08 AC 50 ms
32,768 KB
testcase_09 AC 52 ms
32,768 KB
testcase_10 AC 53 ms
31,488 KB
testcase_11 AC 54 ms
33,016 KB
testcase_12 AC 51 ms
32,992 KB
testcase_13 AC 53 ms
32,896 KB
testcase_14 AC 52 ms
31,488 KB
testcase_15 AC 52 ms
31,712 KB
testcase_16 AC 52 ms
31,360 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 52 ms
31,736 KB
testcase_20 AC 52 ms
31,724 KB
testcase_21 AC 51 ms
33,152 KB
testcase_22 AC 52 ms
31,744 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 51 ms
33,008 KB
testcase_29 AC 50 ms
31,488 KB
testcase_30 AC 51 ms
31,360 KB
testcase_31 AC 50 ms
33,024 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (398 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.Text.RegularExpressions
let ``No.345 最小チワワ問題``() =
  
  let s = stdin.ReadLine()

  let regCWW = Regex("(c[abdefghijklmnopqrstuvxyz]*w[abcdefghijklmnopqrstuvxyz]*w)")

  let regCWW = Regex("(c[abdefghijklmnopqrstuvxyz]*w[abdefghijklmnopqrstuvxyz]*w)")

  
 
  match regCWW.IsMatch s with
  | false -> -1 |> stdout.WriteLine
  | true  -> 
    seq { for g in regCWW.Matches(s).[0].Groups do yield g.Value.Length }
    |> Seq.minBy (fun s -> s)
    |> stdout.WriteLine

``No.345 最小チワワ問題``()
0