# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1141519 | Saul0906 | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include "coins.h"
#include <bits/stdc++.h>
#define pii pair<int, int>
#define rep(a,b,c) for(int a=b; a<c; a++)
#define repr(a,b,c) for(int a=b-1; a>c-1; a--)
#define repa(a,b) for(auto a:b)
#define all(a) a.begin(), a.end()
#define fi first
#define se second
#define mid ((l+r+1)>>1)
#define pb push_back
using namespace std;
using vi = vector<int>;
vi coin_flips(vi b, int c) {
int x=0;
rep(i,0,64) x^=(b[i]*i);
return {x^c}
}
int find_coin(vi b) {
int x=0;
rep(i,0,64) x^=(b[i]*i);
return x;
}