<<anything not at A is a failure to me.>>
As long as you gave it your best, you are by no means a failure. Striving is the important part. Not meeting your personal goals is a form of motivation, to strive harder and do better.
But trying your hardest, no matter what the outcome, is what counts.
You are not a failure.