Submission #7884

#TimeUsernameProblemLanguageResultExecution timeMemory
7884qja0950카드 (GA8_card)C++98
100 / 100
0 ms1096 KiB
#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 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...