| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 398712 | Alexandra | Prosjek (COCI14_prosjek) | C++14 | 1 ms | 316 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 <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	int n;
	vector<int> b;
	vector<int> a;
	cin >> n;
	for (int i=0; i<n; i++) {
		int c;
		cin >> c;
		b.push_back(c);
	}
	a.push_back(b[0]);
	int media=a[0];
	for (int nums=1; nums<n; nums++) {
		a.push_back(b[nums]*(nums+1)-media);
		media += a[nums];
	}
	for (int i=0; i<n; i++) {
		cout << a[i];
		if (i!=(n-1)) {
			cout << " ";
		}
	}
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
