結果

問題 No.64 XORフィボナッチ数列
ユーザー maicunemaicune
提出日時 2019-09-02 21:56:06
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 196 bytes
コンパイル時間 1,448 ms
コンパイル使用メモリ 159,616 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-17 18:23:13
合計ジャッジ時間 1,943 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    vector<ll> f(3);
    ll n,ans;
    cin>>f[0]>>f[1]>>n;
    f[2]=f[0]^f[1];
    ans=f[n%3];
    cout<<ans<<endl;
}
0