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 <bits/stdc++.h>
using namespace std;
vector<int> coin_flips(vector<int> b, int c) {
vector<int>inv;
if(c){
if(b[0]==b[1]){
inv.push_back(3);
}
else if(b[0]){
inv.push_back(0);
}
else{
inv.push_back(1);
}
}
else{
if(b[0]==b[1]){
inv.push_back(0);
}
else{
inv.push_back(3);
}
}
return inv;
}
int find_coin(std::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... |