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 "friend.h"
// Find out best sample
int findSample(int n,int confidence[],int host[],int protocol[]){
int ans=0;
bool st1=true,st2=true,st3=true,st4=true;
if(n>10)
st1=false;
for(int i=0; i<n; i++){
if(protocol[i] == 0){
st2=false;
st3=false;
}
else if(protocol[i] == 1){
st3=false;
st4=false;
}
else{
st2=false;
st4=false;
}
}
if(st2){
for(int i=0; i<n; i++){
ans += confidence[i];
}
}
else if(st3){
for(int i=0; i<n; i++){
if(confidence[i] > ans){
ans = confidence[i];
}
}
}
else if(st1){
}
else if(st4){
}
return ans;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |