結果

問題 No.64 XORフィボナッチ数列
ユーザー FVRChanFVRChan
提出日時 2018-05-03 10:46:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 204 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 581,776 KB
最終ジャッジ日時 2023-09-10 09:17:17
合計ジャッジ時間 7,271 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

f0,f1,n=list(map(int,input().split(" ")))
stack=[f0,f1]
if n>=2:
    for i in range(n-1):
        stack.append(stack[len(stack)-2]^stack[len(stack)-1])
    print(stack.pop())
else:
    print(stack.pop(n))
0