我是靠谱客的博主 哭泣火龙果,这篇文章主要介绍Codeforces_71A,现在分享给大家,希望可以做个参考。

复制代码
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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部