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