Submission #610862

#TimeUsernameProblemLanguageResultExecution timeMemory
610862ak2006Autići (COCI22_autici)C++14
0 / 50
0 ms224 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; long long sum = 0; vector<int>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...