結果

問題 No.542 1円玉と5円玉
ユーザー natoriusannatoriusan
提出日時 2023-07-30 16:51:18
言語 F#
(F# 4.0)
結果
AC  
実行時間 362 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 9,146 ms
コンパイル使用メモリ 206,112 KB
実行使用メモリ 39,356 KB
最終ジャッジ日時 2024-04-17 17:58:18
合計ジャッジ時間 14,869 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 349 ms
35,792 KB
testcase_01 AC 351 ms
35,928 KB
testcase_02 AC 348 ms
35,668 KB
testcase_03 AC 346 ms
35,404 KB
testcase_04 AC 351 ms
35,652 KB
testcase_05 AC 351 ms
35,644 KB
testcase_06 AC 352 ms
35,964 KB
testcase_07 AC 351 ms
35,732 KB
testcase_08 AC 355 ms
36,364 KB
testcase_09 AC 354 ms
36,412 KB
testcase_10 AC 352 ms
35,812 KB
testcase_11 AC 349 ms
35,528 KB
testcase_12 AC 362 ms
39,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (253 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(1,5): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let [|a; b|] = stdin.ReadLine().Split " " |> Array.map int

let aArray = [|0..a|]
let bArray = Array.map ((*)5) [|0..b|]

[|
    for i in aArray ->
        [|
            for j in bArray ->
                i + j
        |]
|] |> Array.concat |> Set.ofArray |> Seq.toArray |> Array.sort |> fun x -> x.[1..] |> Array.iter (printfn "%d")
0