結果

問題 No.64 XORフィボナッチ数列
ユーザー naipia
提出日時 2018-05-31 22:01:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 1,406 ms
コンパイル使用メモリ 158,524 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 08:41:43
合計ジャッジ時間 2,207 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    long long f0,f1,n;
    cin >> f0 >> f1 >> n;

    int tmp=f0^f1;
    if(n%3==0) cout << f0 << endl;
    else if(n%3==1) cout << f1 << endl;
    else cout << tmp << endl; 

    return 0;
}
0