Submission #904290

#TimeUsernameProblemLanguageResultExecution timeMemory
904290Jawad_Akbar_JJProsjek (COCI14_prosjek)C++17
50 / 50
1 ms436 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int sum = 0; for (int i=1;i<=n;i++){ int a; cin>>a; int curSum = a * i; cout<<curSum - sum<<" "; sum += curSum - sum; } cout<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...