제출 #526672

#제출 시각아이디문제언어결과실행 시간메모리
526672chicken337Autići (COCI22_autici)C++17
50 / 50
19 ms1840 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; int a[n]; for(int i = 0; i < n; i ++) cin >> a[i]; sort(a, a + n); int ans = 0; for(int i = 1; i < n; i ++) ans += (a[0] + a[i]); cout << ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...