Sample code for commong problems appearing in programming contests.