結果

問題 No.64 XORフィボナッチ数列
ユーザー ABKZABKZ
提出日時 2022-01-15 17:16:32
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 123 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 82,476 KB
実行使用メモリ 848,332 KB
最終ジャッジ日時 2024-05-01 14:59:51
合計ジャッジ時間 6,560 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

F0, F1, N = map(int, input().split())

fib = [F0, F1]
for _ in range(N - 1):
  fib.append(fib[-2] ^ fib[-1])
print(fib[N])
0