# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1219112 | theiulius | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
#include "coins.h"
using namespace std;
#define int long long
#define ff first
#define ss second
#define pb push_back
int t;
const int N = 1e6 + 6;
std::vector<int> coin_flips(std::vector<int> b, int c) {
std::vector<int> flips;
for (int i = 0; i <= 6; i++){
if (((1 << i) & c) != b[i]){
flips.pb(i);
}
}
while (flips.size() < 8){
flips.pb(7);
}
return flips;
}
int find_coin(std::vector<int> b) {
int num = 0;
for (int i = 0; i <= 6; i++){
num += (1 << i) * b[i];
}
return num;
}
main(){
/*ifstream cin(".in");
ofstream cout(".out");*/
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
}