Neural-network-based multistate solver for a static Schrödinger equation