Submission #165853

#TimeUsernameProblemLanguageResultExecution timeMemory
165853itiamProsjek (COCI14_prosjek)C++11
50 / 50
2 ms504 KiB
#include <iostream> #include <algorithm> #include <cstdio> using namespace std; int L[103]; int main(){ int N; long long zb=0,x; cin >> N; for (int i=0;i<N;i++){ cin >> x; x*=(i+1); x-=zb; L[i]=x; zb+=x; } for (int i=0;i<N;i++){ cout << L[i] << " "; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...