#include <iostream>
#include <string>
using namespace std;
//s1在字典里的顺序早于s2时输出小于0
int Comp(string s1, string s2) {
int i, j;
for (i = 0, j = 0; i < s1.size() && j < s2.size(); i++, j++)
if (s1[i] != s2[j])
return s1[i] - s2[j];
return s1.size() - s2.siz...