結果

問題 No.64 XORフィボナッチ数列
ユーザー sqrt_3
提出日時 2017-03-02 04:31:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 230 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 57,324 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 23:25:30
合計ジャッジ時間 957 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
typedef long long int LL;
int main(){
    LL a[3];
    LL n;
    cin>>a[0]>>a[1];
    cin>>n;
    a[2]=a[0]^a[1];
    cout<<a[n%3]<<endl;
    return 0;
}
0