Submission #7338

#TimeUsernameProblemLanguageResultExecution timeMemory
7338kriii카드 (GA8_card)C++98
100 / 100
0 ms1096 KiB
#include <stdio.h> #include <algorithm> int N,A[2222],S; int main() { scanf ("%d",&N); for (int i=0;i<N;i++) scanf ("%d",&A[i]); std::sort(A,A+N); for (int i=0;i<N-1;i++) S += A[i]; printf ("%d\n",S); return 0; }
#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...