# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
526677 | Hydroxic_Acid | Autići (COCI22_autici) | C++14 | 0 ms | 204 KiB |
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 <iostream>
#include <queue>
using namespace std;
#define ll long long
int N;
ll length[100005];
int main(){
cin >> N;
ll minn = 1000000000;
for(int i = 0; i < N; i++){
cin >> length[i];
minn = min(minn, length[i]);
}
bool flag = false;
ll summ = minn * N;
for(int i = 0; i < N; i++){
summ += length[i];
}
summ -= minn;
cout << summ;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |