Submission #526682

#TimeUsernameProblemLanguageResultExecution timeMemory
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...