結果
問題 |
No.64 XORフィボナッチ数列
|
ユーザー |
|
提出日時 | 2015-02-15 22:08:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 553 ms |
コンパイル使用メモリ | 56,944 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 20:23:24 |
合計ジャッジ時間 | 1,239 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 10 |
ソースコード
#include <iostream> #include <algorithm> #include <cstring> #include <climits> typedef long long LL; using namespace std; int main() { int F[2], N; cin >> F[0] >> F[1] >> N; while (N) { F[0] ^= F[1]; swap(F[0], F[1]); --N; } cout << F[0] << endl; return 0; }