C++ related beginner level problem
It says that “wrong answer” , i am unable to find the flaw in the code . It would be appreciable if someone could help me out with the error i made ! Below are the details
The Link to the Problem : https://www.codechef.com/problems/FCTRL2
My Solution: https://www.codechef.com/viewsolution/21642622
Any suggestions or advices are most welcome !