美文网首页
71A - Way Too Long Words

71A - Way Too Long Words

作者: 社交帐号直接注册 | 来源:发表于2018-01-10 20:38 被阅读0次
#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