結果
問題 | No.311 z in FizzBuzzString |
ユーザー | ToniTakekawa |
提出日時 | 2016-03-20 01:05:54 |
言語 | F# (F# 4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 6,733 ms |
コンパイル使用メモリ | 187,548 KB |
実行使用メモリ | 40,368 KB |
最終ジャッジ日時 | 2023-10-25 02:42:34 |
合計ジャッジ時間 | 11,208 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 355 ms
36,692 KB |
testcase_01 | AC | 355 ms
36,700 KB |
testcase_02 | AC | 354 ms
36,700 KB |
testcase_03 | AC | 359 ms
36,708 KB |
testcase_04 | AC | 356 ms
36,708 KB |
testcase_05 | AC | 354 ms
36,836 KB |
testcase_06 | AC | 360 ms
36,876 KB |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (240 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 zCount = function | x when x % 15 = 0 -> 4 | x when x % 3 = 0 -> 2 | x when x % 5 = 0 -> 2 | x -> 0 let count = int(Console.ReadLine()) let n = Seq.initInfinite (fun i->i+1) let z = Seq.map zCount n |> Seq.take count |> Seq.sum printfn "%d" z