The answer is C: it was the best of times; it was the worst of times.
This is because the speaker is stating that they are having their best time but at the same time, they are having their worst time.
“Best” and “worst” are contradictory (opposite or cancel each other out) things.
Therefore, the answer is C.