結果
| 問題 | 
                            No.64 XORフィボナッチ数列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kanzaki_puyo
                         | 
                    
| 提出日時 | 2015-11-14 00:06:25 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 239 bytes | 
| コンパイル時間 | 532 ms | 
| コンパイル使用メモリ | 58,592 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-13 16:20:15 | 
| 合計ジャッジ時間 | 1,168 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 1 WA * 10 | 
ソースコード
#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main()
{
    int x, y, n;
    cin >> x >> y >> n;
    for(int i=1; i<n; i++){
        x ^= y;
        swap(x, y);
    }
    cout << y << endl;
    return 0;
}
            
            
            
        
            
kanzaki_puyo