結果

問題 No.311 z in FizzBuzzString
ユーザー hum_ophum_op
提出日時 2016-02-12 21:51:48
言語 F#
(F# 4.0)
結果
AC  
実行時間 351 ms / 1,500 ms
コード長 216 bytes
コンパイル時間 7,765 ms
コンパイル使用メモリ 189,620 KB
実行使用メモリ 37,684 KB
最終ジャッジ日時 2023-10-25 02:41:42
合計ジャッジ時間 14,216 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 343 ms
37,684 KB
testcase_01 AC 344 ms
37,684 KB
testcase_02 AC 343 ms
37,684 KB
testcase_03 AC 351 ms
37,684 KB
testcase_04 AC 345 ms
37,684 KB
testcase_05 AC 344 ms
37,684 KB
testcase_06 AC 343 ms
37,684 KB
testcase_07 AC 342 ms
37,684 KB
testcase_08 AC 344 ms
37,684 KB
testcase_09 AC 344 ms
37,684 KB
testcase_10 AC 345 ms
37,684 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (243 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/

ソースコード

diff #

open System
    
[<EntryPoint>]
let main args =    
    let s = Console.ReadLine().Split(' ');
    let N = Int64.Parse(s.[0])
    
    let z = 2L * (N / 5L + N / 3L - N / 15L) + N / 15L * 2L 
    printfn "%d" z
    0
0