"In the book, just before taking the cup, Harry and Cedric are involved in a somewhat lengthy debate about who should have it. Cedric gets downright stubborn — he’s not going to take that cup. He thinks Harry earned it. It’s only the (rather sly) suggestion by Harry that they take it together that changes Cedric’s mind. He’s willing to share the victory. In fact, I think he’s far more comfortable with that solution than with either winning outright, or losing. Why? He’s Hufflepuff, and there’s perhaps no scene in any of the books that better exemplifies Hufflepuff House than Cedric at this moment. They will win together, get there together, and help each other along the way."
