Page 2 of 2

Posted: Sat Oct 27, 2007 8:47 am
by Deno
I'm getting many WAs on this problem.

Can someone who got AC tell me what the output should be in following case:

Code: Select all

11

"AyB"
"A"->"ab"
"Ay"->"cdy"
"B"->"w"
"B"->"x"

""
""->"a"

"a"
"a"->"aa"

"a"
"a"->"b"

"a"
"a"->"a"

"a"
""->"b"

"a"
""->"aa"

""
""->""

"abc"
"a"->"a"

"abc"
"abc"->"d"
"d"->"e"

"a"
"a"->""
""->"a"
Are there other tricky cases?

Thank you

Posted: Tue Jan 01, 2008 6:55 pm
by kason
My AC program ouput

9

Too many.

Too many.

2

1

Too many.

Too many.

1

1

3

Too many.