結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-06-14 01:52:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 1,693 ms |
コンパイル使用メモリ | 66,712 KB |
実行使用メモリ | 13,880 KB |
最終ジャッジ日時 | 2024-07-03 11:18:27 |
合計ジャッジ時間 | 11,704 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 OLE * 1 -- * 22 |
ソースコード
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ 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"; } }