結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
ToniTakekawa
|
| 提出日時 | 2016-03-20 01:05:54 |
| 言語 | F# (F# 10.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| 記録 | |
| コンパイル時間 | 4,794 ms |
| コンパイル使用メモリ | 208,136 KB |
| 実行使用メモリ | 40,448 KB |
| 最終ジャッジ日時 | 2026-04-12 00:49:35 |
| 合計ジャッジ時間 | 8,173 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 RE * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (165 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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
ToniTakekawa