結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2018-10-16 22:18:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 722 ms |
コンパイル使用メモリ | 70,560 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 18:45:45 |
合計ジャッジ時間 | 1,229 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <iostream>#include <string>#include <vector>#include <set>#include <algorithm>using namespace std;int main(void){long long F0, F1, N;cin >> F0 >> F1 >> N;if(N%3==0){cout << F0 << endl;}else if(N%3==1){cout << F1 << endl;}else{cout << (F0 ^ F1) << endl;}return 0;}