Read the problem. Re-read the problem (optional: out loud.) Mess up hair by thoroughly scratching head in confusion. Throw some darts to help think of a solution. Consider how to explain the solution. Type frantically. Realize a better, shorter solution and type that instead. Publish. Sip of coffee as a reward. Next problem.