sum of neighbors

Having 6 integers in the input, your task is to create a new list out of those, where each element would be the sum of consecutive pairs in the input.
The program should print the resulting list in the output.
1 2 3 4 5 6
[3, 5, 7, 9, 11]


Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue