#include <iostream>
#include <string>
using namespace std;
int main()
{
string letters;
int n, length;
while(cin >> n)
{
for(int i = 0; i < n; i++)
{
cin >> letters;
length = letters.size();
if(length > 10)
cout << letters[0] << length - 2 << letters[length - 1] << endl;
else
cout << letters << endl;
}
}
return 0;
}
这道题的输入输出出现了问题,长时间不接触。都忘了是输入一组,输出一组数据了...
Codeforces_71A
最新推荐文章于 2020-10-19 18:11:48 发布