結果
問題 |
No.64 XORフィボナッチ数列
|
ユーザー |
|
提出日時 | 2020-09-13 03:55:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 325 bytes |
コンパイル時間 | 1,715 ms |
コンパイル使用メモリ | 193,460 KB |
最終ジャッジ日時 | 2025-01-14 14:22:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 10 |
ソースコード
#include <bits/stdc++.h> #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int N; vector<int> v(3); rep(i, 0, 2) { cin >> v[i]; }; v[2] = v[0] ^ v[1]; cin >> N; cout << v[N % 3] << endl; } int main() { ios::sync_with_stdio(false); cin.tie(0); solve(); getchar(); }