Molecular Gas Distribution in Barred and Nonbarred Galaxies along the Hubble Sequence