Problem Description

Given n integers, sum them using async reduce pattern (await inside loop). Print sum.

Input Format

Line1: n. Line2: n integers.

Output Format

One integer sum.

Sample Test Case

Input:
3 1000000000000 2 3
Output:
1000000000005

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next