# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
687661 | Matteo_Verz | Xoractive (IZhO19_xoractive) | C++17 | 3063 ms | 208 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 <bits/stdc++.h>
#include "interactive.h"
#ifdef BLAT
#include "debug/debug.hpp"
#else
#define debug(x...)
#endif
using namespace std;
void remove_junk(vector <int> &v) {
vector <int> v2;
for (int i = 0; i < v.size(); i += 2)
if (v[i] != 0)
v2.push_back(v[i]);
v = v2;
}
int first, offset;
vector <int> ans;
void check(const vector <int> &q, int chosen) {
debug(q, chosen);
vector <int> v, others;
for (int i = 0; i < q.size(); i++) {
if (chosen & (1 << i))
v.push_back(q[i] ^ first);
else others.push_back(q[i]);
}
debug(v, others);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |