Clarifications and Hints

Problem 5 - Final Patterns

Question 1: How many spaces separate the ":", "=", and "+" symbols in the output? It is hard to determine that from the example.
We altered the "auto judge" ON THIS PROBLEM so it will ignore spaces on the lines of output. Therefore, it does not matter how many spaces (if any) after the colon or on either side of the "+" or "=" symbols. However, you must still have a blank line following each output case, including the last one and you must not have an extra blank line at the top in your output. Don't print tabs (\t) characters for any of your spaces in the output.
Question 2: If the line is 'ABCABCSEDSED' how is the output formated and is SED==sed?
If pattern is 'SED':   'ABCABCSEDSED' = 'ABCABC' + 2*'SED'
If pattern is 'sed':   'ABCABCSEDSED' = 'ABCABCSEDSED' + 0*'sed'
You just process the strings as given without having to worry about case.