#C14592. Sum of Squares of Even Numbers
Sum of Squares of Even Numbers
Sum of Squares of Even Numbers
Given a list of integers, compute the sum of the squares of all even numbers. Even if the list contains negative even numbers, they should be squared and included in the total sum.
If the list is empty, the output should be 0.
The calculation is based on the formula: $$\sum_{x \in E} x^2$$, where \(E\) is the set of even numbers in the list.
This problem tests your ability to process input, filter lists, and perform simple arithmetic operations.
inputFormat
The input is provided via standard input (stdin). The first line contains an integer \(n\), representing the number of elements in the list. The second line contains \(n\) space-separated integers.
outputFormat
Output a single integer to standard output (stdout), which is the sum of the squares of the even numbers in the list.
## sample5
1 2 3 4 5
20