結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
|
| 提出日時 | 2023-05-05 22:53:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 300 bytes |
| コンパイル時間 | 1,578 ms |
| コンパイル使用メモリ | 168,204 KB |
| 実行使用メモリ | 24,576 KB |
| 最終ジャッジ日時 | 2024-11-23 10:54:05 |
| 合計ジャッジ時間 | 81,905 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 OLE * 22 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
int main(){
cout<<fixed<<setprecision(17);
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;
}
}