結果

問題 No.64 XORフィボナッチ数列
ユーザー konabekonabe
提出日時 2018-07-23 14:33:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 177 bytes
コンパイル時間 1,074 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,524 KB
最終ジャッジ日時 2023-08-27 07:22:36
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,816 KB
testcase_01 RE -
testcase_02 AC 16 ms
7,852 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 16 ms
7,804 KB
testcase_06 AC 16 ms
7,960 KB
testcase_07 AC 16 ms
7,772 KB
testcase_08 AC 16 ms
7,840 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def fib(F0, F1, N):
    if N == 2:
        return F0 ^ F1
    else:
        return fib(F1, F0^F1, N-1)
    

F0, F1, N = [int(i) for i in input().split()]

print(fib(F0, F1, N))
0