I don't think you should compare yourself to others (ranking-wise). If you did your best, that's good enough. If you feel like you could've tried harder and studied smarter, take this as a lesson for the years to come. Either way, don't care too much about your rank, just focus on self-improvement. Everyone has slip-ups - that's normal.
P.S. Pigman.