I am trying to solve http://www.spoj.com/BSCPROG/problems/SMPSUM/. But it keep showing be runtime (NZEC) error. It work's perfectly in