結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー | ToniTakekawa |
提出日時 | 2016-03-19 23:20:32 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 14,608 ms |
コンパイル使用メモリ | 188,720 KB |
実行使用メモリ | 32,820 KB |
最終ジャッジ日時 | 2024-04-08 17:10:38 |
合計ジャッジ時間 | 8,148 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (402 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.0/publish/
ソースコード
open System let n2fizzbuzz = function | x when x % 15 = 0 -> "FizzBuzz" | x when x % 3 = 0 -> "Fizz" | x when x % 5 = 0 -> "Buzz" | x -> string(x) let count = int(Console.ReadLine()) let n = Seq.initInfinite (fun i->i) let fizzbuzz = Seq.map n2fizzbuzz n let msg = String.Join("\n", fizzbuzz |> Seq.take(count)) printfn "%s" msg