結果

問題 No.64 XORフィボナッチ数列
ユーザー ebicochinealebicochineal
提出日時 2017-07-02 23:50:26
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 233 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 81,564 KB
最終ジャッジ日時 2024-04-15 12:46:48
合計ジャッジ時間 7,269 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,712 KB
testcase_01 AC 41 ms
51,840 KB
testcase_02 AC 40 ms
51,712 KB
testcase_03 AC 39 ms
51,968 KB
testcase_04 AC 40 ms
51,968 KB
testcase_05 AC 40 ms
51,712 KB
testcase_06 AC 39 ms
51,968 KB
testcase_07 AC 40 ms
51,712 KB
testcase_08 AC 40 ms
52,096 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(f0, f1, n):
    a = f1
    b = f0
    if n == 0 : return f0
    if n == 1 : return f1
    for i in range(n-1):
        t = a
        a = a ^ b
        b = t
    return a
F0, F1, N = map(int, input().split())
print(f(F0, F1, N))
0