答案
2026-01-09 18:43:28
发布于:浙江
46阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int n = s.length();
if (n <= 10) {
cout << s << endl;
} else {
cout << s[0] << (n - 2) << s.back() << endl;
}
return 0;
}
这里空空如也

有帮助,赞一个