# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165853 | itiam | Prosjek (COCI14_prosjek) | C++11 | 2 ms | 504 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>
#include <algorithm>
#include <cstdio>
using namespace std;
int L[103];
int main(){
int N;
long long zb=0,x;
cin >> N;
for (int i=0;i<N;i++){
cin >> x;
x*=(i+1);
x-=zb;
L[i]=x;
zb+=x;
}
for (int i=0;i<N;i++){
cout << L[i] << " ";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |