結果

問題 No.3072 Sum of sqrt(x)
ユーザー erbowlerbowl
提出日時 2022-07-24 11:20:11
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
OLE  
実行時間 -
コード長 365 bytes
コンパイル時間 4,377 ms
コンパイル使用メモリ 195,792 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-09-20 09:47:34
合計ジャッジ時間 60,699 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,356 KB
testcase_01 AC 3 ms
4,356 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 3 ms
4,356 KB
testcase_04 AC 3 ms
4,356 KB
testcase_05 AC 3 ms
4,352 KB
testcase_06 AC 3 ms
4,356 KB
testcase_07 OLE -
testcase_08 AC 753 ms
4,352 KB
testcase_09 AC 901 ms
4,356 KB
testcase_10 OLE -
testcase_11 OLE -
testcase_12 OLE -
testcase_13 OLE -
testcase_14 OLE -
testcase_15 OLE -
testcase_16 OLE -
testcase_17 OLE -
testcase_18 OLE -
testcase_19 OLE -
testcase_20 OLE -
testcase_21 OLE -
testcase_22 OLE -
testcase_23 OLE -
testcase_24 OLE -
testcase_25 OLE -
testcase_26 OLE -
testcase_27 OLE -
testcase_28 OLE -
testcase_29 OLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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(25) << (ld)sum << "\n";
  }
}
0