結果

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

テストケース

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

ソースコード

diff #

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