# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339041 | ammar2000 | Prosjek (COCI14_prosjek) | C++17 | 1 ms | 364 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 <bits/stdc++.h>
using namespace std;
int n,a[120],b[120];
int main()
{
a[0]=0;
cin>>n;
for (int i=1;i<=n;i++)
cin>>b[i];
for (int i=1;i<=n;i++)
b[i]*=i;
for (int i=n;i;i--)
a[i]=b[i]-b[i-1];
for (int i=1;i<=n;i++)
cout <<a[i]<<" ";
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |