Programming problems solutions (SPOJ,USACO GATE,UVA...)