Floating Sum Stability

Computer Mathematics Hard 2 views
Back to Questions

Problem Description

Given n decimals, sum them and print with 6 decimals (show stable summation idea).

Input Format

n then n decimals.

Output Format

One number.

Sample Test Case

Input:
3 0.1 0.2 0.3
Output:
0.600000

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!