Submission #201438

#TimeUsernameProblemLanguageResultExecution timeMemory
201438EmmanuelACProsjek (COCI14_prosjek)C++14
50 / 50
5 ms376 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long int main(){ ll n; cin >> n; ll acum = 0; for(int i=1; i<=n; i++){ ll aux; cin >> aux; aux = aux * i; aux -= acum; cout << aux << " "; acum += aux; } cout << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...