結果

問題 No.3072 Sum of sqrt(x)
ユーザー ngng628ngng628
提出日時 2023-08-03 13:59:45
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 3,020 ms
コンパイル使用メモリ 193,872 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-21 12:25:46
合計ジャッジ時間 74,483 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 350 ms
5,376 KB
testcase_09 AC 531 ms
5,376 KB
testcase_10 AC 1,281 ms
5,376 KB
testcase_11 AC 1,240 ms
5,376 KB
testcase_12 AC 1,216 ms
5,376 KB
testcase_13 AC 1,254 ms
5,376 KB
testcase_14 AC 1,206 ms
5,376 KB
testcase_15 AC 1,189 ms
5,376 KB
testcase_16 AC 1,229 ms
5,376 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

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);
      cout << fixed << setprecision(15);
   }
} 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);
      printf("%.16Lg\n", acc);
   }
}
0