結果
問題 | No.279 木の数え上げ |
ユーザー | hum_op |
提出日時 | 2016-03-31 13:42:19 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 501 bytes |
コンパイル時間 | 6,867 ms |
コンパイル使用メモリ | 184,424 KB |
実行使用メモリ | 43,612 KB |
最終ジャッジ日時 | 2024-04-10 06:45:14 |
合計ジャッジ時間 | 14,687 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 326 ms
34,288 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (226 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 open System.Text let min (x:int) (y:int) = if x < y then x else y [<EntryPoint>] let main args = let S:string = Console.ReadLine() let mutable t, r, e = 0, 0, 0 for x = 0 to S.Length-1 do if S.[x] = 't' then t <- t + 1 else if S.[x] = 'r' then r <- r + 1 else if S.[x] = 'e' then e <- e + 1 done e <- e / 2 let res = min t r printfn "%d" res 0