Problem Description

Read n and n integers. Write function sum_sq(arr) to return sum of squares and output it.

Input Format

First line n. Second line n integers.

Output Format

One integer sum.

Sample Test Case

Input:
4 1 2 3 4
Output:
30

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next