# include using namespace std; struct Setup_io { Setup_io() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cout << fixed << setprecision(15); } } setup_io; int main() { int n; cin >> n; long double acc = 0.0; for (int i = 0; i < n; i++) { long x; cin >> x; acc += sqrtl(x); cout << fixed << setprecision(16) << acc << endl; } }