結果
| 問題 | 
                            No.8072 Sum of sqrt(x)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-07-24 11:21:42 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1,812 ms / 2,000 ms | 
| コード長 | 365 bytes | 
| コンパイル時間 | 4,068 ms | 
| コンパイル使用メモリ | 192,600 KB | 
| 最終ジャッジ日時 | 2025-01-30 13:39:07 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 27 | 
ソースコード
typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  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(17) << (ld)sum << "\n";
  }
}