結果

問題 No.64 XORフィボナッチ数列
ユーザー fmhrfmhr
提出日時 2015-04-22 17:36:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 122 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-18 08:15:43
合計ジャッジ時間 1,021 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

f = [0] * (10*18)
f[0], f[1], N = map(int, input().split())
for i in range(2, N+1):
    f[i] = f[i-1] ^ f[i-2]
print(f[N])
0