結果

問題 No.8072 Sum of sqrt(x)
ユーザー hgoto
提出日時 2020-09-26 13:26:25
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
TLE  
(最新)
OLE  
(最初)
実行時間 -
コード長 227 bytes
コンパイル時間 16,824 ms
コンパイル使用メモリ 249,704 KB
最終ジャッジ日時 2025-01-14 22:16:07
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 TLE * 18 OLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  int n;
  scanf("%d", &n);
  long double ans = 0;
  while (n--) {
    long double x;
    cin >> x;
    ans += sqrt(x);
    printf("%.17Lf\n", ans);
  }
  return 0;
}
0