Adding more solutions to different problems of UVA and in general I found on internet