結果

問題 No.64 XORフィボナッチ数列
ユーザー mitsushinomitsushino
提出日時 2018-01-12 10:39:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 323 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 12,512 KB
最終ジャッジ日時 2023-08-25 15:28:55
合計ジャッジ時間 7,214 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding: utf-8 -*-


def make_xor_fib(F0, F1, N):
    a, b = F0, F1
    for _ in range(N):
        a, b = b, int(bin(a ^ b)[2:], 2)
    return a


if __name__ == '__main__':
    input_list = list(map(int, input().split()))
    F0, F1, N = input_list[0], input_list[1], input_list[2]
    print(make_xor_fib(F0, F1, N))
0