結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
|
提出日時 | 2023-05-05 23:00:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 1,869 ms |
コンパイル使用メモリ | 168,336 KB |
実行使用メモリ | 38,016 KB |
最終ジャッジ日時 | 2024-11-23 11:08:56 |
合計ジャッジ時間 | 78,409 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; } }