Here is how to get all the endings:
Ending A: As long as you win the match, you will get ending A.
Ending B: Lose the practice. There will be four time choices in the real match, get a tie, then do nothing.
Ending C: Win the practice, get a tie in the match, then do nothing.
Ending D: Lose the match with 1 or less correct choice.