# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1091438 | Almonther | Coins (IOI17_coins) | C++17 | 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>
#define suiii ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define co cout<<
//#pragma GCC optimize("O3,Ofast,unroll-loops")
//#pragma GCC target("avx2,sse3,sse4,avx")
using namespace std;
//stuff
int[] coin_flips(int []b, int c){
ll num=0;
for(int i=0;i<63;i++){
if(b[i]) num^=i;
}
for(int i=0;i<63;i++){
if(num^i==c){
b[i]^=1;
return b;
}
}
}
int find_coin(int[] b){
int ans=0;
for(int i=0;i<63;i++){
if(b[i]) ans^=i;
}
return ans;
}