WA in spoj ONEZERO[closed after ac]

,

This post was flagged by the community and is temporarily hidden.

The length of string temp.s can grow very large. Hence applying atoi to that string will result in integer overflow.