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 "grader.cpp"
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
vector<int>inv;
for(int i=0;i<8;i++){
int op=(c&(1<<i))>=1;
if(b[i]!=op){
inv.push_back(i);
}
}
if(inv.size()==0){
inv.push_back(40);
}
return inv;
}
int find_coin(std::vector<int> b){
int ans=0;
for(int i=0;i<6;i++){
ans|=((1<<i)*b[i]);
}
return ans;
}
# | 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... |