# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
147407 | mariadinca | Prosjek (COCI14_prosjek) | C++14 | 2 ms | 376 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |