Submission #874068

#TimeUsernameProblemLanguageResultExecution timeMemory
874068yhkhooFriend (IOI14_friend)C++17
16 / 100
1 ms604 KiB
#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=1; 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...