原题链接:http://codeforces.com/problemset/problem/71/A
重点:strictly more than 10不包括10
#include<cstdio>
#include<cstring>
int main()
{
int num;
scanf("%d", &num);
while(num--)
{
char s[110] = {0};
scanf("%s", s);
int len = strlen(s);
if(len <= 10)
printf("%s\n");
else
printf("%c%d%c\n", s[0], len - 2, s[len - 1]);
}
return 0;
}