ALLSUB , WA on SUBMISSION

Can someone please tell me why i am getting WA on submission.
Code link https://www.codechef.com/viewsolution/26886124
@anon55659401
@ssrivastava990

1 Like

1
sab
ssssab

Try this test case.
It gives
ssssab
but it should have been sabsss instead.
So basically logic of “strflag” is incorrect.

1 Like

@l_returns is back on discuss :slight_smile:

Will get to see him in October in a contest with me after a loong time . I am ready with popcorns :joy: :heart_eyes: :sparkling_heart:

2 Likes

Thanks for responding…
I got it now.

1 Like

HAM BHI HAI RACE ME :slight_smile:

2 Likes