Cosmic ray protons and electrons from supernova remnants