Computer Programming Contest Preparation

ToolBox - Source for: 108/10855/a.in



/home/toolbox/public_html/solutions/108/10855/a.in
    1 4 2
    2 ABBA
    3 ABBB
    4 BAAA
    5 BABB
    6 AB
    7 BB
    8 6 2
    9 ABCDCD
   10 BCDCBD
   11 BACDDC
   12 DCBDCA
   13 DCBABD
   14 ABCDBA
   15 BC
   16 CD
   17 0 0
   18 
   19