Critical behavior of one-dimensional superconductors: An exact solution