### 520 - Append

Posted:

**Sat Dec 30, 2006 10:50 pm**This problem is a bit vague. When it says "expressing the sequence Cw in the form CuCv" does it mean the Cu and Cv must use the same original pairs from Cw? In other words, Cu is the head of Cw while Cv is the tail of Cw? If so, does anyone have some sample output?

And is my following sample output correct (the number before : is my output for the next block of input)? THANKS

1:

0 a

1 1

0 b

3 3

3 3

3 2

0 c

1:

0 a

1 1

0 b

3 3

3 3

3 2

0 c

2:

0 a

0 a

0 a

0 a

3 3

0 c

2:

0 a

0 b

0 c

0 d

2 2

3 1

5 5

1:

0 a

0 b

0:

0 a

1:

0 a

1 1

0 b

0:

0 a

0 b

2 1

2:

0 a

1 1

0 b

1 1

0 c

1 1

And is my following sample output correct (the number before : is my output for the next block of input)? THANKS

1:

0 a

1 1

0 b

3 3

3 3

3 2

0 c

1:

0 a

1 1

0 b

3 3

3 3

3 2

0 c

2:

0 a

0 a

0 a

0 a

3 3

0 c

2:

0 a

0 b

0 c

0 d

2 2

3 1

5 5

1:

0 a

0 b

0:

0 a

1:

0 a

1 1

0 b

0:

0 a

0 b

2 1

2:

0 a

1 1

0 b

1 1

0 c

1 1