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>
int mian[2225];
int main(){
int mani, mina = 0;
scanf("%d",&mani);
for(int mnia=0;mnia<mani;mnia++)scanf("%d",mian+mnia);
for(int mnai=0;mnai<mani;mnai++)mina += mian[mnai];
printf("%d", mina - *(std::max_element(mian, mian+mani)));
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... |