# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1219148 | mariamtsagareli | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
vector<int> flip(vector<int>&b,int c){
int x=0;
for(int i=0;i<64;i++) if(b[i]) x^=i;
int t=x^c;
return {t};
}
int findc(vector<int>&b){
int x=0;
for(int i=0;i<64;i++) if(b[i]) x^=i;
return x;
}