Submission #537754

#TimeUsernameProblemLanguageResultExecution timeMemory
537754pokmui9909카드 (GA8_card)C++17
100 / 100
1 ms444 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ cin.tie(0) -> sync_with_stdio(false); ll N; cin >> N; vector<ll> A(N); for(int i = 0; i < N; i++){ cin >> A[i]; } cout << accumulate(A.begin(), A.end(), 0LL) - *max_element(A.begin(), A.end()); }
#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...