# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
610862 |
2022-07-28T16:27:44 Z |
ak2006 |
Autići (COCI22_autici) |
C++14 |
|
0 ms |
224 KB |
#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 time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
224 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |