The first batsman can hit a six on the first ball and can make his century.
While he should take a short run on the second ball so the run won't count and will give strike to the other batsman.
On the third ball the second batsman can hit a six and can complete his century as well.