#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int i,j;
char c[101];
cin >> c;
j=strlen(c);
if(j<=4)
{
cout << c << endl;
}
else
{
cout << c[0] << j-2 << c[j-1];
}
}
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int i,j;
char c[101];
cin >> c;
j=strlen(c);
if(j<=4)
{
cout << c << endl;
}
else
{
cout << c[0] << j-2 << c[j-1];
}
}
本文标题:71A - Way Too Long Words
本文链接:https://www.haomeiwen.com/subject/azkanxtx.html
网友评论