# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
45436 | denis2111 | Prosjek (COCI14_prosjek) | C++14 | 2 ms | 712 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,x,s;
int main()
{
cin>>n;
for(int i=1;i<=n;i++){
cin>>x;
int ans = x*i-s;
s += ans;
cout<<ans<<' ';
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |