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 "coins.h"
#define ll long long
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
ll xr=0;
for(int i=0; i<64; i++){
if(b[i]) xr=xr^i;
}
vector<int>ret;
ret.push_back(xr^c);
return ret;
}
int find_coin(vector<int> b) {
ll xr=0;
for(int i=0; i<64; i++){
if(b[i]) xr=xr^i;
}
return xr;
}
# | 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... |