Diffusive shock acceleration of cosmic ray and gamma radiation from young supernova shells