i CRACKED THE PROBLEM WHICH WS RUNNING PERFECTLY AND GIVING RESULTS. BUT AFTER SUBMITTING THE GIVEN PROGRAM WAS RECOGNISED TOP BE WRONG?? PLEASE HELP ME OUT
printf("enter number of test cases \n");
printf("enter string sequence \n");
tell me which programmer on codechef prompts the user with am message. the answer is no one. you want to have print any messages dude it’s assumed that the user knows what to enter
and i haven’t even had a good look at your algo
printf(“enter number of test cases \n”);
printf(“enter string sequence \n”);
Get rid of those unnecessary
printf()s`. On code chef and other Competitive programming sites, you must not add statements like these.
Check the problem page and look at the input and output there. Your output and input should match the same format as that.
If the outupt for a certain input is
You should output just that. there is no need for those unnecessary output’s like yours. Those will just give you a Wrong Answer.
@akash781994 , in case you didn’t know, you can edit answers. No need to post multiple answers like this. You should edit your original answer and delete this one.