This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "coins.h"
#include<bits/stdc++.h>
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
vector<int> flips;
int cnt0=0;
for(int i=0;i<2;i++)
if(b[i]==0)cnt0++;
if((cnt0==2||cnt0==0)&&c!=1)
flips.push_back(0);
else if(cnt0==1&&c!=1)
flips.push_back(0);
return flips;
}
int find_coin(vector<int> b) {
int cnt0=0;
for(int i=0;i<2;i++)
if(b[i]==0)cnt0++;
if(cnt0==2||cnt0==0)return 0;
else
return 1;
}
# | 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... |