結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2017-03-02 04:25:31 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 654 ms |
コンパイル使用メモリ | 57,064 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 23:25:29 |
合計ジャッジ時間 | 1,167 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 10 |
ソースコード
#include<iostream> #include<algorithm> #include<string> using namespace std; typedef long long int LL; int main(){ int a[3]; LL n; cin>>a[0]>>a[1]; cin>>n; a[2]=a[0]^a[1]; cout<<a[n%3]<<endl; return 0; }