結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2020-06-10 06:06:49 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 786 ms |
コンパイル使用メモリ | 94,612 KB |
最終ジャッジ日時 | 2025-01-11 00:39:53 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <cstdio> #include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <math.h> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll a,b,c; cin >> a >> b >> c; if(c%3==0){ cout << a << endl; } else if(c%3==1){ cout << b << endl; } else{ cout << (a^b) << endl; } }