제출 #526682

#제출 시각아이디문제언어결과실행 시간메모리
526682Hydroxic_AcidAutići (COCI22_autici)C++14
50 / 50
60 ms1056 KiB
#include <iostream> using namespace std; #define ll long long ll N; ll length[100005]; int main(){ cin >> N; ll minn = 1000000000; for(ll i = 0; i < N; i++){ cin >> length[i]; minn = min(minn, length[i]); } ll summ = minn * N; for(ll i = 0; i < N; i++){ summ += length[i]; } summ -= minn; summ -= minn; cout << summ; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...