Initial values of elements 4
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Each element of an array with N integers has been modified by adding the sum of all preceding elements. Given this updated array, your task is to reconstruct the original array values.
Input
The first line contains a natural number N. The second line contains N integers. Each integer does not exceed 100 in absolute value.
Output
Print the original values of the array elements in a single line, separated by spaces.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 65%