#include #include #include int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::cout << std::setprecision(18); int n; std::cin >> n; __float128 s = 0, t, r = 0; for (int i = 0; i < n; i++) { long double x; std::cin >> x; x = sqrtl(x) + r; t = s + x; r = x - (t - s); s = t; std::cout << (long double) s << "\n"; } }