此题用string是为了更方便地从高位起比较每个数
不过sort里要加cmp
string a[105]; sort(a, a+n, cmp);
cmp函数:
bool cmp(string a, string b) { /*xxxxxx*/ }