Some solutions of SPOJ Classical Problems