Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // codigo de gabriel pastori
- #include <iostream>
- #include <map>
- #include <string>
- #include <vector>
- using namespace std;
- int main() {
- int n;
- cin>>n;
- string s;
- for(int i=0;i<n;i++){
- cin>>s;
- if(s.size()>10){
- cout<<s[0]<<s.size()-2<<s[s.size()-1]<<endl;
- }else{
- cout<<s<<endl;
- }
- }
- }
Add Comment
Please, Sign In to add comment