結果
| 問題 |
No.64 XORフィボナッチ数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-05 13:48:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,696 KB |
| 最終ジャッジ日時 | 2024-07-07 14:27:41 |
| 合計ジャッジ時間 | 7,062 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 1 -- * 4 |
ソースコード
# coding: utf-8
f0,f1,n = map(int,input().split(" "))
res = 0
if n == 0:
print(f0)
elif n == 1:
print(f1)
else:
for i in range(2,n+1):
res = f1 ^ f0
f0 = f1
f1 = res
print(res)