結果
問題 | No.279 木の数え上げ |
ユーザー | hum_op |
提出日時 | 2016-03-31 13:43:27 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 362 ms / 2,000 ms |
コード長 | 509 bytes |
コンパイル時間 | 7,794 ms |
コンパイル使用メモリ | 190,868 KB |
実行使用メモリ | 41,216 KB |
最終ジャッジ日時 | 2024-04-22 16:18:34 |
合計ジャッジ時間 | 16,634 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 331 ms
34,224 KB |
testcase_01 | AC | 333 ms
34,192 KB |
testcase_02 | AC | 333 ms
34,228 KB |
testcase_03 | AC | 335 ms
34,348 KB |
testcase_04 | AC | 334 ms
34,220 KB |
testcase_05 | AC | 332 ms
34,348 KB |
testcase_06 | AC | 332 ms
34,352 KB |
testcase_07 | AC | 332 ms
34,224 KB |
testcase_08 | AC | 335 ms
34,344 KB |
testcase_09 | AC | 334 ms
34,192 KB |
testcase_10 | AC | 362 ms
41,216 KB |
testcase_11 | AC | 336 ms
36,084 KB |
testcase_12 | AC | 356 ms
39,680 KB |
testcase_13 | AC | 337 ms
35,216 KB |
testcase_14 | AC | 348 ms
41,208 KB |
testcase_15 | AC | 346 ms
40,704 KB |
testcase_16 | AC | 341 ms
40,064 KB |
testcase_17 | AC | 345 ms
40,960 KB |
testcase_18 | AC | 340 ms
36,780 KB |
testcase_19 | AC | 343 ms
40,824 KB |
testcase_20 | AC | 346 ms
41,216 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (277 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 (min t r) e printfn "%d" res 0