It is about counting no of times “CHEF” is seeing in the input string
Eclipse compiler gives correct answer to a CodeChef's practice code mentioned below but CodeChef's says its a wrong answer. I don't get where the problem is. Please help me find error or mistake in my code.
Codechef question's link
Question snap:
Below is my code:
I tried this code in Codechef's Compiler. It gives correct answer, when I submit my code it shows me the below pic:
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.