Problem Description

Task: compute checksum = sum(i*value) mod 1e9+7 for array values.

Input Format

Java method

Output Format

Return value

Constraints

Use long and mod each step.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next