Submission #874094

#TimeUsernameProblemLanguageResultExecution timeMemory
874094zhehanFriend (IOI14_friend)C++14
16 / 100
1 ms348 KiB
#include "friend.h" #include <bits/stdc++.h> using namespace std; // Find out best sample int findSample(int n,int confidence[],int host[],int protocol[]){ int ans{}; if(protocol[1]==2){ for (int i{};i<n;++i){ ans = max(ans,confidence[i]); } }else if(protocol[1]==1){ for (int i{};i<n;++i){ ans += confidence[i]; } } 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...