結果
| 問題 |
No.64 XORフィボナッチ数列
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-02-24 17:37:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 72,300 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-14 15:56:41 |
| 合計ジャッジ時間 | 1,110 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include<iostream>
#include<vector>
#include<bitset>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
long long a,b,n;
cin >> a >> b >> n;
if(n%3==0) cout << a;
else if(n%3==1) cout << b;
else cout << (a^b);
return 0;
}
focus