# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1141405 | aarb_.tomatexd | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
#include "coins.h"
#include <bits/stdc++.h>
using namespace std;
#define SZ(x) ((int)(x).size())
#define ll long long
// c== 1, k== 1,
vector<int>coin_flips(vector<int> x, int c){
vector<int> r(1);
if(c==1){
if(x[0] != x[1]){
return r;
}else{
r[0] = 0;
return;
}
}else{
if(x[0] == x[1]){
return r;
}else{
r[0] = 0;
return r;
}
}
return r;
}
int find_coin(vector<int> b){
if(b[0] != b[1]){
return 1;
}else{
return 0;
}
}