結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー ichibanshiboriichibanshibori
提出日時 2017-02-12 23:51:58
言語 F#
(F# 4.0)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 415 bytes
コンパイル時間 5,023 ms
コンパイル使用メモリ 156,572 KB
実行使用メモリ 27,260 KB
最終ジャッジ日時 2023-08-28 14:57:41
合計ジャッジ時間 5,177 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
27,100 KB
testcase_01 AC 111 ms
26,212 KB
testcase_02 AC 118 ms
26,248 KB
testcase_03 AC 111 ms
27,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let () =
    let n = stdin.ReadLine() |> int

    seq {1..n}
    |> Seq.map (fun i ->
        async {
            return
                match i % 3 = 0, i % 5 = 0 with
                | true, false -> "Fizz"
                | false, true -> "Buzz"
                | true, true  -> "FizzBuzz"
                | _, _ -> string i })
    |> Async.Parallel
    |> Async.RunSynchronously
    |> Array.iter (printfn "%s")
0