# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1219158 | notarat40 | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
#define begin begin()
#define end end()
#define loop(a,b,c,d) for(ll a=b; i<c; i+=d)
std::vector<int> coin_flips(std::vector<int> b, int c) {
std::vector<int> flips(1);
ll xor1=xor1^0;
loop(i,0,63,1){
if(b[i]==1){
xor1=xor1^i;
}
}
flips[0]=xor1^c;
return flips;
}
int find_coin(std::vector<int> b) {
ll xor1=xor1^i;
loop(i,0,63,1){
if(b[i]==1){
xor1=xor1^i;
}
}
return xor;
}