結果
問題 | No.311 z in FizzBuzzString |
ユーザー | hum_op |
提出日時 | 2016-02-12 21:37:06 |
言語 | F# (F# 4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 6,425 ms |
コンパイル使用メモリ | 189,500 KB |
実行使用メモリ | 38,360 KB |
最終ジャッジ日時 | 2023-10-25 02:41:23 |
合計ジャッジ時間 | 11,052 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 345 ms
37,676 KB |
testcase_01 | AC | 341 ms
37,676 KB |
testcase_02 | AC | 343 ms
37,676 KB |
testcase_03 | AC | 344 ms
37,676 KB |
testcase_04 | AC | 348 ms
37,676 KB |
testcase_05 | AC | 346 ms
37,676 KB |
testcase_06 | AC | 346 ms
37,680 KB |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (222 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 [<EntryPoint>] let main args = let s = Console.ReadLine().Split(' '); let N = Int32.Parse(s.[0]) let mutable z = 0 for i = 1 to N do if i % 5 = 0 then z <- z + 2 if i % 3 = 0 then z <- z + 2 done printfn "%d" z 0