Problems solved as a training for programming competitions