With flying colours

A ship in harbour, flying its flags.

"With flying colours" ("with flying colors" in American English) is a popular idiom of the English language that is used to describe how well someone has completed a task. For example, a common use of the phrase is to refer to someone having passed a test or other examination "with flying colours," i.e. passed the test easily or with an exceptionally high score. The phrase originated in the Age of Exploration, when ships would return to port with their flags ("colours") either raised or lowered to signify that the ship had either been successful or defeated, with raised flags indicating success and lowered flags indicating defeat. Thus, "with flying colours" literally means that someone has completed a task, while idiomatically, it connotes particular success in that task.