首页 > 其他 > 详细

Codeforces 71A

时间:2019-11-06 10:25:25      阅读:54      评论:0      收藏:0      [点我收藏+]
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string word;
	int length, n;
	cin>>n;
	for(int i=0; i<n; ++i)
	{
		cin>>word;
		length=word.size();
		if(length>10)
			cout<<word[0]<<length-2<<word[length-1]<<endl;
		else
			cout<<word<<endl;
	}
	return 0;
}

  

Codeforces 71A

原文:https://www.cnblogs.com/commario/p/11803459.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!