# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
44524 | MatheusLealV | Coins (IOI17_coins) | C++17 | 13 ms | 1640 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>
using namespace std;
vector<int> coin_flips(vector<int> a, int x)
{
int X = 0;
for(int i = 0; i < a.size(); i++) if(a[i]) X ^= i;
vector<int> F;
F.push_back(X ^ x);
return F;
}
int find_coin(vector<int> a)
{
int X = 0;
for(int i = 0; i < a.size(); i++) if(a[i]) X ^= i;
return X;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |