結果

問題 No.64 XORフィボナッチ数列
ユーザー kanzaki_puyo
提出日時 2015-11-14 00:17:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 273 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 58,444 KB
実行使用メモリ 14,016 KB
最終ジャッジ日時 2024-09-13 16:29:46
合計ジャッジ時間 6,969 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 TLE * 1 -- * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;

int main()
{
    long long int x, y, n, ans;

    cin >> x >> y >> n;
    for(long long int i=0; ans = x, i<n; i++){
        x ^= y;
        swap(x, y);
    }
    cout << x << endl;

    return 0;
}
0