Submission #676361

#TimeUsernameProblemLanguageResultExecution timeMemory
676361_________Mean (info1cup19_mean)C++17
0 / 100
1 ms212 KiB
#include<bits/stdc++.h> using namespace std; int main (){ int x; cin>>x; int s; vector<int>q(0,x); for(int o=0;o<x;o++){ int z; cin>>z; q.push_back(z); } sort(q.begin(),q.end()); s=q[0]; for(int o=1;o<x;o++){s=(s+q[o])/2; } cout<<s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...