結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2015-11-14 00:22:42 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 936 ms |
コンパイル使用メモリ | 58,104 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-13 16:29:38 |
合計ジャッジ時間 | 1,076 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<iostream>#include<cmath>#include<cstdio>using namespace std;int main(){long long int x, y, n;long long int ans[3];cin >> x >> y >> n;ans[0] = x;ans[1] = y;ans[2] = x ^ y;cout << ans[n%3] << endl;return 0;}