No.81 An Easy Job of Just Adding Everything Up
レベル :
/ AI推定難易度 : 950
/ 実行時間制限 : 1ケース 5.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 269
作問者 :
なお
タグ : / 解いたユーザー数 269
作問者 :
問題文最終更新日: 2026-06-27 23:30:43
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 59
(順位表)
の他の問題:
Problem Statement
Find the sum of the given \(N\) values.
Input
\(N\) \(A_1\) \(A_2\) \(\dots\) \(A_i\) \(\dots\) \(A_N\)
The \(1\)st line contains an integer \(N\ (1 \leq N \leq 100)\), the number of values.
Each of the following \(N\) lines contains a value \(A_i\ (-10^{10} \leq A_i \leq 10^{10},\ 1 \leq i \leq N)\).
Each value is given as an integer or a finite decimal; a decimal may be given with up to \(10\) decimal places.
Output
Output the result of adding all the values.
Even if the result has no fractional part, output it to \(10\) decimal places.
Print a newline at the end.
Sample
Sample 1
Input
5 1 2 3 4 5
Output
15.0000000000
Sample 2
Input
10 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
Output
1.0000000000
Sample 3
Input
10 0.999999999 0.000000001 -0.999999999 -0.000000001 99999999.999999999 99999999.999999999 99999999.999999999 0.000000002 -99999999.999999999 99999999.999999999
Output
299999999.9999999990
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。