复制代码
这道题的输入输出出现了问题,长时间不接触。都忘了是输入一组,输出一组数据了...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#include <iostream> #include <string> using namespace std; int main() { string letters; int n, length; while(cin >> n) { for(int i = 0; i < n; i++) { cin >> letters; length = letters.size(); if(length > 10) cout << letters[0] << length - 2 << letters[length - 1] << endl; else cout << letters << endl; } } return 0; }
最后
以上就是哭泣火龙果最近收集整理的关于Codeforces_71A的全部内容,更多相关Codeforces_71A内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复