結果

問題 No.64 XORフィボナッチ数列
ユーザー szkakeszkake
提出日時 2015-08-25 00:11:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 187 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 816,920 KB
最終ジャッジ日時 2023-09-25 16:49:50
合計ジャッジ時間 6,549 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding:utf-8 -*-
if __name__ == '__main__':
    f0, f1, n = map(int, input().split())
    f = [f0, f1]
    for i in range(2, n + 1):
        f.append(f[-1] ^ f[-2])
    print(f[n])
0