結果

問題 No.8072 Sum of sqrt(x)
ユーザー PyonPyon
提出日時 2024-03-22 17:18:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 598 bytes
コンパイル時間 2,138 ms
コンパイル使用メモリ 185,180 KB
実行使用メモリ 8,960 KB
最終ジャッジ日時 2024-09-30 10:38:30
合計ジャッジ時間 25,719 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 1 TLE * 15 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;i++)
using vi = vector<int>; // intの1次元の型に vi という別名をつける
using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける
//using mint = modint998244353;
const long long INF = 1e18;
//bit全探索 rep(i,0,1<<(n-1)){rep(j,0,n-1)if(I&(1<<j))}
//int a = s[0] - ‘0’;文字列から数字
//int a=atoi(s.c_str());
int main() {int n;
cin>>n;

double ans=0;
rep(i,0,n){
	double t ;
	cin>>t;
	ans+=sqrt(t);
	cout<<ans<<endl;
}

}
0