結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2019-02-21 12:41:28 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 15,075 ms |
コンパイル使用メモリ | 186,844 KB |
実行使用メモリ | 31,488 KB |
最終ジャッジ日時 | 2024-11-17 12:44:30 |
合計ジャッジ時間 | 18,461 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 WA * 7 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (339 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 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