package main import ( "fmt" "math" ) func main() { // Read in the sequence length N var N int fmt.Scanf("%d", &N) // Read in the sequence sequence := make([]int, N) for i := 0; i < N; i++ { fmt.Scanf("%d", &sequence[i]) } // Initialize a variable to store the sum of sqrt(xi) for i = 0 to i = k var sum float64 // Iterate over the sequence for k := 0; k < N; k++ { // Add the square root of the current element to the sum sum += math.Sqrt(float64(sequence[k])) // Print the sum fmt.Printf("%.16f\n", sum) } }