This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int a[3010], s;
int main()
{
int i, n, ma=-2147483648;
scanf("%d", &n);
for(i=1; i<=n; ++i)
{
scanf("%d", &a[i]);
s+=a[i];
ma=ma>a[i]?ma:a[i];
}
printf("%d", s-ma);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |