My code is running but no output?i cannot figure out why? please help

https://www.codechef.com/viewsolution/24846465