Submission #154479

#TimeUsernameProblemLanguageResultExecution timeMemory
154479erebosProsjek (COCI14_prosjek)C++17
50 / 50
3 ms376 KiB
#include <bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin>>n; ll sum=0; for(ll i=1; i<=n; ++i){ ll a; cin>>a; cout<<a*i-sum<<" "; sum=a*i; } }
#Verdict Execution timeMemoryGrader output
Fetching results...