Submission #596559

#TimeUsernameProblemLanguageResultExecution timeMemory
596559Hussein3600Prosjek (COCI14_prosjek)C++14
50 / 50
1 ms296 KiB
#include<bits/stdc++.h> using namespace std ; #define mid (r+l)/2 #define fr(i,n) for(int i=0;i<n;i++) typedef long long ll ; int main() { int n ; cin >> n ; ll a,x=0; for(int i=1;i<=n;i++) { cin>>a; cout<<a*i-x<<" "; x+=a*i-x ; } }
#Verdict Execution timeMemoryGrader output
Fetching results...