結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
trineutron
|
| 提出日時 | 2020-06-05 18:59:29 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 368 bytes |
| コンパイル時間 | 780 ms |
| コンパイル使用メモリ | 89,320 KB |
| 最終ジャッジ日時 | 2025-01-10 21:46:05 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 5 WA * 22 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cmath>
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
std::cout << std::setprecision(17);
int n;
std::cin >> n;
long double s = 0;
for (int i = 0; i < n; i++) {
long x;
std::cin >> x;
s += s + sqrtl(x);
std::cout << s << "\n";
}
}
trineutron