結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
|
| 提出日時 | 2022-07-24 11:07:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| コンパイル時間 | 2,764 ms |
| コンパイル使用メモリ | 192,704 KB |
| 最終ジャッジ日時 | 2025-01-30 13:32:15 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 2 OLE * 21 |
ソースコード
typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ll n;
std::cin >> n;
__float128 sum=0;
for (int i = 0; i < n; i++) {
ld a;
std::cin >> a;
sum += sqrt(a);
std::cout << setprecision(50)<<(ld)sum << std::endl;
}
}