結果

問題 No.8072 Sum of sqrt(x)
ユーザー ngng628
提出日時 2023-08-03 13:55:01
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 2,250 ms
コンパイル使用メモリ 192,576 KB
最終ジャッジ日時 2025-02-15 21:45:12
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 WA * 16 TLE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

# include <bits/stdc++.h>
using namespace std;

struct Setup_io {
   Setup_io() {
      ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
   }
} setup_io;

int main() {
   int n;
   cin >> n;
   long double acc = 0.0;
   for (int i = 0; i < n; i++) {
      long x;
      cin >> x;
      acc += sqrtl(x);
      cout << acc << endl;
   }
}
0