#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 r;
}
}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;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |