結果

問題 No.279 木の数え上げ
ユーザー ToniTakekawaToniTakekawa
提出日時 2016-03-20 00:49:14
言語 F#
(F# 4.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 300 bytes
コンパイル時間 15,435 ms
コンパイル使用メモリ 191,360 KB
実行使用メモリ 64,768 KB
最終ジャッジ日時 2024-04-22 16:17:41
合計ジャッジ時間 22,477 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 311 ms
34,680 KB
testcase_01 AC 314 ms
34,996 KB
testcase_02 AC 317 ms
34,808 KB
testcase_03 AC 313 ms
34,740 KB
testcase_04 AC 315 ms
34,824 KB
testcase_05 AC 321 ms
34,796 KB
testcase_06 AC 321 ms
34,840 KB
testcase_07 AC 317 ms
34,712 KB
testcase_08 AC 318 ms
35,064 KB
testcase_09 AC 315 ms
34,936 KB
testcase_10 MLE -
testcase_11 AC 390 ms
59,792 KB
testcase_12 AC 541 ms
63,104 KB
testcase_13 AC 362 ms
51,784 KB
testcase_14 MLE -
testcase_15 AC 695 ms
63,872 KB
testcase_16 AC 585 ms
63,616 KB
testcase_17 MLE -
testcase_18 AC 501 ms
61,284 KB
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (587 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