Some programming problems I solved on Main online judge using C++.