fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. string st;
  7. int n=st.size();
  8. if(n<=10)
  9. {
  10. cout<<st<<endl;
  11. }
  12. else
  13. {
  14. cout<<st[0]<<n-2<<st[n-1]<<endl;
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout