結果

問題 No.8072 Sum of sqrt(x)
ユーザー AtamaokaC
提出日時 2021-10-24 14:36:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
OLE  
実行時間 -
コード長 340 bytes
コンパイル時間 3,756 ms
コンパイル使用メモリ 88,432 KB
最終ジャッジ日時 2025-01-25 05:10:18
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 TLE * 3 OLE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include <iomanip>
#include<cmath>
using namespace std;
int main()
{
    typedef long double real;
    int N;
    cin >> N;
    real ans = 0;
    cout << fixed << setprecision(17);
    for (auto i=0; i<N; ++i) {
        real x;
        cin >> x;
        ans += sqrt(x);
        cout << ans << endl;
    }
    return 0;
}
0