# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
132583 | miguel | Coins (IOI17_coins) | C++14 | 0 ms | 0 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;
#define rc(x) return cout<<x<<endl,0
#define pb push_back
#define dbg(x) cout << #x << '=' << x << '\n';
#define ll long long
#define sz size()
#define x first
#define y second
#define pi pair <int, int>
#define pii pair <int, pi>
#define vi vector <int>
const ll mod = 998244353;
int n;
vector<int> coins_flips(int b[], int c){
int res=0;
for(int i=0; i<64; i++){
if(b[i]==1) res^=i;
}
vi lol;
lol.pb(res^c);
return lol;
}
int find_coin(int b[]){
int res=0;
for(int i=0; i<64; i++){
if(b[i]==1) res^=i;
}
return res;
}