結果

問題 No.64 XORフィボナッチ数列
ユーザー kaminomisosirukaminomisosiru
提出日時 2018-02-05 13:40:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 169 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 829,824 KB
最終ジャッジ日時 2023-09-21 20:07:26
合計ジャッジ時間 7,864 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# coding: utf-8

f0,f1,n = map(int,input().split(" "))

dp = []
dp.append(f0)
dp.append(f1)
for i in range(2,n+1):
    dp.append(dp[i-1] ^ dp[i-2])
        
print(dp[n])
0