Https://www.codechef.com/viewsolution/24418554

CodeChef: Practical coding for everyone can anyone please please help me i started doing coding recently and my output is not showing correct result can anyone suggest me where I went wrong in my code I will be thankful to him the link for the question is given below. CATSDOGS Problem - CodeChef

  • use long long instead of int
  • still it will give TLE optimize it

thanks for the help.