Examples of using "ひらめきました" in a sentence and their english translations:
because she couldn't afford electricity.
and instantly, I have an aha moment.