Problem1568--孙学长让我出的数组

1568: 孙学长让我出的数组

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

孙学长让输入一个n(0<n<=1000)值的数组,让你按照相应的规则进行求和,并对数组的结果进行输出求和规则为arr[i]=(arr[0]+.......+arr[i])。

Input

第一行输入n值,第二行输入n个整数.(记得是循环输入)

Output

输出n个结果

Sample Input Copy

4
1 2 3 4

Sample Output Copy

1 3 6 10

Source/Category

admin