結果

問題 No.5 数字のブロック
ユーザー regeregeregerege
提出日時 2015-11-25 20:22:16
言語 F#
(F# 4.0)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 4,584 ms
コンパイル使用メモリ 149,596 KB
実行使用メモリ 26,184 KB
最終ジャッジ日時 2023-08-11 14:23:31
合計ジャッジ時間 9,177 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
25,344 KB
testcase_01 AC 89 ms
21,404 KB
testcase_02 AC 86 ms
23,276 KB
testcase_03 AC 99 ms
26,000 KB
testcase_04 AC 94 ms
23,928 KB
testcase_05 AC 98 ms
26,004 KB
testcase_06 AC 102 ms
25,952 KB
testcase_07 AC 99 ms
23,828 KB
testcase_08 AC 99 ms
23,856 KB
testcase_09 AC 97 ms
23,712 KB
testcase_10 AC 104 ms
26,160 KB
testcase_11 AC 98 ms
25,936 KB
testcase_12 AC 102 ms
25,952 KB
testcase_13 AC 101 ms
25,988 KB
testcase_14 AC 92 ms
23,440 KB
testcase_15 AC 98 ms
25,552 KB
testcase_16 AC 104 ms
21,996 KB
testcase_17 AC 109 ms
24,076 KB
testcase_18 AC 103 ms
26,148 KB
testcase_19 AC 101 ms
26,184 KB
testcase_20 AC 88 ms
25,364 KB
testcase_21 AC 88 ms
23,400 KB
testcase_22 AC 88 ms
23,416 KB
testcase_23 AC 90 ms
23,412 KB
testcase_24 AC 100 ms
23,596 KB
testcase_25 AC 98 ms
23,584 KB
testcase_26 AC 93 ms
23,332 KB
testcase_27 AC 92 ms
25,432 KB
testcase_28 AC 86 ms
23,304 KB
testcase_29 AC 95 ms
25,784 KB
testcase_30 AC 96 ms
23,684 KB
testcase_31 AC 85 ms
23,236 KB
testcase_32 AC 87 ms
25,264 KB
testcase_33 AC 88 ms
23,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.5 数字のブロック`` () =
    let L = int <| stdin.ReadLine()
    let M = int <| stdin.ReadLine()
    stdin.ReadLine().Split(' ')
    |> Seq.map int
    |> Seq.sort
    |> Seq.scan (fun (s,c) n -> s+n,c+1) (0,0)
    |> Seq.takeWhile (fst >> (>=)L)
    |> Seq.last
    |> snd
    |> printfn "%d"
``No.5 数字のブロック`` ()
0