結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
chike_plus
|
| 提出日時 | 2019-03-27 09:58:55 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 113 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 7,080 ms |
| コンパイル使用メモリ | 186,372 KB |
| 実行使用メモリ | 37,120 KB |
| 最終ジャッジ日時 | 2024-10-11 02:11:09 |
| 合計ジャッジ時間 | 9,671 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (241 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/
ソースコード
let ``No.279 木の数え上げ``() =
stdin.ReadLine()
|> Seq.countBy (fun id -> id)
|> Seq.filter (fun (id,n) -> (id = 't' || id = 'r' || id = 'e'))
|> Seq.minBy (fun (id , n) ->
match id with
| 't' -> n
| 'r' -> n
| 'e' -> (n / 2)
| _ -> 0
)
|> fun (id, n) ->
match id with
| 't' -> n
| 'r' -> n
| 'e' -> n/2
| _ -> 0
|> stdout.WriteLine
``No.279 木の数え上げ``()
chike_plus