結果

問題 No.64 XORフィボナッチ数列
ユーザー zyxwzyxw
提出日時 2020-10-15 20:29:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 163 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 8,572 KB
最終ジャッジ日時 2023-09-28 01:18:04
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

d=input().split()
a=int(d[0])
b=int(d[1])
n=int(d[2])
def func(x,y,n):
    if n==-1:
        return x^y
    else:
        return func(y,x^y,n-1)
print(func(a,b,n))
0