Submission #600448

#TimeUsernameProblemLanguageResultExecution timeMemory
600448AmirElarbiFriend (IOI14_friend)C++14
16 / 100
1 ms340 KiB
#include <bits/stdc++.h> #define vi vector<int> #define ve vector #define ll long long #define vf vector<float> #define vll vector<pair<ll,ll>> #define ii pair<int,int> #define pll pair<ll,ll> #define vvi vector<vi> #define vii vector<ii> #define gii greater<ii> #define pb push_back #define mp make_pair #define fi first #define se second #define INF 2e9+5 #define eps 1e-7 #define eps1 1e-25 #define optimise ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define MAX_A 1e5+5 using namespace std; const int MOD = 1e9; const int nax = 2e3+5; #include "friend.h" int findSample(int n,int conf[],int host[],int prot[]){ int ans=0, mx = 0; for (int i = 0; i < n; ++i) { ans += conf[i]; mx = max(mx, conf[i]); } if(prot[1] == 1) return ans; else return mx; }
#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...