結果
| 問題 | 
                            No.8072 Sum of sqrt(x)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-09-26 12:54:51 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 413 bytes | 
| コンパイル時間 | 3,646 ms | 
| コンパイル使用メモリ | 281,216 KB | 
| 最終ジャッジ日時 | 2025-01-14 22:10:39 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 TLE * 21 OLE * 1 | 
ソースコード
#include <iostream>
using namespace std;
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace boost::multiprecision;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(17);
  int n;
  cin >> n;
  number<cpp_dec_float<128>> ans = 0;
  while (n--) {
    number<cpp_dec_float<128>> x;
    cin >> x;
    ans += sqrt(x);
    cout << ans << '\n';
  }
  return 0;
}