結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
|
| 提出日時 | 2020-09-26 12:54:51 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 413 bytes |
| 記録 | |
| コンパイル時間 | 4,558 ms |
| コンパイル使用メモリ | 310,196 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-06-14 01:53:58 |
| 合計ジャッジ時間 | 16,633 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 22 |
ソースコード
#include <iostream>
using namespace std;
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace boost::multiprecision;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(17);
int n;
cin >> n;
number<cpp_dec_float<128>> ans = 0;
while (n--) {
number<cpp_dec_float<128>> x;
cin >> x;
ans += sqrt(x);
cout << ans << '\n';
}
return 0;
}