Submission #526677

#TimeUsernameProblemLanguageResultExecution timeMemory
526677Hydroxic_AcidAutići (COCI22_autici)C++14
0 / 50
0 ms204 KiB
#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)

Main.cpp: In function 'int main()':
Main.cpp:16:10: warning: unused variable 'flag' [-Wunused-variable]
   16 |     bool flag = false;
      |          ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...