# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
344596 | Rakhmand | Xoractive (IZhO19_xoractive) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "interactive.h"
#include <iostream>
using namespace std;
int ans[110];
bool check(vector<int> x, int a, int b, int c, int d){
vector<int> kek = {a, b, c, d};
vector<int> check;
for(int i = 0; i < kek.size(); i++){
for(int j = 0; j < kek.size(); j++){
check.push_back(kek[i] ^ kek[j]);
}
}
sort(check.begin(), check.end());
if(x == check) return true;
else return false;
}
vector<int> oh[1010];
vector<int> guess(int n) {
vector<int> ans;
for(int i = 0; i < n; i++) ans.push_back(ask(i + 1));
return ans;
}