An exact diagonalization of the Hamiltonian for the one-dimensional quantum model consisting of an arbitrary number of isotropic XY chains connected by many-spin interactions is carried out with the help of the generalized nested Bethe ansatz. An exact solution for the ground-state energy of the considered model is obtained.