結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2017-12-12 17:34:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 714 ms |
コンパイル使用メモリ | 81,740 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 06:05:17 |
合計ジャッジ時間 | 1,407 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <string>#include <iomanip>#include <functional>#include <cmath>using namespace std;#define lli long long intint main() {lli 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;}