Submission #45436

#TimeUsernameProblemLanguageResultExecution timeMemory
45436denis2111Prosjek (COCI14_prosjek)C++14
50 / 50
2 ms712 KiB
#include <bits/stdc++.h> using namespace std; int n,x,s; int main() { cin>>n; for(int i=1;i<=n;i++){ cin>>x; int ans = x*i-s; s += ans; cout<<ans<<' '; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...