結果
| 問題 | No.64 XORフィボナッチ数列 |
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2016-10-05 15:16:51 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 337µs | |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 93,956 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-10-11 10:22:19 |
| 合計ジャッジ時間 | 1,576 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
using namespace std;
int main(){
long long int a, b, c, n;
cin >> a >> b >> n;
c = a ^ b;
if( n%3 == 0 ) cout << a << endl;
else if( n%3 == 1 ) cout << b << endl;
else cout << c << endl;
return 0;
}
Yut176