//
问题 F: i18n
时间限制: 1.000 Sec 内存限制: 128 MB题目描述
The word internationalization is sometimes abbreviated to i18n.
This comes from the fact that there are 18 letters between the first i and the last n.
You are given a string s of length at least 3 consisting of lowercase English letters.
Abbreviate s in the same way.Constraints
3≤|s|≤100 (|s| denotes the length of s.)
s consists of lowercase English letters.输入
Input is given from Standard Input in the following format:
s
输出
Print the abbreviation of s.
样例输入 Copy
internationalization
样例输出 Copy
i18n
//
#include<bits/stdc++.h>
using namespace std;int main()
{char str[111];int len;while( ~scanf("%s",str) ){len=strlen(str)-2;printf("%c%d%c\n",str[0],len,str[ len+1 ] );}return 0;
}