Using the Bethe ansatz we obtain in a determinant form the exact solution of the master equation for the conditional probabilities of the totally asymmetric exclusion process with particle-dependent hopping rates on Z. From this we derive a determinant expression for the timeintegrated current for a step-function initial state.