結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
|
提出日時 | 2023-05-05 23:17:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 2,358 ms |
コンパイル使用メモリ | 194,308 KB |
最終ジャッジ日時 | 2025-02-12 19:52:06 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 1 OLE * 22 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ld=long double; int main(){ cout<<fixed<<setprecision(17); cin.tie(0); ios::sync_with_stdio(false); int n; cin>>n; __float128 ans=0; for(int i=0;i<n;i++){ ld x; cin>>x; ans+=sqrt(x); cout<<(ld)ans<<endl; } }