Submission #610863

#TimeUsernameProblemLanguageResultExecution timeMemory
610863ak2006Autići (COCI22_autici)C++14
0 / 50
0 ms212 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; long long sum = 0; vector<long long>d(n + 1); for (int i = 1;i<=n;i++)cin>>d[i]; sort(d.begin() + 1,d.end()); for (int i = 1;i<=n;i++) sum += d[i]; sum += d[1]; cout<<sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...