Submission #7849

#TimeUsernameProblemLanguageResultExecution timeMemory
7849ainu7카드 (GA8_card)C++98
100 / 100
0 ms1676 KiB
#include <math.h> #include <stdio.h> #include <string.h> #include <vector> #include <string> #include <queue> #include <map> #include <algorithm> #include <cmath> #include <iostream> #include <sstream> #include <set> using namespace std; int main() { int n; cin >> n; vector<int> A(n); for (int i=0; i<n; i++) cin >> A[i]; sort(A.begin(), A.end()); int sum = 0; for (int i=0; i<n-1; i++) sum += A[i]; cout << sum << endl; }
#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...