Solutions from some problems of programming contests