initial commit
This commit is contained in:
parent
04888589e1
commit
c5af3b3a99
16
71A-WayTooLongWords/71A.cpp
Normal file
16
71A-WayTooLongWords/71A.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include<bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int t,len;
|
||||||
|
string s;
|
||||||
|
cin>>t;
|
||||||
|
while(t--)
|
||||||
|
{
|
||||||
|
cin>>s;
|
||||||
|
len=s.size();
|
||||||
|
if(len>10) cout<<s[0]<<len-2<<s[len-1]<<endl;
|
||||||
|
else cout<<s<<endl;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user