Sum of negative absolutes
Given 5 different floating point numbers, your task is to compute the sum of all negative absolute values of the elements.
Input | Output |
4
-3.5
2
-4
1 | -14.5 |
Explanation: .
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB