結果

問題 No.64 XORフィボナッチ数列
ユーザー jjwattjjwatt
提出日時 2020-03-27 12:45:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 230 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 12,624 KB
最終ジャッジ日時 2023-08-30 16:22:41
合計ジャッジ時間 7,154 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,724 KB
testcase_01 AC 15 ms
7,904 KB
testcase_02 AC 14 ms
7,820 KB
testcase_03 AC 14 ms
7,780 KB
testcase_04 AC 14 ms
7,804 KB
testcase_05 AC 14 ms
7,784 KB
testcase_06 AC 15 ms
7,780 KB
testcase_07 AC 14 ms
7,764 KB
testcase_08 AC 16 ms
7,784 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,n=map(int,input().split())
def Fib(n):
    global a
    global b
    if n == 0:
        return a
    elif n == 1:
        return b
    else:
        for i in range(n-1):
            a, b = b, a^b
        return b
print(Fib(n))
0