Submission #610863

# Submission time Handle Problem Language Result Execution time Memory
610863 2022-07-28T16:28:13 Z ak2006 Autići (COCI22_autici) C++14
0 / 50
0 ms 212 KB
#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 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 212 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 -