#include <bits/stdc++.h>
using namespace std;
#include "friend.h"
int findSample(int n, int c[],int h[],int t[]){
int mx = 0; for (int i=1; i<n; i++) mx = max(mx,c[h[i]]+ c[i]);
return max(mx, *max_element(c,c+n));
}
# | 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... |