#include #include int main() { int n; scanf("%d", &n); double s = 0, t, r = 0; for (int i = 0; i < n; i++) { double x; scanf("%lf", &x); x = sqrt(x) + r; t = s + x; r = x - (t - s); s = t; printf("%.17g\n", s); } }