結果

問題 No.279 木の数え上げ
ユーザー ToniTakekawa
提出日時 2016-03-20 00:49:14
言語 F#
(F# 4.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 300 bytes
コンパイル時間 11,650 ms
コンパイル使用メモリ 186,876 KB
実行使用メモリ 65,280 KB
最終ジャッジ日時 2024-10-14 15:26:45
合計ジャッジ時間 23,279 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 MLE * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (386 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

let S = Console.ReadLine()
let strCharCount s c = s |> Seq.filter(fun s -> s = c) |> Seq.length
let charCounts = strCharCount S
let treCounts = "tre" |> Seq.map charCounts
let zip = Seq.zip treCounts [|1;1;2|] 
let div = zip |> Seq.map( fun (a, b) -> a / b ) |> Seq.min

printfn "%d" div
0