結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
trineutron
|
| 提出日時 | 2020-06-05 19:00:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 2,106 ms |
| コンパイル使用メモリ | 100,952 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-06-10 12:23:03 |
| 合計ジャッジ時間 | 54,497 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 14 |
ソースコード
#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 += sqrtl(x);
std::cout << s << "\n";
}
}
trineutron