In Zelda ocarina of time How do you beat the running man?

You don't, he will always beat you by 1 second. There is no prize for beating him even if the game is hacked. Indeed, the English translator for the game has said he never translated a 'congratulations' text for beating him.