Submission #1018675

#TimeUsernameProblemLanguageResultExecution timeMemory
1018675vjudge1Autići (COCI22_autici)C++17
0 / 50
11 ms604 KiB
#include <iostream> using namespace std; int main() { int n,d[100000]; int ans = 0; cin >> n; for(int i = 0;i < n;i++) { cin >> d[i]; } if(n==1) { cout << 0; return 0; } cout << (n+1)*d[0]; }

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:6:9: warning: unused variable 'ans' [-Wunused-variable]
    6 |     int ans = 0;
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...