#K70417. Sum of Squares
Sum of Squares
Sum of Squares
This problem requires you to calculate the sum of squares of a list of integers. For a given \( n \) integers \( a_1, a_2, \dots, a_n \), you are to compute the result:
\(\sum_{i=1}^{n} a_i^2\)
Please note that the input will be provided via standard input and the output should be printed to standard output.
inputFormat
The input consists of two lines:
- The first line contains a single integer \( n \), denoting the number of elements in the list.
- The second line contains \( n \) space-separated integers.
outputFormat
Output a single integer representing the sum of the squares of the given integers.
## sample5
1 2 3 4 5
55
</p>