Page 2 of 2

Re: 11027 - Palindromic Permutation

Posted: Fri Jun 20, 2008 8:33 am
by whateva
hi guys... i have tested my code for various cases, but still... it is WA... can anybody tell me what's wrong with my code or give any test case?
please help me... :(
thx before...

Code: Select all

at last AC... what a stupid mistake... ~_~

Re: 11027 - Palindromic Permutation

Posted: Sun Apr 03, 2011 12:58 am
by Dominik Michniewski
I past through all samples in this topic, but I still get WA - I can't imagine why :(:(

Could anyone post more I/O ? Maybe empty strings are allowed in this problem ?
I am really frustrated about this problem :-/

Best regards
DM

Below is my code:

Code: Select all

Deleted after got Accepted

Re: 11027 - Palindromic Permutation

Posted: Sun Apr 03, 2011 4:01 am
by sohel
Try the following case:

Code: Select all

1
aaaabbbbccccdde 630
Expected Output

Code: Select all

Case 1: dccbbaaeaabbccd

Re: 11027 - Palindromic Permutation

Posted: Sun Apr 03, 2011 2:44 pm
by Dominik Michniewski
Very good sample Sohel :):):)
I must rethink problem and found my mistake :):)

BTW. I was very surprised, because I tested this code with many samples and miss samples, which leads to something like "aabb" as four last symbols to consider. :):)