結果

問題 No.64 XORフィボナッチ数列
ユーザー excnct
提出日時 2024-12-22 18:31:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 267 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 821,248 KB
最終ジャッジ日時 2024-12-22 18:31:30
合計ジャッジ時間 24,011 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 TLE * 3 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    f_0, f_1, n = [int(i) for i in input().split()]
    sequence_list = [f_0, f_1]
    for i in range(2, n + 1):
        sequence_list.append(sequence_list[i - 2] ^ sequence_list[i - 1])
    print(sequence_list[n])


if __name__ == "__main__":
    main()
0