제출 #528610

#제출 시각아이디문제언어결과실행 시간메모리
528610penguinhackerAutići (COCI22_autici)C++14
50 / 50
12 ms716 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array const int mxN=1e5; int n, a[mxN]; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> n; for (int i=0; i<n; ++i) cin >> a[i]; cout << accumulate(a, a+n, 0ll)+(ll)(n-2)**min_element(a, a+n); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...