about summary refs log tree commit diff
path: root/2ndary/10/CSP-KT2/sumarv.c
blob: 3e5bc7e523809e10c657f30db83c7bf66d719ac7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int main()
{
	short n, i;
	long b[10001] = {};

	scanf("%hd", &n);
	for (i = 1; i <= n; i++) {
		scanf("%ld", &b[i]);
		b[i] *= i;
	}

	for (i = 1; i <= n; i++)
		printf("%ld ", b[i] - b[i - 1]);
	printf("\n");

	return 0;
}