結果
| 問題 | 
                            No.8072 Sum of sqrt(x)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-07-24 11:08:55 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                OLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 344 bytes | 
| コンパイル時間 | 4,746 ms | 
| コンパイル使用メモリ | 192,844 KB | 
| 最終ジャッジ日時 | 2025-01-30 13:33:41 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 4 TLE * 2 OLE * 21 | 
ソースコード
typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    ll n;
    std::cin >> n;
    __float128 sum=0;
    for (int i = 0; i < n; i++) {
        ld a;
        std::cin >> a;
        sum += sqrt(a);
        std::cout << setprecision(30)<<(ld)sum << std::endl;
    }
}