please see what’s wrong with my code https://www.codechef.com/viewsolution/23597827
https://www.codechef.com/TCM2019/problems/TCF2019A
your code is not even working for sample test cases.
but why?
It is giving correct output for sample inputs given in the question.
Can you please have a look at the code working
Can u explain your logic.
sorry for incovininece
1
12
aaaaaabbbbbb
5 8
Your output
16
Correct output
144
Refer my code
https://ide.codingblocks.com/s/61936
As contest is over I m not able whether my code is correct or not
I have seen working code in successful submissions but I wanted to know what I did wrong. With your input I know what mistake I did, now I have corrected it and it is giving correct output. I appreciate that you responded quickly. Thanks
1 Like