結果

問題 No.5 数字のブロック
ユーザー taktak
提出日時 2019-02-21 12:41:28
言語 F#
(.NET 7)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 4,868 ms
コンパイル使用メモリ 159,528 KB
実行使用メモリ 27,184 KB
最終ジャッジ日時 2023-08-11 00:59:26
合計ジャッジ時間 8,407 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
22,376 KB
testcase_01 AC 63 ms
22,340 KB
testcase_02 WA -
testcase_03 AC 78 ms
22,976 KB
testcase_04 AC 75 ms
22,996 KB
testcase_05 WA -
testcase_06 AC 75 ms
22,716 KB
testcase_07 AC 76 ms
22,796 KB
testcase_08 AC 75 ms
22,796 KB
testcase_09 AC 75 ms
22,700 KB
testcase_10 AC 79 ms
23,348 KB
testcase_11 AC 76 ms
22,736 KB
testcase_12 AC 77 ms
23,032 KB
testcase_13 AC 79 ms
23,060 KB
testcase_14 AC 65 ms
22,360 KB
testcase_15 WA -
testcase_16 AC 78 ms
23,124 KB
testcase_17 AC 79 ms
23,392 KB
testcase_18 AC 79 ms
23,244 KB
testcase_19 AC 80 ms
23,468 KB
testcase_20 AC 65 ms
22,412 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 63 ms
22,380 KB
testcase_24 AC 73 ms
20,472 KB
testcase_25 AC 73 ms
22,624 KB
testcase_26 AC 65 ms
24,336 KB
testcase_27 AC 63 ms
24,332 KB
testcase_28 AC 59 ms
20,204 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 60 ms
22,376 KB
testcase_32 AC 59 ms
22,256 KB
testcase_33 AC 59 ms
22,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let solve l ws =
  ws
  |> Array.sort
  |> Array.scan (+) 0
  |> Array.where (fun x -> x < l)
  |> Array.length
  |> fun x -> x - 1
  
let R() = Console.ReadLine()

let L = R() |> int
let N = R() |> int
let W = R().Split() |> Array.map int

solve L W
|> Console.WriteLine
0