結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-06-14 02:00:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 1,599 ms |
コンパイル使用メモリ | 89,064 KB |
最終ジャッジ日時 | 2025-01-11 04:04:44 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 OLE * 23 |
ソースコード
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; long double x; __float128 sum = 0; for(int i=0;i<N;i++){ cin >> x; sum += __float128(sqrt(x)); cout << scientific << setprecision(16) << (long double)(sum) << "\n"; } }