This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |