結果

問題 No.64 XORフィボナッチ数列
ユーザー regeregeregerege
提出日時 2016-03-26 20:15:19
言語 F#
(F# 4.0)
結果
TLE  
実行時間 -
コード長 387 bytes
コンパイル時間 6,523 ms
コンパイル使用メモリ 194,636 KB
実行使用メモリ 91,392 KB
最終ジャッジ日時 2024-04-10 00:03:20
合計ジャッジ時間 14,160 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
37,732 KB
testcase_01 AC 90 ms
91,392 KB
testcase_02 AC 92 ms
34,304 KB
testcase_03 AC 90 ms
34,432 KB
testcase_04 AC 93 ms
34,400 KB
testcase_05 AC 91 ms
34,516 KB
testcase_06 AC 90 ms
34,816 KB
testcase_07 AC 91 ms
34,400 KB
testcase_08 AC 91 ms
34,816 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (231 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 #

let ``No.64 XORフィボナッチ数列1``() =
    let f (s:string) =
        let arr = s.Split(' ') |> Array.map (bigint.Parse)
        let rec fib (a:bigint) b n =
            if n < 0I then a
            elif n = 0I then b
            else fib b (a^^^b) (n-1I)
        fib arr.[0] arr.[1] (arr.[2]-1I)
    f <| stdin.ReadLine() |> printfn "%A"
``No.64 XORフィボナッチ数列1``()
0