제출 #1042965

#제출 시각아이디문제언어결과실행 시간메모리
1042965ALeonidou친구 (IOI14_friend)C++17
8 / 100
1 ms348 KiB
#include "friend.h" #include <bits/stdc++.h> using namespace std; #define ll int #define F first #define S second #define pb push_back #define endl "\n" #define sz(x) (ll)x.size() typedef vector <ll> vi; typedef pair <ll,ll> ii; typedef vector <ii> vii; #define dbg(x) cout<<#x<<": "<<x<<endl; #define dbg2(x,y) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<endl; #define dbg3(x,y,z) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<" "<<#z<<": "<<z<<endl; void printVct(vi &v){ for (ll i =0; i<sz(v); i++){ cout<<v[i]<<" "; } cout<<endl; } // Find out best sample int findSample(int n,int confidence[],int host[],int protocol[]){ ll s = 0; //subtask 2: // for (ll i =0; i<n; i++){ // s += confidence[i]; // } //subtask 3: for (ll i =0; i<n; i++){ s = max(s, confidence[i]); } return s; }
#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...