結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
|
提出日時 | 2023-05-05 23:01:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 4,398 ms |
コンパイル使用メモリ | 167,552 KB |
実行使用メモリ | 24,576 KB |
最終ジャッジ日時 | 2024-11-23 11:13:25 |
合計ジャッジ時間 | 80,897 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 OLE * 22 |
ソースコード
#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(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; } }