# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1091440 | 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 "coins.h"
#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
vector<int>coin_flips(vector<int>b, int c){
ll num=0;
for(int i=0;i<b.size();i++){
if(b[i]) num^=i;
}
for(int i=0;i<b.size();i++){
if(num^i==c){
b[i]^=1;
return b;
}
}
}
int find_coin(vector<int>b){
int ans=0;
for(int i=0;i<63;i++){
if(b[i]) ans^=i;
}
return ans;
}
void solve(){
}
int main()
{
suiii
int _=1;
cin>>_;
while(_--) solve();
return 0;
}