結果
問題 |
No.64 XORフィボナッチ数列
|
ユーザー |
![]() |
提出日時 | 2015-11-14 00:16:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 59,396 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 16:28:20 |
合計ジャッジ時間 | 1,123 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 10 |
ソースコード
#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main() { int x, y, n, ans; cin >> x >> y >> n; for(int i=0; ans = x, i<n; i++){ x ^= y; swap(x, y); } cout << x << endl; return 0; }