Why it is giving WA while my logic is correct plzz help ASAP

Plzz anyone help in this qn… I am getting wa …
https://www.codechef.com/COOK142B/problems/SPLITANDSUM
with my solution
https://www.codechef.com/viewsolution/66242045