# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
40388 | model_code | Coins (IOI17_coins) | C++11 | 12 ms | 1808 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> a, int x){
vector<int> ans;
ans.push_back(63);
for(int i = 0; i < 6; ++ i){
int bit = (x >> i) & 1;
if(bit != a[i])
ans.push_back(i);
}
return ans;
}
int find_coin(vector<int> a){
int ans = 0;
for(int i = 0; i < 6; ++ i)
if(a[i])
ans ^= (1 << i);
return ans;
}
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... |