[NOI2011]阿狸的打字机

Grade Open Time Friday, 19 September 2014, 10:07 am
Discount 0.8 Time Discount Friday, 26 September 2014, 10:07 am
Allow late Yes Close Time Friday, 26 September 2014, 10:07 am
Input file noi2011_type.in Output file noi2011_type.out

样例输入如下:


aPaPBbP

3

1 2

1 3

2 3