Submission #7885

#TimeUsernameProblemLanguageResultExecution timeMemory
7885xhae카드 (GA8_card)C++14
100 / 100
0 ms1088 KiB
#include <cstdio> #include <algorithm> using namespace std; int main(void) { int n; scanf("%d", &n); int data[3000]; for(int i = 0; i < n; i++) scanf("%d", data + i); sort(data, data + n); printf("%d\n", accumulate(data, data + n - 1, 0)); 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...