Problem Description

Read n numbers. Output prefix sum after each element (same order).

Input Format

First integer n. Second line n integers.

Output Format

n lines prefix sums.

Sample Test Case

Input:
5 1 2 3 4 5
Output:
1 3 6 10 15

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next