結果

問題 No.64 XORフィボナッチ数列
ユーザー hum_ophum_op
提出日時 2016-04-13 22:40:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 14,250 ms
コンパイル使用メモリ 185,320 KB
実行使用メモリ 34,880 KB
最終ジャッジ日時 2024-04-15 01:07:43
合計ジャッジ時間 19,529 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 323 ms
34,628 KB
testcase_01 AC 324 ms
34,752 KB
testcase_02 AC 327 ms
34,368 KB
testcase_03 AC 329 ms
34,184 KB
testcase_04 AC 325 ms
34,740 KB
testcase_05 AC 328 ms
34,624 KB
testcase_06 AC 329 ms
34,352 KB
testcase_07 AC 329 ms
34,480 KB
testcase_08 AC 326 ms
33,760 KB
testcase_09 AC 333 ms
34,496 KB
testcase_10 AC 329 ms
34,372 KB
testcase_11 AC 328 ms
34,880 KB
testcase_12 AC 326 ms
34,624 KB
testcase_13 AC 325 ms
34,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (492 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

open System

let No64 () =
    let IN = Console.ReadLine().Split(' ')
    let F0 = int64 <| IN.[0]
    let F1 = int64 <| IN.[1]
    let N  = int64 <| IN.[2]

    let xfib =
        [
            yield F0
            yield F1
            yield F0 ^^^ F1
        ]
    printfn "%d" xfib.[int(N % 3L)]
    ()

No64 ()
0