Submission #7516

#TimeUsernameProblemLanguageResultExecution timeMemory
7516jalmal카드 (GA8_card)C++98
100 / 100
0 ms1096 KiB
#include <stdio.h> #include <algorithm> using namespace std; int N, arr[2230], ans; int main() { int i; scanf("%d", &N); for(i = 1; i <= N; i ++) scanf("%d", &arr[i]); sort(arr+1, arr+1+N); for(i = 1; i < N; i ++) ans += arr[i]; printf("%d", ans); 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...