Problem Description

Given n numbers and batch size b. Process each batch in parallel, but inside a batch do series (await each). Output total batches and the final sum.

Input Format

Line1: n b. Line2: n integers.

Output Format

Two values: batches sum.

Sample Test Case

Input:
7 3 1 2 3 4 5 6 7
Output:
3 28

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next