# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
969954 | 2024-04-26T01:58:39 Z | irmuun | Coins (IOI17_coins) | C++17 | 0 ms | 0 KB |
#include<bits/stdc++.h> #include "coins.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() vector<int>coin_flips(vector<int>b,int c){ int xr=c; for(int i=0;i<64;i++){ if(b[i]==0) xr^=i; } return xr; } int find_coin(vector<int>b){ int xr=0; for(int i=0;i<64;i++){ if(b[i]==0) xr^=i; } return xr; }