Submission #7836

#TimeUsernameProblemLanguageResultExecution timeMemory
7836comet카드 (GA8_card)C++98
100 / 100
0 ms1096 KiB
#include<cstdio> #include<algorithm> int n; int a[2222]; int main(){ scanf("%d",&n); for(int i=0;i<n;i++)scanf("%d",&a[i]); std::sort(a,a+n); long long sum=0; for(int i=0;i<n-1;i++)sum+=(long long)a[i]; printf("%lld",sum); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...