Submission #7474

#TimeUsernameProblemLanguageResultExecution timeMemory
7474gs14004카드 (GA8_card)C++98
100 / 100
0 ms1096 KiB
#include <cstdio> #include <algorithm> using namespace std; int a[2223],n; long long res; int main(){ scanf("%d",&n); for(int i=0; i<n; i++){ scanf("%d",&a[i]); res += a[i]; } sort(a,a+n); printf("%lld",res - a[n-1]); }
#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...