結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
|
| 提出日時 | 2021-10-24 15:21:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 3,437 ms |
| コンパイル使用メモリ | 88,444 KB |
| 最終ジャッジ日時 | 2025-01-25 05:14:27 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 OLE * 22 |
ソースコード
#include<iostream>
#include <iomanip>
#include<cmath>
using namespace std;
int main()
{
typedef double real;
int N;
cin >> N;
real ans = 0;
cout << fixed << setprecision(17);
for (auto i=0; i<N; ++i) {
long long int x;
cin >> x;
ans += sqrt(real(x));
cout << ans << endl;
}
return 0;
}