結果

問題 No.8072 Sum of sqrt(x)
ユーザー 山田太郎
提出日時 2023-05-05 23:03:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 355 bytes
コンパイル時間 2,076 ms
コンパイル使用メモリ 168,276 KB
実行使用メモリ 38,272 KB
最終ジャッジ日時 2024-11-23 11:20:17
合計ジャッジ時間 78,613 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 1 TLE * 3 OLE * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;

int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  cout<<fixed<<setprecision(6);
  ll n;
  cin>>n;
  vector<ld> x(n);
  for(ll i=0;i<n;i++){
    cin>>x[i];
  }
  ld ans=0.0;
  for(ll i=0;i<n;i++){
    ans+=(ld)sqrt(x[i]);
    cout<<ans<<endl;
  }
}
0