結果

問題 No.311 z in FizzBuzzString
ユーザー ichibanshiboriichibanshibori
提出日時 2016-05-14 23:22:08
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 6,867 ms
コンパイル使用メモリ 202,456 KB
実行使用メモリ 23,656 KB
最終ジャッジ日時 2023-10-25 02:44:13
合計ジャッジ時間 8,030 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (233 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
/home/judge/data/code/Main.fs(8,27): warning FS0988: プログラムのメイン モジュールが空です。実行しても何も処理されません [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let odai N =
    seq {for i in 1..N ->
         if i % 15 = 0 then 4 elif i % 3 = 0 || i % 5 = 0 then 2 else 0} |>
    Seq.sum

let doIt () =
    let N = stdin.ReadLine () |> int
    odai N |> printfn "%d"
0