WA for some cases in LEARNDSA02 ZCO12001

Some cases are acccepted, but some give WA. Please help me find the prob.

https://www.codechef.com/viewsolution/33392729W

Thanks.

Your link is not working