Submission #147407

#TimeUsernameProblemLanguageResultExecution timeMemory
147407mariadincaProsjek (COCI14_prosjek)C++14
50 / 50
2 ms376 KiB
#include <iostream> using namespace std; int n, i, crt, ant = 0, a[103]; int main(){ cin>>n; for(i=1;i<=n;i++){ cin>>crt; a[i] = i*crt - (i-1)*ant; ant = crt; } for(i=1;i<=n;i++) cout<<a[i]<<" "; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...