# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
650817 | kunzaZa183 | Coins (IOI17_coins) | C++17 | 11 ms | 1572 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 "coins.h"
using namespace std;
vector<int> coin_flips(vector<int> b, int c)
{
int cur = 0;
for (int i = 0; i < b.size(); i++)
if (b[i] == 1)
cur = int(cur ^ i);
vector<int> vi;
for (int i = 0; i < 64; i++)
{
if (int(cur ^ i) == c)
{
vi.push_back(i);
break;
}
}
return vi;
}
int find_coin(vector<int> b)
{
int cur = 0;
for (int i = 0; i < b.size(); i++)
if (b[i] == 1)
cur = cur ^ i;
return cur;
}
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... |