Guest User

Untitled

a guest
Mar 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // codigo de gabriel pastori
  2.  
  3. #include <iostream>
  4. #include <map>
  5. #include <string>
  6. #include <vector>
  7.  
  8. using namespace std;
  9.  
  10. int main() {
  11.  
  12. int n;
  13. cin>>n;
  14.  
  15. string s;
  16. for(int i=0;i<n;i++){
  17.  
  18. cin>>s;
  19.  
  20. if(s.size()>10){
  21. cout<<s[0]<<s.size()-2<<s[s.size()-1]<<endl;
  22.  
  23. }else{
  24. cout<<s<<endl;
  25.  
  26. }
  27.  
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment