# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
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;
}