제출 #1064034

#제출 시각아이디문제언어결과실행 시간메모리
1064034wood친구 (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...