結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2016-05-08 19:40:45 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 497 bytes |
コンパイル時間 | 806 ms |
コンパイル使用メモリ | 82,932 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 10:50:38 |
合計ジャッジ時間 | 1,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <vector>#include <string>#include <algorithm>#include <numeric>#include <iostream>#include <cstdlib>#include <cstring>#include <utility>#include <list>#include <map>#include <set>#include <queue>#include <iterator>#include <cmath>#include <iomanip>using namespace std;using ull = unsigned long long;using ll = long long;int main(){ull f0,f1,n;cin >> f0 >> f1 >> n;ull f2 = f0 ^ f1;ull data[3] = {f0,f1,f2};cout << data[n % 3] << endl;}