11027 - Palindromic Permutation

All about problems in Volume 110. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

whateva
New poster
Posts: 3
Joined: Fri Jun 20, 2008 7:22 am

Re: 11027 - Palindromic Permutation

Post 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... ~_~
Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Re: 11027 - Palindromic Permutation

Post 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
Last edited by Dominik Michniewski on Sun Apr 03, 2011 2:41 pm, edited 1 time in total.
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

Re: 11027 - Palindromic Permutation

Post by sohel »

Try the following case:

Code: Select all

1
aaaabbbbccccdde 630
Expected Output

Code: Select all

Case 1: dccbbaaeaabbccd
Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Re: 11027 - Palindromic Permutation

Post 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. :):)
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
Post Reply

Return to “Volume 110 (11000-11099)”