#P1505. A Game Called Mind

A Game Called Mind

题目描述

输入格式

输出格式

样例

2 
3 10 40 50 
2 20 30 

ABBAA 

3 
4 40 51 60 70 
3 12 32 42 
5 20 53 80 90 95 

BCBABACAACCC 

提示

by 2019晨曦