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"
std::vector<int> coin_flips(std::vector<int> b, int c) {
std::vector<int> flips(1);
flips[0] = 63;
if(b[0] == b[1] && b[1] == b[2]){
flips[0] = c;
}else{
for(int i=0; i<3; i++){
if(c == i)continue;
if(b[i] == b[c]){
flips[0] = i;
}
}
}
return flips;
}
int find_coin(std::vector<int> b) {
if (b[0] == b[1]) {
return 2;
}else if(b[0] == b[2]){
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... |