We develop a numerical scheme for solving the one-dimensional (1D) time-dependent Schrödinger equation (TDSE), and use it to study the strong-field photoionization of the atomic hydrogen. The photoelectron energy spectra obtained for pulses ranging from XUV to near infrared are compared in detail to the spectra calculated with our well-developed code for accurately solving the three-dimensional (3D) TDSE. For XUV pulses, our discussions cover intensities at which the ionization is in the perturbative and nonperturbative regimes. For pulses of 400 nm or longer wavelengths, we distinguish the multiphoton and tunneling regimes. Similarities and discrepancies between the 1D and 3D calculations in each regime are discussed. The observed discrepancies mainly originate from the differences in the transition matrix elements and the energy level structures created in the 1D and 3D calculations.