結果

問題 No.5 数字のブロック
ユーザー regeregeregerege
提出日時 2015-11-25 20:22:16
言語 F#
(F# 4.0)
結果
AC  
実行時間 359 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 15,051 ms
コンパイル使用メモリ 184,324 KB
実行使用メモリ 36,408 KB
最終ジャッジ日時 2024-04-29 06:40:12
合計ジャッジ時間 22,810 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 349 ms
34,584 KB
testcase_01 AC 348 ms
34,840 KB
testcase_02 AC 348 ms
35,108 KB
testcase_03 AC 350 ms
35,828 KB
testcase_04 AC 355 ms
34,872 KB
testcase_05 AC 356 ms
35,588 KB
testcase_06 AC 351 ms
35,320 KB
testcase_07 AC 353 ms
34,940 KB
testcase_08 AC 354 ms
35,892 KB
testcase_09 AC 350 ms
34,896 KB
testcase_10 AC 356 ms
35,492 KB
testcase_11 AC 353 ms
34,856 KB
testcase_12 AC 355 ms
34,956 KB
testcase_13 AC 356 ms
36,008 KB
testcase_14 AC 354 ms
34,336 KB
testcase_15 AC 351 ms
35,500 KB
testcase_16 AC 357 ms
36,024 KB
testcase_17 AC 355 ms
35,576 KB
testcase_18 AC 354 ms
35,348 KB
testcase_19 AC 359 ms
36,408 KB
testcase_20 AC 352 ms
34,588 KB
testcase_21 AC 351 ms
34,328 KB
testcase_22 AC 349 ms
34,556 KB
testcase_23 AC 350 ms
34,588 KB
testcase_24 AC 356 ms
35,464 KB
testcase_25 AC 351 ms
34,892 KB
testcase_26 AC 352 ms
34,328 KB
testcase_27 AC 353 ms
34,840 KB
testcase_28 AC 352 ms
35,368 KB
testcase_29 AC 356 ms
35,396 KB
testcase_30 AC 353 ms
35,344 KB
testcase_31 AC 348 ms
35,356 KB
testcase_32 AC 351 ms
35,100 KB
testcase_33 AC 348 ms
34,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (504 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 #

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