Submission #1064034

#TimeUsernameProblemLanguageResultExecution timeMemory
1064034woodFriend (IOI14_friend)C++17
0 / 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[]){ long long s1 = confidence[0] ,s2 = 0;; bool side[n]; side[0] = 0; for(int i = 1; i<n; i++){ side[i] = !side[host[i]]; if(side[i]) s2+=confidence[i]; else s1+=confidence[i]; } return max(s1,s2); }
#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...