結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2020-04-09 17:43:25 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 635 ms |
コンパイル使用メモリ | 55,128 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 14:43:07 |
合計ジャッジ時間 | 1,027 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <iostream>using namespace std;int main(){long long f0,f1,N;cin >> f0 >> f1 >> N;switch(N%3){case 0:cout << f0 << endl;break;case 1:cout << f1 << endl;break;case 2:cout << (f0^f1) << endl;break;}return 0;}