結果
| 問題 |
No.64 XORフィボナッチ数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-23 12:51:18 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 1,979 ms |
| コンパイル使用メモリ | 191,380 KB |
| 最終ジャッジ日時 | 2025-02-15 18:29:08 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fi first
#define se second
int main(){
int a, b, n;
cin >> a >> b >> n;
if(n % 3 == 0) cout << a << endl;
else if(n % 3 == 1) cout << b << endl;
else cout << (a ^ b) << endl;
return 0;
}