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>
#include <algorithm>
using namespace std;
#define MAXN 2332
int N;
int Number[MAXN];
int main() {
scanf("%d", &N);
for(int i=0; i<N; i++) scanf("%d", &Number[i]);
sort(Number, Number+N);
int Answer=0;
for(int i=0; i<N-1; i++) Answer+=Number[i];
printf("%d", Answer);
}
# | 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... |