WA in ALLSUB

Problem statement: https://www.codechef.com/LTIME76A/problems/ALLSUB
My solution: https://www.codechef.com/viewsolution/26838873

Please, can someone tell me what am I doing wrong? Or provide a counter case for my code.

I’ve tried debugging my solution, tried and wrote code from scratch many times, nothing helped.

1 Like

I can provide you with test case but I think its not required to do that from my side,
Use this application and you can find test case on your own.
Bug Finder - A GUI application to compare source codes.
Let me know if it doesn’t work for you. I will give you test case directly.

Anyways, I decide to resolve it :stuck_out_tongue:

Its not any logical error :stuck_out_tongue:
You are gonna hit your head with wall hard when I tell you actual mistake. XD
Just need to change 4 chars from your code and it gets AC.
LOLOL ROFL.
Let me give you chance to find that 4 chars on you own.

Click to reveal the magical chars

“char m[26]” should be "int m[26]"because frequency can be upto 10^5 XD

See you in hospital XD.

3 Likes

Oh. Visiting time is till 5 pm :laughing:

Jokes apart, thanks for the help.

1 Like

Don’t mention
After all you are my ACM ICPC teammate :smiley: :stuck_out_tongue:

1 Like