結果

問題 No.64 XORフィボナッチ数列
ユーザー umaumax
提出日時 2017-05-03 18:58:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 55,500 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2024-09-14 07:08:05
合計ジャッジ時間 7,043 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 4 WA * 2 TLE * 1 -- * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(int argc, const char* argv[])
{
	uint64_t F0, F1, N;
	cin >> F0 >> F1 >> N;
	if (N == 1) {
		cout << F1 << endl;
		return 0;
	}
	for (uint64_t i = 2; i <= N; i++) {
		F0 = F1 ^ F0;
	}
	cout << F0 << endl;
	return 0;
}
0