I had a similar experience as an undergraduate, except that I didn't get the marks: I was taking a course on differential equations, and one of the final exam questions was to demonstrate that a solution existed to a given system. I gave a very elegant non-constructive proof which showed that a solution existed without giving any hint of what the solution was -- but the instructor expected students to provide a solut…
I had good math professors. Too bad I wasn't a good math student.